Skip to main content

Module versioning

Module versioning 

Source
Expand description

Date-based API versions: resolving the Api-Version header, deprecation and retirement, and the version changes that let older clients keep the shape they were built against.

Modules§

document
Helpers for writing VersionChange transforms over JSON:API documents and plain JSON.

Structs§

ApiVersion
A date-based API version: YYYY-MM-DD with an optional release name, as in 2027-01-15.atlas. Versions compare by date; the name is a label for the release the version belongs to.
Deprecated
When a version stops working, and the brownouts before then.
Versions
The versioning configuration, mirroring api.versions in the PHP package.

Constants§

HEADER
The header that pins a request to a version, and that responses echo.

Traits§

VersionChange
One backwards-incompatible change, registered under the version that introduced it.

Functions§

legacy
Wraps an async handler as a LegacyHandler.

Type Aliases§

LegacyHandler
A frozen handler that serves a route to versions older than the change that froze it.