Releases
How SHADE's packages get their versions and are published to npm under @shadestack. The repositories are public and
CI runs on them. Pushing a version tag v<version> starts the release workflow on GitHub Actions, which publishes
with provenance; nothing is published by hand, and a release tag can't be moved or deleted. So far there are
pre-releases only, under npm's next tag, the latest of them 0.1.0-next.2 (Changelog);
0.1.0 isn't out. Install with @next: npm's latest tag also points at a pre-release, not always the newest. The framework
adapters are on npm at their own versions under next too (0.1.0-next.0 first); the website module's package isn't
published yet. The image's release is in Run SHADE,
and how a package is staged and checked in SDK and tooling.
Version lines
- SHADE's version (
SHADE_VERSION,shade/kernel/version.ts) is that of the module SDK,@shadestack/coreand@shadestack/svg, in theshaderepository. They are released together, and tests keep their versions equal. - The frontend kit (
shade-frontend, since 24 November 2026) has one version line of its own, starting at 0.1.0:@shadestack/client,astro,cloudflareand the website editor's packages (render,tree,expressions,styles,interactions,a11y) are released together.@shadestack/clientdepends on@shadestack/corewithin^0.1.0. The kit'sCHANGELOG.mdnames the SHADE range of each release (SHADE^0.1.0to start). - The framework adapters,
@shadestack/next,@shadestack/nuxtand@shadestack/sveltekit, keep their own lines inside the kit (versioning: 'own'in theirpackage.json). A new Next.js, Nuxt or SvelteKit major ships as an adapter release, without a kit release; a kit release needs no adapter release while the adapters' ranges hold it. - The website module's package,
@shadestack/module-website, has a version of its own too, in its own repository (versioning: 'own', itsCHANGELOG.mdwith the SHADE versions each release works with) (The website module's SDK).
An adapter says what it works with in its peer dependencies:
- The kit:
@shadestack/client,@shadestack/renderand@shadestack/interactionsas peers, never dependencies, with one range for the three (^0.1.0), within one major. Before 1.0 a kit minor may break, so^0.1.0is 0.1.x. - Its framework: an explicit range, one caret per major it is tested on (Next.js
^15.0.0 || ^16.0.0); the versions per adapter are in Sites in other frameworks.
Each adapter has its own changelog, packages/<adapter>/CHANGELOG.md in shade-frontend, written by hand: one ## <version> section per
release, saying what changed and which kit and framework versions it supports. SHADE's own changes are in the
Changelog, and the SDK's names in its contract's changelog
(SDK and tooling).
Publishing
Two repositories each have a pnpm release:packages: shade publishes core, the module SDK and svg, and
shade-frontend publishes the kit, with --adapter there. Only the release workflow on GitHub Actions, with
provenance, runs --publish; nobody runs it by hand. In shade-frontend a tag v<version> publishes the kit, and a
tag <adapter>-v<version> (nuxt-v0.1.0-next.0) only that adapter, once the tag's version is its package.json's.
pnpm release:packages # pack and check every package; publish nothing
pnpm release:packages --publish # in shade: publish core, the SDK and svg; in shade-frontend: the kit
pnpm release:packages --publish --adapter next # in shade-frontend, an adapter release: publish only @shadestack/next
pnpm release:packages --publish --adapter nuxt --adapter sveltekit # several adapters, each at its own version
Every run packs and checks every package, the adapters too, and refuses:
- a package on a repository's line at another version than that line's;
- an adapter whose version is no version, which depends on the kit's packages instead of taking them as peers, gives them different ranges, or has a range that leaves out the kit version in the workspace (the one its tests ran against);
- an adapter whose
CHANGELOG.mdhas no section for its version; - a package whose TypeScript doesn't build to JavaScript and declaration files (each package goes to npm built, no
source left: Node runs no TypeScript from
node_modules), or whose types name a package it doesn't depend on; - a package that doesn't load on plain Node as packed: every run unpacks the tarballs into a scratch project, imports
every entry and runs every bin (
shade-module help); components, CSS and framework modules are left to the bundler.
So a kit release that an adapter's range leaves out (before 1.0, a new minor) stops until that adapter has a version
whose range takes it: raise the adapter's version, widen its range, add its changelog section, and publish it with
--adapter after the kit's packages.
Every run also checks the two contracts first (below), and refuses a release that breaks either. It also refuses to
publish what would carry a secret: a .env, .npmrc or key file, or text shaped like a private key or a token. In
shade, --publish to npm runs only on GitHub Actions with npm provenance; by hand it refuses.
The release workflow runs pnpm release:packages as one of the release gates (pnpm release:gates), which hold the
release until every check passes (The release gates).
A SHADE release also attaches its release file to the GitHub release, for the update preview (Updating and backups):
pnpm --filter @shadestack/api update-preview --write shade-<version>.release.json
It holds core's migrations, each with its line from shade/kernel/db/migrations/README.md, and the operator steps of
every release from docs/releases/operator-steps.json in the shade repository. Before the release, add the steps an
operator takes for it there ({ "version": "<version>", "steps": [{ "text": "…" }] }, with "plugins": [...] for a
step only some modules need), the same steps the changelog names.
The contracts
Two things outside code promise not to break: the module SDK's names (shade/module-sdk/contract.json,
SDK and tooling) and the versioned API, /api/v1. A breaking change
to /api/v1 comes as /api/v2, beside v1. The admin API (/api/… without a version) is internal to the admin and
promises nothing; a module's own routes are the module's.
The API's snapshot, api-contract.json at the root of the SHADE repository, holds what clients of /api/v1/content,
/api/v1/account and /api/v1/data rely on, taken from the OpenAPI document of core's routes: per operation its auth,
its parameters, its request body and its described answer, without summaries or descriptions. A test in the normal
suite (apps/api/test/http/api-contract.test.ts) builds today's document and fails while it differs from the
snapshot:
pnpm api:contract # write the snapshot from today's routes; refuses a breaking change
pnpm api:contract --breaking "<release note>" # before the first release only: take a breaking change deliberately
- An additive change (a route, an optional field or parameter, an enum value or a response field added, a limit
loosened, auth loosened) fails the test until
pnpm api:contractwrites it, so review sees every change in the diff ofapi-contract.json. - A breaking change fails with what broke: a route or method removed; a required request field or parameter
added, or an optional one made required; a request field removed or narrowed (another type, a tighter limit, a
pattern or format added, fewer values); a response field removed, made optional or given another type; an enum
value removed; auth tightened. Make it a
/api/v2route beside the v1 one instead. - Before 0.1.0 is released, as with the SDK's names, a breaking change may go into the snapshot deliberately:
pnpm api:contract --breaking "<release note>"keeps the note under SHADE's version in the snapshot; put the same note in the Changelog under Changed. From the first release on, the script refuses--breaking.
Before a release, pnpm release:packages checks that the snapshot matches the routes. Once SHADE has a release (a
version with a date in the SDK contract's releases), it also reads both contracts from that release's tag
(v<version>) and stops on a breaking change to the API, or an SDK name that is gone from contract.json or listed
with another kind or version. Fetch the tags first (git fetch --tags): a missing tag stops the release too. Before
the first release there is nothing to compare with, and only the snapshot is checked.
An adapter release for a framework's new major: once the framework matrix passes on it,
add the major to the adapter's framework range (^16.0.0 || ^17.0.0) and its devDependency, raise the adapter's version
(a major when it drops a framework major), write its changelog section, and publish it alone.
The framework matrix
In shade-frontend, pnpm test:frameworks (scripts/framework-matrix.mjs) runs an adapter against one version of its framework, a
line:
pnpm test:frameworks list # the lines to run, as JSON (CI's matrix)
pnpm test:frameworks nuxt # current: the version the lockfile installs
pnpm test:frameworks nuxt next --e2e # the next major (CI only), with the browser tests
pnpm test:frameworks next 17.0.0-canary.3 --e2e # an exact version (CI only)
current: the framework version inpnpm-lock.yaml. Runs anywhere.next: the newest version of the framework's next major that pnpm may install: its newest release, else its newest pre-release (a canary, beta or release candidate), not deprecated and published at leastminimumReleaseAgeago (a week,pnpm-workspace.yaml), read from npm's registry. While the framework has no such version, the line has nothing to run andlistleaves it out. On 7 November 2026 none of the three has one.- An older major the adapter's peer range still promises, at its newest release a week old: Next.js 15 while
@shadestack/nextsays^15.0.0 || ^16.0.0.listadds one line per such major, so what a range promises is tested. - An exact version, by hand.
A line other than current first installs that version into the adapter's folder (pnpm add --save-dev: Next.js;
Nuxt with @nuxt/kit at the same version; Svelte), which changes the adapter's package.json and pnpm-lock.yaml.
That is for CI only, on a checkout that is thrown away: the script refuses unless CI=true, and the lockfile's
versions never change. React stays as locked for a new Next.js major, so a major that needs another React fails its
line. Then the line runs the adapter's typecheck, its tests (with the rendering core's conformance suite) and, with
--e2e, the render bundles' browser tests (e2e/tests/render-frameworks.spec.ts, render-deferred.spec.ts and
render-preview.spec.ts, which build each framework's page, and its preview, from the adapter's folder), with the kit's own
Playwright, needing no instance.
CI runs every line weekly and before a release, and one line by hand (Run workflow, with the framework and current, next or a
version). A line other than current has not been run outside CI.