Skip to content
✨ Publier v1 is live — a polished docs platform built for the open web.
On this page

Changelog and deprecations

Tag changelog entries, give each product its own changelog page and feed, and publish a deprecation registry with end-of-life dates.

This guide covers two things on top of the basic changelog page: changelogs per product, and a registry of deprecations. Both use the product registry for product ids.

Which one to use

Most breaking changes need no notice period. They ship with release notes and a new version, and you record them as a changelog entry tagged breaking.

A deprecation entry exists only for three kinds of change. Each gets 3 months notice:

  • a whole product is discontinued (kind: product)
  • a model id is retired (kind: model)
  • an old API major version is switched off (kind: api-version)

Product changelogs

Three optional frontmatter fields on a changelog entry:

src/content/changelog/compute-v2.mdx
product: compute # an id from products.items; unset means a site-wide entry
affects_versions: [v1, v2] # needs product; each label is a version of that product's docs
tags: [breaking] # feature | improvement | fix | deprecation | breaking | security

tags accepts only those six values. Any other value fails the build.

The build fails, naming the file, when:

  • product is not in your products: registry, or the site has no registry
  • affects_versions is set without product
  • affects_versions lists a label the product’s docs do not declare under nav.<variant>.products[].versions. A product without versions accepts none. The product is the nav product whose path equals the registry product’s docs.

/changelog lists every entry with a product chip, an “Affects v1, v2” line and tag badges. breaking and security stand out. Each product with at least one entry also gets /changelog/<product id>/ and, when site.url is set, /changelog/<product id>/rss.xml. Feed items carry the product name as a category.

Deprecations

Declare the collection in src/content.config.ts:

src/content.config.ts
import { contentLoader } from '@publier/shell/loaders';
import { deprecationSchema } from '@publier/shell/schemas';
deprecations: defineCollection({
loader: contentLoader({ base: './src/content/deprecations' }),
schema: deprecationSchema,
}),

Add one file per entry:

src/content/deprecations/llama-3-1-70b.mdx
---
product: compute
kind: model # product | model | api-version
item: llama-3.1-70b
announced: 2026-11-13
eol: 2027-02-13
replacement: llama-4
migration_guide: /docs/compute/migrate-llama-4
---
Optional extra explanation.
FieldMeaning
productA product id from the registry.
kindproduct, model or api-version.
itemWhat is being withdrawn: a model id, an API version, or the product name.
announcedThe date you announce it.
eolThe end-of-life date. It must be after announced.
replacementWhat to use instead.
migration_guideA path starting with /, or an http(s) URL.

The body is optional.

The build fails when eol is not after announced, when product is not in the registry, or when migration_guide is neither a path nor an http(s) URL. It prints a warning when the notice is shorter than 3 calendar months.

Status is worked out at build time. An entry is announced until eol and removed from then on. Removed entries stay listed, muted. Rebuild the site after an eol date for the status to change.

The /deprecations page

Once the collection has a file, /deprecations lists every entry sorted by end of life, with product and status filters that work without JavaScript. The filters use CSS :has(); a browser without it shows every row.

To show one product’s entries in its own docs, use the component:

import { Deprecations } from '@publier/shell/components';
<Deprecations product="compute" />

It shows the same table without the filters, and nothing when the product has no entries.

Publier does not send HTTP headers. If your API servers send Deprecation and Sunset headers, set them there.

Upgrading existing entries

A site with a changelog collection must move any tag outside the six values to one of them. A site with no products: registry gets no per-product pages and is otherwise unaffected.