Skip to content

release/0.1.0 - #20

Merged
monarcode merged 7 commits into
mainfrom
release/0.1.0
Nov 28, 2026
Merged

monarcode merged 7 commits into
mainfrom
release/0.1.0

Conversation

@monarcode

Copy link
Copy Markdown
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
@monarcode
monarcode merged commit e8d511f into main Nov 28, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant