Repository navigation
Release 0.1.0-alpha.3 - #4
Merged
Merged
Conversation
- 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`
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.
refactor(core)!: replace TanStack Store with Nano Stores and split client into modules
AuthClient.stateis typed by this package andstate.subscribetakes a listener function.new AuthError(code, message, { cause, issues })replaces the fourthissuesargument.AuthStatusandAuthErrorOptions, and sign every tab out withUSER_VALIDATION_FAILEDwhen another tab saves a user the schema rejectsscripts/, and bump to0.1.0-alpha.3