Versioning and compatibility
What a spine-framework version number promises a consumer — and what it doesn't.
The channels
| npm dist-tag | Line | Who it's for |
|---|---|---|
latest | stable (0.x.y) | production consumers |
rc | prerelease (0.x.y-rc.n) | early adopters, pre-release validation |
next | legacy 0.3 line | historical — do not install for new work |
Consumers get release notes on the GitHub mirror for every rc/final — the authoritative "what changed and what you must do."
What each bump may change
Patch (0.x.y → 0.x.y+1) — bug fixes and doc/skill corrections.
- May still ship a migration — patches can fix schema too;
upgradereports it,migrateapplies it. - Consumer action:
npm i spine-framework@latest→upgrade→verify→migrateif reported. App packages'^0.xpeer ranges float onto patches automatically — no app republish needed. - No removed commands, no peer-floor changes, no contract breaks.
Minor (0.x → 0.x+1) — features, schema additions, shipped-file changes.
- Expect new migrations; expect the shipped file set to change (
.framework/grows/shrinks; agent skills refresh; the CI template updates). - Peer floors may move: app packages'
peerDependenciesdeclare the framework range they work against — a minor that raises the floor means the app needs a republish too (release notes say so). - Scaffolder packages (
create-spine-framework,create-*) track the minor line — crossing one bumps theirspine-frameworkdep to the new^0.x.
Major — not yet on the 0.x line; pre-1.0, minor is the largest unit.
The compatibility contract — what stays stable
- Applied migrations never change. Your DB ledger is append-only; corrections ship as new migrations, never edits (exceptional corrections need a recorded decision — see decision
0011). - Your tree is yours.
custom/,spine.config.json,.env, theAGENTS.mdregion belowspine-framework:end,.devin/skills/dirs not namedspine-*, and.github/workflows/files not namedspine-*are never overwritten byupgrade. - Runtime API shape.
/api/admin-dataand the entity APIs are additive — fields/actions get added, not removed, within a minor series.
The deprecation path — how things go away
- Stub first. A removed capability becomes a stub that prints migration guidance and exits non-zero —
generateis the live example: it tells youcreate-app/validate-schemainstead of failing silently. Stubs ship in a release, announced in notes. - Remove later. The stub is dropped in a subsequent release after the notes have carried the guidance.
- Never silent. If a command/flag/behavior disappears, the release notes carry a Breaking Changes section — there is no quiet-removed-path.
Version pins that must agree
package.jsonversion ↔ the app'smanifest.jsonversion —validatePackageJsonenforces equality; a mismatch makesinstall-app/seed-appthrow.- An app package's
filesallowlist is validated by the installed framework's rules, not the newest — a dir allowed at HEAD but rejected by an older floor can't ship until the peer floor allows it. package-lock.jsonis the upgrade baseline —update-appverifies the installed version + integrity from it, not frompackage.jsonranges.
Related
- Upgrade — the mechanics per project.
- Upgrade many projects — the agency loop.
- Migrations — ledger semantics.