Skip to content

Release 0.1.0-alpha.3 - #4

Merged
monarcode merged 4 commits into
mainfrom
0.1.0-alpha.3
Oct 4, 2026
Merged

monarcode merged 4 commits into
mainfrom
0.1.0-alpha.3

Conversation

@monarcode

Copy link
Copy Markdown
Owner

refactor(core)!: replace TanStack Store with Nano Stores and split client into modules

  • Breaking: AuthClient.state is typed by this package and state.subscribe takes a listener function. new AuthError(code, message, { cause, issues }) replaces the fourth issues argument.
  • Add AuthStatus and AuthErrorOptions, and sign every tab out with USER_VALIDATION_FAILED when another tab saves a user the schema rejects
  • Split auth tests by area in TypeScript, lint and format scripts/, and bump to 0.1.0-alpha.3

- Require function listeners for state subscriptions.
- Report subscriber errors asynchronously without interrupting auth.
- Use React’s selector adapter and update alpha.3 documentation.
- Stop ignoring `scripts/` in the oxfmt and oxlint configs
- Reformat `check-readme`, `clean` and `prepare-release` with double quotes,
  tabs and wrapped lines
… issues

into options

- Extract tokens, refresh, user, task and timer helpers from `validation.ts` and
  `client.ts`, and move `safeReturnTo` to `react/return-to.ts`
- Add the `AuthStatus` type and `AuthErrorOptions`, and sign every tab out with
  `USER_VALIDATION_FAILED` when another tab saves a user the schema rejects
- Breaking: `new AuthError(code, message, { cause, issues })` replaces the
  fourth `issues` argument
- Replace the monolithic `auth.test.mjs` with typed session, refresh, expiry,
  Router, HTTP, return-URL and tab tests that share `tests/helpers.ts`
- Run `*.test.ts` directly with Node and type-check them via
  `tests/tsconfig.tests.json` in `test:types`
- Bump the version to `0.1.0-alpha.3` and add `@types/jsdom`
@monarcode
monarcode merged commit 2aabb2f into main Oct 4, 2026
2 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