diff --git a/.changeset/harden-auth-identity-guard.md b/.changeset/harden-auth-identity-guard.md deleted file mode 100644 index 7056763df..000000000 --- a/.changeset/harden-auth-identity-guard.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -"kitcn": patch ---- - -## Patches - -- Fix `onTokenIdentityChange` letting a token of another user or session into - the auth store, Convex, cRPC HTTP headers or the TanStack Start loader: the - SSR token, restored sessions, sign-in tokens, JWTs without `exp` and - concurrent first tokens are all held to the page's identity and every - mounted provider's current `tokenIdentityBaseline` getter, including changes - made by `onTokenIdentityAdmitted` before publication. -- Fix an identity guard trip staying local to one provider: every mounted - provider now hands out no token and publishes unauthenticated, each guarded - one closes its client and calls `onTokenIdentityChange` once, including a - guard enabled after the trip, and sign-in - mutations fail with `TOKEN_IDENTITY_CHANGED` until the page reloads. -- Fix the `optimisticAuth` window reopening after Convex refused a token: it - now ends at the Convex client's first auth result. diff --git a/bun.lock b/bun.lock index b93e3350e..7427ec037 100644 --- a/bun.lock +++ b/bun.lock @@ -121,7 +121,7 @@ }, "packages/kitcn": { "name": "kitcn", - "version": "0.33.6", + "version": "0.33.7", "bin": { "kitcn": "./dist/cli.mjs", "intent": "./bin/intent.js", @@ -181,7 +181,7 @@ }, "packages/resend": { "name": "@kitcn/resend", - "version": "0.33.6", + "version": "0.33.7", "dependencies": { "svix": "^1.84.1", }, diff --git a/packages/kitcn/CHANGELOG.md b/packages/kitcn/CHANGELOG.md index fe53e4953..d5ef2f241 100644 --- a/packages/kitcn/CHANGELOG.md +++ b/packages/kitcn/CHANGELOG.md @@ -1,5 +1,25 @@ # kitcn +## 0.33.7 + +### Patch Changes + +- [#475](https://github.com/udecode/kitcn/pull/475) [`9e513f8`](https://github.com/udecode/kitcn/commit/9e513f85d4742efa041840c45989dfd3e96c883e) Thanks [@EfficiencyCorp](https://github.com/EfficiencyCorp)! - ## Patches + + - Fix `onTokenIdentityChange` letting a token of another user or session into + the auth store, Convex, cRPC HTTP headers or the TanStack Start loader: the + SSR token, restored sessions, sign-in tokens, JWTs without `exp` and + concurrent first tokens are all held to the page's identity and every + mounted provider's current `tokenIdentityBaseline` getter, including changes + made by `onTokenIdentityAdmitted` before publication. + - Fix an identity guard trip staying local to one provider: every mounted + provider now hands out no token and publishes unauthenticated, each guarded + one closes its client and calls `onTokenIdentityChange` once, including a + guard enabled after the trip, and sign-in + mutations fail with `TOKEN_IDENTITY_CHANGED` until the page reloads. + - Fix the `optimisticAuth` window reopening after Convex refused a token: it + now ends at the Convex client's first auth result. + ## 0.33.6 ### Patch Changes diff --git a/packages/kitcn/package.json b/packages/kitcn/package.json index 01ea13411..8190a96a7 100644 --- a/packages/kitcn/package.json +++ b/packages/kitcn/package.json @@ -1,6 +1,6 @@ { "name": "kitcn", - "version": "0.33.6", + "version": "0.33.7", "description": "kitcn - React Query integration and CLI tools for Convex", "keywords": [ "convex", diff --git a/packages/resend/CHANGELOG.md b/packages/resend/CHANGELOG.md index a2a590e62..6e1d70c78 100644 --- a/packages/resend/CHANGELOG.md +++ b/packages/resend/CHANGELOG.md @@ -1,5 +1,7 @@ # @kitcn/resend +## 0.33.7 + ## 0.33.6 ## 0.33.5 diff --git a/packages/resend/package.json b/packages/resend/package.json index 65772f1ee..850b6f887 100644 --- a/packages/resend/package.json +++ b/packages/resend/package.json @@ -1,6 +1,6 @@ { "name": "@kitcn/resend", - "version": "0.33.6", + "version": "0.33.7", "description": "kitcn Resend plugin", "type": "module", "sideEffects": false,