Skip to content

Latest commit

 

History

History
141 lines (108 loc) · 5.89 KB

release-policy.md

File metadata and controls

141 lines (108 loc) · 5.89 KB

Release Policy

This policy defines how Fict releases are prepared, verified, and documented. It exists to keep package changelogs and stability promises aligned with the engineering quality of the compiler/runtime.

Versioning

Core 1.0 is in release-candidate preparation. The manifests and Changesets prerelease state identify the version under test. Certified candidates publish on npm's next channel. Stable releases publish on latest after the checks in the release guide. Satellite packages keep the independent version lines defined in SCOPE.md.

The fict runtime dependency and the SSR and router runtime peers share the same compatibility range. This lets npm and pnpm select one runtime for render ownership and cleanup. For a candidate on a new patch or minor line, include that prerelease triplet in the applicable host and companion ranges and version the affected packages together. For example, npm's ^1.0.0-0 admits 1.0.0-rc.1 and stable 1.0.1; 1.0.1-rc.0 needs a separate comparator.

On a 0.x line, a minor release may include breaking changes. Document each breaking change in the package changelog and release notes.

The Rust-only compiler removal ships as the explicitly breaking 0.31.0 minor after the completed 0.30.0 compatibility minor and final legacy 0.30.1 patch. The API freeze defines the public surface and compiler/runtime compatibility guarantees for Core 1.x.

Starting with 1.0.0, Fict follows SemVer:

  • Patch: bug fixes, docs, diagnostics wording, non-breaking internal changes.
  • Minor: new APIs, new compiler diagnostics, opt-in runtime capabilities.
  • Major: public API breaks, compiler output ABI breaks, or changed default semantics for stable APIs.

Preview APIs such as renderToPartial and resumability are not frozen. They must stay marked as Preview/experimental in docs and changelogs until the API freeze document moves them to a stable tier. Preview does not block Core 1.0; passing Preview verification proves its documented degradation behavior, not Core semver stability. maturity.json is the release-readable registry.

Changesets

Every user-visible package change must include a Changeset. The Changeset entry must explain what changed in user terms, not just the package that changed.

Good:

Fix tracked branch remounts so foreign input state is preserved when a fallback
branch is replaced.

Bad:

fix
fix fict
update

Dependency-only releases may say that no API behavior changed, but they must name the release train or compatibility reason:

Publish the testing library with runtime and SSR 0.20 compatibility; no testing
API behavior changed.

Changelog Quality Gate

Before publishing:

  1. Run pnpm run version to materialize package changelogs. The explicit run is required because pnpm version invokes pnpm's built-in version command instead of the repository's Changesets script.
  2. Review every changed packages/*/CHANGELOG.md.
  3. Reject placeholder entries such as fix, update, fix fict, or package names without behavior.
  4. Keep dependency update blocks generated by Changesets, but add a real release note when the package has a user-facing reason to publish.
  5. Call out breaking changes under a ### Breaking Changes heading.
  6. Call out Preview/experimental changes explicitly.

The release PR should include the verification command output or CI link for:

  • pnpm security:audit:prod with zero known production vulnerabilities
  • pnpm security:audit:rust with zero RustSec warnings across the root and fuzz lockfiles
  • pnpm release:verify:clean
  • pnpm release:compiler:verify when compiler output, diagnostics, metadata, or optimizer behavior changed
  • pnpm size when runtime or public entrypoints changed

Snapshot Schema Release Gate

Any snapshot schema, value codec, migration, or rejection behavior change must include all of the following:

  1. Changesets for every user-visible owner, including @fictjs/runtime, @fictjs/ssr, and fict when its loader bridge changes.
  2. A release note naming the writer version, the versions rejected by default, and every explicitly supported legacy dialect.
  3. Tests for current output, missing-version and old-version rejection, each accepted migration, and the application-owned onSnapshotRejected CSR path.
  4. pnpm test:ssr-matrix output, including the SSR-to-client fallback E2E.
  5. An atomic deployment plan that pins SSR server, HTML/snapshot, client loader, manifest, QRL chunks, PPR patches, and external stream runtime to one build ID.
  6. A purge plan for CDN HTML, PPR/ISR, KV/pre-rendered artifacts, and service-worker document/manifest caches.
  7. A rollback plan that switches the full compatibility unit and purges derived HTML again; rolling back only the server or one package is invalid.

Explicit legacy migrations are deployment-specific bridges. Release notes must say whether cached writers require raw-props or encoded-props; they must not suggest choosing from payload shape.

API Stability Labels

Use the stability tiers from docs/api-freeze-v1.md:

  • Tier 1 public APIs require backward compatibility after v1.
  • Tier 2 compiler ABI can change implementation details but must remain compatible with supported compiler output.
  • Tier 3 advanced APIs should remain stable when practical.
  • Tier 4 preview/experimental APIs can change, but docs must say so.

Release Note Checklist

Each release note should answer:

  • What user-visible behavior changed?
  • Which package owns the behavior?
  • Is this a bug fix, new capability, compatibility publish, or preview change?
  • Does this affect strictGuarantee, compiler output, runtime scheduling, hydration/resume, or package metadata?
  • Does the migration guide or API reference need an update?

If the answer is "no user-visible behavior changed," say that explicitly and name the compatibility reason for the package publish.