diff --git a/.changeset/pre.json b/.changeset/pre.json
index e043191854..ad0ea98c54 100644
--- a/.changeset/pre.json
+++ b/.changeset/pre.json
@@ -16,7 +16,8 @@
"@clerk/clerk-sdk-node": "4.12.16",
"@clerk/shared": "1.0.0",
"@clerk/themes": "1.7.9",
- "@clerk/types": "3.57.0"
+ "@clerk/types": "3.57.0",
+ "@clerk/elements": "0.0.1"
},
"changesets": [
"afraid-nails-play",
@@ -26,6 +27,7 @@
"blue-grapes-marry",
"blue-lies-drop",
"brave-suits-drive",
+ "bright-dragons-join",
"bright-knives-jump",
"bright-plants-swim",
"bright-trainers-sort",
@@ -57,23 +59,28 @@
"dry-feet-join",
"dry-sheep-poke",
"dry-students-reflect",
+ "dull-ants-argue",
"dull-stingrays-fix",
"dull-wasps-begin",
"early-forks-argue",
"early-timers-wave",
"early-tomatoes-hide",
"eight-badgers-speak",
+ "eighty-walls-appear",
"eleven-bananas-joke",
"empty-jars-press",
+ "fair-bears-build",
"fair-cameras-boil",
"famous-carrots-notice",
"famous-forks-buy",
+ "famous-penguins-bow",
"famous-spies-clean",
"fast-ads-mix",
"fast-games-hide",
"fast-swans-smile",
"few-kids-design",
"fifty-rats-rhyme",
+ "fifty-snakes-accept",
"flat-ants-worry",
"flat-clocks-clap",
"flat-donuts-sleep",
@@ -87,6 +94,7 @@
"funny-lamps-work",
"fuzzy-horses-fix",
"fuzzy-years-taste",
+ "gentle-berries-teach",
"gentle-donkeys-talk",
"gentle-pants-matter",
"gold-fireants-sort",
@@ -98,21 +106,28 @@
"heavy-falcons-help",
"heavy-horses-nail",
"hip-eagles-clap",
+ "hip-planets-reply",
"honest-onions-work",
+ "honest-pigs-smoke",
"hungry-bears-allow",
"hungry-bikes-clean",
"hungry-news-bathe",
"itchy-chairs-argue",
+ "itchy-chairs-call",
+ "itchy-papayas-dress",
"khaki-buttons-march",
"khaki-spoons-teach",
"khaki-timers-work",
+ "kind-onions-think",
"late-cooks-collect",
"late-dolphins-peel",
"late-flies-switch",
+ "late-pillows-notice",
"lazy-planes-run",
"lemon-crews-do",
"lemon-kings-love",
"lemon-rockets-explode",
+ "light-spoons-divide",
"little-apes-notice",
"little-dolphins-scream",
"little-numbers-jam",
@@ -122,6 +137,7 @@
"loud-countries-hang",
"loud-lions-compete",
"loud-panthers-poke",
+ "lovely-experts-deny",
"lovely-jobs-arrive",
"lovely-mirrors-remember",
"lovely-plums-sin",
@@ -131,14 +147,19 @@
"many-flowers-heal",
"many-weeks-march",
"mean-houses-juggle",
+ "mean-numbers-grin",
"mean-poets-bow",
"metal-baboons-vanish",
"metal-cougars-fail",
"metal-ears-cheat",
"metal-olives-press",
+ "metal-wolves-wave",
"mighty-bulldogs-try",
"mighty-melons-greet",
"mighty-pugs-knock",
+ "mighty-rice-marry",
+ "modern-buses-sort",
+ "modern-mayflies-sort",
"moody-radios-begin",
"moody-trainers-bow",
"moody-zoos-deliver",
@@ -153,13 +174,17 @@
"nice-doors-fail",
"nice-starfishes-itch",
"nine-beans-travel",
+ "nine-cooks-retire",
+ "odd-eels-ring",
"odd-lemons-reply",
"odd-toes-develop",
"old-actors-beg",
"old-ads-push",
+ "old-onions-swim",
"old-timers-obey",
"olive-steaks-end",
"orange-pumpkins-poke",
+ "perfect-ants-joke",
"pink-days-drum",
"polite-kiwis-arrive",
"poor-horses-press",
@@ -171,18 +196,21 @@
"pretty-scissors-thank",
"pretty-singers-change",
"proud-hairs-check",
+ "proud-trees-yell",
"purple-pumas-study",
"purple-rules-prove",
"quick-countries-scream",
"quick-trains-rush",
"quiet-cougars-watch",
"rare-bottles-sell",
+ "rare-poets-deliver",
"rare-students-sell",
"real-cougars-design",
"real-taxis-compare",
"red-coats-itch",
"red-monkeys-sing",
"red-shrimps-hunt",
+ "red-suns-perform",
"red-worms-fetch",
"rich-actors-cross",
"rich-readers-obey",
@@ -204,17 +232,22 @@
"silly-icons-kick",
"silly-poems-tease",
"silver-cats-appear",
+ "silver-weeks-roll",
"six-kangaroos-serve",
"sixty-frogs-pump",
+ "sixty-months-listen",
"slimy-brooms-smoke",
"slimy-singers-glow",
+ "slimy-ties-approve",
"slimy-windows-grab",
"slimy-wolves-burn",
"slow-bugs-exist",
"slow-eels-fly",
"slow-wombats-battle",
"small-cats-check",
+ "small-ladybugs-mate",
"smart-suns-train",
+ "smart-ways-sing",
"smooth-baboons-shake",
"smooth-pets-rhyme",
"soft-birds-thank",
@@ -235,12 +268,14 @@
"tame-olives-check",
"tasty-countries-walk",
"tasty-phones-lie",
+ "tasty-terms-fly",
"ten-mugs-film",
"ten-nails-whisper",
"thin-phones-drop",
"thirty-chicken-divide",
"thirty-doors-peel",
"thirty-insects-exist",
+ "tidy-buttons-pump",
"tiny-forks-sit",
"tough-pots-grow",
"tough-roses-hunt",
@@ -250,11 +285,13 @@
"two-pumas-doubt",
"two-terms-speak",
"violet-birds-scream",
+ "weak-bears-cover",
"weak-elephants-grin",
"wicked-spoons-confess",
"wild-phones-smoke",
"wise-houses-shop",
"wise-lions-type",
+ "wise-scissors-know",
"witty-forks-cheer",
"yellow-elephants-begin",
"yellow-tigers-know",
diff --git a/packages/backend/CHANGELOG.md b/packages/backend/CHANGELOG.md
index ac2cdb366e..2e9dcdac35 100644
--- a/packages/backend/CHANGELOG.md
+++ b/packages/backend/CHANGELOG.md
@@ -1,5 +1,153 @@
# Change Log
+## 1.0.0-alpha-v5.10
+
+### Major Changes
+
+- Change return value of `verifyToken()` from `@clerk/backend` to `{ data, error}`. ([#2377](https://github.com/clerk/javascript/pull/2377)) by [@dimkl](https://github.com/dimkl)
+
+ To replicate the current behaviour use this:
+
+ ```typescript
+ import { verifyToken } from '@clerk/backend'
+
+ const { data, error } = await verifyToken(...);
+ if(error){
+ throw error;
+ }
+ ```
+
+- Change return values of `signJwt`, `hasValidSignature`, `decodeJwt`, `verifyJwt` ([#2377](https://github.com/clerk/javascript/pull/2377)) by [@dimkl](https://github.com/dimkl)
+
+ to return `{ data, error }`. Example of keeping the same behavior using those utilities:
+
+ ```typescript
+ import { signJwt, hasValidSignature, decodeJwt, verifyJwt } from '@clerk/backend/jwt';
+
+ const { data, error } = await signJwt(...)
+ if (error) throw error;
+
+ const { data, error } = await hasValidSignature(...)
+ if (error) throw error;
+
+ const { data, error } = decodeJwt(...)
+ if (error) throw error;
+
+ const { data, error } = await verifyJwt(...)
+ if (error) throw error;
+ ```
+
+- Changes in exports of `@clerk/backend`: ([#2363](https://github.com/clerk/javascript/pull/2363)) by [@dimkl](https://github.com/dimkl)
+
+ - Expose the following helpers and enums from `@clerk/backend/internal`:
+ ```typescript
+ import {
+ AuthStatus,
+ buildRequestUrl,
+ constants,
+ createAuthenticateRequest,
+ createIsomorphicRequest,
+ debugRequestState,
+ makeAuthObjectSerializable,
+ prunePrivateMetadata,
+ redirect,
+ sanitizeAuthObject,
+ signedInAuthObject,
+ signedOutAuthObject,
+ } from '@clerk/backend/internal';
+ ```
+ - Drop the above exports from the top-level api:
+ ```typescript
+ // Before
+ import { AuthStatus, ... } from '@clerk/backend';
+ // After
+ import { AuthStatus, ... } from '@clerk/backend/internal';
+ ```
+ Dropping those exports results in also dropping the exports from `gatsby-plugin-clerk`, `@clerk/clerk-sdk-node`, `@clerk/backend`, `@clerk/fastify`, `@clerk/nextjs`, `@clerk/remix` packages.
+
+- Changes in exports of `@clerk/backend`: ([#2365](https://github.com/clerk/javascript/pull/2365)) by [@dimkl](https://github.com/dimkl)
+
+ - Drop the following internal exports from the top-level api:
+ ```typescript
+ // Before
+ import {
+ AllowlistIdentifier,
+ Client,
+ DeletedObject,
+ Email,
+ EmailAddress,
+ ExternalAccount,
+ IdentificationLink,
+ Invitation,
+ OauthAccessToken,
+ ObjectType,
+ Organization,
+ OrganizationInvitation,
+ OrganizationMembership,
+ OrganizationMembershipPublicUserData,
+ PhoneNumber,
+ RedirectUrl,
+ SMSMessage,
+ Session,
+ SignInToken,
+ Token,
+ User,
+ Verification,
+ } from '@clerk/backend';
+ // After : no alternative since there is no need to use those classes
+ ```
+ Dropping those exports results in also dropping the exports from `gatsby-plugin-clerk`, `@clerk/clerk-sdk-node`, `@clerk/backend`, `@clerk/fastify`, `@clerk/nextjs`, `@clerk/remix` packages.
+ - Keep those 3 resource related type exports
+ ```typescript
+ import type { Organization, Session, User, WebhookEvent, WebhookEventType } from '@clerk/backend';
+ ```
+
+- Changes in exports of `@clerk/backend`: ([#2364](https://github.com/clerk/javascript/pull/2364)) by [@dimkl](https://github.com/dimkl)
+
+ - Expose the following helpers and enums from `@clerk/backend/jwt`:
+ ```typescript
+ import { decodeJwt, hasValidSignature, signJwt, verifyJwt } from '@clerk/backend/jwt';
+ ```
+ - Drop the above exports from the top-level api:
+ ```typescript
+ // Before
+ import { decodeJwt, ... } from '@clerk/backend';
+ // After
+ import { decodeJwt, ... } from '@clerk/backend/jwt';
+ ```
+ Dropping those exports results in also dropping the exports from `gatsby-plugin-clerk`, `@clerk/clerk-sdk-node`, `@clerk/backend`, `@clerk/fastify`, `@clerk/nextjs`, `@clerk/remix` packages.
+
+- Changes in `@clerk/backend` exports: ([#2362](https://github.com/clerk/javascript/pull/2362)) by [@dimkl](https://github.com/dimkl)
+
+ - Drop Internal `deserialize` helper
+ - Introduce `/errors` subpath export, eg:
+ ```typescript
+ import {
+ TokenVerificationError,
+ TokenVerificationErrorAction,
+ TokenVerificationErrorCode,
+ TokenVerificationErrorReason,
+ } from '@clerk/backend/errors';
+ ```
+ - Drop errors from top-level export
+ ```typescript
+ // Before
+ import { TokenVerificationError, TokenVerificationErrorReason } from '@clerk/backend';
+ // After
+ import { TokenVerificationError, TokenVerificationErrorReason } from '@clerk/backend/errors';
+ ```
+
+### Minor Changes
+
+- Improve ESM support in `@clerk/backend` for Node by using .mjs for #crypto subpath import ([#2360](https://github.com/clerk/javascript/pull/2360)) by [@dimkl](https://github.com/dimkl)
+
+### Patch Changes
+
+- Update the handshake flow to only trigger for document requests. ([#2352](https://github.com/clerk/javascript/pull/2352)) by [@BRKalow](https://github.com/BRKalow)
+
+- Updated dependencies [[`5f58a2274`](https://github.com/clerk/javascript/commit/5f58a22746aba94f76bef5dbbc94fa93ea3b0b7e)]:
+ - @clerk/shared@2.0.0-alpha-v5.7
+
## 1.0.0-alpha-v5.9
### Major Changes
diff --git a/packages/backend/package.json b/packages/backend/package.json
index 464cda7f84..0ed34464f5 100644
--- a/packages/backend/package.json
+++ b/packages/backend/package.json
@@ -1,6 +1,6 @@
{
"name": "@clerk/backend",
- "version": "1.0.0-alpha-v5.9",
+ "version": "1.0.0-alpha-v5.10",
"description": "Clerk Backend SDK - REST Client for Backend API & JWT verification utilities",
"homepage": "https://clerk.com/",
"bugs": {
@@ -95,13 +95,13 @@
"test:cloudflare-workerd": "tests/cloudflare-workerd/run.sh"
},
"dependencies": {
- "@clerk/shared": "2.0.0-alpha-v5.6",
+ "@clerk/shared": "2.0.0-alpha-v5.7",
"cookie": "0.5.0",
"snakecase-keys": "5.4.4",
"tslib": "2.4.1"
},
"devDependencies": {
- "@clerk/types": "4.0.0-alpha-v5.10",
+ "@clerk/types": "4.0.0-alpha-v5.11",
"@cloudflare/workers-types": "^3.18.0",
"@types/chai": "^4.3.3",
"@types/cookie": "^0.5.1",
diff --git a/packages/chrome-extension/CHANGELOG.md b/packages/chrome-extension/CHANGELOG.md
index 355c6de6cf..c557a36894 100644
--- a/packages/chrome-extension/CHANGELOG.md
+++ b/packages/chrome-extension/CHANGELOG.md
@@ -1,5 +1,18 @@
# Change Log
+## 1.0.0-alpha-v5.11
+
+### Major Changes
+
+- Remove hashing and third-party cookie functionality related to development instance session syncing in favor of URL-based session syncing with query parameters. ([#2367](https://github.com/clerk/javascript/pull/2367)) by [@tmilewski](https://github.com/tmilewski)
+
+### Patch Changes
+
+- Updated dependencies [[`2a67f729d`](https://github.com/clerk/javascript/commit/2a67f729da58b3400df24da634fc4bf786065f25), [`e7414cb3f`](https://github.com/clerk/javascript/commit/e7414cb3f34c76b785ff3147fc5f609a48466111), [`5f58a2274`](https://github.com/clerk/javascript/commit/5f58a22746aba94f76bef5dbbc94fa93ea3b0b7e), [`5f58a2274`](https://github.com/clerk/javascript/commit/5f58a22746aba94f76bef5dbbc94fa93ea3b0b7e)]:
+ - @clerk/clerk-react@5.0.0-alpha-v5.11
+ - @clerk/clerk-js@5.0.0-alpha-v5.11
+ - @clerk/shared@2.0.0-alpha-v5.7
+
## 1.0.0-alpha-v5.10
### Major Changes
diff --git a/packages/chrome-extension/package.json b/packages/chrome-extension/package.json
index f09d118652..a211c50da9 100644
--- a/packages/chrome-extension/package.json
+++ b/packages/chrome-extension/package.json
@@ -1,6 +1,6 @@
{
"name": "@clerk/chrome-extension",
- "version": "1.0.0-alpha-v5.10",
+ "version": "1.0.0-alpha-v5.11",
"description": "Clerk SDK for Chrome extensions",
"keywords": [
"auth",
@@ -44,9 +44,9 @@
"test:coverage": "jest --collectCoverage && open coverage/lcov-report/index.html"
},
"dependencies": {
- "@clerk/clerk-js": "5.0.0-alpha-v5.10",
- "@clerk/clerk-react": "5.0.0-alpha-v5.10",
- "@clerk/shared": "2.0.0-alpha-v5.6",
+ "@clerk/clerk-js": "5.0.0-alpha-v5.11",
+ "@clerk/clerk-react": "5.0.0-alpha-v5.11",
+ "@clerk/shared": "2.0.0-alpha-v5.7",
"webextension-polyfill": "^0.10.0"
},
"devDependencies": {
diff --git a/packages/clerk-js/CHANGELOG.md b/packages/clerk-js/CHANGELOG.md
index d032b7d63b..f773a1aa3b 100644
--- a/packages/clerk-js/CHANGELOG.md
+++ b/packages/clerk-js/CHANGELOG.md
@@ -1,5 +1,23 @@
# Change Log
+## 5.0.0-alpha-v5.11
+
+### Major Changes
+
+- Remove hashing and third-party cookie functionality related to development instance session syncing in favor of URL-based session syncing with query parameters. ([#2367](https://github.com/clerk/javascript/pull/2367)) by [@tmilewski](https://github.com/tmilewski)
+
+- - `buildUrlWithAuth` no longer accepts an `options` argument. ([#2367](https://github.com/clerk/javascript/pull/2367)) by [@tmilewski](https://github.com/tmilewski)
+
+### Patch Changes
+
+- Remove legacy roles fallback ([#2385](https://github.com/clerk/javascript/pull/2385)) by [@panteliselef](https://github.com/panteliselef)
+
+ After the release of Custom Roles, roles should always be dynamically fetched.
+
+- Updated dependencies [[`5f58a2274`](https://github.com/clerk/javascript/commit/5f58a22746aba94f76bef5dbbc94fa93ea3b0b7e), [`a9fe242be`](https://github.com/clerk/javascript/commit/a9fe242be4dbaaa02c6643fea0688f1fb23f23e7), [`5f58a2274`](https://github.com/clerk/javascript/commit/5f58a22746aba94f76bef5dbbc94fa93ea3b0b7e), [`a9fe242be`](https://github.com/clerk/javascript/commit/a9fe242be4dbaaa02c6643fea0688f1fb23f23e7)]:
+ - @clerk/types@4.0.0-alpha-v5.11
+ - @clerk/shared@2.0.0-alpha-v5.7
+
## 5.0.0-alpha-v5.10
### Major Changes
diff --git a/packages/clerk-js/package.json b/packages/clerk-js/package.json
index 3c11512014..55356f14b6 100644
--- a/packages/clerk-js/package.json
+++ b/packages/clerk-js/package.json
@@ -1,6 +1,6 @@
{
"name": "@clerk/clerk-js",
- "version": "5.0.0-alpha-v5.10",
+ "version": "5.0.0-alpha-v5.11",
"description": "Clerk JS library",
"keywords": [
"clerk",
@@ -51,8 +51,8 @@
"browserslist": "last 2 versions, ios_saf > 12, Safari > 12, > 1%, not dead, not ie > 0",
"dependencies": {
"@clerk/localizations": "2.0.0-alpha-v5.7",
- "@clerk/shared": "2.0.0-alpha-v5.6",
- "@clerk/types": "4.0.0-alpha-v5.10",
+ "@clerk/shared": "2.0.0-alpha-v5.7",
+ "@clerk/types": "4.0.0-alpha-v5.11",
"@emotion/cache": "11.11.0",
"@emotion/react": "11.11.1",
"@floating-ui/react": "0.25.4",
diff --git a/packages/elements/CHANGELOG.md b/packages/elements/CHANGELOG.md
new file mode 100644
index 0000000000..658c5a014e
--- /dev/null
+++ b/packages/elements/CHANGELOG.md
@@ -0,0 +1,8 @@
+# @clerk/elements
+
+## 0.0.2-alpha-v5.0
+
+### Patch Changes
+
+- Updated dependencies [[`2a67f729d`](https://github.com/clerk/javascript/commit/2a67f729da58b3400df24da634fc4bf786065f25), [`5f58a2274`](https://github.com/clerk/javascript/commit/5f58a22746aba94f76bef5dbbc94fa93ea3b0b7e), [`5f58a2274`](https://github.com/clerk/javascript/commit/5f58a22746aba94f76bef5dbbc94fa93ea3b0b7e)]:
+ - @clerk/clerk-react@5.0.0-alpha-v5.11
diff --git a/packages/elements/package.json b/packages/elements/package.json
index fe9635ece7..dc28d3c9b8 100644
--- a/packages/elements/package.json
+++ b/packages/elements/package.json
@@ -1,6 +1,6 @@
{
"name": "@clerk/elements",
- "version": "0.0.1",
+ "version": "0.0.2-alpha-v5.0",
"private": true,
"description": "Clerk Elements",
"keywords": [
@@ -58,7 +58,7 @@
"test:cache:clear": "jest --clearCache --useStderr"
},
"dependencies": {
- "@clerk/clerk-react": "5.0.0-alpha-v5.10"
+ "@clerk/clerk-react": "5.0.0-alpha-v5.11"
},
"devDependencies": {
"@types/node": "^18.17.0",
diff --git a/packages/expo/CHANGELOG.md b/packages/expo/CHANGELOG.md
index b9953fa6f3..ac2eea3fb7 100644
--- a/packages/expo/CHANGELOG.md
+++ b/packages/expo/CHANGELOG.md
@@ -1,5 +1,14 @@
# Change Log
+## 1.0.0-alpha-v5.11
+
+### Patch Changes
+
+- Updated dependencies [[`2a67f729d`](https://github.com/clerk/javascript/commit/2a67f729da58b3400df24da634fc4bf786065f25), [`e7414cb3f`](https://github.com/clerk/javascript/commit/e7414cb3f34c76b785ff3147fc5f609a48466111), [`5f58a2274`](https://github.com/clerk/javascript/commit/5f58a22746aba94f76bef5dbbc94fa93ea3b0b7e), [`5f58a2274`](https://github.com/clerk/javascript/commit/5f58a22746aba94f76bef5dbbc94fa93ea3b0b7e)]:
+ - @clerk/clerk-react@5.0.0-alpha-v5.11
+ - @clerk/clerk-js@5.0.0-alpha-v5.11
+ - @clerk/shared@2.0.0-alpha-v5.7
+
## 1.0.0-alpha-v5.10
### Major Changes
diff --git a/packages/expo/package.json b/packages/expo/package.json
index 4e106a7cac..d62d114b72 100644
--- a/packages/expo/package.json
+++ b/packages/expo/package.json
@@ -1,6 +1,6 @@
{
"name": "@clerk/clerk-expo",
- "version": "1.0.0-alpha-v5.10",
+ "version": "1.0.0-alpha-v5.11",
"description": "Clerk React Native/Expo library",
"keywords": [
"react",
@@ -39,14 +39,14 @@
"publish:local": "npx yalc push --replace --sig"
},
"dependencies": {
- "@clerk/clerk-js": "5.0.0-alpha-v5.10",
- "@clerk/clerk-react": "5.0.0-alpha-v5.10",
- "@clerk/shared": "2.0.0-alpha-v5.6",
+ "@clerk/clerk-js": "5.0.0-alpha-v5.11",
+ "@clerk/clerk-react": "5.0.0-alpha-v5.11",
+ "@clerk/shared": "2.0.0-alpha-v5.7",
"base-64": "^1.0.0",
"react-native-url-polyfill": "2.0.0"
},
"devDependencies": {
- "@clerk/types": "^4.0.0-alpha-v5.10",
+ "@clerk/types": "^4.0.0-alpha-v5.11",
"@types/base-64": "^1.0.2",
"@types/node": "^18.17.0",
"@types/react": "*",
diff --git a/packages/fastify/CHANGELOG.md b/packages/fastify/CHANGELOG.md
index 9c3c3f37ea..7136b9ac4c 100644
--- a/packages/fastify/CHANGELOG.md
+++ b/packages/fastify/CHANGELOG.md
@@ -1,5 +1,81 @@
# Change Log
+## 1.0.0-alpha-v5.12
+
+### Major Changes
+
+- Changes in exports of `@clerk/backend`: ([#2363](https://github.com/clerk/javascript/pull/2363)) by [@dimkl](https://github.com/dimkl)
+
+ - Expose the following helpers and enums from `@clerk/backend/internal`:
+ ```typescript
+ import {
+ AuthStatus,
+ buildRequestUrl,
+ constants,
+ createAuthenticateRequest,
+ createIsomorphicRequest,
+ debugRequestState,
+ makeAuthObjectSerializable,
+ prunePrivateMetadata,
+ redirect,
+ sanitizeAuthObject,
+ signedInAuthObject,
+ signedOutAuthObject,
+ } from '@clerk/backend/internal';
+ ```
+ - Drop the above exports from the top-level api:
+ ```typescript
+ // Before
+ import { AuthStatus, ... } from '@clerk/backend';
+ // After
+ import { AuthStatus, ... } from '@clerk/backend/internal';
+ ```
+ Dropping those exports results in also dropping the exports from `gatsby-plugin-clerk`, `@clerk/clerk-sdk-node`, `@clerk/backend`, `@clerk/fastify`, `@clerk/nextjs`, `@clerk/remix` packages.
+
+- Changes in exports of `@clerk/backend`: ([#2365](https://github.com/clerk/javascript/pull/2365)) by [@dimkl](https://github.com/dimkl)
+
+ - Drop the following internal exports from the top-level api:
+ ```typescript
+ // Before
+ import {
+ AllowlistIdentifier,
+ Client,
+ DeletedObject,
+ Email,
+ EmailAddress,
+ ExternalAccount,
+ IdentificationLink,
+ Invitation,
+ OauthAccessToken,
+ ObjectType,
+ Organization,
+ OrganizationInvitation,
+ OrganizationMembership,
+ OrganizationMembershipPublicUserData,
+ PhoneNumber,
+ RedirectUrl,
+ SMSMessage,
+ Session,
+ SignInToken,
+ Token,
+ User,
+ Verification,
+ } from '@clerk/backend';
+ // After : no alternative since there is no need to use those classes
+ ```
+ Dropping those exports results in also dropping the exports from `gatsby-plugin-clerk`, `@clerk/clerk-sdk-node`, `@clerk/backend`, `@clerk/fastify`, `@clerk/nextjs`, `@clerk/remix` packages.
+ - Keep those 3 resource related type exports
+ ```typescript
+ import type { Organization, Session, User, WebhookEvent, WebhookEventType } from '@clerk/backend';
+ ```
+
+### Patch Changes
+
+- Updated dependencies [[`a9fe242be`](https://github.com/clerk/javascript/commit/a9fe242be4dbaaa02c6643fea0688f1fb23f23e7), [`5f58a2274`](https://github.com/clerk/javascript/commit/5f58a22746aba94f76bef5dbbc94fa93ea3b0b7e), [`1e98187b4`](https://github.com/clerk/javascript/commit/1e98187b4fba0f872576510d7bccf8b75a2579bd), [`d08ec6d8f`](https://github.com/clerk/javascript/commit/d08ec6d8f52a2bc037c0eb586123a9f7816e4b64), [`a9fe242be`](https://github.com/clerk/javascript/commit/a9fe242be4dbaaa02c6643fea0688f1fb23f23e7), [`5f58a2274`](https://github.com/clerk/javascript/commit/5f58a22746aba94f76bef5dbbc94fa93ea3b0b7e), [`a9fe242be`](https://github.com/clerk/javascript/commit/a9fe242be4dbaaa02c6643fea0688f1fb23f23e7), [`0ec3a146c`](https://github.com/clerk/javascript/commit/0ec3a146cc4cbe4a80d1f990a440431ae4490183), [`1ad910eb9`](https://github.com/clerk/javascript/commit/1ad910eb92dce056731f29df0caaaad74d08bd7f), [`f58a9949b`](https://github.com/clerk/javascript/commit/f58a9949bc78737ca4e096ed5501b4e578a2d493), [`9b02c1aae`](https://github.com/clerk/javascript/commit/9b02c1aae1cae286ea305c5e216ae93cbbbc0f90)]:
+ - @clerk/backend@1.0.0-alpha-v5.10
+ - @clerk/types@4.0.0-alpha-v5.11
+ - @clerk/shared@2.0.0-alpha-v5.7
+
## 1.0.0-alpha-v5.11
### Patch Changes
diff --git a/packages/fastify/package.json b/packages/fastify/package.json
index ce6474c646..b208b77690 100644
--- a/packages/fastify/package.json
+++ b/packages/fastify/package.json
@@ -1,6 +1,6 @@
{
"name": "@clerk/fastify",
- "version": "1.0.0-alpha-v5.11",
+ "version": "1.0.0-alpha-v5.12",
"description": "Clerk SDK for Fastify",
"keywords": [
"auth",
@@ -40,9 +40,9 @@
"test:cache:clear": "jest --clearCache --useStderr"
},
"dependencies": {
- "@clerk/backend": "1.0.0-alpha-v5.9",
- "@clerk/shared": "2.0.0-alpha-v5.6",
- "@clerk/types": "4.0.0-alpha-v5.10",
+ "@clerk/backend": "1.0.0-alpha-v5.10",
+ "@clerk/shared": "2.0.0-alpha-v5.7",
+ "@clerk/types": "4.0.0-alpha-v5.11",
"cookies": "0.8.0"
},
"devDependencies": {
diff --git a/packages/gatsby-plugin-clerk/CHANGELOG.md b/packages/gatsby-plugin-clerk/CHANGELOG.md
index 4d1d2af174..5575d7db9a 100644
--- a/packages/gatsby-plugin-clerk/CHANGELOG.md
+++ b/packages/gatsby-plugin-clerk/CHANGELOG.md
@@ -1,5 +1,81 @@
# Change Log
+## 5.0.0-alpha-v5.12
+
+### Major Changes
+
+- Changes in exports of `@clerk/backend`: ([#2363](https://github.com/clerk/javascript/pull/2363)) by [@dimkl](https://github.com/dimkl)
+
+ - Expose the following helpers and enums from `@clerk/backend/internal`:
+ ```typescript
+ import {
+ AuthStatus,
+ buildRequestUrl,
+ constants,
+ createAuthenticateRequest,
+ createIsomorphicRequest,
+ debugRequestState,
+ makeAuthObjectSerializable,
+ prunePrivateMetadata,
+ redirect,
+ sanitizeAuthObject,
+ signedInAuthObject,
+ signedOutAuthObject,
+ } from '@clerk/backend/internal';
+ ```
+ - Drop the above exports from the top-level api:
+ ```typescript
+ // Before
+ import { AuthStatus, ... } from '@clerk/backend';
+ // After
+ import { AuthStatus, ... } from '@clerk/backend/internal';
+ ```
+ Dropping those exports results in also dropping the exports from `gatsby-plugin-clerk`, `@clerk/clerk-sdk-node`, `@clerk/backend`, `@clerk/fastify`, `@clerk/nextjs`, `@clerk/remix` packages.
+
+- Changes in exports of `@clerk/backend`: ([#2365](https://github.com/clerk/javascript/pull/2365)) by [@dimkl](https://github.com/dimkl)
+
+ - Drop the following internal exports from the top-level api:
+ ```typescript
+ // Before
+ import {
+ AllowlistIdentifier,
+ Client,
+ DeletedObject,
+ Email,
+ EmailAddress,
+ ExternalAccount,
+ IdentificationLink,
+ Invitation,
+ OauthAccessToken,
+ ObjectType,
+ Organization,
+ OrganizationInvitation,
+ OrganizationMembership,
+ OrganizationMembershipPublicUserData,
+ PhoneNumber,
+ RedirectUrl,
+ SMSMessage,
+ Session,
+ SignInToken,
+ Token,
+ User,
+ Verification,
+ } from '@clerk/backend';
+ // After : no alternative since there is no need to use those classes
+ ```
+ Dropping those exports results in also dropping the exports from `gatsby-plugin-clerk`, `@clerk/clerk-sdk-node`, `@clerk/backend`, `@clerk/fastify`, `@clerk/nextjs`, `@clerk/remix` packages.
+ - Keep those 3 resource related type exports
+ ```typescript
+ import type { Organization, Session, User, WebhookEvent, WebhookEventType } from '@clerk/backend';
+ ```
+
+### Patch Changes
+
+- Updated dependencies [[`2a67f729d`](https://github.com/clerk/javascript/commit/2a67f729da58b3400df24da634fc4bf786065f25), [`a9fe242be`](https://github.com/clerk/javascript/commit/a9fe242be4dbaaa02c6643fea0688f1fb23f23e7), [`9b02c1aae`](https://github.com/clerk/javascript/commit/9b02c1aae1cae286ea305c5e216ae93cbbbc0f90), [`1e98187b4`](https://github.com/clerk/javascript/commit/1e98187b4fba0f872576510d7bccf8b75a2579bd), [`d08ec6d8f`](https://github.com/clerk/javascript/commit/d08ec6d8f52a2bc037c0eb586123a9f7816e4b64), [`5f58a2274`](https://github.com/clerk/javascript/commit/5f58a22746aba94f76bef5dbbc94fa93ea3b0b7e), [`5f58a2274`](https://github.com/clerk/javascript/commit/5f58a22746aba94f76bef5dbbc94fa93ea3b0b7e), [`a9fe242be`](https://github.com/clerk/javascript/commit/a9fe242be4dbaaa02c6643fea0688f1fb23f23e7), [`0ec3a146c`](https://github.com/clerk/javascript/commit/0ec3a146cc4cbe4a80d1f990a440431ae4490183), [`1ad910eb9`](https://github.com/clerk/javascript/commit/1ad910eb92dce056731f29df0caaaad74d08bd7f), [`f58a9949b`](https://github.com/clerk/javascript/commit/f58a9949bc78737ca4e096ed5501b4e578a2d493), [`9b02c1aae`](https://github.com/clerk/javascript/commit/9b02c1aae1cae286ea305c5e216ae93cbbbc0f90), [`a86a5fc3f`](https://github.com/clerk/javascript/commit/a86a5fc3ff45e082c52b77c49b7f04b8587e6690)]:
+ - @clerk/clerk-react@5.0.0-alpha-v5.11
+ - @clerk/backend@1.0.0-alpha-v5.10
+ - @clerk/clerk-sdk-node@5.0.0-alpha-v5.10
+
## 5.0.0-alpha-v5.11
### Patch Changes
diff --git a/packages/gatsby-plugin-clerk/package.json b/packages/gatsby-plugin-clerk/package.json
index 294af74bc3..0d7d812954 100644
--- a/packages/gatsby-plugin-clerk/package.json
+++ b/packages/gatsby-plugin-clerk/package.json
@@ -1,6 +1,6 @@
{
"name": "gatsby-plugin-clerk",
- "version": "5.0.0-alpha-v5.11",
+ "version": "5.0.0-alpha-v5.12",
"description": "Clerk SDK for Gatsby",
"keywords": [
"clerk",
@@ -44,14 +44,14 @@
"publish:local": "npx yalc push --replace --sig"
},
"dependencies": {
- "@clerk/backend": "1.0.0-alpha-v5.9",
- "@clerk/clerk-react": "5.0.0-alpha-v5.10",
- "@clerk/clerk-sdk-node": "5.0.0-alpha-v5.9",
+ "@clerk/backend": "1.0.0-alpha-v5.10",
+ "@clerk/clerk-react": "5.0.0-alpha-v5.11",
+ "@clerk/clerk-sdk-node": "5.0.0-alpha-v5.10",
"cookie": "0.5.0",
"tslib": "2.4.1"
},
"devDependencies": {
- "@clerk/types": "4.0.0-alpha-v5.10",
+ "@clerk/types": "4.0.0-alpha-v5.11",
"@types/cookie": "^0.5.0",
"@types/node": "^18.17.0",
"eslint-config-custom": "*",
diff --git a/packages/localizations/package.json b/packages/localizations/package.json
index 51a7fce61f..5e0674d653 100644
--- a/packages/localizations/package.json
+++ b/packages/localizations/package.json
@@ -87,7 +87,7 @@
"lint": "eslint src/"
},
"devDependencies": {
- "@clerk/types": "4.0.0-alpha-v5.10",
+ "@clerk/types": "4.0.0-alpha-v5.11",
"@types/node": "^18.17.0",
"eslint-config-custom": "*",
"tsup": "*",
diff --git a/packages/nextjs/CHANGELOG.md b/packages/nextjs/CHANGELOG.md
index f04edc8f1c..f602f3f482 100644
--- a/packages/nextjs/CHANGELOG.md
+++ b/packages/nextjs/CHANGELOG.md
@@ -1,5 +1,140 @@
# Change Log
+## 5.0.0-alpha-v5.12
+
+### Major Changes
+
+- Remove hashing and third-party cookie functionality related to development instance session syncing in favor of URL-based session syncing with query parameters. ([#2367](https://github.com/clerk/javascript/pull/2367)) by [@tmilewski](https://github.com/tmilewski)
+
+- Change return values of `signJwt`, `hasValidSignature`, `decodeJwt`, `verifyJwt` ([#2377](https://github.com/clerk/javascript/pull/2377)) by [@dimkl](https://github.com/dimkl)
+
+ to return `{ data, error }`. Example of keeping the same behavior using those utilities:
+
+ ```typescript
+ import { signJwt, hasValidSignature, decodeJwt, verifyJwt } from '@clerk/backend/jwt';
+
+ const { data, error } = await signJwt(...)
+ if (error) throw error;
+
+ const { data, error } = await hasValidSignature(...)
+ if (error) throw error;
+
+ const { data, error } = decodeJwt(...)
+ if (error) throw error;
+
+ const { data, error } = await verifyJwt(...)
+ if (error) throw error;
+ ```
+
+- Changes in exports of `@clerk/backend`: ([#2363](https://github.com/clerk/javascript/pull/2363)) by [@dimkl](https://github.com/dimkl)
+
+ - Expose the following helpers and enums from `@clerk/backend/internal`:
+ ```typescript
+ import {
+ AuthStatus,
+ buildRequestUrl,
+ constants,
+ createAuthenticateRequest,
+ createIsomorphicRequest,
+ debugRequestState,
+ makeAuthObjectSerializable,
+ prunePrivateMetadata,
+ redirect,
+ sanitizeAuthObject,
+ signedInAuthObject,
+ signedOutAuthObject,
+ } from '@clerk/backend/internal';
+ ```
+ - Drop the above exports from the top-level api:
+ ```typescript
+ // Before
+ import { AuthStatus, ... } from '@clerk/backend';
+ // After
+ import { AuthStatus, ... } from '@clerk/backend/internal';
+ ```
+ Dropping those exports results in also dropping the exports from `gatsby-plugin-clerk`, `@clerk/clerk-sdk-node`, `@clerk/backend`, `@clerk/fastify`, `@clerk/nextjs`, `@clerk/remix` packages.
+
+- Changes in exports of `@clerk/backend`: ([#2365](https://github.com/clerk/javascript/pull/2365)) by [@dimkl](https://github.com/dimkl)
+
+ - Drop the following internal exports from the top-level api:
+ ```typescript
+ // Before
+ import {
+ AllowlistIdentifier,
+ Client,
+ DeletedObject,
+ Email,
+ EmailAddress,
+ ExternalAccount,
+ IdentificationLink,
+ Invitation,
+ OauthAccessToken,
+ ObjectType,
+ Organization,
+ OrganizationInvitation,
+ OrganizationMembership,
+ OrganizationMembershipPublicUserData,
+ PhoneNumber,
+ RedirectUrl,
+ SMSMessage,
+ Session,
+ SignInToken,
+ Token,
+ User,
+ Verification,
+ } from '@clerk/backend';
+ // After : no alternative since there is no need to use those classes
+ ```
+ Dropping those exports results in also dropping the exports from `gatsby-plugin-clerk`, `@clerk/clerk-sdk-node`, `@clerk/backend`, `@clerk/fastify`, `@clerk/nextjs`, `@clerk/remix` packages.
+ - Keep those 3 resource related type exports
+ ```typescript
+ import type { Organization, Session, User, WebhookEvent, WebhookEventType } from '@clerk/backend';
+ ```
+
+- Changes in exports of `@clerk/backend`: ([#2364](https://github.com/clerk/javascript/pull/2364)) by [@dimkl](https://github.com/dimkl)
+
+ - Expose the following helpers and enums from `@clerk/backend/jwt`:
+ ```typescript
+ import { decodeJwt, hasValidSignature, signJwt, verifyJwt } from '@clerk/backend/jwt';
+ ```
+ - Drop the above exports from the top-level api:
+ ```typescript
+ // Before
+ import { decodeJwt, ... } from '@clerk/backend';
+ // After
+ import { decodeJwt, ... } from '@clerk/backend/jwt';
+ ```
+ Dropping those exports results in also dropping the exports from `gatsby-plugin-clerk`, `@clerk/clerk-sdk-node`, `@clerk/backend`, `@clerk/fastify`, `@clerk/nextjs`, `@clerk/remix` packages.
+
+- Changes in `@clerk/backend` exports: ([#2362](https://github.com/clerk/javascript/pull/2362)) by [@dimkl](https://github.com/dimkl)
+
+ - Drop Internal `deserialize` helper
+ - Introduce `/errors` subpath export, eg:
+ ```typescript
+ import {
+ TokenVerificationError,
+ TokenVerificationErrorAction,
+ TokenVerificationErrorCode,
+ TokenVerificationErrorReason,
+ } from '@clerk/backend/errors';
+ ```
+ - Drop errors from top-level export
+ ```typescript
+ // Before
+ import { TokenVerificationError, TokenVerificationErrorReason } from '@clerk/backend';
+ // After
+ import { TokenVerificationError, TokenVerificationErrorReason } from '@clerk/backend/errors';
+ ```
+
+- Use `NEXT_PUBLIC_CLERK_JS_URL` instead of `NEXT_PUBLIC_CLERK_JS` to pin a specific @clerk/clerk-js version. ([#2374](https://github.com/clerk/javascript/pull/2374)) by [@SokratisVidros](https://github.com/SokratisVidros)
+
+### Patch Changes
+
+- Updated dependencies [[`2a67f729d`](https://github.com/clerk/javascript/commit/2a67f729da58b3400df24da634fc4bf786065f25), [`a9fe242be`](https://github.com/clerk/javascript/commit/a9fe242be4dbaaa02c6643fea0688f1fb23f23e7), [`1e98187b4`](https://github.com/clerk/javascript/commit/1e98187b4fba0f872576510d7bccf8b75a2579bd), [`d08ec6d8f`](https://github.com/clerk/javascript/commit/d08ec6d8f52a2bc037c0eb586123a9f7816e4b64), [`5f58a2274`](https://github.com/clerk/javascript/commit/5f58a22746aba94f76bef5dbbc94fa93ea3b0b7e), [`5f58a2274`](https://github.com/clerk/javascript/commit/5f58a22746aba94f76bef5dbbc94fa93ea3b0b7e), [`a9fe242be`](https://github.com/clerk/javascript/commit/a9fe242be4dbaaa02c6643fea0688f1fb23f23e7), [`0ec3a146c`](https://github.com/clerk/javascript/commit/0ec3a146cc4cbe4a80d1f990a440431ae4490183), [`1ad910eb9`](https://github.com/clerk/javascript/commit/1ad910eb92dce056731f29df0caaaad74d08bd7f), [`f58a9949b`](https://github.com/clerk/javascript/commit/f58a9949bc78737ca4e096ed5501b4e578a2d493), [`9b02c1aae`](https://github.com/clerk/javascript/commit/9b02c1aae1cae286ea305c5e216ae93cbbbc0f90)]:
+ - @clerk/clerk-react@5.0.0-alpha-v5.11
+ - @clerk/backend@1.0.0-alpha-v5.10
+ - @clerk/shared@2.0.0-alpha-v5.7
+
## 5.0.0-alpha-v5.11
### Major Changes
diff --git a/packages/nextjs/package.json b/packages/nextjs/package.json
index 3b88541e44..5aed024d25 100644
--- a/packages/nextjs/package.json
+++ b/packages/nextjs/package.json
@@ -1,6 +1,6 @@
{
"name": "@clerk/nextjs",
- "version": "5.0.0-alpha-v5.11",
+ "version": "5.0.0-alpha-v5.12",
"description": "Clerk SDK for NextJS",
"keywords": [
"clerk",
@@ -62,13 +62,13 @@
"test:ci": "jest --maxWorkers=70%"
},
"dependencies": {
- "@clerk/backend": "1.0.0-alpha-v5.9",
- "@clerk/clerk-react": "5.0.0-alpha-v5.10",
- "@clerk/shared": "2.0.0-alpha-v5.6",
+ "@clerk/backend": "1.0.0-alpha-v5.10",
+ "@clerk/clerk-react": "5.0.0-alpha-v5.11",
+ "@clerk/shared": "2.0.0-alpha-v5.7",
"path-to-regexp": "6.2.1"
},
"devDependencies": {
- "@clerk/types": "4.0.0-alpha-v5.10",
+ "@clerk/types": "4.0.0-alpha-v5.11",
"@types/node": "^18.17.0",
"@types/react": "*",
"@types/react-dom": "*",
diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md
index a00b4f9d89..94d376fcc2 100644
--- a/packages/react/CHANGELOG.md
+++ b/packages/react/CHANGELOG.md
@@ -1,5 +1,55 @@
# Change Log
+## 5.0.0-alpha-v5.11
+
+### Major Changes
+
+- Replace the `signOutCallback` prop on the `` with `redirectUrl`. This aligns the API surface with other UI components provided by `@clerk/clerk-react`. ([#2348](https://github.com/clerk/javascript/pull/2348)) by [@LekoArts](https://github.com/LekoArts)
+
+ If you previously used the `signOutCallback` prop to navigate to another page, you can migrate as shown below.
+
+ Before:
+
+ ```jsx
+ import { SignOutButton } from '@clerk/clerk-react';
+
+ export const Signout = () => {
+ return (
+ {
+ window.location.href = '/your-path';
+ }}
+ >
+
+
+ );
+ };
+ ```
+
+ After:
+
+ ```jsx
+ import { SignOutButton } from '@clerk/clerk-react';
+
+ export const Signout = () => {
+ return (
+
+
+
+ );
+ };
+ ```
+
+- Remove hashing and third-party cookie functionality related to development instance session syncing in favor of URL-based session syncing with query parameters. ([#2367](https://github.com/clerk/javascript/pull/2367)) by [@tmilewski](https://github.com/tmilewski)
+
+- - `buildUrlWithAuth` no longer accepts an `options` argument. ([#2367](https://github.com/clerk/javascript/pull/2367)) by [@tmilewski](https://github.com/tmilewski)
+
+### Patch Changes
+
+- Updated dependencies [[`5f58a2274`](https://github.com/clerk/javascript/commit/5f58a22746aba94f76bef5dbbc94fa93ea3b0b7e), [`a9fe242be`](https://github.com/clerk/javascript/commit/a9fe242be4dbaaa02c6643fea0688f1fb23f23e7), [`5f58a2274`](https://github.com/clerk/javascript/commit/5f58a22746aba94f76bef5dbbc94fa93ea3b0b7e), [`a9fe242be`](https://github.com/clerk/javascript/commit/a9fe242be4dbaaa02c6643fea0688f1fb23f23e7)]:
+ - @clerk/types@4.0.0-alpha-v5.11
+ - @clerk/shared@2.0.0-alpha-v5.7
+
## 5.0.0-alpha-v5.10
### Major Changes
diff --git a/packages/react/package.json b/packages/react/package.json
index e94619b86f..5149b604eb 100644
--- a/packages/react/package.json
+++ b/packages/react/package.json
@@ -1,6 +1,6 @@
{
"name": "@clerk/clerk-react",
- "version": "5.0.0-alpha-v5.10",
+ "version": "5.0.0-alpha-v5.11",
"description": "Clerk React library",
"keywords": [
"clerk",
@@ -76,8 +76,8 @@
"test:ci": "jest --maxWorkers=70%"
},
"dependencies": {
- "@clerk/shared": "2.0.0-alpha-v5.6",
- "@clerk/types": "4.0.0-alpha-v5.10",
+ "@clerk/shared": "2.0.0-alpha-v5.7",
+ "@clerk/types": "4.0.0-alpha-v5.11",
"eslint-config-custom": "*",
"semver": "^7.5.4",
"tslib": "2.4.1"
diff --git a/packages/remix/CHANGELOG.md b/packages/remix/CHANGELOG.md
index 12285ce09c..fda976c32e 100644
--- a/packages/remix/CHANGELOG.md
+++ b/packages/remix/CHANGELOG.md
@@ -1,5 +1,94 @@
# Change Log
+## 4.0.0-alpha-v5.12
+
+### Major Changes
+
+- Update `@clerk/remix`'s `rootAuthLoader` and `getAuth` helpers to handle handshake auth status, this replaces the previous interstitial flow. As a result of this, the `ClerkErrorBoundary` is no longer necessary and has been removed. ([#2380](https://github.com/clerk/javascript/pull/2380)) by [@BRKalow](https://github.com/BRKalow)
+
+ To migrate, remove usage of `ClerkErrorBoundary`:
+
+ ```diff
+ - import { ClerkApp, ClerkErrorBoundary } from "@clerk/remix";
+ + import { ClerkApp } from "@clerk/remix";
+
+ ...
+
+ - export const ErrorBoundary = ClerkErrorBoundary();
+ ```
+
+- Changes in exports of `@clerk/backend`: ([#2363](https://github.com/clerk/javascript/pull/2363)) by [@dimkl](https://github.com/dimkl)
+
+ - Expose the following helpers and enums from `@clerk/backend/internal`:
+ ```typescript
+ import {
+ AuthStatus,
+ buildRequestUrl,
+ constants,
+ createAuthenticateRequest,
+ createIsomorphicRequest,
+ debugRequestState,
+ makeAuthObjectSerializable,
+ prunePrivateMetadata,
+ redirect,
+ sanitizeAuthObject,
+ signedInAuthObject,
+ signedOutAuthObject,
+ } from '@clerk/backend/internal';
+ ```
+ - Drop the above exports from the top-level api:
+ ```typescript
+ // Before
+ import { AuthStatus, ... } from '@clerk/backend';
+ // After
+ import { AuthStatus, ... } from '@clerk/backend/internal';
+ ```
+ Dropping those exports results in also dropping the exports from `gatsby-plugin-clerk`, `@clerk/clerk-sdk-node`, `@clerk/backend`, `@clerk/fastify`, `@clerk/nextjs`, `@clerk/remix` packages.
+
+- Changes in exports of `@clerk/backend`: ([#2365](https://github.com/clerk/javascript/pull/2365)) by [@dimkl](https://github.com/dimkl)
+
+ - Drop the following internal exports from the top-level api:
+ ```typescript
+ // Before
+ import {
+ AllowlistIdentifier,
+ Client,
+ DeletedObject,
+ Email,
+ EmailAddress,
+ ExternalAccount,
+ IdentificationLink,
+ Invitation,
+ OauthAccessToken,
+ ObjectType,
+ Organization,
+ OrganizationInvitation,
+ OrganizationMembership,
+ OrganizationMembershipPublicUserData,
+ PhoneNumber,
+ RedirectUrl,
+ SMSMessage,
+ Session,
+ SignInToken,
+ Token,
+ User,
+ Verification,
+ } from '@clerk/backend';
+ // After : no alternative since there is no need to use those classes
+ ```
+ Dropping those exports results in also dropping the exports from `gatsby-plugin-clerk`, `@clerk/clerk-sdk-node`, `@clerk/backend`, `@clerk/fastify`, `@clerk/nextjs`, `@clerk/remix` packages.
+ - Keep those 3 resource related type exports
+ ```typescript
+ import type { Organization, Session, User, WebhookEvent, WebhookEventType } from '@clerk/backend';
+ ```
+
+### Patch Changes
+
+- Updated dependencies [[`2a67f729d`](https://github.com/clerk/javascript/commit/2a67f729da58b3400df24da634fc4bf786065f25), [`a9fe242be`](https://github.com/clerk/javascript/commit/a9fe242be4dbaaa02c6643fea0688f1fb23f23e7), [`1e98187b4`](https://github.com/clerk/javascript/commit/1e98187b4fba0f872576510d7bccf8b75a2579bd), [`d08ec6d8f`](https://github.com/clerk/javascript/commit/d08ec6d8f52a2bc037c0eb586123a9f7816e4b64), [`5f58a2274`](https://github.com/clerk/javascript/commit/5f58a22746aba94f76bef5dbbc94fa93ea3b0b7e), [`5f58a2274`](https://github.com/clerk/javascript/commit/5f58a22746aba94f76bef5dbbc94fa93ea3b0b7e), [`a9fe242be`](https://github.com/clerk/javascript/commit/a9fe242be4dbaaa02c6643fea0688f1fb23f23e7), [`0ec3a146c`](https://github.com/clerk/javascript/commit/0ec3a146cc4cbe4a80d1f990a440431ae4490183), [`1ad910eb9`](https://github.com/clerk/javascript/commit/1ad910eb92dce056731f29df0caaaad74d08bd7f), [`f58a9949b`](https://github.com/clerk/javascript/commit/f58a9949bc78737ca4e096ed5501b4e578a2d493), [`9b02c1aae`](https://github.com/clerk/javascript/commit/9b02c1aae1cae286ea305c5e216ae93cbbbc0f90)]:
+ - @clerk/clerk-react@5.0.0-alpha-v5.11
+ - @clerk/backend@1.0.0-alpha-v5.10
+ - @clerk/shared@2.0.0-alpha-v5.7
+
## 4.0.0-alpha-v5.11
### Patch Changes
diff --git a/packages/remix/package.json b/packages/remix/package.json
index f1f1c42972..e1900f7227 100644
--- a/packages/remix/package.json
+++ b/packages/remix/package.json
@@ -1,6 +1,6 @@
{
"name": "@clerk/remix",
- "version": "4.0.0-alpha-v5.11",
+ "version": "4.0.0-alpha-v5.12",
"description": "Clerk SDK for Remix",
"keywords": [
"clerk",
@@ -69,14 +69,14 @@
"publish:local": "npx yalc push --replace --sig"
},
"dependencies": {
- "@clerk/backend": "1.0.0-alpha-v5.9",
- "@clerk/clerk-react": "5.0.0-alpha-v5.10",
- "@clerk/shared": "2.0.0-alpha-v5.6",
+ "@clerk/backend": "1.0.0-alpha-v5.10",
+ "@clerk/clerk-react": "5.0.0-alpha-v5.11",
+ "@clerk/shared": "2.0.0-alpha-v5.7",
"cookie": "0.5.0",
"tslib": "2.4.1"
},
"devDependencies": {
- "@clerk/types": "4.0.0-alpha-v5.10",
+ "@clerk/types": "4.0.0-alpha-v5.11",
"@remix-run/react": "^2.0.0",
"@remix-run/server-runtime": "^2.0.0",
"@types/cookie": "^0.5.0",
diff --git a/packages/sdk-node/CHANGELOG.md b/packages/sdk-node/CHANGELOG.md
index 707f60bf41..efab40b9ee 100644
--- a/packages/sdk-node/CHANGELOG.md
+++ b/packages/sdk-node/CHANGELOG.md
@@ -1,5 +1,129 @@
# Change Log
+## 5.0.0-alpha-v5.10
+
+### Major Changes
+
+- Drop all pre-instantiated Backend API resources (`allowlistIdentifiers`, `clients`, `emailAddresses`, `emails`, `invitations`, `organizations`, `phoneNumbers`, `redirectUrls`, `sessions`, `signInTokens`, `users`, `domains`). Use the `clerkClient` import instead. ([#2362](https://github.com/clerk/javascript/pull/2362)) by [@dimkl](https://github.com/dimkl)
+
+ ```typescript
+ // Before
+ import { users } from '@clerk/clerk-sdk-node';
+ // After
+ import { clerkClient } from '@clerk/clerk-sdk-node';
+ clerkClient.users;
+ ```
+
+- Changes in exports of `@clerk/backend`: ([#2363](https://github.com/clerk/javascript/pull/2363)) by [@dimkl](https://github.com/dimkl)
+
+ - Expose the following helpers and enums from `@clerk/backend/internal`:
+ ```typescript
+ import {
+ AuthStatus,
+ buildRequestUrl,
+ constants,
+ createAuthenticateRequest,
+ createIsomorphicRequest,
+ debugRequestState,
+ makeAuthObjectSerializable,
+ prunePrivateMetadata,
+ redirect,
+ sanitizeAuthObject,
+ signedInAuthObject,
+ signedOutAuthObject,
+ } from '@clerk/backend/internal';
+ ```
+ - Drop the above exports from the top-level api:
+ ```typescript
+ // Before
+ import { AuthStatus, ... } from '@clerk/backend';
+ // After
+ import { AuthStatus, ... } from '@clerk/backend/internal';
+ ```
+ Dropping those exports results in also dropping the exports from `gatsby-plugin-clerk`, `@clerk/clerk-sdk-node`, `@clerk/backend`, `@clerk/fastify`, `@clerk/nextjs`, `@clerk/remix` packages.
+
+- Changes in exports of `@clerk/backend`: ([#2365](https://github.com/clerk/javascript/pull/2365)) by [@dimkl](https://github.com/dimkl)
+
+ - Drop the following internal exports from the top-level api:
+ ```typescript
+ // Before
+ import {
+ AllowlistIdentifier,
+ Client,
+ DeletedObject,
+ Email,
+ EmailAddress,
+ ExternalAccount,
+ IdentificationLink,
+ Invitation,
+ OauthAccessToken,
+ ObjectType,
+ Organization,
+ OrganizationInvitation,
+ OrganizationMembership,
+ OrganizationMembershipPublicUserData,
+ PhoneNumber,
+ RedirectUrl,
+ SMSMessage,
+ Session,
+ SignInToken,
+ Token,
+ User,
+ Verification,
+ } from '@clerk/backend';
+ // After : no alternative since there is no need to use those classes
+ ```
+ Dropping those exports results in also dropping the exports from `gatsby-plugin-clerk`, `@clerk/clerk-sdk-node`, `@clerk/backend`, `@clerk/fastify`, `@clerk/nextjs`, `@clerk/remix` packages.
+ - Keep those 3 resource related type exports
+ ```typescript
+ import type { Organization, Session, User, WebhookEvent, WebhookEventType } from '@clerk/backend';
+ ```
+
+- Changes in exports of `@clerk/backend`: ([#2364](https://github.com/clerk/javascript/pull/2364)) by [@dimkl](https://github.com/dimkl)
+
+ - Expose the following helpers and enums from `@clerk/backend/jwt`:
+ ```typescript
+ import { decodeJwt, hasValidSignature, signJwt, verifyJwt } from '@clerk/backend/jwt';
+ ```
+ - Drop the above exports from the top-level api:
+ ```typescript
+ // Before
+ import { decodeJwt, ... } from '@clerk/backend';
+ // After
+ import { decodeJwt, ... } from '@clerk/backend/jwt';
+ ```
+ Dropping those exports results in also dropping the exports from `gatsby-plugin-clerk`, `@clerk/clerk-sdk-node`, `@clerk/backend`, `@clerk/fastify`, `@clerk/nextjs`, `@clerk/remix` packages.
+
+- Changes in `@clerk/backend` exports: ([#2362](https://github.com/clerk/javascript/pull/2362)) by [@dimkl](https://github.com/dimkl)
+
+ - Drop Internal `deserialize` helper
+ - Introduce `/errors` subpath export, eg:
+ ```typescript
+ import {
+ TokenVerificationError,
+ TokenVerificationErrorAction,
+ TokenVerificationErrorCode,
+ TokenVerificationErrorReason,
+ } from '@clerk/backend/errors';
+ ```
+ - Drop errors from top-level export
+ ```typescript
+ // Before
+ import { TokenVerificationError, TokenVerificationErrorReason } from '@clerk/backend';
+ // After
+ import { TokenVerificationError, TokenVerificationErrorReason } from '@clerk/backend/errors';
+ ```
+
+### Minor Changes
+
+- Fix error thrown for undefined `Clerk` in case of using default clerkClient from `@clerk/clerk-sdk-node` without secretKey caused by replaced import. ([#2368](https://github.com/clerk/javascript/pull/2368)) by [@dimkl](https://github.com/dimkl)
+
+### Patch Changes
+
+- Updated dependencies [[`a9fe242be`](https://github.com/clerk/javascript/commit/a9fe242be4dbaaa02c6643fea0688f1fb23f23e7), [`1e98187b4`](https://github.com/clerk/javascript/commit/1e98187b4fba0f872576510d7bccf8b75a2579bd), [`d08ec6d8f`](https://github.com/clerk/javascript/commit/d08ec6d8f52a2bc037c0eb586123a9f7816e4b64), [`5f58a2274`](https://github.com/clerk/javascript/commit/5f58a22746aba94f76bef5dbbc94fa93ea3b0b7e), [`a9fe242be`](https://github.com/clerk/javascript/commit/a9fe242be4dbaaa02c6643fea0688f1fb23f23e7), [`0ec3a146c`](https://github.com/clerk/javascript/commit/0ec3a146cc4cbe4a80d1f990a440431ae4490183), [`1ad910eb9`](https://github.com/clerk/javascript/commit/1ad910eb92dce056731f29df0caaaad74d08bd7f), [`f58a9949b`](https://github.com/clerk/javascript/commit/f58a9949bc78737ca4e096ed5501b4e578a2d493), [`9b02c1aae`](https://github.com/clerk/javascript/commit/9b02c1aae1cae286ea305c5e216ae93cbbbc0f90)]:
+ - @clerk/backend@1.0.0-alpha-v5.10
+ - @clerk/shared@2.0.0-alpha-v5.7
+
## 5.0.0-alpha-v5.9
### Patch Changes
diff --git a/packages/sdk-node/package.json b/packages/sdk-node/package.json
index e969f5d158..550dbdd401 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.0-alpha-v5.9",
+ "version": "5.0.0-alpha-v5.10",
"description": "Clerk server SDK for usage with node",
"keywords": [
"clerk",
@@ -53,13 +53,13 @@
"test:ci": "jest --maxWorkers=70%"
},
"dependencies": {
- "@clerk/backend": "1.0.0-alpha-v5.9",
- "@clerk/shared": "2.0.0-alpha-v5.6",
+ "@clerk/backend": "1.0.0-alpha-v5.10",
+ "@clerk/shared": "2.0.0-alpha-v5.7",
"camelcase-keys": "6.2.2",
"snakecase-keys": "3.2.1"
},
"devDependencies": {
- "@clerk/types": "4.0.0-alpha-v5.10",
+ "@clerk/types": "4.0.0-alpha-v5.11",
"@types/express": "4.17.14",
"@types/node": "^18.17.0",
"eslint-config-custom": "*",
diff --git a/packages/shared/CHANGELOG.md b/packages/shared/CHANGELOG.md
index 4206bdaf50..57e98e69ef 100644
--- a/packages/shared/CHANGELOG.md
+++ b/packages/shared/CHANGELOG.md
@@ -1,5 +1,11 @@
# Change Log
+## 2.0.0-alpha-v5.7
+
+### Major Changes
+
+- Remove hashing and third-party cookie functionality related to development instance session syncing in favor of URL-based session syncing with query parameters. ([#2367](https://github.com/clerk/javascript/pull/2367)) by [@tmilewski](https://github.com/tmilewski)
+
## 2.0.0-alpha-v5.6
### Patch Changes
diff --git a/packages/shared/package.json b/packages/shared/package.json
index defe6907b4..9104a314c6 100644
--- a/packages/shared/package.json
+++ b/packages/shared/package.json
@@ -1,6 +1,6 @@
{
"name": "@clerk/shared",
- "version": "2.0.0-alpha-v5.6",
+ "version": "2.0.0-alpha-v5.7",
"description": "Internal package utils used by the Clerk SDKs",
"repository": {
"type": "git",
@@ -92,7 +92,7 @@
"swr": "2.2.0"
},
"devDependencies": {
- "@clerk/types": "4.0.0-alpha-v5.10",
+ "@clerk/types": "4.0.0-alpha-v5.11",
"@types/glob-to-regexp": "0.4.1",
"@types/js-cookie": "3.0.2",
"@types/node": "^18.17.0",
diff --git a/packages/themes/package.json b/packages/themes/package.json
index 2813aa1217..676df2bef0 100644
--- a/packages/themes/package.json
+++ b/packages/themes/package.json
@@ -37,7 +37,7 @@
"lint": "eslint src/"
},
"devDependencies": {
- "@clerk/types": "4.0.0-alpha-v5.10",
+ "@clerk/types": "4.0.0-alpha-v5.11",
"@types/node": "^18.17.0",
"eslint-config-custom": "*",
"typescript": "*"
diff --git a/packages/types/CHANGELOG.md b/packages/types/CHANGELOG.md
index 30106106e2..392e67dd0a 100644
--- a/packages/types/CHANGELOG.md
+++ b/packages/types/CHANGELOG.md
@@ -1,5 +1,40 @@
# Change Log
+## 4.0.0-alpha-v5.11
+
+### Major Changes
+
+- - Remove `BuildUrlWithAuthParams` type ([#2367](https://github.com/clerk/javascript/pull/2367)) by [@tmilewski](https://github.com/tmilewski)
+
+ - `AuthConfigResource` no longer has a `urlBasedSessionSyncing` property
+ - `buildUrlWithAuth` no longer accepts an `options` argument of `BuildUrlWithAuthParams`.
+
+- Remove hashing and third-party cookie functionality related to development instance session syncing in favor of URL-based session syncing with query parameters. ([#2367](https://github.com/clerk/javascript/pull/2367)) by [@tmilewski](https://github.com/tmilewski)
+
+- Change return values of `signJwt`, `hasValidSignature`, `decodeJwt`, `verifyJwt` ([#2377](https://github.com/clerk/javascript/pull/2377)) by [@dimkl](https://github.com/dimkl)
+
+ to return `{ data, error }`. Example of keeping the same behavior using those utilities:
+
+ ```typescript
+ import { signJwt, hasValidSignature, decodeJwt, verifyJwt } from '@clerk/backend/jwt';
+
+ const { data, error } = await signJwt(...)
+ if (error) throw error;
+
+ const { data, error } = await hasValidSignature(...)
+ if (error) throw error;
+
+ const { data, error } = decodeJwt(...)
+ if (error) throw error;
+
+ const { data, error } = await verifyJwt(...)
+ if (error) throw error;
+ ```
+
+### Minor Changes
+
+- Introduce new `ResultWithError` type in `@clerk/types` ([#2377](https://github.com/clerk/javascript/pull/2377)) by [@dimkl](https://github.com/dimkl)
+
## 4.0.0-alpha-v5.10
### Major Changes
diff --git a/packages/types/package.json b/packages/types/package.json
index ef2c12aa8d..d6635ce2e0 100644
--- a/packages/types/package.json
+++ b/packages/types/package.json
@@ -1,6 +1,6 @@
{
"name": "@clerk/types",
- "version": "4.0.0-alpha-v5.10",
+ "version": "4.0.0-alpha-v5.11",
"description": "Typings for Clerk libraries.",
"keywords": [
"clerk",