diff --git a/.changeset/brown-guests-roll.md b/.changeset/brown-guests-roll.md deleted file mode 100644 index 21d3d160e39..00000000000 --- a/.changeset/brown-guests-roll.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@clerk/localizations': minor -'@clerk/clerk-js': minor -'@clerk/shared': minor -'@clerk/ui': minor ---- - -Add support for manual discounts and promo codes. Discounts, whether manual or via a promo code, are shown in the subscriptions list and in payments/statements. Promo codes can now be entered at checkout. diff --git a/.changeset/bundlewatch-browser-budget.md b/.changeset/bundlewatch-browser-budget.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/bundlewatch-browser-budget.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/fake-user-test-id.md b/.changeset/fake-user-test-id.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/fake-user-test-id.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/headless-popover-menu.md b/.changeset/headless-popover-menu.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/headless-popover-menu.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/lucky-donkeys-brake.md b/.changeset/lucky-donkeys-brake.md deleted file mode 100644 index b9153adc9e8..00000000000 --- a/.changeset/lucky-donkeys-brake.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/clerk-js': patch ---- - -Keep the freshest session token when a server response carries an older one. A slow response, or the client payload attached to one, could previously roll `lastActiveToken` back to a stale token, which is the token sent as the previous-token hint on the next token request. diff --git a/.changeset/protect-assertion-sdk-option.md b/.changeset/protect-assertion-sdk-option.md deleted file mode 100644 index cdcfeb0573e..00000000000 --- a/.changeset/protect-assertion-sdk-option.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -'@clerk/clerk-js': minor -'@clerk/shared': minor -'@clerk/react': minor ---- - -Add a way to supply a Clerk Protect assertion from your application, so a token minted by your own backend reaches Protect without your having to set a cookie. - -A Protect assertion is a short-lived, signed token you create with the Clerk Backend API, carrying key/value pairs your Protect rules can read. Until now the only way to deliver one was the `__clerk_protect_assertion` cookie, which requires your app and Frontend API to be on the same site — true with a production CNAME setup, but not on development instances. - -Pass the token to Clerk and it is attached to sign-in and sign-up requests instead: - -```ts -// A token you already have. -Clerk.load({ protectAssertion: token }); - -// Or a function, re-read for each request. -Clerk.load({ protectAssertion: () => sessionStorage.getItem('protect_assertion') ?? undefined }); - -// Or set it later, once your app has fetched one. -clerk.setProtectAssertion(token); -``` - -Prefer the function form when a page can outlive the token. Assertions are short-lived by design, so a string captured at load time stops applying once it expires, whereas a function picks up a refreshed one. - -An assertion is an input to rules you author, never a decision on its own, and it applies only from the context you constrained it to when you minted it. Nothing about it can fail a sign-in: a resolver that throws, rejects, or returns anything other than a non-empty string simply results in no assertion being attached, and the request proceeds. - -The cookie continues to work unchanged. If both are present, the value supplied to the SDK wins. diff --git a/.changeset/silly-coins-consent.md b/.changeset/silly-coins-consent.md deleted file mode 100644 index c232e227340..00000000000 --- a/.changeset/silly-coins-consent.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@clerk/localizations': patch -'@clerk/shared': patch -'@clerk/ui': patch ---- - -Make OAuth consent screens clearly identify private metadata as potentially sensitive information set by the Clerk application. diff --git a/.changeset/tender-pugs-shave.md b/.changeset/tender-pugs-shave.md deleted file mode 100644 index 1d1eceb2e3a..00000000000 --- a/.changeset/tender-pugs-shave.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@clerk/expo': patch ---- - -Keep a cached environment when the app starts offline and only the client cache is empty. Previously both resources fell back to placeholder data, so instance settings were lost until the app was restarted with a working network. - -Repeated unauthenticated responses now share one native recovery attempt within a few seconds of each other, instead of reading native state and refetching the client for every response. - -Fix the `tokenCache` prop documentation: the cache stores the client JWT, not the session token. diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 0a5d014df3b..f1cc5c54e86 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,13 @@ # @clerk/astro +## 4.0.9 + +### Patch Changes + +- Updated dependencies [[`aa86d9f`](https://github.com/clerk/javascript/commit/aa86d9f39c93514ecd9db9b44db403dd0a5046d4), [`52ec5cd`](https://github.com/clerk/javascript/commit/52ec5cd29343f6fe068fccb1b8c9ee52c97d9332), [`6464fe7`](https://github.com/clerk/javascript/commit/6464fe7b4889a9c87ea594d2491731e137a51d20)]: + - @clerk/shared@4.28.0 + - @clerk/backend@3.16.2 + ## 4.0.8 ### Patch Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index 3b18773ecf0..7021672f3d5 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/astro", - "version": "4.0.8", + "version": "4.0.9", "description": "Clerk SDK for Astro", "keywords": [ "auth", diff --git a/packages/backend/CHANGELOG.md b/packages/backend/CHANGELOG.md index 0c9b0140c55..207b66f7a02 100644 --- a/packages/backend/CHANGELOG.md +++ b/packages/backend/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## 3.16.2 + +### Patch Changes + +- Updated dependencies [[`aa86d9f`](https://github.com/clerk/javascript/commit/aa86d9f39c93514ecd9db9b44db403dd0a5046d4), [`52ec5cd`](https://github.com/clerk/javascript/commit/52ec5cd29343f6fe068fccb1b8c9ee52c97d9332), [`6464fe7`](https://github.com/clerk/javascript/commit/6464fe7b4889a9c87ea594d2491731e137a51d20)]: + - @clerk/shared@4.28.0 + ## 3.16.1 ### Patch Changes diff --git a/packages/backend/package.json b/packages/backend/package.json index 93fdd70bb2e..a8d82268d17 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/backend", - "version": "3.16.1", + "version": "3.16.2", "description": "Clerk Backend SDK - REST Client for Backend API & JWT verification utilities", "homepage": "https://clerk.com/", "bugs": { diff --git a/packages/chrome-extension/CHANGELOG.md b/packages/chrome-extension/CHANGELOG.md index 2b4aaba9049..ea1c7132e8f 100644 --- a/packages/chrome-extension/CHANGELOG.md +++ b/packages/chrome-extension/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## 3.1.68 + +### Patch Changes + +- Updated dependencies [[`aa86d9f`](https://github.com/clerk/javascript/commit/aa86d9f39c93514ecd9db9b44db403dd0a5046d4), [`8c61153`](https://github.com/clerk/javascript/commit/8c61153bc69b3e677613ab3e1e4c45948cf93405), [`52ec5cd`](https://github.com/clerk/javascript/commit/52ec5cd29343f6fe068fccb1b8c9ee52c97d9332), [`6464fe7`](https://github.com/clerk/javascript/commit/6464fe7b4889a9c87ea594d2491731e137a51d20)]: + - @clerk/clerk-js@6.28.0 + - @clerk/shared@4.28.0 + - @clerk/ui@1.30.0 + - @clerk/react@6.14.0 + ## 3.1.67 ### Patch Changes diff --git a/packages/chrome-extension/package.json b/packages/chrome-extension/package.json index b2b0d534067..7b3c603dad1 100644 --- a/packages/chrome-extension/package.json +++ b/packages/chrome-extension/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/chrome-extension", - "version": "3.1.67", + "version": "3.1.68", "description": "Clerk SDK for Chrome extensions", "keywords": [ "auth", diff --git a/packages/clerk-js/CHANGELOG.md b/packages/clerk-js/CHANGELOG.md index 359f6c0af31..1d532c3b980 100644 --- a/packages/clerk-js/CHANGELOG.md +++ b/packages/clerk-js/CHANGELOG.md @@ -1,5 +1,41 @@ # Change Log +## 6.28.0 + +### Minor Changes + +- Add support for manual discounts and promo codes. Discounts, whether manual or via a promo code, are shown in the subscriptions list and in payments/statements. Promo codes can now be entered at checkout. ([#9316](https://github.com/clerk/javascript/pull/9316)) by [@dstaley](https://github.com/dstaley) + +- Add a way to supply a Clerk Protect assertion from your application, so a token minted by your own backend reaches Protect without your having to set a cookie. ([#9313](https://github.com/clerk/javascript/pull/9313)) by [@zourzouvillys](https://github.com/zourzouvillys) + + A Protect assertion is a short-lived, signed token you create with the Clerk Backend API, carrying key/value pairs your Protect rules can read. Until now the only way to deliver one was the `__clerk_protect_assertion` cookie, which requires your app and Frontend API to be on the same site — true with a production CNAME setup, but not on development instances. + + Pass the token to Clerk and it is attached to sign-in and sign-up requests instead: + + ```ts + // A token you already have. + Clerk.load({ protectAssertion: token }); + + // Or a function, re-read for each request. + Clerk.load({ protectAssertion: () => sessionStorage.getItem('protect_assertion') ?? undefined }); + + // Or set it later, once your app has fetched one. + clerk.setProtectAssertion(token); + ``` + + Prefer the function form when a page can outlive the token. Assertions are short-lived by design, so a string captured at load time stops applying once it expires, whereas a function picks up a refreshed one. + + An assertion is an input to rules you author, never a decision on its own, and it applies only from the context you constrained it to when you minted it. Nothing about it can fail a sign-in: a resolver that throws, rejects, or returns anything other than a non-empty string simply results in no assertion being attached, and the request proceeds. + + The cookie continues to work unchanged. If both are present, the value supplied to the SDK wins. + +### Patch Changes + +- Keep the freshest session token when a server response carries an older one. A slow response, or the client payload attached to one, could previously roll `lastActiveToken` back to a stale token, which is the token sent as the previous-token hint on the next token request. ([#9284](https://github.com/clerk/javascript/pull/9284)) by [@nikosdouvlis](https://github.com/nikosdouvlis) + +- Updated dependencies [[`aa86d9f`](https://github.com/clerk/javascript/commit/aa86d9f39c93514ecd9db9b44db403dd0a5046d4), [`52ec5cd`](https://github.com/clerk/javascript/commit/52ec5cd29343f6fe068fccb1b8c9ee52c97d9332), [`6464fe7`](https://github.com/clerk/javascript/commit/6464fe7b4889a9c87ea594d2491731e137a51d20)]: + - @clerk/shared@4.28.0 + ## 6.27.1 ### Patch Changes diff --git a/packages/clerk-js/package.json b/packages/clerk-js/package.json index 5ff61f40aa2..1d02c93c056 100644 --- a/packages/clerk-js/package.json +++ b/packages/clerk-js/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/clerk-js", - "version": "6.27.1", + "version": "6.28.0", "description": "Clerk JS library", "keywords": [ "clerk", diff --git a/packages/electron/CHANGELOG.md b/packages/electron/CHANGELOG.md index f7a2ea284e5..84a5dd7e6b9 100644 --- a/packages/electron/CHANGELOG.md +++ b/packages/electron/CHANGELOG.md @@ -1,5 +1,14 @@ # @clerk/electron +## 0.0.29 + +### Patch Changes + +- Updated dependencies [[`aa86d9f`](https://github.com/clerk/javascript/commit/aa86d9f39c93514ecd9db9b44db403dd0a5046d4), [`8c61153`](https://github.com/clerk/javascript/commit/8c61153bc69b3e677613ab3e1e4c45948cf93405), [`52ec5cd`](https://github.com/clerk/javascript/commit/52ec5cd29343f6fe068fccb1b8c9ee52c97d9332), [`6464fe7`](https://github.com/clerk/javascript/commit/6464fe7b4889a9c87ea594d2491731e137a51d20)]: + - @clerk/clerk-js@6.28.0 + - @clerk/shared@4.28.0 + - @clerk/react@6.14.0 + ## 0.0.28 ### Patch Changes diff --git a/packages/electron/package.json b/packages/electron/package.json index 35bb1ef5721..b29a47933da 100644 --- a/packages/electron/package.json +++ b/packages/electron/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/electron", - "version": "0.0.28", + "version": "0.0.29", "description": "Clerk SDK for Electron", "keywords": [ "clerk", diff --git a/packages/expo-passkeys/CHANGELOG.md b/packages/expo-passkeys/CHANGELOG.md index 14baa1600ef..822069b92ac 100644 --- a/packages/expo-passkeys/CHANGELOG.md +++ b/packages/expo-passkeys/CHANGELOG.md @@ -1,5 +1,12 @@ # @clerk/expo-passkeys +## 2.0.8 + +### Patch Changes + +- Updated dependencies [[`aa86d9f`](https://github.com/clerk/javascript/commit/aa86d9f39c93514ecd9db9b44db403dd0a5046d4), [`52ec5cd`](https://github.com/clerk/javascript/commit/52ec5cd29343f6fe068fccb1b8c9ee52c97d9332), [`6464fe7`](https://github.com/clerk/javascript/commit/6464fe7b4889a9c87ea594d2491731e137a51d20)]: + - @clerk/shared@4.28.0 + ## 2.0.7 ### Patch Changes diff --git a/packages/expo-passkeys/package.json b/packages/expo-passkeys/package.json index 709a3fc2730..ae1d0352b45 100644 --- a/packages/expo-passkeys/package.json +++ b/packages/expo-passkeys/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/expo-passkeys", - "version": "2.0.7", + "version": "2.0.8", "description": "Passkeys library to be used with Clerk for expo", "keywords": [ "react-native", diff --git a/packages/expo/CHANGELOG.md b/packages/expo/CHANGELOG.md index 120453035a8..591d51c2703 100644 --- a/packages/expo/CHANGELOG.md +++ b/packages/expo/CHANGELOG.md @@ -1,5 +1,20 @@ # Change Log +## 4.2.4 + +### Patch Changes + +- Keep a cached environment when the app starts offline and only the client cache is empty. Previously both resources fell back to placeholder data, so instance settings were lost until the app was restarted with a working network. ([#9284](https://github.com/clerk/javascript/pull/9284)) by [@nikosdouvlis](https://github.com/nikosdouvlis) + + Repeated unauthenticated responses now share one native recovery attempt within a few seconds of each other, instead of reading native state and refetching the client for every response. + + Fix the `tokenCache` prop documentation: the cache stores the client JWT, not the session token. + +- Updated dependencies [[`aa86d9f`](https://github.com/clerk/javascript/commit/aa86d9f39c93514ecd9db9b44db403dd0a5046d4), [`8c61153`](https://github.com/clerk/javascript/commit/8c61153bc69b3e677613ab3e1e4c45948cf93405), [`52ec5cd`](https://github.com/clerk/javascript/commit/52ec5cd29343f6fe068fccb1b8c9ee52c97d9332), [`6464fe7`](https://github.com/clerk/javascript/commit/6464fe7b4889a9c87ea594d2491731e137a51d20)]: + - @clerk/clerk-js@6.28.0 + - @clerk/shared@4.28.0 + - @clerk/react@6.14.0 + ## 4.2.3 ### Patch Changes diff --git a/packages/expo/package.json b/packages/expo/package.json index b2ab79a13a8..2cfb14fe7f3 100644 --- a/packages/expo/package.json +++ b/packages/expo/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/expo", - "version": "4.2.3", + "version": "4.2.4", "description": "Clerk React Native/Expo library", "keywords": [ "react", diff --git a/packages/express/CHANGELOG.md b/packages/express/CHANGELOG.md index de59db99c1d..2df47f5ffe2 100644 --- a/packages/express/CHANGELOG.md +++ b/packages/express/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 2.1.53 + +### Patch Changes + +- Updated dependencies [[`aa86d9f`](https://github.com/clerk/javascript/commit/aa86d9f39c93514ecd9db9b44db403dd0a5046d4), [`52ec5cd`](https://github.com/clerk/javascript/commit/52ec5cd29343f6fe068fccb1b8c9ee52c97d9332), [`6464fe7`](https://github.com/clerk/javascript/commit/6464fe7b4889a9c87ea594d2491731e137a51d20)]: + - @clerk/shared@4.28.0 + - @clerk/backend@3.16.2 + ## 2.1.52 ### Patch Changes diff --git a/packages/express/package.json b/packages/express/package.json index c971fd3ac93..3e19c39dfc6 100644 --- a/packages/express/package.json +++ b/packages/express/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/express", - "version": "2.1.52", + "version": "2.1.53", "description": "Clerk server SDK for usage with Express", "keywords": [ "clerk", diff --git a/packages/fastify/CHANGELOG.md b/packages/fastify/CHANGELOG.md index dd8c7a82a50..da4a801dbbe 100644 --- a/packages/fastify/CHANGELOG.md +++ b/packages/fastify/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 3.1.63 + +### Patch Changes + +- Updated dependencies [[`aa86d9f`](https://github.com/clerk/javascript/commit/aa86d9f39c93514ecd9db9b44db403dd0a5046d4), [`52ec5cd`](https://github.com/clerk/javascript/commit/52ec5cd29343f6fe068fccb1b8c9ee52c97d9332), [`6464fe7`](https://github.com/clerk/javascript/commit/6464fe7b4889a9c87ea594d2491731e137a51d20)]: + - @clerk/shared@4.28.0 + - @clerk/backend@3.16.2 + ## 3.1.62 ### Patch Changes diff --git a/packages/fastify/package.json b/packages/fastify/package.json index 47476908358..7a1bb568ae2 100644 --- a/packages/fastify/package.json +++ b/packages/fastify/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/fastify", - "version": "3.1.62", + "version": "3.1.63", "description": "Clerk SDK for Fastify", "keywords": [ "auth", diff --git a/packages/headless/CHANGELOG.md b/packages/headless/CHANGELOG.md index 7e93da6de1d..25123d802b2 100644 --- a/packages/headless/CHANGELOG.md +++ b/packages/headless/CHANGELOG.md @@ -1,5 +1,12 @@ # @clerk/headless +## 0.0.22 + +### Patch Changes + +- Updated dependencies [[`aa86d9f`](https://github.com/clerk/javascript/commit/aa86d9f39c93514ecd9db9b44db403dd0a5046d4), [`52ec5cd`](https://github.com/clerk/javascript/commit/52ec5cd29343f6fe068fccb1b8c9ee52c97d9332), [`6464fe7`](https://github.com/clerk/javascript/commit/6464fe7b4889a9c87ea594d2491731e137a51d20)]: + - @clerk/shared@4.28.0 + ## 0.0.21 ### Patch Changes diff --git a/packages/headless/package.json b/packages/headless/package.json index 4fe83df7b09..51184ab1933 100644 --- a/packages/headless/package.json +++ b/packages/headless/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/headless", - "version": "0.0.21", + "version": "0.0.22", "private": true, "sideEffects": false, "type": "module", diff --git a/packages/hono/CHANGELOG.md b/packages/hono/CHANGELOG.md index 59844501917..314cc182626 100644 --- a/packages/hono/CHANGELOG.md +++ b/packages/hono/CHANGELOG.md @@ -1,5 +1,13 @@ # @clerk/hono +## 0.1.63 + +### Patch Changes + +- Updated dependencies [[`aa86d9f`](https://github.com/clerk/javascript/commit/aa86d9f39c93514ecd9db9b44db403dd0a5046d4), [`52ec5cd`](https://github.com/clerk/javascript/commit/52ec5cd29343f6fe068fccb1b8c9ee52c97d9332), [`6464fe7`](https://github.com/clerk/javascript/commit/6464fe7b4889a9c87ea594d2491731e137a51d20)]: + - @clerk/shared@4.28.0 + - @clerk/backend@3.16.2 + ## 0.1.62 ### Patch Changes diff --git a/packages/hono/package.json b/packages/hono/package.json index 19f3a908f78..3d813e557b4 100644 --- a/packages/hono/package.json +++ b/packages/hono/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/hono", - "version": "0.1.62", + "version": "0.1.63", "description": "Clerk SDK for Hono", "keywords": [ "auth", diff --git a/packages/localizations/CHANGELOG.md b/packages/localizations/CHANGELOG.md index 4a931febb5d..36ed487f2e9 100644 --- a/packages/localizations/CHANGELOG.md +++ b/packages/localizations/CHANGELOG.md @@ -1,5 +1,18 @@ # Change Log +## 4.15.0 + +### Minor Changes + +- Add support for manual discounts and promo codes. Discounts, whether manual or via a promo code, are shown in the subscriptions list and in payments/statements. Promo codes can now be entered at checkout. ([#9316](https://github.com/clerk/javascript/pull/9316)) by [@dstaley](https://github.com/dstaley) + +### Patch Changes + +- Make OAuth consent screens clearly identify private metadata as potentially sensitive information set by the Clerk application. ([#9226](https://github.com/clerk/javascript/pull/9226)) by [@jescalan](https://github.com/jescalan) + +- Updated dependencies [[`aa86d9f`](https://github.com/clerk/javascript/commit/aa86d9f39c93514ecd9db9b44db403dd0a5046d4), [`52ec5cd`](https://github.com/clerk/javascript/commit/52ec5cd29343f6fe068fccb1b8c9ee52c97d9332), [`6464fe7`](https://github.com/clerk/javascript/commit/6464fe7b4889a9c87ea594d2491731e137a51d20)]: + - @clerk/shared@4.28.0 + ## 4.14.2 ### Patch Changes diff --git a/packages/localizations/package.json b/packages/localizations/package.json index 89751de169b..26e44521767 100644 --- a/packages/localizations/package.json +++ b/packages/localizations/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/localizations", - "version": "4.14.2", + "version": "4.15.0", "description": "Localizations for the Clerk components", "keywords": [ "react", diff --git a/packages/msw/CHANGELOG.md b/packages/msw/CHANGELOG.md index 6ccbd1f6cef..78b474a7142 100644 --- a/packages/msw/CHANGELOG.md +++ b/packages/msw/CHANGELOG.md @@ -1,5 +1,12 @@ # @clerk/msw +## 0.0.58 + +### Patch Changes + +- Updated dependencies [[`aa86d9f`](https://github.com/clerk/javascript/commit/aa86d9f39c93514ecd9db9b44db403dd0a5046d4), [`52ec5cd`](https://github.com/clerk/javascript/commit/52ec5cd29343f6fe068fccb1b8c9ee52c97d9332), [`6464fe7`](https://github.com/clerk/javascript/commit/6464fe7b4889a9c87ea594d2491731e137a51d20)]: + - @clerk/shared@4.28.0 + ## 0.0.57 ### Patch Changes diff --git a/packages/msw/package.json b/packages/msw/package.json index 8affc7c3e8e..d06a0a9f24e 100644 --- a/packages/msw/package.json +++ b/packages/msw/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/msw", - "version": "0.0.57", + "version": "0.0.58", "private": true, "sideEffects": false, "type": "module", diff --git a/packages/nextjs/CHANGELOG.md b/packages/nextjs/CHANGELOG.md index 1a1bfef2af8..930c7214be1 100644 --- a/packages/nextjs/CHANGELOG.md +++ b/packages/nextjs/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 7.7.2 + +### Patch Changes + +- Updated dependencies [[`aa86d9f`](https://github.com/clerk/javascript/commit/aa86d9f39c93514ecd9db9b44db403dd0a5046d4), [`52ec5cd`](https://github.com/clerk/javascript/commit/52ec5cd29343f6fe068fccb1b8c9ee52c97d9332), [`6464fe7`](https://github.com/clerk/javascript/commit/6464fe7b4889a9c87ea594d2491731e137a51d20)]: + - @clerk/shared@4.28.0 + - @clerk/react@6.14.0 + - @clerk/backend@3.16.2 + ## 7.7.1 ### Patch Changes diff --git a/packages/nextjs/package.json b/packages/nextjs/package.json index cba2e401807..989c13fb8a8 100644 --- a/packages/nextjs/package.json +++ b/packages/nextjs/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/nextjs", - "version": "7.7.1", + "version": "7.7.2", "description": "Clerk SDK for NextJS", "keywords": [ "clerk", diff --git a/packages/nuxt/CHANGELOG.md b/packages/nuxt/CHANGELOG.md index 3d6d6196417..2ce9b33efd5 100644 --- a/packages/nuxt/CHANGELOG.md +++ b/packages/nuxt/CHANGELOG.md @@ -1,5 +1,14 @@ # @clerk/nuxt +## 3.0.5 + +### Patch Changes + +- Updated dependencies [[`aa86d9f`](https://github.com/clerk/javascript/commit/aa86d9f39c93514ecd9db9b44db403dd0a5046d4), [`52ec5cd`](https://github.com/clerk/javascript/commit/52ec5cd29343f6fe068fccb1b8c9ee52c97d9332), [`6464fe7`](https://github.com/clerk/javascript/commit/6464fe7b4889a9c87ea594d2491731e137a51d20)]: + - @clerk/shared@4.28.0 + - @clerk/backend@3.16.2 + - @clerk/vue@2.4.26 + ## 3.0.4 ### Patch Changes diff --git a/packages/nuxt/package.json b/packages/nuxt/package.json index 5b1dd12de90..eb752a9d5d3 100644 --- a/packages/nuxt/package.json +++ b/packages/nuxt/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/nuxt", - "version": "3.0.4", + "version": "3.0.5", "description": "Clerk SDK for Nuxt", "keywords": [ "clerk", diff --git a/packages/react-router/CHANGELOG.md b/packages/react-router/CHANGELOG.md index 5ba4b19de07..a602dec5c4e 100644 --- a/packages/react-router/CHANGELOG.md +++ b/packages/react-router/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 3.6.7 + +### Patch Changes + +- Updated dependencies [[`aa86d9f`](https://github.com/clerk/javascript/commit/aa86d9f39c93514ecd9db9b44db403dd0a5046d4), [`52ec5cd`](https://github.com/clerk/javascript/commit/52ec5cd29343f6fe068fccb1b8c9ee52c97d9332), [`6464fe7`](https://github.com/clerk/javascript/commit/6464fe7b4889a9c87ea594d2491731e137a51d20)]: + - @clerk/shared@4.28.0 + - @clerk/react@6.14.0 + - @clerk/backend@3.16.2 + ## 3.6.6 ### Patch Changes diff --git a/packages/react-router/package.json b/packages/react-router/package.json index eb900cefbc0..cbbd53ac936 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/react-router", - "version": "3.6.6", + "version": "3.6.7", "description": "Clerk SDK for React Router", "keywords": [ "clerk", diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index ba08d521065..bd127ced844 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,37 @@ # Change Log +## 6.14.0 + +### Minor Changes + +- Add a way to supply a Clerk Protect assertion from your application, so a token minted by your own backend reaches Protect without your having to set a cookie. ([#9313](https://github.com/clerk/javascript/pull/9313)) by [@zourzouvillys](https://github.com/zourzouvillys) + + A Protect assertion is a short-lived, signed token you create with the Clerk Backend API, carrying key/value pairs your Protect rules can read. Until now the only way to deliver one was the `__clerk_protect_assertion` cookie, which requires your app and Frontend API to be on the same site — true with a production CNAME setup, but not on development instances. + + Pass the token to Clerk and it is attached to sign-in and sign-up requests instead: + + ```ts + // A token you already have. + Clerk.load({ protectAssertion: token }); + + // Or a function, re-read for each request. + Clerk.load({ protectAssertion: () => sessionStorage.getItem('protect_assertion') ?? undefined }); + + // Or set it later, once your app has fetched one. + clerk.setProtectAssertion(token); + ``` + + Prefer the function form when a page can outlive the token. Assertions are short-lived by design, so a string captured at load time stops applying once it expires, whereas a function picks up a refreshed one. + + An assertion is an input to rules you author, never a decision on its own, and it applies only from the context you constrained it to when you minted it. Nothing about it can fail a sign-in: a resolver that throws, rejects, or returns anything other than a non-empty string simply results in no assertion being attached, and the request proceeds. + + The cookie continues to work unchanged. If both are present, the value supplied to the SDK wins. + +### Patch Changes + +- Updated dependencies [[`aa86d9f`](https://github.com/clerk/javascript/commit/aa86d9f39c93514ecd9db9b44db403dd0a5046d4), [`52ec5cd`](https://github.com/clerk/javascript/commit/52ec5cd29343f6fe068fccb1b8c9ee52c97d9332), [`6464fe7`](https://github.com/clerk/javascript/commit/6464fe7b4889a9c87ea594d2491731e137a51d20)]: + - @clerk/shared@4.28.0 + ## 6.13.1 ### Patch Changes diff --git a/packages/react/package.json b/packages/react/package.json index e0b589c3061..d60e1a44295 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/react", - "version": "6.13.1", + "version": "6.14.0", "description": "Clerk React library", "keywords": [ "clerk", diff --git a/packages/shared/CHANGELOG.md b/packages/shared/CHANGELOG.md index c3e8fb0005a..b3f6a83e022 100644 --- a/packages/shared/CHANGELOG.md +++ b/packages/shared/CHANGELOG.md @@ -1,5 +1,38 @@ # Change Log +## 4.28.0 + +### Minor Changes + +- Add support for manual discounts and promo codes. Discounts, whether manual or via a promo code, are shown in the subscriptions list and in payments/statements. Promo codes can now be entered at checkout. ([#9316](https://github.com/clerk/javascript/pull/9316)) by [@dstaley](https://github.com/dstaley) + +- Add a way to supply a Clerk Protect assertion from your application, so a token minted by your own backend reaches Protect without your having to set a cookie. ([#9313](https://github.com/clerk/javascript/pull/9313)) by [@zourzouvillys](https://github.com/zourzouvillys) + + A Protect assertion is a short-lived, signed token you create with the Clerk Backend API, carrying key/value pairs your Protect rules can read. Until now the only way to deliver one was the `__clerk_protect_assertion` cookie, which requires your app and Frontend API to be on the same site — true with a production CNAME setup, but not on development instances. + + Pass the token to Clerk and it is attached to sign-in and sign-up requests instead: + + ```ts + // A token you already have. + Clerk.load({ protectAssertion: token }); + + // Or a function, re-read for each request. + Clerk.load({ protectAssertion: () => sessionStorage.getItem('protect_assertion') ?? undefined }); + + // Or set it later, once your app has fetched one. + clerk.setProtectAssertion(token); + ``` + + Prefer the function form when a page can outlive the token. Assertions are short-lived by design, so a string captured at load time stops applying once it expires, whereas a function picks up a refreshed one. + + An assertion is an input to rules you author, never a decision on its own, and it applies only from the context you constrained it to when you minted it. Nothing about it can fail a sign-in: a resolver that throws, rejects, or returns anything other than a non-empty string simply results in no assertion being attached, and the request proceeds. + + The cookie continues to work unchanged. If both are present, the value supplied to the SDK wins. + +### Patch Changes + +- Make OAuth consent screens clearly identify private metadata as potentially sensitive information set by the Clerk application. ([#9226](https://github.com/clerk/javascript/pull/9226)) by [@jescalan](https://github.com/jescalan) + ## 4.27.1 ### Patch Changes diff --git a/packages/shared/package.json b/packages/shared/package.json index 9af81bb83c6..673fbccd019 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/shared", - "version": "4.27.1", + "version": "4.28.0", "description": "Internal package utils used by the Clerk SDKs", "repository": { "type": "git", diff --git a/packages/swingset/CHANGELOG.md b/packages/swingset/CHANGELOG.md index 16543205d5c..a2e71aae079 100644 --- a/packages/swingset/CHANGELOG.md +++ b/packages/swingset/CHANGELOG.md @@ -1,5 +1,13 @@ # @clerk/swingset +## 0.0.32 + +### Patch Changes + +- Updated dependencies [[`aa86d9f`](https://github.com/clerk/javascript/commit/aa86d9f39c93514ecd9db9b44db403dd0a5046d4), [`6464fe7`](https://github.com/clerk/javascript/commit/6464fe7b4889a9c87ea594d2491731e137a51d20)]: + - @clerk/ui@1.30.0 + - @clerk/headless@0.0.22 + ## 0.0.31 ### Patch Changes diff --git a/packages/swingset/package.json b/packages/swingset/package.json index dc7830365d0..b92ec3b6e82 100644 --- a/packages/swingset/package.json +++ b/packages/swingset/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/swingset", - "version": "0.0.31", + "version": "0.0.32", "private": true, "type": "module", "scripts": { diff --git a/packages/tanstack-react-start/CHANGELOG.md b/packages/tanstack-react-start/CHANGELOG.md index 6821f4108f3..d23a6750d14 100644 --- a/packages/tanstack-react-start/CHANGELOG.md +++ b/packages/tanstack-react-start/CHANGELOG.md @@ -1,5 +1,14 @@ # @clerk/tanstack-react-start +## 1.4.30 + +### Patch Changes + +- Updated dependencies [[`aa86d9f`](https://github.com/clerk/javascript/commit/aa86d9f39c93514ecd9db9b44db403dd0a5046d4), [`52ec5cd`](https://github.com/clerk/javascript/commit/52ec5cd29343f6fe068fccb1b8c9ee52c97d9332), [`6464fe7`](https://github.com/clerk/javascript/commit/6464fe7b4889a9c87ea594d2491731e137a51d20)]: + - @clerk/shared@4.28.0 + - @clerk/react@6.14.0 + - @clerk/backend@3.16.2 + ## 1.4.29 ### Patch Changes diff --git a/packages/tanstack-react-start/package.json b/packages/tanstack-react-start/package.json index fa5327d9826..ecae7690609 100644 --- a/packages/tanstack-react-start/package.json +++ b/packages/tanstack-react-start/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/tanstack-react-start", - "version": "1.4.29", + "version": "1.4.30", "description": "Clerk SDK for TanStack React Start", "keywords": [ "clerk", diff --git a/packages/testing/CHANGELOG.md b/packages/testing/CHANGELOG.md index 4c368144636..6217301c9b5 100644 --- a/packages/testing/CHANGELOG.md +++ b/packages/testing/CHANGELOG.md @@ -1,5 +1,13 @@ # @clerk/testing +## 2.2.20 + +### Patch Changes + +- Updated dependencies [[`aa86d9f`](https://github.com/clerk/javascript/commit/aa86d9f39c93514ecd9db9b44db403dd0a5046d4), [`52ec5cd`](https://github.com/clerk/javascript/commit/52ec5cd29343f6fe068fccb1b8c9ee52c97d9332), [`6464fe7`](https://github.com/clerk/javascript/commit/6464fe7b4889a9c87ea594d2491731e137a51d20)]: + - @clerk/shared@4.28.0 + - @clerk/backend@3.16.2 + ## 2.2.19 ### Patch Changes diff --git a/packages/testing/package.json b/packages/testing/package.json index bbc1657aa0f..703ef85773f 100644 --- a/packages/testing/package.json +++ b/packages/testing/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/testing", - "version": "2.2.19", + "version": "2.2.20", "description": "Utilities to help you create E2E test suites for apps using Clerk", "keywords": [ "auth", diff --git a/packages/ui/CHANGELOG.md b/packages/ui/CHANGELOG.md index 81828ddb3d8..e1a18a14c1e 100644 --- a/packages/ui/CHANGELOG.md +++ b/packages/ui/CHANGELOG.md @@ -1,5 +1,19 @@ # @clerk/ui +## 1.30.0 + +### Minor Changes + +- Add support for manual discounts and promo codes. Discounts, whether manual or via a promo code, are shown in the subscriptions list and in payments/statements. Promo codes can now be entered at checkout. ([#9316](https://github.com/clerk/javascript/pull/9316)) by [@dstaley](https://github.com/dstaley) + +### Patch Changes + +- Make OAuth consent screens clearly identify private metadata as potentially sensitive information set by the Clerk application. ([#9226](https://github.com/clerk/javascript/pull/9226)) by [@jescalan](https://github.com/jescalan) + +- Updated dependencies [[`aa86d9f`](https://github.com/clerk/javascript/commit/aa86d9f39c93514ecd9db9b44db403dd0a5046d4), [`52ec5cd`](https://github.com/clerk/javascript/commit/52ec5cd29343f6fe068fccb1b8c9ee52c97d9332), [`6464fe7`](https://github.com/clerk/javascript/commit/6464fe7b4889a9c87ea594d2491731e137a51d20)]: + - @clerk/localizations@4.15.0 + - @clerk/shared@4.28.0 + ## 1.29.1 ### Patch Changes diff --git a/packages/ui/package.json b/packages/ui/package.json index 731b0b2e873..52a1ac4f2cc 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/ui", - "version": "1.29.1", + "version": "1.30.0", "description": "Internal package that contains the UI components for the Clerk frontend SDKs", "repository": { "type": "git", diff --git a/packages/vue/CHANGELOG.md b/packages/vue/CHANGELOG.md index 004d14aabca..628cdd7c0fc 100644 --- a/packages/vue/CHANGELOG.md +++ b/packages/vue/CHANGELOG.md @@ -1,5 +1,12 @@ # @clerk/vue +## 2.4.26 + +### Patch Changes + +- Updated dependencies [[`aa86d9f`](https://github.com/clerk/javascript/commit/aa86d9f39c93514ecd9db9b44db403dd0a5046d4), [`52ec5cd`](https://github.com/clerk/javascript/commit/52ec5cd29343f6fe068fccb1b8c9ee52c97d9332), [`6464fe7`](https://github.com/clerk/javascript/commit/6464fe7b4889a9c87ea594d2491731e137a51d20)]: + - @clerk/shared@4.28.0 + ## 2.4.25 ### Patch Changes diff --git a/packages/vue/package.json b/packages/vue/package.json index 27ac6b20f92..acbd432e09d 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/vue", - "version": "2.4.25", + "version": "2.4.26", "description": "Clerk SDK for Vue", "keywords": [ "clerk",