Repository navigation
release/0.1.0 - #20
Merged
Merged
Conversation
monarcode
commented
Nov 28, 2026
Owner
- ci(release): publish stable versions, and prereleases to next
- build(deps)!: require effetch 0.1.0
- ci(release): move the live docs only for releases to latest
- docs: add a versioning policy, and drop the release-candidate notes
- fix(release): refuse a prerelease older than one already out
- test: compare the published API with a committed snapshot
- chore(release): 0.1.0
prepare-release accepts X.Y.Z and X.Y.Z-(alpha|beta|rc).N and picks the npm dist-tag from the registry: stable versions go to latest, and prereleases go to latest until a stable version exists, then to next. It refuses a version older than a released stable one, and fails when the registry's answer lists no versions. The GitHub release is a job of its own, so it can be rerun without publishing again. RELEASING.md documents it all, and moving next by hand after a stable release.
Raise the @monarcode/effetch peer range to ^0.1.0, up from ^0.1.0-rc.4, now that effetch 0.1.0 is stable, and move the dev dependencies and the Effect example to effetch and effetch-query 0.1.0. CI's oldest-peers job installs effetch 0.1.0. The Effect page and Compatibility name 0.1.0. BREAKING CHANGE: apps using ./effetch need @monarcode/effetch 0.1.0 or later in 0.1.
The docs-site job now runs only when the release goes to npm's latest tag, so the live site matches what npm install gets. Once a stable version exists, a prerelease on next is previewed on main's deploy instead. RELEASING.md, CONTRIBUTING.md and site/PRODUCT.md say so.
An update within 0.1.x doesn't break code written for 0.1.0: the API, the formats of saved sessions, the session cookie and the session route, and the supported peers, TypeScript versions and runtimes stay as they are, and breaking changes wait for 0.2.0. An update can add an AuthErrorCode for something new. The one exception follows Effect's unstable HTTP modules, which /effetch's types come from. The policy is on Compatibility, summarised in the README and on Installation, and AGENTS.md rule 9 now enforces it.
A prerelease such as 0.1.1-rc.0 after 0.2.0-rc.1 would move npm's next tag back to the older line. The registry check now refuses it, as it refuses a release older than a stable one.
tests/api.test.ts compares the published declarations, without comments, with tests/public-api.snapshot: the subpaths, what they export, and every declaration and import their types reach. A JSDoc edit or an internal change leaves it alone; a change to the API fails it until `pnpm run api:update` records it, so within 0.1.x the diff shows that a change only adds. CI's oldest-peers job skips it, since some declarations are inferred from a peer's types.
The first stable release. - fix(effect): type the Auth service's base class by name, so `yield* Auth` and `Auth.use` give the registered client - ci: install the packed package in an app of its own, typecheck it with TypeScript 5.4 and 7, and run it on Node.js 20 and 22 (scripts/compat.sh) - fix(release): refuse an older prerelease of the same version - test(api): the snapshot keeps local export lists, and throws on a subpath without top-level types - docs: add SECURITY.md and link it from the Security page, remove the docs/ stubs, and stop the Markdown copies repeating type-table headings - build(deps): update the tested peers to effect 4.1.7, react-router 8.5.3, @tanstack/react-start 1.169.7 and @types/react 19.3.3 - chore(examples): drop tanstack-start-ssr's unneeded errorComponent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.