From 6b13aff0b4f00af169bdd4e0341ee31aad8d437d Mon Sep 17 00:00:00 2001 From: Clerk Cookie <136073014+clerk-cookie@users.noreply.github.com> Date: Thu, 21 Nov 2024 04:16:02 -0500 Subject: [PATCH 1/4] ci(repo): Version packages (#4597) Co-authored-by: github-actions[bot] --- .changeset/few-files-switch.md | 3 --- .changeset/fifty-cameras-tease.md | 6 ------ .changeset/friendly-mice-pull.md | 2 -- .changeset/itchy-cycles-sell.md | 5 ----- .changeset/large-bulldogs-tap.md | 2 -- .changeset/mighty-clouds-explode.md | 8 -------- .changeset/orange-radios-nail.md | 2 -- .changeset/polite-seals-bake.md | 5 ----- .changeset/proud-carrots-carry.md | 5 ----- .changeset/proud-poems-walk.md | 5 ----- .changeset/red-chicken-visit.md | 6 ------ .changeset/rude-lions-know.md | 2 -- .changeset/shaggy-donuts-cry.md | 5 ----- .changeset/shy-months-invite.md | 2 -- .changeset/silent-bears-worry.md | 5 ----- .changeset/small-knives-behave.md | 2 -- .changeset/ten-hornets-deny.md | 2 -- .changeset/ten-jeans-double.md | 2 -- .changeset/thin-turkeys-turn.md | 2 -- .changeset/unlucky-teachers-joke.md | 2 -- .changeset/wet-dryers-pay.md | 2 -- packages/astro/CHANGELOG.md | 9 +++++++++ packages/astro/package.json | 2 +- packages/backend/CHANGELOG.md | 8 ++++++++ packages/backend/package.json | 2 +- packages/chrome-extension/CHANGELOG.md | 9 +++++++++ packages/chrome-extension/package.json | 2 +- packages/clerk-js/CHANGELOG.md | 17 +++++++++++++++++ packages/clerk-js/package.json | 2 +- packages/dev-cli/CHANGELOG.md | 6 ++++++ packages/dev-cli/package.json | 2 +- packages/elements/CHANGELOG.md | 9 +++++++++ packages/elements/package.json | 2 +- packages/expo-passkeys/CHANGELOG.md | 12 ++++++++++++ packages/expo-passkeys/package.json | 2 +- packages/expo/CHANGELOG.md | 14 ++++++++++++++ packages/expo/package.json | 2 +- packages/express/CHANGELOG.md | 9 +++++++++ packages/express/package.json | 2 +- packages/fastify/CHANGELOG.md | 9 +++++++++ packages/fastify/package.json | 2 +- packages/localizations/CHANGELOG.md | 9 +++++++++ packages/localizations/package.json | 2 +- packages/nextjs/CHANGELOG.md | 10 ++++++++++ packages/nextjs/package.json | 2 +- packages/nuxt/CHANGELOG.md | 10 ++++++++++ packages/nuxt/package.json | 2 +- packages/react/CHANGELOG.md | 10 ++++++++++ packages/react/package.json | 2 +- packages/remix/CHANGELOG.md | 10 ++++++++++ packages/remix/package.json | 2 +- packages/sdk-node/CHANGELOG.md | 9 +++++++++ packages/sdk-node/package.json | 2 +- packages/shared/CHANGELOG.md | 13 +++++++++++++ packages/shared/package.json | 2 +- packages/tanstack-start/CHANGELOG.md | 10 ++++++++++ packages/tanstack-start/package.json | 2 +- packages/testing/CHANGELOG.md | 9 +++++++++ packages/testing/package.json | 2 +- packages/themes/CHANGELOG.md | 7 +++++++ packages/themes/package.json | 2 +- packages/types/CHANGELOG.md | 8 ++++++++ packages/types/package.json | 2 +- packages/ui/CHANGELOG.md | 10 ++++++++++ packages/ui/package.json | 2 +- packages/vue/CHANGELOG.md | 10 ++++++++++ packages/vue/package.json | 2 +- 67 files changed, 250 insertions(+), 98 deletions(-) delete mode 100644 .changeset/few-files-switch.md delete mode 100644 .changeset/fifty-cameras-tease.md delete mode 100644 .changeset/friendly-mice-pull.md delete mode 100644 .changeset/itchy-cycles-sell.md delete mode 100644 .changeset/large-bulldogs-tap.md delete mode 100644 .changeset/mighty-clouds-explode.md delete mode 100644 .changeset/orange-radios-nail.md delete mode 100644 .changeset/polite-seals-bake.md delete mode 100644 .changeset/proud-carrots-carry.md delete mode 100644 .changeset/proud-poems-walk.md delete mode 100644 .changeset/red-chicken-visit.md delete mode 100644 .changeset/rude-lions-know.md delete mode 100644 .changeset/shaggy-donuts-cry.md delete mode 100644 .changeset/shy-months-invite.md delete mode 100644 .changeset/silent-bears-worry.md delete mode 100644 .changeset/small-knives-behave.md delete mode 100644 .changeset/ten-hornets-deny.md delete mode 100644 .changeset/ten-jeans-double.md delete mode 100644 .changeset/thin-turkeys-turn.md delete mode 100644 .changeset/unlucky-teachers-joke.md delete mode 100644 .changeset/wet-dryers-pay.md diff --git a/.changeset/few-files-switch.md b/.changeset/few-files-switch.md deleted file mode 100644 index ec380ec43f..0000000000 --- a/.changeset/few-files-switch.md +++ /dev/null @@ -1,3 +0,0 @@ ---- ---- - diff --git a/.changeset/fifty-cameras-tease.md b/.changeset/fifty-cameras-tease.md deleted file mode 100644 index b0c77f8f96..0000000000 --- a/.changeset/fifty-cameras-tease.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@clerk/expo-passkeys': patch -'@clerk/clerk-expo': patch ---- -- Replaced import { Buffer } from 'node:buffer' with import { Buffer } from 'buffer'. -- Moved @clerk/expo-passkeys to a devDependency in @clerk/clerk-expo. diff --git a/.changeset/friendly-mice-pull.md b/.changeset/friendly-mice-pull.md deleted file mode 100644 index a845151cc8..0000000000 --- a/.changeset/friendly-mice-pull.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/itchy-cycles-sell.md b/.changeset/itchy-cycles-sell.md deleted file mode 100644 index 197c61b142..0000000000 --- a/.changeset/itchy-cycles-sell.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/clerk-js': patch ---- - -Fixes issue where `FormFeedback` was rendering two elements with the same `id` attribute leading to invalid markup. diff --git a/.changeset/large-bulldogs-tap.md b/.changeset/large-bulldogs-tap.md deleted file mode 100644 index a845151cc8..0000000000 --- a/.changeset/large-bulldogs-tap.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/mighty-clouds-explode.md b/.changeset/mighty-clouds-explode.md deleted file mode 100644 index 002d0bd6c3..0000000000 --- a/.changeset/mighty-clouds-explode.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@clerk/clerk-react": patch -"@clerk/shared": patch -"@clerk/types": patch -"@clerk/vue": patch ---- - -Share hook return types diff --git a/.changeset/orange-radios-nail.md b/.changeset/orange-radios-nail.md deleted file mode 100644 index a49ba48448..0000000000 --- a/.changeset/orange-radios-nail.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- \ No newline at end of file diff --git a/.changeset/polite-seals-bake.md b/.changeset/polite-seals-bake.md deleted file mode 100644 index 7d7212c153..0000000000 --- a/.changeset/polite-seals-bake.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/clerk-js': patch ---- - -Handle `sign_up_restricted_waitlist` error encountered in an oauth flow diff --git a/.changeset/proud-carrots-carry.md b/.changeset/proud-carrots-carry.md deleted file mode 100644 index b752913364..0000000000 --- a/.changeset/proud-carrots-carry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/clerk-js': patch ---- - -Exclude `_clerk_session_id` query param from `/waitlist` endpoint \ No newline at end of file diff --git a/.changeset/proud-poems-walk.md b/.changeset/proud-poems-walk.md deleted file mode 100644 index 57167792b6..0000000000 --- a/.changeset/proud-poems-walk.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@clerk/localizations": patch ---- - -Improve `el-GR` localization. diff --git a/.changeset/red-chicken-visit.md b/.changeset/red-chicken-visit.md deleted file mode 100644 index 4e87d960f1..0000000000 --- a/.changeset/red-chicken-visit.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@clerk/clerk-js": patch -"@clerk/types": patch ---- - -Inject captcha token into every X heartbeats diff --git a/.changeset/rude-lions-know.md b/.changeset/rude-lions-know.md deleted file mode 100644 index a845151cc8..0000000000 --- a/.changeset/rude-lions-know.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/shaggy-donuts-cry.md b/.changeset/shaggy-donuts-cry.md deleted file mode 100644 index 555d224ee0..0000000000 --- a/.changeset/shaggy-donuts-cry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/dev-cli': patch ---- - -Fix framework detection for Next.js. `clerk-dev` will now check for `next` as a dependency. diff --git a/.changeset/shy-months-invite.md b/.changeset/shy-months-invite.md deleted file mode 100644 index a845151cc8..0000000000 --- a/.changeset/shy-months-invite.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/silent-bears-worry.md b/.changeset/silent-bears-worry.md deleted file mode 100644 index 9af5406880..0000000000 --- a/.changeset/silent-bears-worry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/shared': minor ---- - -Change `useReverification` to handle error in a callback, but still allow an error to be thrown via options. diff --git a/.changeset/small-knives-behave.md b/.changeset/small-knives-behave.md deleted file mode 100644 index a845151cc8..0000000000 --- a/.changeset/small-knives-behave.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/ten-hornets-deny.md b/.changeset/ten-hornets-deny.md deleted file mode 100644 index a845151cc8..0000000000 --- a/.changeset/ten-hornets-deny.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/ten-jeans-double.md b/.changeset/ten-jeans-double.md deleted file mode 100644 index a845151cc8..0000000000 --- a/.changeset/ten-jeans-double.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/thin-turkeys-turn.md b/.changeset/thin-turkeys-turn.md deleted file mode 100644 index a845151cc8..0000000000 --- a/.changeset/thin-turkeys-turn.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/unlucky-teachers-joke.md b/.changeset/unlucky-teachers-joke.md deleted file mode 100644 index a845151cc8..0000000000 --- a/.changeset/unlucky-teachers-joke.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/wet-dryers-pay.md b/.changeset/wet-dryers-pay.md deleted file mode 100644 index a845151cc8..0000000000 --- a/.changeset/wet-dryers-pay.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index bf8397549d..c10ded0b9a 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,14 @@ # @clerk/astro +## 1.4.14 + +### Patch Changes + +- Updated dependencies [[`e47eb5882a7fd4a8dee25933c6644790d6ea3407`](https://github.com/clerk/javascript/commit/e47eb5882a7fd4a8dee25933c6644790d6ea3407), [`273d16cb0665d4d960838cb294dc356f41814745`](https://github.com/clerk/javascript/commit/273d16cb0665d4d960838cb294dc356f41814745), [`6b0961765e1f3d09679be4b163fa13ac7dd97191`](https://github.com/clerk/javascript/commit/6b0961765e1f3d09679be4b163fa13ac7dd97191)]: + - @clerk/shared@2.16.0 + - @clerk/types@4.34.1 + - @clerk/backend@1.17.1 + ## 1.4.13 ### Patch Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index eebbf490a2..c51350294e 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/astro", - "version": "1.4.13", + "version": "1.4.14", "description": "Clerk SDK for Astro", "keywords": [ "auth", diff --git a/packages/backend/CHANGELOG.md b/packages/backend/CHANGELOG.md index fedd35b1ce..40715b6a3e 100644 --- a/packages/backend/CHANGELOG.md +++ b/packages/backend/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 1.17.1 + +### Patch Changes + +- Updated dependencies [[`e47eb5882a7fd4a8dee25933c6644790d6ea3407`](https://github.com/clerk/javascript/commit/e47eb5882a7fd4a8dee25933c6644790d6ea3407), [`273d16cb0665d4d960838cb294dc356f41814745`](https://github.com/clerk/javascript/commit/273d16cb0665d4d960838cb294dc356f41814745), [`6b0961765e1f3d09679be4b163fa13ac7dd97191`](https://github.com/clerk/javascript/commit/6b0961765e1f3d09679be4b163fa13ac7dd97191)]: + - @clerk/shared@2.16.0 + - @clerk/types@4.34.1 + ## 1.17.0 ### Minor Changes diff --git a/packages/backend/package.json b/packages/backend/package.json index 3a704a9cc9..461a9236e8 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/backend", - "version": "1.17.0", + "version": "1.17.1", "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 7884ff3c92..b1716dfc3e 100644 --- a/packages/chrome-extension/CHANGELOG.md +++ b/packages/chrome-extension/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 1.3.38 + +### Patch Changes + +- Updated dependencies [[`03482f347741e6ceef2e654de1b101dc59477f90`](https://github.com/clerk/javascript/commit/03482f347741e6ceef2e654de1b101dc59477f90), [`e47eb5882a7fd4a8dee25933c6644790d6ea3407`](https://github.com/clerk/javascript/commit/e47eb5882a7fd4a8dee25933c6644790d6ea3407), [`152f0b8eeb7687a1fcff75b7395bf8f57ef04591`](https://github.com/clerk/javascript/commit/152f0b8eeb7687a1fcff75b7395bf8f57ef04591), [`aba63de16e677b5896cdf5bc40fa2322480efe7a`](https://github.com/clerk/javascript/commit/aba63de16e677b5896cdf5bc40fa2322480efe7a), [`273d16cb0665d4d960838cb294dc356f41814745`](https://github.com/clerk/javascript/commit/273d16cb0665d4d960838cb294dc356f41814745), [`6b0961765e1f3d09679be4b163fa13ac7dd97191`](https://github.com/clerk/javascript/commit/6b0961765e1f3d09679be4b163fa13ac7dd97191)]: + - @clerk/clerk-js@5.34.4 + - @clerk/clerk-react@5.16.1 + - @clerk/shared@2.16.0 + ## 1.3.37 ### Patch Changes diff --git a/packages/chrome-extension/package.json b/packages/chrome-extension/package.json index d668972f10..558c06d78d 100644 --- a/packages/chrome-extension/package.json +++ b/packages/chrome-extension/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/chrome-extension", - "version": "1.3.37", + "version": "1.3.38", "description": "Clerk SDK for Chrome extensions", "keywords": [ "auth", diff --git a/packages/clerk-js/CHANGELOG.md b/packages/clerk-js/CHANGELOG.md index 44eff57ee9..a653103afe 100644 --- a/packages/clerk-js/CHANGELOG.md +++ b/packages/clerk-js/CHANGELOG.md @@ -1,5 +1,22 @@ # Change Log +## 5.34.4 + +### Patch Changes + +- Fixes issue where `FormFeedback` was rendering two elements with the same `id` attribute leading to invalid markup. ([#4552](https://github.com/clerk/javascript/pull/4552)) by [@alexcarpenter](https://github.com/alexcarpenter) + +- Handle `sign_up_restricted_waitlist` error encountered in an oauth flow ([#4603](https://github.com/clerk/javascript/pull/4603)) by [@nikospapcom](https://github.com/nikospapcom) + +- Exclude `_clerk_session_id` query param from `/waitlist` endpoint ([#4594](https://github.com/clerk/javascript/pull/4594)) by [@nikospapcom](https://github.com/nikospapcom) + +- Inject captcha token into every X heartbeats ([#4614](https://github.com/clerk/javascript/pull/4614)) by [@nikosdouvlis](https://github.com/nikosdouvlis) + +- Updated dependencies [[`e47eb5882a7fd4a8dee25933c6644790d6ea3407`](https://github.com/clerk/javascript/commit/e47eb5882a7fd4a8dee25933c6644790d6ea3407), [`7510d5cf0ac4d2994849931de8dda75cf605f840`](https://github.com/clerk/javascript/commit/7510d5cf0ac4d2994849931de8dda75cf605f840), [`273d16cb0665d4d960838cb294dc356f41814745`](https://github.com/clerk/javascript/commit/273d16cb0665d4d960838cb294dc356f41814745), [`6b0961765e1f3d09679be4b163fa13ac7dd97191`](https://github.com/clerk/javascript/commit/6b0961765e1f3d09679be4b163fa13ac7dd97191)]: + - @clerk/shared@2.16.0 + - @clerk/types@4.34.1 + - @clerk/localizations@3.6.5 + ## 5.34.3 ### Patch Changes diff --git a/packages/clerk-js/package.json b/packages/clerk-js/package.json index aa9ab025b5..03f584b248 100644 --- a/packages/clerk-js/package.json +++ b/packages/clerk-js/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/clerk-js", - "version": "5.34.3", + "version": "5.34.4", "description": "Clerk JS library", "keywords": [ "clerk", diff --git a/packages/dev-cli/CHANGELOG.md b/packages/dev-cli/CHANGELOG.md index e2f3508d9c..9350d51a17 100644 --- a/packages/dev-cli/CHANGELOG.md +++ b/packages/dev-cli/CHANGELOG.md @@ -1,5 +1,11 @@ # @clerk/dev-cli +## 0.0.9 + +### Patch Changes + +- Fix framework detection for Next.js. `clerk-dev` will now check for `next` as a dependency. ([#4612](https://github.com/clerk/javascript/pull/4612)) by [@BRKalow](https://github.com/BRKalow) + ## 0.0.8 ### Patch Changes diff --git a/packages/dev-cli/package.json b/packages/dev-cli/package.json index b26b670833..7fc9135dc0 100644 --- a/packages/dev-cli/package.json +++ b/packages/dev-cli/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/dev-cli", - "version": "0.0.8", + "version": "0.0.9", "description": "CLI tool designed to simplify the process of iterating on packages within the clerk/javascript repository", "homepage": "https://clerk.com/", "bugs": { diff --git a/packages/elements/CHANGELOG.md b/packages/elements/CHANGELOG.md index f8431cab41..7502849f77 100644 --- a/packages/elements/CHANGELOG.md +++ b/packages/elements/CHANGELOG.md @@ -1,5 +1,14 @@ # @clerk/elements +## 0.19.5 + +### Patch Changes + +- Updated dependencies [[`e47eb5882a7fd4a8dee25933c6644790d6ea3407`](https://github.com/clerk/javascript/commit/e47eb5882a7fd4a8dee25933c6644790d6ea3407), [`273d16cb0665d4d960838cb294dc356f41814745`](https://github.com/clerk/javascript/commit/273d16cb0665d4d960838cb294dc356f41814745), [`6b0961765e1f3d09679be4b163fa13ac7dd97191`](https://github.com/clerk/javascript/commit/6b0961765e1f3d09679be4b163fa13ac7dd97191)]: + - @clerk/clerk-react@5.16.1 + - @clerk/shared@2.16.0 + - @clerk/types@4.34.1 + ## 0.19.4 ### Patch Changes diff --git a/packages/elements/package.json b/packages/elements/package.json index 8588fd0ea7..619533d048 100644 --- a/packages/elements/package.json +++ b/packages/elements/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/elements", - "version": "0.19.4", + "version": "0.19.5", "description": "Clerk Elements", "keywords": [ "clerk", diff --git a/packages/expo-passkeys/CHANGELOG.md b/packages/expo-passkeys/CHANGELOG.md index e7f93eacc3..8879848cfe 100644 --- a/packages/expo-passkeys/CHANGELOG.md +++ b/packages/expo-passkeys/CHANGELOG.md @@ -1,5 +1,17 @@ # @clerk/expo-passkeys +## 0.0.7 + +### Patch Changes + +- - Replaced import { Buffer } from 'node:buffer' with import { Buffer } from 'buffer'. ([#4601](https://github.com/clerk/javascript/pull/4601)) by [@AlexNti](https://github.com/AlexNti) + + - Moved @clerk/expo-passkeys to a devDependency in @clerk/clerk-expo. + +- Updated dependencies [[`e47eb5882a7fd4a8dee25933c6644790d6ea3407`](https://github.com/clerk/javascript/commit/e47eb5882a7fd4a8dee25933c6644790d6ea3407), [`273d16cb0665d4d960838cb294dc356f41814745`](https://github.com/clerk/javascript/commit/273d16cb0665d4d960838cb294dc356f41814745), [`6b0961765e1f3d09679be4b163fa13ac7dd97191`](https://github.com/clerk/javascript/commit/6b0961765e1f3d09679be4b163fa13ac7dd97191)]: + - @clerk/shared@2.16.0 + - @clerk/types@4.34.1 + ## 0.0.6 ### Patch Changes diff --git a/packages/expo-passkeys/package.json b/packages/expo-passkeys/package.json index c508811448..585cf23c5d 100644 --- a/packages/expo-passkeys/package.json +++ b/packages/expo-passkeys/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/expo-passkeys", - "version": "0.0.6", + "version": "0.0.7", "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 4a9325d875..c57839100f 100644 --- a/packages/expo/CHANGELOG.md +++ b/packages/expo/CHANGELOG.md @@ -1,5 +1,19 @@ # Change Log +## 2.3.7 + +### Patch Changes + +- - Replaced import { Buffer } from 'node:buffer' with import { Buffer } from 'buffer'. ([#4601](https://github.com/clerk/javascript/pull/4601)) by [@AlexNti](https://github.com/AlexNti) + + - Moved @clerk/expo-passkeys to a devDependency in @clerk/clerk-expo. + +- Updated dependencies [[`03482f347741e6ceef2e654de1b101dc59477f90`](https://github.com/clerk/javascript/commit/03482f347741e6ceef2e654de1b101dc59477f90), [`e47eb5882a7fd4a8dee25933c6644790d6ea3407`](https://github.com/clerk/javascript/commit/e47eb5882a7fd4a8dee25933c6644790d6ea3407), [`152f0b8eeb7687a1fcff75b7395bf8f57ef04591`](https://github.com/clerk/javascript/commit/152f0b8eeb7687a1fcff75b7395bf8f57ef04591), [`aba63de16e677b5896cdf5bc40fa2322480efe7a`](https://github.com/clerk/javascript/commit/aba63de16e677b5896cdf5bc40fa2322480efe7a), [`273d16cb0665d4d960838cb294dc356f41814745`](https://github.com/clerk/javascript/commit/273d16cb0665d4d960838cb294dc356f41814745), [`6b0961765e1f3d09679be4b163fa13ac7dd97191`](https://github.com/clerk/javascript/commit/6b0961765e1f3d09679be4b163fa13ac7dd97191)]: + - @clerk/clerk-js@5.34.4 + - @clerk/clerk-react@5.16.1 + - @clerk/shared@2.16.0 + - @clerk/types@4.34.1 + ## 2.3.6 ### Patch Changes diff --git a/packages/expo/package.json b/packages/expo/package.json index 416c4bcd51..eec3427625 100644 --- a/packages/expo/package.json +++ b/packages/expo/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/clerk-expo", - "version": "2.3.6", + "version": "2.3.7", "description": "Clerk React Native/Expo library", "keywords": [ "react", diff --git a/packages/express/CHANGELOG.md b/packages/express/CHANGELOG.md index ddcd4715ff..a8b0f88b09 100644 --- a/packages/express/CHANGELOG.md +++ b/packages/express/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 1.3.16 + +### Patch Changes + +- Updated dependencies [[`e47eb5882a7fd4a8dee25933c6644790d6ea3407`](https://github.com/clerk/javascript/commit/e47eb5882a7fd4a8dee25933c6644790d6ea3407), [`273d16cb0665d4d960838cb294dc356f41814745`](https://github.com/clerk/javascript/commit/273d16cb0665d4d960838cb294dc356f41814745), [`6b0961765e1f3d09679be4b163fa13ac7dd97191`](https://github.com/clerk/javascript/commit/6b0961765e1f3d09679be4b163fa13ac7dd97191)]: + - @clerk/shared@2.16.0 + - @clerk/types@4.34.1 + - @clerk/backend@1.17.1 + ## 1.3.15 ### Patch Changes diff --git a/packages/express/package.json b/packages/express/package.json index b55a009453..9935c93d40 100644 --- a/packages/express/package.json +++ b/packages/express/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/express", - "version": "1.3.15", + "version": "1.3.16", "description": "Clerk server SDK for usage with Express", "keywords": [ "clerk", diff --git a/packages/fastify/CHANGELOG.md b/packages/fastify/CHANGELOG.md index 663048a152..e6cad5726a 100644 --- a/packages/fastify/CHANGELOG.md +++ b/packages/fastify/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 2.0.18 + +### Patch Changes + +- Updated dependencies [[`e47eb5882a7fd4a8dee25933c6644790d6ea3407`](https://github.com/clerk/javascript/commit/e47eb5882a7fd4a8dee25933c6644790d6ea3407), [`273d16cb0665d4d960838cb294dc356f41814745`](https://github.com/clerk/javascript/commit/273d16cb0665d4d960838cb294dc356f41814745), [`6b0961765e1f3d09679be4b163fa13ac7dd97191`](https://github.com/clerk/javascript/commit/6b0961765e1f3d09679be4b163fa13ac7dd97191)]: + - @clerk/shared@2.16.0 + - @clerk/types@4.34.1 + - @clerk/backend@1.17.1 + ## 2.0.17 ### Patch Changes diff --git a/packages/fastify/package.json b/packages/fastify/package.json index 3a11c37495..a706d22192 100644 --- a/packages/fastify/package.json +++ b/packages/fastify/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/fastify", - "version": "2.0.17", + "version": "2.0.18", "description": "Clerk SDK for Fastify", "keywords": [ "auth", diff --git a/packages/localizations/CHANGELOG.md b/packages/localizations/CHANGELOG.md index 43b29f3a90..1e2ca4b242 100644 --- a/packages/localizations/CHANGELOG.md +++ b/packages/localizations/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 3.6.5 + +### Patch Changes + +- Improve `el-GR` localization. ([#4593](https://github.com/clerk/javascript/pull/4593)) by [@dikaioai](https://github.com/dikaioai) + +- Updated dependencies [[`e47eb5882a7fd4a8dee25933c6644790d6ea3407`](https://github.com/clerk/javascript/commit/e47eb5882a7fd4a8dee25933c6644790d6ea3407), [`273d16cb0665d4d960838cb294dc356f41814745`](https://github.com/clerk/javascript/commit/273d16cb0665d4d960838cb294dc356f41814745)]: + - @clerk/types@4.34.1 + ## 3.6.4 ### Patch Changes diff --git a/packages/localizations/package.json b/packages/localizations/package.json index b23db9e261..87b8a845a6 100644 --- a/packages/localizations/package.json +++ b/packages/localizations/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/localizations", - "version": "3.6.4", + "version": "3.6.5", "description": "Localizations for the Clerk components", "keywords": [ "react", diff --git a/packages/nextjs/CHANGELOG.md b/packages/nextjs/CHANGELOG.md index ed8e4f62a2..31c68a6076 100644 --- a/packages/nextjs/CHANGELOG.md +++ b/packages/nextjs/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## 6.4.1 + +### Patch Changes + +- Updated dependencies [[`e47eb5882a7fd4a8dee25933c6644790d6ea3407`](https://github.com/clerk/javascript/commit/e47eb5882a7fd4a8dee25933c6644790d6ea3407), [`273d16cb0665d4d960838cb294dc356f41814745`](https://github.com/clerk/javascript/commit/273d16cb0665d4d960838cb294dc356f41814745), [`6b0961765e1f3d09679be4b163fa13ac7dd97191`](https://github.com/clerk/javascript/commit/6b0961765e1f3d09679be4b163fa13ac7dd97191)]: + - @clerk/clerk-react@5.16.1 + - @clerk/shared@2.16.0 + - @clerk/types@4.34.1 + - @clerk/backend@1.17.1 + ## 6.4.0 ### Minor Changes diff --git a/packages/nextjs/package.json b/packages/nextjs/package.json index 9cc237ea0d..af9a68aa71 100644 --- a/packages/nextjs/package.json +++ b/packages/nextjs/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/nextjs", - "version": "6.4.0", + "version": "6.4.1", "description": "Clerk SDK for NextJS", "keywords": [ "clerk", diff --git a/packages/nuxt/CHANGELOG.md b/packages/nuxt/CHANGELOG.md index c585bfbdd6..fa297308fc 100644 --- a/packages/nuxt/CHANGELOG.md +++ b/packages/nuxt/CHANGELOG.md @@ -1,5 +1,15 @@ # @clerk/nuxt +## 0.0.2 + +### Patch Changes + +- Updated dependencies [[`e47eb5882a7fd4a8dee25933c6644790d6ea3407`](https://github.com/clerk/javascript/commit/e47eb5882a7fd4a8dee25933c6644790d6ea3407), [`273d16cb0665d4d960838cb294dc356f41814745`](https://github.com/clerk/javascript/commit/273d16cb0665d4d960838cb294dc356f41814745), [`6b0961765e1f3d09679be4b163fa13ac7dd97191`](https://github.com/clerk/javascript/commit/6b0961765e1f3d09679be4b163fa13ac7dd97191)]: + - @clerk/shared@2.16.0 + - @clerk/types@4.34.1 + - @clerk/vue@0.0.6 + - @clerk/backend@1.17.1 + ## 0.0.1 ### Patch Changes diff --git a/packages/nuxt/package.json b/packages/nuxt/package.json index b0c13f93b0..b1f2b2d017 100644 --- a/packages/nuxt/package.json +++ b/packages/nuxt/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/nuxt", - "version": "0.0.1", + "version": "0.0.2", "description": "Clerk SDK for Nuxt", "keywords": [ "clerk", diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index 2b47593389..cf1d086b83 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## 5.16.1 + +### Patch Changes + +- Share hook return types ([#4583](https://github.com/clerk/javascript/pull/4583)) by [@wobsoriano](https://github.com/wobsoriano) + +- Updated dependencies [[`e47eb5882a7fd4a8dee25933c6644790d6ea3407`](https://github.com/clerk/javascript/commit/e47eb5882a7fd4a8dee25933c6644790d6ea3407), [`273d16cb0665d4d960838cb294dc356f41814745`](https://github.com/clerk/javascript/commit/273d16cb0665d4d960838cb294dc356f41814745), [`6b0961765e1f3d09679be4b163fa13ac7dd97191`](https://github.com/clerk/javascript/commit/6b0961765e1f3d09679be4b163fa13ac7dd97191)]: + - @clerk/shared@2.16.0 + - @clerk/types@4.34.1 + ## 5.16.0 ### Minor Changes diff --git a/packages/react/package.json b/packages/react/package.json index 6aac243dfd..aada4ea2e9 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/clerk-react", - "version": "5.16.0", + "version": "5.16.1", "description": "Clerk React library", "keywords": [ "clerk", diff --git a/packages/remix/CHANGELOG.md b/packages/remix/CHANGELOG.md index 3b43a2f64c..ac2c0964f0 100644 --- a/packages/remix/CHANGELOG.md +++ b/packages/remix/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## 4.2.54 + +### Patch Changes + +- Updated dependencies [[`e47eb5882a7fd4a8dee25933c6644790d6ea3407`](https://github.com/clerk/javascript/commit/e47eb5882a7fd4a8dee25933c6644790d6ea3407), [`273d16cb0665d4d960838cb294dc356f41814745`](https://github.com/clerk/javascript/commit/273d16cb0665d4d960838cb294dc356f41814745), [`6b0961765e1f3d09679be4b163fa13ac7dd97191`](https://github.com/clerk/javascript/commit/6b0961765e1f3d09679be4b163fa13ac7dd97191)]: + - @clerk/clerk-react@5.16.1 + - @clerk/shared@2.16.0 + - @clerk/types@4.34.1 + - @clerk/backend@1.17.1 + ## 4.2.53 ### Patch Changes diff --git a/packages/remix/package.json b/packages/remix/package.json index b7f992bd9f..826d8c6b88 100644 --- a/packages/remix/package.json +++ b/packages/remix/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/remix", - "version": "4.2.53", + "version": "4.2.54", "description": "Clerk SDK for Remix", "keywords": [ "clerk", diff --git a/packages/sdk-node/CHANGELOG.md b/packages/sdk-node/CHANGELOG.md index fd2dcd6e88..41e496605f 100644 --- a/packages/sdk-node/CHANGELOG.md +++ b/packages/sdk-node/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 5.0.67 + +### Patch Changes + +- Updated dependencies [[`e47eb5882a7fd4a8dee25933c6644790d6ea3407`](https://github.com/clerk/javascript/commit/e47eb5882a7fd4a8dee25933c6644790d6ea3407), [`273d16cb0665d4d960838cb294dc356f41814745`](https://github.com/clerk/javascript/commit/273d16cb0665d4d960838cb294dc356f41814745), [`6b0961765e1f3d09679be4b163fa13ac7dd97191`](https://github.com/clerk/javascript/commit/6b0961765e1f3d09679be4b163fa13ac7dd97191)]: + - @clerk/shared@2.16.0 + - @clerk/types@4.34.1 + - @clerk/backend@1.17.1 + ## 5.0.66 ### Patch Changes diff --git a/packages/sdk-node/package.json b/packages/sdk-node/package.json index 3cd92e23ca..eaa80b6e01 100644 --- a/packages/sdk-node/package.json +++ b/packages/sdk-node/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/clerk-sdk-node", - "version": "5.0.66", + "version": "5.0.67", "description": "Clerk server SDK for usage with node", "keywords": [ "clerk", diff --git a/packages/shared/CHANGELOG.md b/packages/shared/CHANGELOG.md index a3957bed7d..a0f606f731 100644 --- a/packages/shared/CHANGELOG.md +++ b/packages/shared/CHANGELOG.md @@ -1,5 +1,18 @@ # Change Log +## 2.16.0 + +### Minor Changes + +- Change `useReverification` to handle error in a callback, but still allow an error to be thrown via options. ([#4564](https://github.com/clerk/javascript/pull/4564)) by [@panteliselef](https://github.com/panteliselef) + +### Patch Changes + +- Share hook return types ([#4583](https://github.com/clerk/javascript/pull/4583)) by [@wobsoriano](https://github.com/wobsoriano) + +- Updated dependencies [[`e47eb5882a7fd4a8dee25933c6644790d6ea3407`](https://github.com/clerk/javascript/commit/e47eb5882a7fd4a8dee25933c6644790d6ea3407), [`273d16cb0665d4d960838cb294dc356f41814745`](https://github.com/clerk/javascript/commit/273d16cb0665d4d960838cb294dc356f41814745)]: + - @clerk/types@4.34.1 + ## 2.15.0 ### Minor Changes diff --git a/packages/shared/package.json b/packages/shared/package.json index 5d54b27597..17f39d613a 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/shared", - "version": "2.15.0", + "version": "2.16.0", "description": "Internal package utils used by the Clerk SDKs", "repository": { "type": "git", diff --git a/packages/tanstack-start/CHANGELOG.md b/packages/tanstack-start/CHANGELOG.md index 73734e309c..cc31b745bd 100644 --- a/packages/tanstack-start/CHANGELOG.md +++ b/packages/tanstack-start/CHANGELOG.md @@ -1,5 +1,15 @@ # @clerk/tanstack-start +## 0.5.1 + +### Patch Changes + +- Updated dependencies [[`e47eb5882a7fd4a8dee25933c6644790d6ea3407`](https://github.com/clerk/javascript/commit/e47eb5882a7fd4a8dee25933c6644790d6ea3407), [`273d16cb0665d4d960838cb294dc356f41814745`](https://github.com/clerk/javascript/commit/273d16cb0665d4d960838cb294dc356f41814745), [`6b0961765e1f3d09679be4b163fa13ac7dd97191`](https://github.com/clerk/javascript/commit/6b0961765e1f3d09679be4b163fa13ac7dd97191)]: + - @clerk/clerk-react@5.16.1 + - @clerk/shared@2.16.0 + - @clerk/types@4.34.1 + - @clerk/backend@1.17.1 + ## 0.5.0 ### Minor Changes diff --git a/packages/tanstack-start/package.json b/packages/tanstack-start/package.json index 72315bfe74..a464598d5d 100644 --- a/packages/tanstack-start/package.json +++ b/packages/tanstack-start/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/tanstack-start", - "version": "0.5.0", + "version": "0.5.1", "description": "Clerk SDK for TanStack Start", "keywords": [ "clerk", diff --git a/packages/testing/CHANGELOG.md b/packages/testing/CHANGELOG.md index 20927402a6..590318dbf5 100644 --- a/packages/testing/CHANGELOG.md +++ b/packages/testing/CHANGELOG.md @@ -1,5 +1,14 @@ # @clerk/testing +## 1.3.28 + +### Patch Changes + +- Updated dependencies [[`e47eb5882a7fd4a8dee25933c6644790d6ea3407`](https://github.com/clerk/javascript/commit/e47eb5882a7fd4a8dee25933c6644790d6ea3407), [`273d16cb0665d4d960838cb294dc356f41814745`](https://github.com/clerk/javascript/commit/273d16cb0665d4d960838cb294dc356f41814745), [`6b0961765e1f3d09679be4b163fa13ac7dd97191`](https://github.com/clerk/javascript/commit/6b0961765e1f3d09679be4b163fa13ac7dd97191)]: + - @clerk/shared@2.16.0 + - @clerk/types@4.34.1 + - @clerk/backend@1.17.1 + ## 1.3.27 ### Patch Changes diff --git a/packages/testing/package.json b/packages/testing/package.json index dab08e8d5c..696d68f8c1 100644 --- a/packages/testing/package.json +++ b/packages/testing/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/testing", - "version": "1.3.27", + "version": "1.3.28", "description": "Utilities to help you create E2E test suites for apps using Clerk", "keywords": [ "auth", diff --git a/packages/themes/CHANGELOG.md b/packages/themes/CHANGELOG.md index ac05bddf4f..a4a8f36470 100644 --- a/packages/themes/CHANGELOG.md +++ b/packages/themes/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## 2.1.46 + +### Patch Changes + +- Updated dependencies [[`e47eb5882a7fd4a8dee25933c6644790d6ea3407`](https://github.com/clerk/javascript/commit/e47eb5882a7fd4a8dee25933c6644790d6ea3407), [`273d16cb0665d4d960838cb294dc356f41814745`](https://github.com/clerk/javascript/commit/273d16cb0665d4d960838cb294dc356f41814745)]: + - @clerk/types@4.34.1 + ## 2.1.45 ### Patch Changes diff --git a/packages/themes/package.json b/packages/themes/package.json index b5866bf663..1766826130 100644 --- a/packages/themes/package.json +++ b/packages/themes/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/themes", - "version": "2.1.45", + "version": "2.1.46", "description": "Themes for the Clerk auth components", "keywords": [ "react", diff --git a/packages/types/CHANGELOG.md b/packages/types/CHANGELOG.md index 8b1263e5ed..a81eb43687 100644 --- a/packages/types/CHANGELOG.md +++ b/packages/types/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 4.34.1 + +### Patch Changes + +- Share hook return types ([#4583](https://github.com/clerk/javascript/pull/4583)) by [@wobsoriano](https://github.com/wobsoriano) + +- Inject captcha token into every X heartbeats ([#4614](https://github.com/clerk/javascript/pull/4614)) by [@nikosdouvlis](https://github.com/nikosdouvlis) + ## 4.34.0 ### Minor Changes diff --git a/packages/types/package.json b/packages/types/package.json index 26b9f99cc9..758f46af31 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/types", - "version": "4.34.0", + "version": "4.34.1", "description": "Typings for Clerk libraries.", "keywords": [ "clerk", diff --git a/packages/ui/CHANGELOG.md b/packages/ui/CHANGELOG.md index 74edf051ca..0b8d1b07cb 100644 --- a/packages/ui/CHANGELOG.md +++ b/packages/ui/CHANGELOG.md @@ -1,5 +1,15 @@ # @clerk/ui +## 0.1.22 + +### Patch Changes + +- Updated dependencies [[`e47eb5882a7fd4a8dee25933c6644790d6ea3407`](https://github.com/clerk/javascript/commit/e47eb5882a7fd4a8dee25933c6644790d6ea3407), [`7510d5cf0ac4d2994849931de8dda75cf605f840`](https://github.com/clerk/javascript/commit/7510d5cf0ac4d2994849931de8dda75cf605f840), [`273d16cb0665d4d960838cb294dc356f41814745`](https://github.com/clerk/javascript/commit/273d16cb0665d4d960838cb294dc356f41814745), [`6b0961765e1f3d09679be4b163fa13ac7dd97191`](https://github.com/clerk/javascript/commit/6b0961765e1f3d09679be4b163fa13ac7dd97191)]: + - @clerk/shared@2.16.0 + - @clerk/types@4.34.1 + - @clerk/localizations@3.6.5 + - @clerk/elements@0.19.5 + ## 0.1.21 ### Patch Changes diff --git a/packages/ui/package.json b/packages/ui/package.json index 75ca49acda..bc37baf7ea 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/ui", - "version": "0.1.21", + "version": "0.1.22", "repository": { "type": "git", "url": "git+https://github.com/clerk/javascript.git", diff --git a/packages/vue/CHANGELOG.md b/packages/vue/CHANGELOG.md index 4284e2e262..c31a183597 100644 --- a/packages/vue/CHANGELOG.md +++ b/packages/vue/CHANGELOG.md @@ -1,5 +1,15 @@ # @clerk/vue +## 0.0.6 + +### Patch Changes + +- Share hook return types ([#4583](https://github.com/clerk/javascript/pull/4583)) by [@wobsoriano](https://github.com/wobsoriano) + +- Updated dependencies [[`e47eb5882a7fd4a8dee25933c6644790d6ea3407`](https://github.com/clerk/javascript/commit/e47eb5882a7fd4a8dee25933c6644790d6ea3407), [`273d16cb0665d4d960838cb294dc356f41814745`](https://github.com/clerk/javascript/commit/273d16cb0665d4d960838cb294dc356f41814745), [`6b0961765e1f3d09679be4b163fa13ac7dd97191`](https://github.com/clerk/javascript/commit/6b0961765e1f3d09679be4b163fa13ac7dd97191)]: + - @clerk/shared@2.16.0 + - @clerk/types@4.34.1 + ## 0.0.5 ### Patch Changes diff --git a/packages/vue/package.json b/packages/vue/package.json index f528bb34ce..f5816f8f0e 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/vue", - "version": "0.0.5", + "version": "0.0.6", "description": "Clerk SDK for Vue", "keywords": [ "clerk", From b9a93fd86c2a0285d8e1bb9e9ffac2c979aab947 Mon Sep 17 00:00:00 2001 From: Nikos Douvlis Date: Thu, 21 Nov 2024 15:59:13 +0200 Subject: [PATCH 2/4] fix(clerk-js): Fix tokenCache.test.ts (#4623) --- .changeset/long-rabbits-ring.md | 5 +++++ .../clerk-js/src/core/auth/AuthCookieService.ts | 17 ++++++++++++++++- packages/clerk-js/src/core/clerk.ts | 2 +- 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 .changeset/long-rabbits-ring.md diff --git a/.changeset/long-rabbits-ring.md b/.changeset/long-rabbits-ring.md new file mode 100644 index 0000000000..7df6cfed75 --- /dev/null +++ b/.changeset/long-rabbits-ring.md @@ -0,0 +1,5 @@ +--- +'@clerk/clerk-js': patch +--- + +Collect captcha token on load diff --git a/packages/clerk-js/src/core/auth/AuthCookieService.ts b/packages/clerk-js/src/core/auth/AuthCookieService.ts index 2887166180..514f2bd9a6 100644 --- a/packages/clerk-js/src/core/auth/AuthCookieService.ts +++ b/packages/clerk-js/src/core/auth/AuthCookieService.ts @@ -1,10 +1,12 @@ import { setDevBrowserJWTInURL } from '@clerk/shared/devBrowser'; import { is4xxError, isClerkAPIResponseError, isNetworkError } from '@clerk/shared/error'; -import type { Clerk, EnvironmentResource } from '@clerk/types'; +import type { EnvironmentResource } from '@clerk/types'; import { clerkCoreErrorTokenRefreshFailed, clerkMissingDevBrowserJwt } from '../errors'; import { eventBus, events } from '../events'; import type { FapiClient } from '../fapiClient'; +import type { Clerk } from '../resources/internal'; +import { SessionTokenCache } from '../tokenCache'; import type { ClientUatCookieHandler } from './cookies/clientUat'; import { createClientUatCookie } from './cookies/clientUat'; import type { SessionCookieHandler } from './cookies/session'; @@ -103,6 +105,19 @@ export class AuthCookieService { return setDevBrowserJWTInURL(url, devBrowserJwt); } + /** + * Will refresh the session token immediately once + * if the captcha heartbeat flag is enabled. + * We want to do this to ensure that we collect at least one token + * even for short-lived sessions. + */ + public forceRefreshSessionToken() { + if (this.clerk.__unstable__environment?.displayConfig.captchaHeartbeat) { + SessionTokenCache.clear(); + void this.refreshSessionToken(); + } + } + private startPollingForToken() { if (!this.poller) { this.poller = new SessionCookiePoller(); diff --git a/packages/clerk-js/src/core/clerk.ts b/packages/clerk-js/src/core/clerk.ts index db377ee7cc..536c5ab7bf 100644 --- a/packages/clerk-js/src/core/clerk.ts +++ b/packages/clerk-js/src/core/clerk.ts @@ -1828,8 +1828,8 @@ export class Clerk implements ClerkInterface { } } + this.#authService?.forceRefreshSessionToken(); this.#clearClerkQueryParams(); - this.#handleImpersonationFab(); return true; }; From a654446b29bbe23b68f6efa1ba4467fb1b99932b Mon Sep 17 00:00:00 2001 From: Clerk Cookie <136073014+clerk-cookie@users.noreply.github.com> Date: Thu, 21 Nov 2024 09:17:46 -0500 Subject: [PATCH 3/4] ci(repo): Version packages (#4624) Co-authored-by: github-actions[bot] --- .changeset/long-rabbits-ring.md | 5 ----- packages/chrome-extension/CHANGELOG.md | 7 +++++++ packages/chrome-extension/package.json | 2 +- packages/clerk-js/CHANGELOG.md | 6 ++++++ packages/clerk-js/package.json | 2 +- packages/expo/CHANGELOG.md | 7 +++++++ packages/expo/package.json | 2 +- 7 files changed, 23 insertions(+), 8 deletions(-) delete mode 100644 .changeset/long-rabbits-ring.md diff --git a/.changeset/long-rabbits-ring.md b/.changeset/long-rabbits-ring.md deleted file mode 100644 index 7df6cfed75..0000000000 --- a/.changeset/long-rabbits-ring.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/clerk-js': patch ---- - -Collect captcha token on load diff --git a/packages/chrome-extension/CHANGELOG.md b/packages/chrome-extension/CHANGELOG.md index b1716dfc3e..35fbf4fdcf 100644 --- a/packages/chrome-extension/CHANGELOG.md +++ b/packages/chrome-extension/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## 1.3.39 + +### Patch Changes + +- Updated dependencies [[`b9a93fd86c2a0285d8e1bb9e9ffac2c979aab947`](https://github.com/clerk/javascript/commit/b9a93fd86c2a0285d8e1bb9e9ffac2c979aab947)]: + - @clerk/clerk-js@5.34.5 + ## 1.3.38 ### Patch Changes diff --git a/packages/chrome-extension/package.json b/packages/chrome-extension/package.json index 558c06d78d..d48ef0d6a0 100644 --- a/packages/chrome-extension/package.json +++ b/packages/chrome-extension/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/chrome-extension", - "version": "1.3.38", + "version": "1.3.39", "description": "Clerk SDK for Chrome extensions", "keywords": [ "auth", diff --git a/packages/clerk-js/CHANGELOG.md b/packages/clerk-js/CHANGELOG.md index a653103afe..3088147ec7 100644 --- a/packages/clerk-js/CHANGELOG.md +++ b/packages/clerk-js/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 5.34.5 + +### Patch Changes + +- Collect captcha token on load ([#4623](https://github.com/clerk/javascript/pull/4623)) by [@nikosdouvlis](https://github.com/nikosdouvlis) + ## 5.34.4 ### Patch Changes diff --git a/packages/clerk-js/package.json b/packages/clerk-js/package.json index 03f584b248..55cb4dc869 100644 --- a/packages/clerk-js/package.json +++ b/packages/clerk-js/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/clerk-js", - "version": "5.34.4", + "version": "5.34.5", "description": "Clerk JS library", "keywords": [ "clerk", diff --git a/packages/expo/CHANGELOG.md b/packages/expo/CHANGELOG.md index c57839100f..3fb210a586 100644 --- a/packages/expo/CHANGELOG.md +++ b/packages/expo/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## 2.3.8 + +### Patch Changes + +- Updated dependencies [[`b9a93fd86c2a0285d8e1bb9e9ffac2c979aab947`](https://github.com/clerk/javascript/commit/b9a93fd86c2a0285d8e1bb9e9ffac2c979aab947)]: + - @clerk/clerk-js@5.34.5 + ## 2.3.7 ### Patch Changes diff --git a/packages/expo/package.json b/packages/expo/package.json index eec3427625..97c20c92bc 100644 --- a/packages/expo/package.json +++ b/packages/expo/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/clerk-expo", - "version": "2.3.7", + "version": "2.3.8", "description": "Clerk React Native/Expo library", "keywords": [ "react", From 3c21cd6ff80ac4e4a537739f61c19caa207fb130 Mon Sep 17 00:00:00 2001 From: Nikos Douvlis Date: Thu, 21 Nov 2024 17:22:57 +0200 Subject: [PATCH 4/4] Revert "fix(clerk-js): Fix tokenCache.test.ts (#4623)" This reverts commit b9a93fd86c2a0285d8e1bb9e9ffac2c979aab947. --- .../clerk-js/src/core/auth/AuthCookieService.ts | 17 +---------------- packages/clerk-js/src/core/clerk.ts | 2 +- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/packages/clerk-js/src/core/auth/AuthCookieService.ts b/packages/clerk-js/src/core/auth/AuthCookieService.ts index 514f2bd9a6..2887166180 100644 --- a/packages/clerk-js/src/core/auth/AuthCookieService.ts +++ b/packages/clerk-js/src/core/auth/AuthCookieService.ts @@ -1,12 +1,10 @@ import { setDevBrowserJWTInURL } from '@clerk/shared/devBrowser'; import { is4xxError, isClerkAPIResponseError, isNetworkError } from '@clerk/shared/error'; -import type { EnvironmentResource } from '@clerk/types'; +import type { Clerk, EnvironmentResource } from '@clerk/types'; import { clerkCoreErrorTokenRefreshFailed, clerkMissingDevBrowserJwt } from '../errors'; import { eventBus, events } from '../events'; import type { FapiClient } from '../fapiClient'; -import type { Clerk } from '../resources/internal'; -import { SessionTokenCache } from '../tokenCache'; import type { ClientUatCookieHandler } from './cookies/clientUat'; import { createClientUatCookie } from './cookies/clientUat'; import type { SessionCookieHandler } from './cookies/session'; @@ -105,19 +103,6 @@ export class AuthCookieService { return setDevBrowserJWTInURL(url, devBrowserJwt); } - /** - * Will refresh the session token immediately once - * if the captcha heartbeat flag is enabled. - * We want to do this to ensure that we collect at least one token - * even for short-lived sessions. - */ - public forceRefreshSessionToken() { - if (this.clerk.__unstable__environment?.displayConfig.captchaHeartbeat) { - SessionTokenCache.clear(); - void this.refreshSessionToken(); - } - } - private startPollingForToken() { if (!this.poller) { this.poller = new SessionCookiePoller(); diff --git a/packages/clerk-js/src/core/clerk.ts b/packages/clerk-js/src/core/clerk.ts index 536c5ab7bf..db377ee7cc 100644 --- a/packages/clerk-js/src/core/clerk.ts +++ b/packages/clerk-js/src/core/clerk.ts @@ -1828,8 +1828,8 @@ export class Clerk implements ClerkInterface { } } - this.#authService?.forceRefreshSessionToken(); this.#clearClerkQueryParams(); + this.#handleImpersonationFab(); return true; };