Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ max_line_length = 80

[*.md]
trim_trailing_whitespace = false
# GitHub and npm render tabs 8 columns wide, so code examples use spaces.
indent_style = space
indent_size = 2
9 changes: 7 additions & 2 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
"endOfLine": "lf",
"bracketSpacing": true,
"insertFinalNewline": true,
"overrides": [
{
"files": ["*.md"],
"options": { "useTabs": false, "tabWidth": 2 }
}
],
"ignorePatterns": [
"node_modules",
"dist",
Expand All @@ -19,8 +25,7 @@
"routeTree.gen.ts",
"*.gen.ts",
"coverage",
"templates/",
"scripts/"
"templates/"
],
"sortImports": {
"customGroups": [
Expand Down
3 changes: 1 addition & 2 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
"**/routeTree.gen.ts",
"**/*.gen.ts",
"**/coverage/**",
"**/templates/**",
"**/scripts/**"
"**/templates/**"
],
"rules": {
"no-unused-vars": "off",
Expand Down
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# Changelog

## 0.1.0-alpha.3

### Added

- `AuthStatus` names the union of `AuthState.status` values, for helpers and
exhaustive `switch` statements.

### Changed

- Reactive state uses Nano Stores instead of TanStack Store. Apps on Router
versions that depend on an older TanStack Store no longer bundle two copies.
- **Breaking:** `AuthClient.state` is typed by this package rather than
`@tanstack/store`. `state.subscribe` takes a listener function; observer
objects (`{ next, error, complete }`) are no longer accepted.
- **Breaking:** the `AuthError` constructor takes schema `issues` in its options
object, `new AuthError(code, message, { cause, issues })`, instead of as a
fourth argument. The new `AuthErrorOptions` type describes those options.

### Fixed

- A `state.subscribe` listener that throws no longer makes `signIn` (or another
operation) reject after it succeeded, or stops later listeners, including
`useAuth` and `connectAuth`, from seeing the change. The error is rethrown
asynchronously instead.
- When another tab saves a user that this tab's schema rejects, for example
while two deploys are open, this tab no longer keeps the old profile with no
error. It signs every tab out with `USER_VALIDATION_FAILED`, as restoring
that session would.

## 0.1.0-alpha.2

### Changed
Expand Down
Loading
Loading