This repo uses npm plus Changesets, matching the rest of the fells-code packages.
- Make the change under
src/schemas/<model>/. - Run
npm run changeset. - Select
@seamless-auth/types. - Choose the semver bump.
- Write release notes for the repos that consume these contracts, not implementation notes.
Every downstream repo imports these schemas, so a change here ripples outward. Treat a schema change as breaking by default and argue your way down from there.
- major for anything a consumer must react to: a removed or renamed export, a field that changes type, a schema that now rejects input it used to accept.
- minor for additive work: a new module, a new export, a new optional field, or a schema that accepts more than it used to.
- patch for fixes with no effect on the contract: docs, tests, and internal tidying.
A widening change (a wider enum, a field that becomes nullable) is not breaking at runtime, but it does change the inferred TypeScript type, so say so in the changeset.
Stable releases come from main through the Release workflow.
When changesets are merged to main, the workflow opens or updates a release PR that contains:
- the package version bump
CHANGELOG.mdupdatespackage-lock.jsonupdates- consumed changeset file removals
Review that PR like a normal release artifact. When it is merged, the workflow publishes the npm package, creates the Git tag, and creates the GitHub Release.
The repo is in Changesets pre mode on the next tag (.changeset/pre.json) while the v0.21
contracts settle. Release PRs from main publish 0.34.0-next.N to the next dist-tag, and
latest stays on the last stable version. Consumers pin the exact prerelease.
To cut the stable release, run npx changeset pre exit in a PR. The next release PR then
publishes 0.34.0 to latest.
Publish this package before the repos that depend on it. A consumer that adopts a new contract against an unpublished version will not install.
The workflow publishes with NPM_CONFIG_PROVENANCE=true, so npm records provenance for the
package. The NPM_TOKEN repository secret needs publish access before the first release PR is
merged.