Each public package in ts-stack has its own Semantic Versioning version. A source version and a published registry version are separate facts: merging a version change does not publish it, and publication occurs only through the protected npm OIDC workflow.
The exact source versions, runtime profiles, and release routes are generated on Generated Stack Facts. Do not copy that table into hand-maintained pages.
Packages below 1.0 follow the same compatibility invariant. Neither a minor bump below 1.0 nor a major bump permits breaking established contracts. Changing an internal implementation without changing its packed or runtime contract does not automatically require bumping unrelated packages.
Version every public package whose published bytes or manifest will change. Then inspect its first-party dependents:
Workspace runtime and development references use workspace:^; public peer
dependencies use reviewed public ranges. scripts/check-versions.mjs rejects
incoherent first-party references before release.
The latest published release of each package is the supported default. Older versions remain available from npm but do not receive a blanket maintenance or security-backport promise. That maintenance policy does not permit new wallets or clients to break existing application-wallet contracts. When a serious vulnerability affects a previous major, maintainers decide whether a safe backport is practical based on exploitability, dependency constraints, and deployment exposure, and record that decision in the private advisory.
Browser, React Native, Node consumer, contributor, and infrastructure support are different profiles. The generated facts page and package manifests are authoritative; contributor CI currently uses the stricter root toolchain.
An additive replacement or deprecation must preserve the existing contract and include:
Prefer a deprecation period when it can be implemented without creating a security or correctness hazard. There is no universal 60-day window. Do not unpublish or move an immutable version to simulate rollback; deprecate a bad version and publish a corrected version.
Package documentation frontmatter versions describe the package version
verified by that page. Cross-stack version and support facts come from the
generated pages. The Package API, Declarations, and Migration
Ledger is the uniform release-note
authority for every public package, including packages that retain an
additional historical CHANGELOG.md.
A package change updates:
changes/ with the SemVer impact, summary, and
migration decision (pnpm change; see changes/README.md);A feature pull request does not edit the package version, its entry in
governance/package-release-notes.json, a package-local changelog, the
baseline package versions, or the generated ledgers. The Version packages
workflow folds every pending change file into those files in one generated
chore: version packages pull request. It computes each next version from the
published baseline: the strongest pending impact wins, nested packages such as
the wallet-toolbox client and mobile builds follow their enclosing package, and
an unpublished candidate that already satisfies the impact is not bumped again.
For a breaking change in a 0.y.z package, choose minor; major moves the
package to 1.0.0.
pnpm docs:packages:check rejects missing packages, version/release-type
disagreement, missing API pages, and stale generated output. After an authorized
publication, the release-sync change advances the recorded published baseline;
merging a candidate record never publishes it.
A new, unpublished package uses publishedVersion: null and
releaseType: initial, with an exact source version and substantive API and
migration documentation. Registry verification must confirm an explicit npm
not-found response; authentication, network and server failures are not proof of
absence. If the package already exists, reconcile its actual published baseline
before the release gate can pass. Never invent a 0.0.0 publication to register a
new package. An initial candidate still requires the protected publication workflow
and explicit publication authorization.
Do not promise a GitHub Release, npm dist-tag, changelog format, cadence, or support window that the workflow does not actually enforce.
Every PR targeting main contains exactly one visible fenced block with the
language release-note and a JSON object with these four fields:
{
"schemaVersion": 1,
"packages": { "@bsv/sdk": "patch", "@bsv/paymail": "minor" },
"summary": "Preserve upload headers and add optional address lookup.",
"migration": "none"
}
packages maps names from governance/repository-health/projects.json with the
npm-oidc release route to patch, minor, major or initial. Each package
can have its own impact. Use initial for a first publication; a major impact
does not waive the compatibility contract. summary is plain-language text
describing the consumer-visible change. migration contains steps, identifying
the relevant packages when necessary, or the exact string none when no
consumer action is needed. Both text fields must be nonempty; template
placeholders and unknown fields are rejected.
For a PR with no npm release impact, use this explicit form:
{
"schemaVersion": 1,
"packages": "none",
"summary": "Validate release-note structure in pull request descriptions.",
"migration": "none"
}
This form also covers service-only changes whose deployment evidence remains in
the PR's operations section. Do not use it to omit a package whose published
bytes or manifest change. node scripts/ci-local-feedback.mjs --base origin/main
helps identify affected packages and dependents; reviewers determine the actual
release impact. To validate a saved description locally, run:
node scripts/pr-release-note.mjs --body-file /tmp/pr-description.mdThe required repository health job checks structure, known package names and impact values. It does not infer whether a summary is useful or whether SemVer and migration decisions are correct; those remain review responsibilities. Automated PRs follow the same contract; a maintainer supplies the note if the bot cannot. Description edits trigger CI, and reruns fetch the current body from GitHub instead of trusting a stale event payload. A run for an obsolete head fails and must be replaced by CI for the current head. Push, manual and merge-group runs have no single PR description and do not apply this check.
The PR block is the editorial record for the change. The existing release ledger, package changelogs, generated documentation and protected publication workflow remain authoritative under the rules above. Reuse summary/migration text where appropriate; do not invent separate prose for the same change. Making PR descriptions the sole changelog, archiving existing files, importing notes into a version PR, or adding per-release PR links to generated GitHub Release notes requires a separately approved release-policy migration.
Publication is an explicit operator action after reviewed source versions are
on main. The supported paths are:
packages/<path>/vX.Y.Z for a single governed package;release/vYYYY-MM-DD for a cascade of every source version absent from npm;vX.Y.Z cascade; ormain.The workflow packs once, produces and scans SBOMs, verifies licenses, attestations, provenance, and registry integrity, then opens a reviewed post-publication version-sync PR when a cascade changes first-party ranges. Nothing should be published from a maintainer workstation.
See Dependency and Release Policy, npm Package Supply Chain, and Release and Operations Guide for the complete gates, failure handling, and rollback path.
A governed publishedVersion: "0.0.0" identifies a candidate awaiting its first
publication. The verifier records an explicit initial-release hold only when
the public npm registry returns a completed E404. It retains that package in
the complete report and creates no fictional published consumer for it.
Authentication, transport, timeout and malformed responses remain errors; a
missing package with any previously published baseline remains an error.
Every actually published package still requires its integrity, provenance and
isolated consumer install. The hold does not authorize npm publication.
Release and CI interpreters use patched Node24.22.1; historical resource-profile measurements retain their original runtime identities.