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:
product: compute # an id from products.items; unset means a site-wide entryaffects_versions: [v1, v2] # needs product; each label is a version of that product's docstags: [breaking] # feature | improvement | fix | deprecation | breaking | securitytags accepts only those six values. Any other value fails the build.
The build fails, naming the file, when:
productis not in yourproducts:registry, or the site has no registryaffects_versionsis set withoutproductaffects_versionslists a label the product’s docs do not declare undernav.<variant>.products[].versions. A product without versions accepts none. The product is the nav product whosepathequals the registry product’sdocs.
/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:
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:
---product: computekind: model # product | model | api-versionitem: llama-3.1-70bannounced: 2026-11-13eol: 2027-02-13replacement: llama-4migration_guide: /docs/compute/migrate-llama-4---Optional extra explanation.| Field | Meaning |
|---|---|
product | A product id from the registry. |
kind | product, model or api-version. |
item | What is being withdrawn: a model id, an API version, or the product name. |
announced | The date you announce it. |
eol | The end-of-life date. It must be after announced. |
replacement | What to use instead. |
migration_guide | A 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.