diff --git a/.changeset/bright-ducks-enjoy.md b/.changeset/bright-ducks-enjoy.md
deleted file mode 100644
index 688c2a6cb8..0000000000
--- a/.changeset/bright-ducks-enjoy.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@clerk/clerk-js": patch
----
-
-`clerk-js` is now built with [Rspack](https://rspack.dev) instead of Webpack. This is an internal tooling change that shouldn't affect consumers.
diff --git a/.changeset/cool-days-tell.md b/.changeset/cool-days-tell.md
deleted file mode 100644
index 2a7e4d9611..0000000000
--- a/.changeset/cool-days-tell.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@clerk/elements": patch
----
-
-Use host router instead of directly calling Next's `useRouter` hook
diff --git a/.changeset/early-steaks-yawn.md b/.changeset/early-steaks-yawn.md
deleted file mode 100644
index 1ae3332f64..0000000000
--- a/.changeset/early-steaks-yawn.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@clerk/nextjs": patch
----
-
-Fix static analysis warnings warning during production NextJS builds
diff --git a/.changeset/honest-impalas-grin.md b/.changeset/honest-impalas-grin.md
deleted file mode 100644
index a845151cc8..0000000000
--- a/.changeset/honest-impalas-grin.md
+++ /dev/null
@@ -1,2 +0,0 @@
----
----
diff --git a/.changeset/metal-mails-explode.md b/.changeset/metal-mails-explode.md
deleted file mode 100644
index 09deeea017..0000000000
--- a/.changeset/metal-mails-explode.md
+++ /dev/null
@@ -1,8 +0,0 @@
----
-"@clerk/astro": patch
-"@clerk/chrome-extension": patch
-"@clerk/clerk-js": patch
-"@clerk/shared": patch
----
-
-Refactor imports from @clerk/shared to improve treeshaking support
diff --git a/.changeset/modern-chicken-crash.md b/.changeset/modern-chicken-crash.md
deleted file mode 100644
index a845151cc8..0000000000
--- a/.changeset/modern-chicken-crash.md
+++ /dev/null
@@ -1,2 +0,0 @@
----
----
diff --git a/.changeset/modern-snails-obey.md b/.changeset/modern-snails-obey.md
deleted file mode 100644
index fe862fe03e..0000000000
--- a/.changeset/modern-snails-obey.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@clerk/localizations": patch
----
-
-Updates missing Russian translations
diff --git a/.changeset/purple-eels-fix.md b/.changeset/purple-eels-fix.md
deleted file mode 100644
index f5088225b8..0000000000
--- a/.changeset/purple-eels-fix.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-"@clerk/upgrade": patch
-"@clerk/nextjs": patch
----
-
-Updates broken Clerk documentation references
diff --git a/package-lock.json b/package-lock.json
index 39366ab4d6..3e4b8a9557 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -47676,11 +47676,11 @@
},
"packages/astro": {
"name": "@clerk/astro",
- "version": "1.4.4",
+ "version": "1.4.5",
"license": "MIT",
"dependencies": {
- "@clerk/backend": "1.15.4",
- "@clerk/shared": "2.11.2",
+ "@clerk/backend": "1.15.5",
+ "@clerk/shared": "2.11.3",
"@clerk/types": "4.29.0",
"nanoid": "5.0.7",
"nanostores": "0.11.3"
@@ -47728,10 +47728,10 @@
},
"packages/backend": {
"name": "@clerk/backend",
- "version": "1.15.4",
+ "version": "1.15.5",
"license": "MIT",
"dependencies": {
- "@clerk/shared": "2.11.2",
+ "@clerk/shared": "2.11.3",
"@clerk/types": "4.29.0",
"cookie": "0.7.0",
"snakecase-keys": "5.4.4",
@@ -48013,12 +48013,12 @@
},
"packages/chrome-extension": {
"name": "@clerk/chrome-extension",
- "version": "1.3.26",
+ "version": "1.3.27",
"license": "MIT",
"dependencies": {
- "@clerk/clerk-js": "5.30.2",
- "@clerk/clerk-react": "5.14.2",
- "@clerk/shared": "2.11.2",
+ "@clerk/clerk-js": "5.30.3",
+ "@clerk/clerk-react": "5.14.3",
+ "@clerk/shared": "2.11.3",
"webextension-polyfill": "^0.10.0"
},
"devDependencies": {
@@ -48055,11 +48055,11 @@
},
"packages/clerk-js": {
"name": "@clerk/clerk-js",
- "version": "5.30.2",
+ "version": "5.30.3",
"license": "MIT",
"dependencies": {
- "@clerk/localizations": "3.4.3",
- "@clerk/shared": "2.11.2",
+ "@clerk/localizations": "3.4.4",
+ "@clerk/shared": "2.11.3",
"@clerk/types": "4.29.0",
"@coinbase/wallet-sdk": "4.0.4",
"@emotion/cache": "11.11.0",
@@ -48079,7 +48079,7 @@
},
"devDependencies": {
"@clerk/eslint-config-custom": "*",
- "@clerk/ui": "0.1.13",
+ "@clerk/ui": "0.1.14",
"@rsdoctor/rspack-plugin": "^0.4.7",
"@rspack/cli": "^1.0.14",
"@rspack/core": "^1.0.14",
@@ -48554,10 +48554,10 @@
},
"packages/elements": {
"name": "@clerk/elements",
- "version": "0.18.2",
+ "version": "0.18.3",
"license": "MIT",
"dependencies": {
- "@clerk/shared": "2.11.2",
+ "@clerk/shared": "2.11.3",
"@clerk/types": "^4.29.0",
"@radix-ui/react-form": "^0.1.0",
"@radix-ui/react-slot": "^1.1.0",
@@ -48566,7 +48566,7 @@
"xstate": "^5.15.0"
},
"devDependencies": {
- "@clerk/clerk-react": "5.14.2",
+ "@clerk/clerk-react": "5.14.3",
"@clerk/eslint-config-custom": "*",
"@statelyai/inspect": "^0.4.0",
"@types/node": "^18.19.33",
@@ -49305,12 +49305,12 @@
},
"packages/expo": {
"name": "@clerk/clerk-expo",
- "version": "2.2.32",
+ "version": "2.2.33",
"license": "MIT",
"dependencies": {
- "@clerk/clerk-js": "5.30.2",
- "@clerk/clerk-react": "5.14.2",
- "@clerk/shared": "2.11.2",
+ "@clerk/clerk-js": "5.30.3",
+ "@clerk/clerk-react": "5.14.3",
+ "@clerk/shared": "2.11.3",
"@clerk/types": "4.29.0",
"base-64": "^1.0.0",
"react-native-url-polyfill": "2.0.0",
@@ -49658,11 +49658,11 @@
},
"packages/express": {
"name": "@clerk/express",
- "version": "1.3.6",
+ "version": "1.3.7",
"license": "MIT",
"dependencies": {
- "@clerk/backend": "^1.15.4",
- "@clerk/shared": "^2.11.2",
+ "@clerk/backend": "^1.15.5",
+ "@clerk/shared": "^2.11.3",
"@clerk/types": "4.29.0",
"tslib": "2.4.1"
},
@@ -49689,11 +49689,11 @@
},
"packages/fastify": {
"name": "@clerk/fastify",
- "version": "2.0.8",
+ "version": "2.0.9",
"license": "MIT",
"dependencies": {
- "@clerk/backend": "1.15.4",
- "@clerk/shared": "2.11.2",
+ "@clerk/backend": "1.15.5",
+ "@clerk/shared": "2.11.3",
"@clerk/types": "4.29.0",
"cookies": "0.8.0",
"fastify-plugin": "^5.0.1"
@@ -49845,7 +49845,7 @@
},
"packages/localizations": {
"name": "@clerk/localizations",
- "version": "3.4.3",
+ "version": "3.4.4",
"license": "MIT",
"dependencies": {
"@clerk/types": "4.29.0"
@@ -49861,12 +49861,12 @@
},
"packages/nextjs": {
"name": "@clerk/nextjs",
- "version": "6.1.2",
+ "version": "6.1.3",
"license": "MIT",
"dependencies": {
- "@clerk/backend": "1.15.4",
- "@clerk/clerk-react": "5.14.2",
- "@clerk/shared": "2.11.2",
+ "@clerk/backend": "1.15.5",
+ "@clerk/clerk-react": "5.14.3",
+ "@clerk/shared": "2.11.3",
"@clerk/types": "4.29.0",
"crypto-js": "4.2.0",
"ezheaders": "0.1.0",
@@ -50118,10 +50118,10 @@
},
"packages/react": {
"name": "@clerk/clerk-react",
- "version": "5.14.2",
+ "version": "5.14.3",
"license": "MIT",
"dependencies": {
- "@clerk/shared": "2.11.2",
+ "@clerk/shared": "2.11.3",
"@clerk/types": "4.29.0",
"tslib": "2.4.1"
},
@@ -50148,12 +50148,12 @@
},
"packages/remix": {
"name": "@clerk/remix",
- "version": "4.2.44",
+ "version": "4.2.45",
"license": "MIT",
"dependencies": {
- "@clerk/backend": "1.15.4",
- "@clerk/clerk-react": "5.14.2",
- "@clerk/shared": "2.11.2",
+ "@clerk/backend": "1.15.5",
+ "@clerk/clerk-react": "5.14.3",
+ "@clerk/shared": "2.11.3",
"@clerk/types": "4.29.0",
"cookie": "0.7.0",
"tslib": "2.4.1"
@@ -50196,11 +50196,11 @@
},
"packages/sdk-node": {
"name": "@clerk/clerk-sdk-node",
- "version": "5.0.57",
+ "version": "5.0.58",
"license": "MIT",
"dependencies": {
- "@clerk/backend": "1.15.4",
- "@clerk/shared": "2.11.2",
+ "@clerk/backend": "1.15.5",
+ "@clerk/shared": "2.11.3",
"@clerk/types": "4.29.0",
"tslib": "2.4.1"
},
@@ -50223,7 +50223,7 @@
},
"packages/shared": {
"name": "@clerk/shared",
- "version": "2.11.2",
+ "version": "2.11.3",
"hasInstallScript": true,
"license": "MIT",
"dependencies": {
@@ -50924,12 +50924,12 @@
},
"packages/tanstack-start": {
"name": "@clerk/tanstack-start",
- "version": "0.4.20",
+ "version": "0.4.21",
"license": "MIT",
"dependencies": {
- "@clerk/backend": "1.15.4",
- "@clerk/clerk-react": "5.14.2",
- "@clerk/shared": "2.11.2",
+ "@clerk/backend": "1.15.5",
+ "@clerk/clerk-react": "5.14.3",
+ "@clerk/shared": "2.11.3",
"@clerk/types": "4.29.0",
"tslib": "2.4.1"
},
@@ -51744,11 +51744,11 @@
},
"packages/testing": {
"name": "@clerk/testing",
- "version": "1.3.18",
+ "version": "1.3.19",
"license": "MIT",
"dependencies": {
- "@clerk/backend": "1.15.4",
- "@clerk/shared": "2.11.2",
+ "@clerk/backend": "1.15.5",
+ "@clerk/shared": "2.11.3",
"@clerk/types": "4.29.0",
"dotenv": "16.4.5"
},
@@ -51819,11 +51819,11 @@
},
"packages/ui": {
"name": "@clerk/ui",
- "version": "0.1.13",
+ "version": "0.1.14",
"license": "MIT",
"dependencies": {
- "@clerk/elements": "0.18.2",
- "@clerk/shared": "2.11.2",
+ "@clerk/elements": "0.18.3",
+ "@clerk/shared": "2.11.3",
"@clerk/types": "4.29.0",
"@formkit/auto-animate": "^0.8.2",
"@radix-ui/react-slot": "^1.1.0",
@@ -52101,7 +52101,7 @@
},
"packages/upgrade": {
"name": "@clerk/upgrade",
- "version": "1.2.2",
+ "version": "1.2.3",
"license": "MIT",
"dependencies": {
"@inkjs/ui": "^2.0.0",
diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md
index 0b65f59f62..26839e6aaa 100644
--- a/packages/astro/CHANGELOG.md
+++ b/packages/astro/CHANGELOG.md
@@ -1,5 +1,15 @@
# @clerk/astro
+## 1.4.5
+
+### Patch Changes
+
+- Refactor imports from @clerk/shared to improve treeshaking support by [@nikosdouvlis](https://github.com/nikosdouvlis)
+
+- Updated dependencies [[`a7726cc12a824b278f6d2a37cb1901c38c5f70dc`](https://github.com/clerk/javascript/commit/a7726cc12a824b278f6d2a37cb1901c38c5f70dc)]:
+ - @clerk/shared@2.11.3
+ - @clerk/backend@1.15.5
+
## 1.4.2
### Patch Changes
diff --git a/packages/astro/package.json b/packages/astro/package.json
index 353b0db6ea..0cb3653446 100644
--- a/packages/astro/package.json
+++ b/packages/astro/package.json
@@ -1,6 +1,6 @@
{
"name": "@clerk/astro",
- "version": "1.4.4",
+ "version": "1.4.5",
"description": "Clerk SDK for Astro",
"keywords": [
"auth",
@@ -81,8 +81,8 @@
"publish:local": "npx yalc push --replace --sig"
},
"dependencies": {
- "@clerk/backend": "1.15.4",
- "@clerk/shared": "2.11.2",
+ "@clerk/backend": "1.15.5",
+ "@clerk/shared": "2.11.3",
"@clerk/types": "4.29.0",
"nanoid": "5.0.7",
"nanostores": "0.11.3"
diff --git a/packages/backend/CHANGELOG.md b/packages/backend/CHANGELOG.md
index 2c697d3272..90cd5e6f3f 100644
--- a/packages/backend/CHANGELOG.md
+++ b/packages/backend/CHANGELOG.md
@@ -1,5 +1,12 @@
# Change Log
+## 1.15.5
+
+### Patch Changes
+
+- Updated dependencies [[`a7726cc12a824b278f6d2a37cb1901c38c5f70dc`](https://github.com/clerk/javascript/commit/a7726cc12a824b278f6d2a37cb1901c38c5f70dc)]:
+ - @clerk/shared@2.11.3
+
## 1.15.2
### Patch Changes
@@ -161,8 +168,8 @@
```ts
has({
__experimental_assurance: {
- level: "L2.secondFactor",
- maxAge: "A1.10min",
+ level: 'L2.secondFactor',
+ maxAge: 'A1.10min',
},
});
```
@@ -332,7 +339,7 @@
- Export the type `AuthObject`. You can now use it like so: ([#3844](https://github.com/clerk/javascript/pull/3844)) by [@kduprey](https://github.com/kduprey)
```ts
- import type { AuthObject } from "@clerk/backend";
+ import type { AuthObject } from '@clerk/backend';
```
- Updated dependencies [[`9b2aeacb3`](https://github.com/clerk/javascript/commit/9b2aeacb32fff7c300bda458636a1cc81a42ee7b)]:
@@ -525,13 +532,13 @@
The below code now works as expected: (requires CLERK_SECRET_KEY env var to have been set)
```ts
- import { clerkClient } from "@clerk/clerk-sdk-node";
+ import { clerkClient } from '@clerk/clerk-sdk-node';
// Use the default settings from the already instanciated clerkClient
clerkClient.verifyToken(token);
// or provide overrides the options
clerkClient.verifyToken(token, {
- secretKey: "xxxx",
+ secretKey: 'xxxx',
});
```
@@ -717,15 +724,15 @@
Inside your code, search for occurrences like these:
```js
- import { Clerk } from "@clerk/backend";
- const clerk = Clerk({ secretKey: "..." });
+ import { Clerk } from '@clerk/backend';
+ const clerk = Clerk({ secretKey: '...' });
```
You need to rename the import from `Clerk` to `createClerkClient` and change its usage:
```js
- import { createClerkClient } from "@clerk/backend";
- const clerk = createClerkClient({ secretKey: "..." });
+ import { createClerkClient } from '@clerk/backend';
+ const clerk = createClerkClient({ secretKey: '...' });
```
- 8e5c881c4: The following paginated APIs now return `{ data, totalCount }` instead of simple arrays, in order to make building paginated UIs easier:
@@ -744,11 +751,10 @@
Code example to keep the same behavior:
```typescript
- import { users } from "@clerk/backend";
- import { ClerkAPIResponseError } from "@clerk/shared/error";
+ import { users } from '@clerk/backend';
+ import { ClerkAPIResponseError } from '@clerk/shared/error';
- const { data, errors, clerkTraceId, status, statusText } =
- await users.getUser("user_deadbeef");
+ const { data, errors, clerkTraceId, status, statusText } = await users.getUser('user_deadbeef');
if (errors) {
throw new ClerkAPIResponseError(statusText, {
data: errors,
@@ -855,7 +861,7 @@
sanitizeAuthObject,
signedInAuthObject,
signedOutAuthObject,
- } from "@clerk/backend/internal";
+ } from '@clerk/backend/internal';
```
- Drop the above exports from the top-level api:
```typescript
@@ -917,29 +923,18 @@
Token,
User,
Verification,
- } from "@clerk/backend";
+ } 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";
+ import type { Organization, Session, User, WebhookEvent, WebhookEventType } from '@clerk/backend';
```
- f58a9949b: Changes in exports of `@clerk/backend`:
- Expose the following helpers and enums from `@clerk/backend/jwt`:
```typescript
- import {
- decodeJwt,
- hasValidSignature,
- signJwt,
- verifyJwt,
- } from "@clerk/backend/jwt";
+ import { decodeJwt, hasValidSignature, signJwt, verifyJwt } from '@clerk/backend/jwt';
```
- Drop the above exports from the top-level api:
```typescript
@@ -960,20 +955,14 @@
TokenVerificationErrorAction,
TokenVerificationErrorCode,
TokenVerificationErrorReason,
- } from "@clerk/backend/errors";
+ } from '@clerk/backend/errors';
```
- Drop errors from top-level export
```typescript
// Before
- import {
- TokenVerificationError,
- TokenVerificationErrorReason,
- } from "@clerk/backend";
+ import { TokenVerificationError, TokenVerificationErrorReason } from '@clerk/backend';
// After
- import {
- TokenVerificationError,
- TokenVerificationErrorReason,
- } from "@clerk/backend/errors";
+ import { TokenVerificationError, TokenVerificationErrorReason } from '@clerk/backend/errors';
```
- e602d6c1f: Drop unused SearchParams.AuthStatus constant
- 6fffd3b54: Replace return the value of the following jwt helpers to match the format of backend API client return values (for consistency).
@@ -1034,18 +1023,17 @@
Example:
```typescript
- import { Clerk } from "@clerk/backend";
+ import { Clerk } from '@clerk/backend';
- const clerkClient = Clerk({ secretKey: "..." });
+ const clerkClient = Clerk({ secretKey: '...' });
// current
const { data } = await clerkClient.organizations.getOrganizationList();
- console.log("totalCount: ", data.length);
+ console.log('totalCount: ', data.length);
// new
- const { data, totalCount } =
- await clerkClient.organizations.getOrganizationList();
- console.log("totalCount: ", totalCount);
+ const { data, totalCount } = await clerkClient.organizations.getOrganizationList();
+ console.log('totalCount: ', totalCount);
```
- c7e6d00f5: Experimental support for `` with role checks.
@@ -1746,7 +1734,7 @@
sanitizeAuthObject,
signedInAuthObject,
signedOutAuthObject,
- } from "@clerk/backend/internal";
+ } from '@clerk/backend/internal';
```
- Drop the above exports from the top-level api:
```typescript
@@ -1785,31 +1773,20 @@
Token,
User,
Verification,
- } from "@clerk/backend";
+ } 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";
+ 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";
+ import { decodeJwt, hasValidSignature, signJwt, verifyJwt } from '@clerk/backend/jwt';
```
- Drop the above exports from the top-level api:
```typescript
@@ -1830,20 +1807,14 @@
TokenVerificationErrorAction,
TokenVerificationErrorCode,
TokenVerificationErrorReason,
- } from "@clerk/backend/errors";
+ } from '@clerk/backend/errors';
```
- Drop errors from top-level export
```typescript
// Before
- import {
- TokenVerificationError,
- TokenVerificationErrorReason,
- } from "@clerk/backend";
+ import { TokenVerificationError, TokenVerificationErrorReason } from '@clerk/backend';
// After
- import {
- TokenVerificationError,
- TokenVerificationErrorReason,
- } from "@clerk/backend/errors";
+ import { TokenVerificationError, TokenVerificationErrorReason } from '@clerk/backend/errors';
```
### Minor Changes
@@ -1872,15 +1843,15 @@
Inside your code, search for occurrences like these:
```js
- import { Clerk } from "@clerk/backend";
- const clerk = Clerk({ secretKey: "..." });
+ import { Clerk } from '@clerk/backend';
+ const clerk = Clerk({ secretKey: '...' });
```
You need to rename the import from `Clerk` to `createClerkClient` and change its usage:
```js
- import { createClerkClient } from "@clerk/backend";
- const clerk = createClerkClient({ secretKey: "..." });
+ import { createClerkClient } from '@clerk/backend';
+ const clerk = createClerkClient({ secretKey: '...' });
```
- - Refactor the `authenticateRequest()` flow to use the new client handshake endpoint. This replaces the previous "interstitial"-based flow. This should improve performance and overall reliability of Clerk's server-side request authentication functionality. ([#2300](https://github.com/clerk/javascript/pull/2300)) by [@BRKalow](https://github.com/BRKalow)
@@ -1963,18 +1934,17 @@
Example:
```typescript
- import { Clerk } from "@clerk/backend";
+ import { Clerk } from '@clerk/backend';
- const clerkClient = Clerk({ secretKey: "..." });
+ const clerkClient = Clerk({ secretKey: '...' });
// current
const { data } = await clerkClient.organizations.getOrganizationList();
- console.log("totalCount: ", data.length);
+ console.log('totalCount: ', data.length);
// new
- const { data, totalCount } =
- await clerkClient.organizations.getOrganizationList();
- console.log("totalCount: ", totalCount);
+ const { data, totalCount } = await clerkClient.organizations.getOrganizationList();
+ console.log('totalCount: ', totalCount);
```
- Re-use common pagination types for consistency across types. ([#2210](https://github.com/clerk/javascript/pull/2210)) by [@dimkl](https://github.com/dimkl)
@@ -2064,11 +2034,10 @@
Code example to keep the same behavior:
```typescript
- import { users } from "@clerk/backend";
- import { ClerkAPIResponseError } from "@clerk/shared/error";
+ import { users } from '@clerk/backend';
+ import { ClerkAPIResponseError } from '@clerk/shared/error';
- const { data, errors, clerkTraceId, status, statusText } =
- await users.getUser("user_deadbeef");
+ const { data, errors, clerkTraceId, status, statusText } = await users.getUser('user_deadbeef');
if (errors) {
throw new ClerkAPIResponseError(statusText, {
data: errors,
diff --git a/packages/backend/package.json b/packages/backend/package.json
index ca6c4547ef..7f82a882fb 100644
--- a/packages/backend/package.json
+++ b/packages/backend/package.json
@@ -1,6 +1,6 @@
{
"name": "@clerk/backend",
- "version": "1.15.4",
+ "version": "1.15.5",
"description": "Clerk Backend SDK - REST Client for Backend API & JWT verification utilities",
"homepage": "https://clerk.com/",
"bugs": {
@@ -93,7 +93,7 @@
"test:cloudflare-miniflare": "vitest --environment miniflare"
},
"dependencies": {
- "@clerk/shared": "2.11.2",
+ "@clerk/shared": "2.11.3",
"@clerk/types": "4.29.0",
"cookie": "0.7.0",
"snakecase-keys": "5.4.4",
diff --git a/packages/chrome-extension/CHANGELOG.md b/packages/chrome-extension/CHANGELOG.md
index b9a7f1dcbc..f75c77a588 100644
--- a/packages/chrome-extension/CHANGELOG.md
+++ b/packages/chrome-extension/CHANGELOG.md
@@ -1,5 +1,16 @@
# Change Log
+## 1.3.27
+
+### Patch Changes
+
+- Refactor imports from @clerk/shared to improve treeshaking support by [@nikosdouvlis](https://github.com/nikosdouvlis)
+
+- Updated dependencies [[`a7726cc12a824b278f6d2a37cb1901c38c5f70dc`](https://github.com/clerk/javascript/commit/a7726cc12a824b278f6d2a37cb1901c38c5f70dc), [`a7726cc12a824b278f6d2a37cb1901c38c5f70dc`](https://github.com/clerk/javascript/commit/a7726cc12a824b278f6d2a37cb1901c38c5f70dc)]:
+ - @clerk/clerk-js@5.30.3
+ - @clerk/shared@2.11.3
+ - @clerk/clerk-react@5.14.3
+
## 1.3.24
### Patch Changes
@@ -285,9 +296,9 @@
Example Usage:
```ts
- import { __unstable__createClerkClient } from "@clerk/chrome-extension/background";
+ import { __unstable__createClerkClient } from '@clerk/chrome-extension/background';
- const publishableKey = import.meta.env.VITE_CLERK_PUBLISHABLE_KEY || "";
+ const publishableKey = import.meta.env.VITE_CLERK_PUBLISHABLE_KEY || '';
async function getToken() {
const clerk = await __unstable__createClerkClient({
@@ -299,7 +310,7 @@
// NOTE: A runtime listener cannot be async.
// It must return true, in order to keep the connection open and send a response later.
chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
- getToken().then((token) => sendResponse({ token }));
+ getToken().then(token => sendResponse({ token }));
return true;
});
```
@@ -1308,29 +1319,24 @@
```typescript
// Before
- import { __internal__setErrorThrowerOptions } from "@clerk/clerk-react";
+ import { __internal__setErrorThrowerOptions } from '@clerk/clerk-react';
// After
- import { setErrorThrowerOptions } from "@clerk/clerk-react/internal";
+ import { setErrorThrowerOptions } from '@clerk/clerk-react/internal';
// Before
- import {
- isClerkAPIResponseError,
- isEmailLinkError,
- isKnownError,
- isMetamaskError,
- } from "@clerk/clerk-react";
+ import { isClerkAPIResponseError, isEmailLinkError, isKnownError, isMetamaskError } from '@clerk/clerk-react';
// After
import {
isClerkAPIResponseError,
isEmailLinkError,
isKnownError,
isMetamaskError,
- } from "@clerk/clerk-react/errors";
+ } from '@clerk/clerk-react/errors';
// Before
- import { MultisessionAppSupport } from "@clerk/clerk-react";
+ import { MultisessionAppSupport } from '@clerk/clerk-react';
// After
- import { MultisessionAppSupport } from "@clerk/clerk-react/internal";
+ import { MultisessionAppSupport } from '@clerk/clerk-react/internal';
```
- Drop from the `@clerk/clerk-react` and all other clerk-react wrapper packages:
diff --git a/packages/chrome-extension/package.json b/packages/chrome-extension/package.json
index d91e3d1caf..f2919b842c 100644
--- a/packages/chrome-extension/package.json
+++ b/packages/chrome-extension/package.json
@@ -1,6 +1,6 @@
{
"name": "@clerk/chrome-extension",
- "version": "1.3.26",
+ "version": "1.3.27",
"description": "Clerk SDK for Chrome extensions",
"keywords": [
"auth",
@@ -47,9 +47,9 @@
"test:coverage": "jest --collectCoverage && open coverage/lcov-report/index.html"
},
"dependencies": {
- "@clerk/clerk-js": "5.30.2",
- "@clerk/clerk-react": "5.14.2",
- "@clerk/shared": "2.11.2",
+ "@clerk/clerk-js": "5.30.3",
+ "@clerk/clerk-react": "5.14.3",
+ "@clerk/shared": "2.11.3",
"webextension-polyfill": "^0.10.0"
},
"devDependencies": {
diff --git a/packages/clerk-js/CHANGELOG.md b/packages/clerk-js/CHANGELOG.md
index e4ce97122d..64234460a1 100644
--- a/packages/clerk-js/CHANGELOG.md
+++ b/packages/clerk-js/CHANGELOG.md
@@ -1,5 +1,17 @@
# Change Log
+## 5.30.3
+
+### Patch Changes
+
+- `clerk-js` is now built with [Rspack](https://rspack.dev) instead of Webpack. This is an internal tooling change that shouldn't affect consumers. by [@nikosdouvlis](https://github.com/nikosdouvlis)
+
+- Refactor imports from @clerk/shared to improve treeshaking support by [@nikosdouvlis](https://github.com/nikosdouvlis)
+
+- Updated dependencies [[`a7726cc12a824b278f6d2a37cb1901c38c5f70dc`](https://github.com/clerk/javascript/commit/a7726cc12a824b278f6d2a37cb1901c38c5f70dc), [`a7726cc12a824b278f6d2a37cb1901c38c5f70dc`](https://github.com/clerk/javascript/commit/a7726cc12a824b278f6d2a37cb1901c38c5f70dc)]:
+ - @clerk/shared@2.11.3
+ - @clerk/localizations@3.4.4
+
## 5.30.0
### Minor Changes
@@ -323,8 +335,8 @@
```ts
has({
__experimental_assurance: {
- level: "L2.secondFactor",
- maxAge: "A1.10min",
+ level: 'L2.secondFactor',
+ maxAge: 'A1.10min',
},
});
```
@@ -681,13 +693,24 @@
```jsx
- } href="/terms" />
- } open="help" /> //
- Navigate to `/help` page when UserProfile opens as a modal. (Requires a
- custom page to have been set in `/help`)
- } />
+ }
+ href='/terms'
+ />
}
+ open='help'
+ />{' '}
+ // Navigate to `/help` page when UserProfile opens as a modal. (Requires a custom page to have been set in
+ `/help`)
+ }
+ />
+ }
onClick={() => setModal(true)}
/>
@@ -932,7 +955,7 @@
```tsx
google.accounts.id.initialize({
- callback: async (response) => {
+ callback: async response => {
const signInOrUp = await Clerk.authenticateWithGoogleOneTap({
token: response.credential,
});
@@ -947,11 +970,11 @@
```tsx
google.accounts.id.initialize({
- callback: async (response) => {
+ callback: async response => {
const signInOrUp = await Clerk.authenticateWithGoogleOneTap({
token: response.credential,
});
- if (signInOrUp.status === "complete") {
+ if (signInOrUp.status === 'complete') {
await Clerk.setActive({
session: signInOrUp.createdSessionId,
});
@@ -1022,8 +1045,8 @@
```tsx
<__experimental_GoogleOneTap
- signInForceRedirectUrl=""
- signUpForceRedirectUrl=""
+ signInForceRedirectUrl=''
+ signUpForceRedirectUrl=''
/>
```
@@ -1158,7 +1181,10 @@
Example that will throw an error:
```tsx
-
+
```
- c2a090513: Change the minimal Node.js version required by Clerk to `18.17.0`.
@@ -1392,8 +1418,8 @@
```ts
// clerk.d.ts
interface ClerkAuthorization {
- permission: "";
- role: "admin" | "basic_member" | "guest_member";
+ permission: '';
+ role: 'admin' | 'basic_member' | 'guest_member';
}
```
@@ -2346,8 +2372,8 @@
```ts
// clerk.d.ts
interface ClerkAuthorization {
- permission: "";
- role: "admin" | "basic_member" | "guest_member";
+ permission: '';
+ role: 'admin' | 'basic_member' | 'guest_member';
}
```
@@ -2504,7 +2530,10 @@
Example that will throw an error:
```tsx
-
+
```
### Minor Changes
@@ -2768,15 +2797,19 @@
```tsx
}
>
- } />
-
-
+ }
+ />
+
+
```
@@ -2789,19 +2822,19 @@
```tsx
}
>
}
/>
-
-
+
+
```
diff --git a/packages/clerk-js/package.json b/packages/clerk-js/package.json
index e7236cd8c8..4d32d1746d 100644
--- a/packages/clerk-js/package.json
+++ b/packages/clerk-js/package.json
@@ -1,6 +1,6 @@
{
"name": "@clerk/clerk-js",
- "version": "5.30.2",
+ "version": "5.30.3",
"description": "Clerk JS library",
"keywords": [
"clerk",
@@ -50,8 +50,8 @@
},
"browserslist": "last 2 years, Safari > 12, iOS > 12",
"dependencies": {
- "@clerk/localizations": "3.4.3",
- "@clerk/shared": "2.11.2",
+ "@clerk/localizations": "3.4.4",
+ "@clerk/shared": "2.11.3",
"@clerk/types": "4.29.0",
"@coinbase/wallet-sdk": "4.0.4",
"@emotion/cache": "11.11.0",
@@ -71,7 +71,7 @@
},
"devDependencies": {
"@clerk/eslint-config-custom": "*",
- "@clerk/ui": "0.1.13",
+ "@clerk/ui": "0.1.14",
"@rsdoctor/rspack-plugin": "^0.4.7",
"@rspack/cli": "^1.0.14",
"@rspack/core": "^1.0.14",
diff --git a/packages/elements/CHANGELOG.md b/packages/elements/CHANGELOG.md
index 286557068f..07463c5daa 100644
--- a/packages/elements/CHANGELOG.md
+++ b/packages/elements/CHANGELOG.md
@@ -1,5 +1,14 @@
# @clerk/elements
+## 0.18.3
+
+### Patch Changes
+
+- Use host router instead of directly calling Next's `useRouter` hook by [@nikosdouvlis](https://github.com/nikosdouvlis)
+
+- Updated dependencies [[`a7726cc12a824b278f6d2a37cb1901c38c5f70dc`](https://github.com/clerk/javascript/commit/a7726cc12a824b278f6d2a37cb1901c38c5f70dc)]:
+ - @clerk/shared@2.11.3
+
## 0.18.0
### Minor Changes
@@ -201,13 +210,12 @@
Example:
```tsx
-
+
{({ session }) => (
<>
- {session.identifier} |{" "}
- Switch...
+ {session.identifier} | Switch...
>
)}
@@ -475,11 +483,9 @@
- ``
```tsx
-
+
-
- {(isLoading) => (isLoading ? : "Use passkey instead")}.
-
+ {isLoading => (isLoading ? : 'Use passkey instead')}.
```
@@ -487,7 +493,10 @@
- ``
```tsx
-
+
```
@@ -495,8 +504,8 @@
- ``
```tsx
-
-
+
+
Welcome back !
@@ -506,12 +515,12 @@
- Passkey Autofill
```tsx
-
-
- Email
+
+
+ Email
@@ -922,7 +931,7 @@
- Add `` component which can be used instead of ``, `` and `` like this:
```tsx
// You can also use name="continue" or name="verifications"
- Contents
+ Contents
```
## 0.1.10
diff --git a/packages/elements/package.json b/packages/elements/package.json
index ed507c2ed8..c88827b979 100644
--- a/packages/elements/package.json
+++ b/packages/elements/package.json
@@ -1,6 +1,6 @@
{
"name": "@clerk/elements",
- "version": "0.18.2",
+ "version": "0.18.3",
"description": "Clerk Elements",
"keywords": [
"clerk",
@@ -71,7 +71,7 @@
"test:cache:clear": "jest --clearCache --useStderr"
},
"dependencies": {
- "@clerk/shared": "2.11.2",
+ "@clerk/shared": "2.11.3",
"@clerk/types": "^4.29.0",
"@radix-ui/react-form": "^0.1.0",
"@radix-ui/react-slot": "^1.1.0",
@@ -80,7 +80,7 @@
"xstate": "^5.15.0"
},
"devDependencies": {
- "@clerk/clerk-react": "5.14.2",
+ "@clerk/clerk-react": "5.14.3",
"@clerk/eslint-config-custom": "*",
"@statelyai/inspect": "^0.4.0",
"@types/node": "^18.19.33",
diff --git a/packages/expo/CHANGELOG.md b/packages/expo/CHANGELOG.md
index a26268f88e..a10a815a0a 100644
--- a/packages/expo/CHANGELOG.md
+++ b/packages/expo/CHANGELOG.md
@@ -1,5 +1,14 @@
# Change Log
+## 2.2.33
+
+### Patch Changes
+
+- Updated dependencies [[`a7726cc12a824b278f6d2a37cb1901c38c5f70dc`](https://github.com/clerk/javascript/commit/a7726cc12a824b278f6d2a37cb1901c38c5f70dc), [`a7726cc12a824b278f6d2a37cb1901c38c5f70dc`](https://github.com/clerk/javascript/commit/a7726cc12a824b278f6d2a37cb1901c38c5f70dc)]:
+ - @clerk/clerk-js@5.30.3
+ - @clerk/shared@2.11.3
+ - @clerk/clerk-react@5.14.3
+
## 2.2.30
### Patch Changes
@@ -380,7 +389,7 @@
You can access the components from the `/web` subpath import like so:
```tsx
- import { SignUp } from "@clerk/clerk-expo/web";
+ import { SignUp } from '@clerk/clerk-expo/web';
export default function Page() {
return ;
@@ -1342,29 +1351,24 @@
```typescript
// Before
- import { __internal__setErrorThrowerOptions } from "@clerk/clerk-react";
+ import { __internal__setErrorThrowerOptions } from '@clerk/clerk-react';
// After
- import { setErrorThrowerOptions } from "@clerk/clerk-react/internal";
+ import { setErrorThrowerOptions } from '@clerk/clerk-react/internal';
// Before
- import {
- isClerkAPIResponseError,
- isEmailLinkError,
- isKnownError,
- isMetamaskError,
- } from "@clerk/clerk-react";
+ import { isClerkAPIResponseError, isEmailLinkError, isKnownError, isMetamaskError } from '@clerk/clerk-react';
// After
import {
isClerkAPIResponseError,
isEmailLinkError,
isKnownError,
isMetamaskError,
- } from "@clerk/clerk-react/errors";
+ } from '@clerk/clerk-react/errors';
// Before
- import { MultisessionAppSupport } from "@clerk/clerk-react";
+ import { MultisessionAppSupport } from '@clerk/clerk-react';
// After
- import { MultisessionAppSupport } from "@clerk/clerk-react/internal";
+ import { MultisessionAppSupport } from '@clerk/clerk-react/internal';
```
- Drop from the `@clerk/clerk-react` and all other clerk-react wrapper packages:
diff --git a/packages/expo/package.json b/packages/expo/package.json
index 2fde594c01..503343458b 100644
--- a/packages/expo/package.json
+++ b/packages/expo/package.json
@@ -1,6 +1,6 @@
{
"name": "@clerk/clerk-expo",
- "version": "2.2.32",
+ "version": "2.2.33",
"description": "Clerk React Native/Expo library",
"keywords": [
"react",
@@ -55,9 +55,9 @@
"publish:local": "npx yalc push --replace --sig"
},
"dependencies": {
- "@clerk/clerk-js": "5.30.2",
- "@clerk/clerk-react": "5.14.2",
- "@clerk/shared": "2.11.2",
+ "@clerk/clerk-js": "5.30.3",
+ "@clerk/clerk-react": "5.14.3",
+ "@clerk/shared": "2.11.3",
"@clerk/types": "4.29.0",
"base-64": "^1.0.0",
"react-native-url-polyfill": "2.0.0",
diff --git a/packages/express/CHANGELOG.md b/packages/express/CHANGELOG.md
index 73ebe6a2d7..d2cbc9d54d 100644
--- a/packages/express/CHANGELOG.md
+++ b/packages/express/CHANGELOG.md
@@ -1,5 +1,13 @@
# Change Log
+## 1.3.7
+
+### Patch Changes
+
+- Updated dependencies [[`a7726cc12a824b278f6d2a37cb1901c38c5f70dc`](https://github.com/clerk/javascript/commit/a7726cc12a824b278f6d2a37cb1901c38c5f70dc)]:
+ - @clerk/shared@2.11.3
+ - @clerk/backend@1.15.5
+
## 1.3.4
### Patch Changes
@@ -43,7 +51,7 @@
- Export [`authenticateRequest` method](https://clerk.com/docs/references/backend/authenticate-request) from `@clerk/express` (in case you want to go low-level and implement flows to your specific needs). You can use it like so: ([#4340](https://github.com/clerk/javascript/pull/4340)) by [@jescalan](https://github.com/jescalan)
```ts
- import { authenticateRequest } from "@clerk/express";
+ import { authenticateRequest } from '@clerk/express';
```
This function is adapted to Express' Request wrapper and as such notably different to the exported function from `@clerk/backend`. If you need to use it, be sure to import from `@clerk/express`.
diff --git a/packages/express/package.json b/packages/express/package.json
index fe3dc1fb31..8e44d56369 100644
--- a/packages/express/package.json
+++ b/packages/express/package.json
@@ -1,6 +1,6 @@
{
"name": "@clerk/express",
- "version": "1.3.6",
+ "version": "1.3.7",
"description": "Clerk server SDK for usage with Express",
"keywords": [
"clerk",
@@ -55,8 +55,8 @@
"test:ci": "jest --maxWorkers=70%"
},
"dependencies": {
- "@clerk/backend": "^1.15.4",
- "@clerk/shared": "^2.11.2",
+ "@clerk/backend": "^1.15.5",
+ "@clerk/shared": "^2.11.3",
"@clerk/types": "4.29.0",
"tslib": "2.4.1"
},
diff --git a/packages/fastify/CHANGELOG.md b/packages/fastify/CHANGELOG.md
index 1b99378899..d9bc7bc915 100644
--- a/packages/fastify/CHANGELOG.md
+++ b/packages/fastify/CHANGELOG.md
@@ -1,5 +1,13 @@
# Change Log
+## 2.0.9
+
+### Patch Changes
+
+- Updated dependencies [[`a7726cc12a824b278f6d2a37cb1901c38c5f70dc`](https://github.com/clerk/javascript/commit/a7726cc12a824b278f6d2a37cb1901c38c5f70dc)]:
+ - @clerk/shared@2.11.3
+ - @clerk/backend@1.15.5
+
## 2.0.6
### Patch Changes
@@ -524,7 +532,7 @@
sanitizeAuthObject,
signedInAuthObject,
signedOutAuthObject,
- } from "@clerk/backend/internal";
+ } from '@clerk/backend/internal';
```
- Drop the above exports from the top-level api:
```typescript
@@ -561,34 +569,28 @@
Token,
User,
Verification,
- } from "@clerk/backend";
+ } 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";
+ import type { Organization, Session, User, WebhookEvent, WebhookEventType } from '@clerk/backend';
```
- 02976d494: (Note: This is only relevant if, in the unlikely case, you are using `Clerk` from `@clerk/fastify` directly. If not, you can safely ignore this change.)
Remove the named `Clerk` import from `@clerk/fastify` and import `createClerkClient` instead. The latter is a factory method to create a Clerk client instance for you. This update aligns usage across our SDKs and will enable us to ship DX improvements better in the future.
```js
- import { Clerk } from "@clerk/fastify";
- const clerk = Clerk({ secretKey: "..." });
+ import { Clerk } from '@clerk/fastify';
+ const clerk = Clerk({ secretKey: '...' });
```
You need to rename the import from `Clerk` to `createClerkClient` and change its usage:
```js
- import { createClerkClient } from "@clerk/fastify";
- const clerk = createClerkClient({ secretKey: "..." });
+ import { createClerkClient } from '@clerk/fastify';
+ const clerk = createClerkClient({ secretKey: '...' });
```
### Minor Changes
@@ -1152,7 +1154,7 @@
sanitizeAuthObject,
signedInAuthObject,
signedOutAuthObject,
- } from "@clerk/backend/internal";
+ } from '@clerk/backend/internal';
```
- Drop the above exports from the top-level api:
```typescript
@@ -1191,19 +1193,13 @@
Token,
User,
Verification,
- } from "@clerk/backend";
+ } 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";
+ import type { Organization, Session, User, WebhookEvent, WebhookEventType } from '@clerk/backend';
```
### Patch Changes
@@ -1229,15 +1225,15 @@
Remove the named `Clerk` import from `@clerk/fastify` and import `createClerkClient` instead. The latter is a factory method to create a Clerk client instance for you. This update aligns usage across our SDKs and will enable us to ship DX improvements better in the future.
```js
- import { Clerk } from "@clerk/fastify";
- const clerk = Clerk({ secretKey: "..." });
+ import { Clerk } from '@clerk/fastify';
+ const clerk = Clerk({ secretKey: '...' });
```
You need to rename the import from `Clerk` to `createClerkClient` and change its usage:
```js
- import { createClerkClient } from "@clerk/fastify";
- const clerk = createClerkClient({ secretKey: "..." });
+ import { createClerkClient } from '@clerk/fastify';
+ const clerk = createClerkClient({ secretKey: '...' });
```
### Patch Changes
diff --git a/packages/fastify/package.json b/packages/fastify/package.json
index 0718a9ab54..47f8da6880 100644
--- a/packages/fastify/package.json
+++ b/packages/fastify/package.json
@@ -1,6 +1,6 @@
{
"name": "@clerk/fastify",
- "version": "2.0.8",
+ "version": "2.0.9",
"description": "Clerk SDK for Fastify",
"keywords": [
"auth",
@@ -40,8 +40,8 @@
"test:cache:clear": "jest --clearCache --useStderr"
},
"dependencies": {
- "@clerk/backend": "1.15.4",
- "@clerk/shared": "2.11.2",
+ "@clerk/backend": "1.15.5",
+ "@clerk/shared": "2.11.3",
"@clerk/types": "4.29.0",
"cookies": "0.8.0",
"fastify-plugin": "^5.0.1"
diff --git a/packages/localizations/CHANGELOG.md b/packages/localizations/CHANGELOG.md
index 933f8e4fa2..66a789757e 100644
--- a/packages/localizations/CHANGELOG.md
+++ b/packages/localizations/CHANGELOG.md
@@ -1,5 +1,11 @@
# Change Log
+## 3.4.4
+
+### Patch Changes
+
+- Updates missing Russian translations by [@nikosdouvlis](https://github.com/nikosdouvlis)
+
## 3.4.1
### Patch Changes
diff --git a/packages/localizations/package.json b/packages/localizations/package.json
index ab9be6a0ab..2dfef4ea90 100644
--- a/packages/localizations/package.json
+++ b/packages/localizations/package.json
@@ -1,6 +1,6 @@
{
"name": "@clerk/localizations",
- "version": "3.4.3",
+ "version": "3.4.4",
"description": "Localizations for the Clerk components",
"keywords": [
"react",
diff --git a/packages/nextjs/CHANGELOG.md b/packages/nextjs/CHANGELOG.md
index 5b220a0ca2..7328f9cfb5 100644
--- a/packages/nextjs/CHANGELOG.md
+++ b/packages/nextjs/CHANGELOG.md
@@ -1,5 +1,18 @@
# Change Log
+## 6.1.3
+
+### Patch Changes
+
+- Fix static analysis warnings warning during production NextJS builds by [@nikosdouvlis](https://github.com/nikosdouvlis)
+
+- Updates broken Clerk documentation references by [@nikosdouvlis](https://github.com/nikosdouvlis)
+
+- Updated dependencies [[`a7726cc12a824b278f6d2a37cb1901c38c5f70dc`](https://github.com/clerk/javascript/commit/a7726cc12a824b278f6d2a37cb1901c38c5f70dc)]:
+ - @clerk/shared@2.11.3
+ - @clerk/backend@1.15.5
+ - @clerk/clerk-react@5.14.3
+
## 6.1.0
### Minor Changes
@@ -16,7 +29,7 @@
Example with clerk-js methods.
```tsx
- import { __experimental_useReverification as useReverification } from "@clerk/nextjs";
+ import { __experimental_useReverification as useReverification } from '@clerk/nextjs';
function DeleteAccount() {
const { user } = useUser();
@@ -88,7 +101,7 @@
Previously the `auth()` method from `@clerk/nextjs/server` was synchronous.
```typescript
- import { auth } from "@clerk/nextjs/server";
+ import { auth } from '@clerk/nextjs/server';
export function GET() {
const { userId } = auth();
@@ -732,7 +745,7 @@
```tsx
google.accounts.id.initialize({
- callback: async (response) => {
+ callback: async response => {
const signInOrUp = await Clerk.authenticateWithGoogleOneTap({
token: response.credential,
});
@@ -747,11 +760,11 @@
```tsx
google.accounts.id.initialize({
- callback: async (response) => {
+ callback: async response => {
const signInOrUp = await Clerk.authenticateWithGoogleOneTap({
token: response.credential,
});
- if (signInOrUp.status === "complete") {
+ if (signInOrUp.status === 'complete') {
await Clerk.setActive({
session: signInOrUp.createdSessionId,
});
@@ -993,11 +1006,10 @@
Code example to keep the same behavior:
```typescript
- import { users } from "@clerk/backend";
- import { ClerkAPIResponseError } from "@clerk/shared/error";
+ import { users } from '@clerk/backend';
+ import { ClerkAPIResponseError } from '@clerk/shared/error';
- const { data, errors, clerkTraceId, status, statusText } =
- await users.getUser("user_deadbeef");
+ const { data, errors, clerkTraceId, status, statusText } = await users.getUser('user_deadbeef');
if (errors) {
throw new ClerkAPIResponseError(statusText, {
data: errors,
@@ -1046,7 +1058,7 @@
sanitizeAuthObject,
signedInAuthObject,
signedOutAuthObject,
- } from "@clerk/backend/internal";
+ } from '@clerk/backend/internal';
```
- Drop the above exports from the top-level api:
```typescript
@@ -1083,29 +1095,18 @@
Token,
User,
Verification,
- } from "@clerk/backend";
+ } 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";
+ import type { Organization, Session, User, WebhookEvent, WebhookEventType } from '@clerk/backend';
```
- f58a9949b: Changes in exports of `@clerk/backend`:
- Expose the following helpers and enums from `@clerk/backend/jwt`:
```typescript
- import {
- decodeJwt,
- hasValidSignature,
- signJwt,
- verifyJwt,
- } from "@clerk/backend/jwt";
+ import { decodeJwt, hasValidSignature, signJwt, verifyJwt } from '@clerk/backend/jwt';
```
- Drop the above exports from the top-level api:
```typescript
@@ -1122,15 +1123,15 @@
Remove the named `Clerk` import from `@clerk/nextjs` and import `createClerkClient` instead. The latter is a factory method to create a Clerk client instance for you. This update aligns usage across our SDKs and will enable us to ship DX improvements better in the future.
```js
- import { Clerk } from "@clerk/nextjs";
- const clerk = Clerk({ secretKey: "..." });
+ import { Clerk } from '@clerk/nextjs';
+ const clerk = Clerk({ secretKey: '...' });
```
You need to rename the import from `Clerk` to `createClerkClient` and change its usage:
```js
- import { createClerkClient } from "@clerk/nextjs";
- const clerk = createClerkClient({ secretKey: "..." });
+ import { createClerkClient } from '@clerk/nextjs';
+ const clerk = createClerkClient({ secretKey: '...' });
```
- 9b02c1aae: Changes in `@clerk/backend` exports:
@@ -1142,20 +1143,14 @@
TokenVerificationErrorAction,
TokenVerificationErrorCode,
TokenVerificationErrorReason,
- } from "@clerk/backend/errors";
+ } from '@clerk/backend/errors';
```
- Drop errors from top-level export
```typescript
// Before
- import {
- TokenVerificationError,
- TokenVerificationErrorReason,
- } from "@clerk/backend";
+ import { TokenVerificationError, TokenVerificationErrorReason } from '@clerk/backend';
// After
- import {
- TokenVerificationError,
- TokenVerificationErrorReason,
- } from "@clerk/backend/errors";
+ import { TokenVerificationError, TokenVerificationErrorReason } from '@clerk/backend/errors';
```
- e5598cfb1: Drop `user`, `session`, and `organization` resources from the returned value of `auth()`.
- 6fffd3b54: Replace return the value of the following jwt helpers to match the format of backend API client return values (for consistency).
@@ -1306,9 +1301,9 @@
### 1. Protect a route that requires authentication
```js
- import { clerkMiddleware } from "@clerk/nextjs/server";
+ import { clerkMiddleware } from '@clerk/nextjs/server';
- export default clerkMiddleware((auth) => {
+ export default clerkMiddleware(auth => {
const { userId } = auth().protect();
// userId is now available for use in your route handler
// for page requests, calling protect will automatically redirect the user to the sign-in URL if they are not authenticated
@@ -1319,10 +1314,10 @@
### 2. Protect a route that requires specific permissions
```js
- import { clerkMiddleware } from "@clerk/nextjs/server";
+ import { clerkMiddleware } from '@clerk/nextjs/server';
- export default clerkMiddleware((auth) => {
- const { userId } = auth().protect({ permission: "org:domains:delete" });
+ export default clerkMiddleware(auth => {
+ const { userId } = auth().protect({ permission: 'org:domains:delete' });
// userId is now available for use in your route handler
// for page requests, calling protect will automatically throw a notFound error if the user does not have the required permissions
return NextResponse.next();
@@ -1332,9 +1327,9 @@
### 2. Manually redirect to sign-in URL using the redirectToSignIn helper
```js
- import { clerkMiddleware } from "@clerk/nextjs/server";
+ import { clerkMiddleware } from '@clerk/nextjs/server';
- export default clerkMiddleware((auth) => {
+ export default clerkMiddleware(auth => {
// If you want more fine-grained control, you can always use the low-level redirectToSignIn helper
if (!auth().userId) {
return auth().redirectToSignIn();
@@ -1347,10 +1342,7 @@
This commit also introduces the experimental `createRouteMatcher` helper, which can be used to create a route matcher that matches a route against the current request. This is useful for creating custom logic based on which routes you want to handle as protected or public.
```js
- import {
- clerkMiddleware,
- experimental_createRouteMatcher,
- } from "@clerk/nextjs/server";
+ import { clerkMiddleware, experimental_createRouteMatcher } from '@clerk/nextjs/server';
const isProtectedRoute = experimental_createRouteMatcher([/protected.*/]);
@@ -1381,9 +1373,9 @@
- 529e2e14c: Introduce `createRouteMatcher` which is designed to generate and return a function that evaluates whether a given Request object matches a set of predefined routes. It provides flexibility in defining these routes through various patterns, including glob patterns, regular expressions, and custom functions. This composable helper can be used in combination with the `clerkMiddleware` helper to easily protect specific routes, eg:
```ts
- import { clerkMiddleware, createRouteMatcher } from "@clerk/nextjs/server";
+ import { clerkMiddleware, createRouteMatcher } from '@clerk/nextjs/server';
- const isProtectedRoute = createRouteMatcher(["/dashboard(.*)"]);
+ const isProtectedRoute = createRouteMatcher(['/dashboard(.*)']);
export default clerkMiddleware((auth, request) => {
if (isProtectedRoute(request)) {
@@ -1414,14 +1406,11 @@
```ts
// Authorization
- auth().protect({ role: "org:admin" }, { redirectUrl: "/any-page" });
- auth().protect(
- { permission: "org:settings:manage" },
- { redirectUrl: "/any-page" },
- );
+ auth().protect({ role: 'org:admin' }, { redirectUrl: '/any-page' });
+ auth().protect({ permission: 'org:settings:manage' }, { redirectUrl: '/any-page' });
// Authentication
- auth().protect({ redirectUrl: "/any-page" });
+ auth().protect({ redirectUrl: '/any-page' });
```
- fb794ce7b: Support older iOS 13.3 and 13.4 mobile devices
@@ -1973,9 +1962,9 @@
- Introduce `createRouteMatcher` which is designed to generate and return a function that evaluates whether a given Request object matches a set of predefined routes. It provides flexibility in defining these routes through various patterns, including glob patterns, regular expressions, and custom functions. This composable helper can be used in combination with the `clerkMiddleware` helper to easily protect specific routes, eg: ([#2572](https://github.com/clerk/javascript/pull/2572)) by [@nikosdouvlis](https://github.com/nikosdouvlis)
```ts
- import { clerkMiddleware, createRouteMatcher } from "@clerk/nextjs/server";
+ import { clerkMiddleware, createRouteMatcher } from '@clerk/nextjs/server';
- const isProtectedRoute = createRouteMatcher(["/dashboard(.*)"]);
+ const isProtectedRoute = createRouteMatcher(['/dashboard(.*)']);
export default clerkMiddleware((auth, request) => {
if (isProtectedRoute(request)) {
@@ -2040,9 +2029,9 @@
### 1. Protect a route that requires authentication
```js
- import { clerkMiddleware } from "@clerk/nextjs/server";
+ import { clerkMiddleware } from '@clerk/nextjs/server';
- export default clerkMiddleware((auth) => {
+ export default clerkMiddleware(auth => {
const { userId } = auth().protect();
// userId is now available for use in your route handler
// for page requests, calling protect will automatically redirect the user to the sign-in URL if they are not authenticated
@@ -2053,10 +2042,10 @@
### 2. Protect a route that requires specific permissions
```js
- import { clerkMiddleware } from "@clerk/nextjs/server";
+ import { clerkMiddleware } from '@clerk/nextjs/server';
- export default clerkMiddleware((auth) => {
- const { userId } = auth().protect({ permission: "org:domains:delete" });
+ export default clerkMiddleware(auth => {
+ const { userId } = auth().protect({ permission: 'org:domains:delete' });
// userId is now available for use in your route handler
// for page requests, calling protect will automatically throw a notFound error if the user does not have the required permissions
return NextResponse.next();
@@ -2066,9 +2055,9 @@
### 2. Manually redirect to sign-in URL using the redirectToSignIn helper
```js
- import { clerkMiddleware } from "@clerk/nextjs/server";
+ import { clerkMiddleware } from '@clerk/nextjs/server';
- export default clerkMiddleware((auth) => {
+ export default clerkMiddleware(auth => {
// If you want more fine-grained control, you can always use the low-level redirectToSignIn helper
if (!auth().userId) {
return auth().redirectToSignIn();
@@ -2081,10 +2070,7 @@
This commit also introduces the experimental `createRouteMatcher` helper, which can be used to create a route matcher that matches a route against the current request. This is useful for creating custom logic based on which routes you want to handle as protected or public.
```js
- import {
- clerkMiddleware,
- experimental_createRouteMatcher,
- } from "@clerk/nextjs/server";
+ import { clerkMiddleware, experimental_createRouteMatcher } from '@clerk/nextjs/server';
const isProtectedRoute = experimental_createRouteMatcher([/protected.*/]);
@@ -2181,7 +2167,7 @@
sanitizeAuthObject,
signedInAuthObject,
signedOutAuthObject,
- } from "@clerk/backend/internal";
+ } from '@clerk/backend/internal';
```
- Drop the above exports from the top-level api:
```typescript
@@ -2220,31 +2206,20 @@
Token,
User,
Verification,
- } from "@clerk/backend";
+ } 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";
+ 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";
+ import { decodeJwt, hasValidSignature, signJwt, verifyJwt } from '@clerk/backend/jwt';
```
- Drop the above exports from the top-level api:
```typescript
@@ -2265,20 +2240,14 @@
TokenVerificationErrorAction,
TokenVerificationErrorCode,
TokenVerificationErrorReason,
- } from "@clerk/backend/errors";
+ } from '@clerk/backend/errors';
```
- Drop errors from top-level export
```typescript
// Before
- import {
- TokenVerificationError,
- TokenVerificationErrorReason,
- } from "@clerk/backend";
+ import { TokenVerificationError, TokenVerificationErrorReason } from '@clerk/backend';
// After
- import {
- TokenVerificationError,
- TokenVerificationErrorReason,
- } from "@clerk/backend/errors";
+ 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)
@@ -2317,29 +2286,24 @@
```typescript
// Before
- import { __internal__setErrorThrowerOptions } from "@clerk/clerk-react";
+ import { __internal__setErrorThrowerOptions } from '@clerk/clerk-react';
// After
- import { setErrorThrowerOptions } from "@clerk/clerk-react/internal";
+ import { setErrorThrowerOptions } from '@clerk/clerk-react/internal';
// Before
- import {
- isClerkAPIResponseError,
- isEmailLinkError,
- isKnownError,
- isMetamaskError,
- } from "@clerk/clerk-react";
+ import { isClerkAPIResponseError, isEmailLinkError, isKnownError, isMetamaskError } from '@clerk/clerk-react';
// After
import {
isClerkAPIResponseError,
isEmailLinkError,
isKnownError,
isMetamaskError,
- } from "@clerk/clerk-react/errors";
+ } from '@clerk/clerk-react/errors';
// Before
- import { MultisessionAppSupport } from "@clerk/clerk-react";
+ import { MultisessionAppSupport } from '@clerk/clerk-react';
// After
- import { MultisessionAppSupport } from "@clerk/clerk-react/internal";
+ import { MultisessionAppSupport } from '@clerk/clerk-react/internal';
```
- Drop from the `@clerk/clerk-react` and all other clerk-react wrapper packages:
@@ -2356,15 +2320,15 @@
Remove the named `Clerk` import from `@clerk/nextjs` and import `createClerkClient` instead. The latter is a factory method to create a Clerk client instance for you. This update aligns usage across our SDKs and will enable us to ship DX improvements better in the future.
```js
- import { Clerk } from "@clerk/nextjs";
- const clerk = Clerk({ secretKey: "..." });
+ import { Clerk } from '@clerk/nextjs';
+ const clerk = Clerk({ secretKey: '...' });
```
You need to rename the import from `Clerk` to `createClerkClient` and change its usage:
```js
- import { createClerkClient } from "@clerk/nextjs";
- const clerk = createClerkClient({ secretKey: "..." });
+ import { createClerkClient } from '@clerk/nextjs';
+ const clerk = createClerkClient({ secretKey: '...' });
```
### Minor Changes
@@ -2393,14 +2357,11 @@
```ts
// Authorization
- auth().protect({ role: "org:admin" }, { redirectUrl: "/any-page" });
- auth().protect(
- { permission: "org:settings:manage" },
- { redirectUrl: "/any-page" },
- );
+ auth().protect({ role: 'org:admin' }, { redirectUrl: '/any-page' });
+ auth().protect({ permission: 'org:settings:manage' }, { redirectUrl: '/any-page' });
// Authentication
- auth().protect({ redirectUrl: "/any-page" });
+ auth().protect({ redirectUrl: '/any-page' });
```
- Updated dependencies [[`896cb6104`](https://github.com/clerk/javascript/commit/896cb610409f84c0ff7a4f502f0b4ccee1afc157), [`02976d494`](https://github.com/clerk/javascript/commit/02976d49473958b8c3fea38d4e389dc1bee7e8c4), [`8aea39cd6`](https://github.com/clerk/javascript/commit/8aea39cd6907e3a8ac01091aa6df64ebd6a42ed2), [`86d52fb5c`](https://github.com/clerk/javascript/commit/86d52fb5cf68f1dc7adf617605b922134e21268f), [`ab4eb56a5`](https://github.com/clerk/javascript/commit/ab4eb56a5c34baf496ebb8ac412ad6171b9bd79c), [`46040a2f3`](https://github.com/clerk/javascript/commit/46040a2f34d0991072fca490e031c1994b2e2296), [`75ea300bc`](https://github.com/clerk/javascript/commit/75ea300bce16a0ce401a225263bb267ad2a217b8), [`844847e0b`](https://github.com/clerk/javascript/commit/844847e0becf20243fba3c659b2b77a238dd270a)]:
@@ -2579,11 +2540,10 @@
Code example to keep the same behavior:
```typescript
- import { users } from "@clerk/backend";
- import { ClerkAPIResponseError } from "@clerk/shared/error";
+ import { users } from '@clerk/backend';
+ import { ClerkAPIResponseError } from '@clerk/shared/error';
- const { data, errors, clerkTraceId, status, statusText } =
- await users.getUser("user_deadbeef");
+ const { data, errors, clerkTraceId, status, statusText } = await users.getUser('user_deadbeef');
if (errors) {
throw new ClerkAPIResponseError(statusText, {
data: errors,
diff --git a/packages/nextjs/package.json b/packages/nextjs/package.json
index e31f6746ed..bd77953623 100644
--- a/packages/nextjs/package.json
+++ b/packages/nextjs/package.json
@@ -1,6 +1,6 @@
{
"name": "@clerk/nextjs",
- "version": "6.1.2",
+ "version": "6.1.3",
"description": "Clerk SDK for NextJS",
"keywords": [
"clerk",
@@ -65,9 +65,9 @@
"test": "vitest"
},
"dependencies": {
- "@clerk/backend": "1.15.4",
- "@clerk/clerk-react": "5.14.2",
- "@clerk/shared": "2.11.2",
+ "@clerk/backend": "1.15.5",
+ "@clerk/clerk-react": "5.14.3",
+ "@clerk/shared": "2.11.3",
"@clerk/types": "4.29.0",
"crypto-js": "4.2.0",
"ezheaders": "0.1.0",
diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md
index 54ab5b397c..09662e2eaf 100644
--- a/packages/react/CHANGELOG.md
+++ b/packages/react/CHANGELOG.md
@@ -1,5 +1,12 @@
# Change Log
+## 5.14.3
+
+### Patch Changes
+
+- Updated dependencies [[`a7726cc12a824b278f6d2a37cb1901c38c5f70dc`](https://github.com/clerk/javascript/commit/a7726cc12a824b278f6d2a37cb1901c38c5f70dc)]:
+ - @clerk/shared@2.11.3
+
## 5.14.0
### Minor Changes
@@ -14,7 +21,7 @@
Example with clerk-js methods.
```tsx
- import { __experimental_useReverification as useReverification } from "@clerk/nextjs";
+ import { __experimental_useReverification as useReverification } from '@clerk/nextjs';
function DeleteAccount() {
const { user } = useUser();
@@ -85,8 +92,14 @@
Example usage:
```tsx
-
-
+
+
This is my page available to all children
@@ -94,10 +107,13 @@
```
```tsx
-
+
This is my page available to all children
@@ -198,8 +214,8 @@
```ts
has({
__experimental_assurance: {
- level: "L2.secondFactor",
- maxAge: "A1.10min",
+ level: 'L2.secondFactor',
+ maxAge: 'A1.10min',
},
});
```
@@ -400,13 +416,24 @@
```jsx
- } href="/terms" />
- } open="help" /> //
- Navigate to `/help` page when UserProfile opens as a modal. (Requires a
- custom page to have been set in `/help`)
- } />
+ }
+ href='/terms'
+ />
}
+ open='help'
+ />{' '}
+ // Navigate to `/help` page when UserProfile opens as a modal. (Requires a custom page to have been set in
+ `/help`)
+ }
+ />
+ }
onClick={() => setModal(true)}
/>
@@ -533,7 +560,7 @@
```tsx
google.accounts.id.initialize({
- callback: async (response) => {
+ callback: async response => {
const signInOrUp = await Clerk.authenticateWithGoogleOneTap({
token: response.credential,
});
@@ -548,11 +575,11 @@
```tsx
google.accounts.id.initialize({
- callback: async (response) => {
+ callback: async response => {
const signInOrUp = await Clerk.authenticateWithGoogleOneTap({
token: response.credential,
});
- if (signInOrUp.status === "complete") {
+ if (signInOrUp.status === 'complete') {
await Clerk.setActive({
session: signInOrUp.createdSessionId,
});
@@ -650,13 +677,13 @@
Before:
```jsx
- import { SignOutButton } from "@clerk/clerk-react";
+ import { SignOutButton } from '@clerk/clerk-react';
export const Signout = () => {
return (
{
- window.location.href = "/your-path";
+ window.location.href = '/your-path';
}}
>
@@ -668,11 +695,11 @@
After:
```jsx
- import { SignOutButton } from "@clerk/clerk-react";
+ import { SignOutButton } from '@clerk/clerk-react';
export const Signout = () => {
return (
-
+
);
@@ -844,8 +871,8 @@
```ts
// clerk.d.ts
interface ClerkAuthorization {
- permission: "";
- role: "admin" | "basic_member" | "guest_member";
+ permission: '';
+ role: 'admin' | 'basic_member' | 'guest_member';
}
```
@@ -1346,8 +1373,8 @@
export {};
interface ClerkAuthorization {
- permission: "";
- role: "admin" | "basic_member" | "guest_member";
+ permission: '';
+ role: 'admin' | 'basic_member' | 'guest_member';
}
```
@@ -1380,13 +1407,13 @@
Before:
```jsx
- import { SignOutButton } from "@clerk/clerk-react";
+ import { SignOutButton } from '@clerk/clerk-react';
export const Signout = () => {
return (
{
- window.location.href = "/your-path";
+ window.location.href = '/your-path';
}}
>
@@ -1398,11 +1425,11 @@
After:
```jsx
- import { SignOutButton } from "@clerk/clerk-react";
+ import { SignOutButton } from '@clerk/clerk-react';
export const Signout = () => {
return (
-
+
);
@@ -1427,29 +1454,24 @@
```typescript
// Before
- import { __internal__setErrorThrowerOptions } from "@clerk/clerk-react";
+ import { __internal__setErrorThrowerOptions } from '@clerk/clerk-react';
// After
- import { setErrorThrowerOptions } from "@clerk/clerk-react/internal";
+ import { setErrorThrowerOptions } from '@clerk/clerk-react/internal';
// Before
- import {
- isClerkAPIResponseError,
- isEmailLinkError,
- isKnownError,
- isMetamaskError,
- } from "@clerk/clerk-react";
+ import { isClerkAPIResponseError, isEmailLinkError, isKnownError, isMetamaskError } from '@clerk/clerk-react';
// After
import {
isClerkAPIResponseError,
isEmailLinkError,
isKnownError,
isMetamaskError,
- } from "@clerk/clerk-react/errors";
+ } from '@clerk/clerk-react/errors';
// Before
- import { MultisessionAppSupport } from "@clerk/clerk-react";
+ import { MultisessionAppSupport } from '@clerk/clerk-react';
// After
- import { MultisessionAppSupport } from "@clerk/clerk-react/internal";
+ import { MultisessionAppSupport } from '@clerk/clerk-react/internal';
```
- Drop from the `@clerk/clerk-react` and all other clerk-react wrapper packages:
@@ -1745,15 +1767,19 @@
```tsx
}
>
- } />
-
-
+ }
+ />
+
+
```
@@ -1766,19 +1792,19 @@
```tsx
}
>
}
/>
-
-
+
+
```
diff --git a/packages/react/package.json b/packages/react/package.json
index 83658f695e..523ab87d1e 100644
--- a/packages/react/package.json
+++ b/packages/react/package.json
@@ -1,6 +1,6 @@
{
"name": "@clerk/clerk-react",
- "version": "5.14.2",
+ "version": "5.14.3",
"description": "Clerk React library",
"keywords": [
"clerk",
@@ -76,7 +76,7 @@
"test:ci": "jest --maxWorkers=70%"
},
"dependencies": {
- "@clerk/shared": "2.11.2",
+ "@clerk/shared": "2.11.3",
"@clerk/types": "4.29.0",
"tslib": "2.4.1"
},
diff --git a/packages/remix/CHANGELOG.md b/packages/remix/CHANGELOG.md
index a654723b24..5e2a00817e 100644
--- a/packages/remix/CHANGELOG.md
+++ b/packages/remix/CHANGELOG.md
@@ -1,5 +1,14 @@
# Change Log
+## 4.2.45
+
+### Patch Changes
+
+- Updated dependencies [[`a7726cc12a824b278f6d2a37cb1901c38c5f70dc`](https://github.com/clerk/javascript/commit/a7726cc12a824b278f6d2a37cb1901c38c5f70dc)]:
+ - @clerk/shared@2.11.3
+ - @clerk/backend@1.15.5
+ - @clerk/clerk-react@5.14.3
+
## 4.2.42
### Patch Changes
@@ -680,7 +689,7 @@
sanitizeAuthObject,
signedInAuthObject,
signedOutAuthObject,
- } from "@clerk/backend/internal";
+ } from '@clerk/backend/internal';
```
- Drop the above exports from the top-level api:
```typescript
@@ -695,15 +704,15 @@
Remove the named `Clerk` import from `@clerk/remix` and import `createClerkClient` instead. The latter is a factory method to create a Clerk client instance for you. This update aligns usage across our SDKs and will enable us to ship DX improvements better in the future.
```js
- import { Clerk } from "@clerk/remix";
- const clerk = Clerk({ secretKey: "..." });
+ import { Clerk } from '@clerk/remix';
+ const clerk = Clerk({ secretKey: '...' });
```
You need to rename the import from `Clerk` to `createClerkClient` and change its usage:
```js
- import { createClerkClient } from "@clerk/remix";
- const clerk = createClerkClient({ secretKey: "..." });
+ import { createClerkClient } from '@clerk/remix';
+ const clerk = createClerkClient({ secretKey: '...' });
```
- 1ad910eb9: Changes in exports of `@clerk/backend`:
@@ -733,19 +742,13 @@
Token,
User,
Verification,
- } from "@clerk/backend";
+ } 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";
+ import type { Organization, Session, User, WebhookEvent, WebhookEventType } from '@clerk/backend';
```
- 9a1fe3728: Use the new `routerPush` and `routerReplace` props for `` instead of `navigate`.
- e1f7eae87: Limit TokenVerificationError exports to TokenVerificationError and TokenVerificationErrorReason
@@ -1308,7 +1311,7 @@
sanitizeAuthObject,
signedInAuthObject,
signedOutAuthObject,
- } from "@clerk/backend/internal";
+ } from '@clerk/backend/internal';
```
- Drop the above exports from the top-level api:
```typescript
@@ -1347,19 +1350,13 @@
Token,
User,
Verification,
- } from "@clerk/backend";
+ } 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";
+ import type { Organization, Session, User, WebhookEvent, WebhookEventType } from '@clerk/backend';
```
### Patch Changes
@@ -1384,29 +1381,24 @@
```typescript
// Before
- import { __internal__setErrorThrowerOptions } from "@clerk/clerk-react";
+ import { __internal__setErrorThrowerOptions } from '@clerk/clerk-react';
// After
- import { setErrorThrowerOptions } from "@clerk/clerk-react/internal";
+ import { setErrorThrowerOptions } from '@clerk/clerk-react/internal';
// Before
- import {
- isClerkAPIResponseError,
- isEmailLinkError,
- isKnownError,
- isMetamaskError,
- } from "@clerk/clerk-react";
+ import { isClerkAPIResponseError, isEmailLinkError, isKnownError, isMetamaskError } from '@clerk/clerk-react';
// After
import {
isClerkAPIResponseError,
isEmailLinkError,
isKnownError,
isMetamaskError,
- } from "@clerk/clerk-react/errors";
+ } from '@clerk/clerk-react/errors';
// Before
- import { MultisessionAppSupport } from "@clerk/clerk-react";
+ import { MultisessionAppSupport } from '@clerk/clerk-react';
// After
- import { MultisessionAppSupport } from "@clerk/clerk-react/internal";
+ import { MultisessionAppSupport } from '@clerk/clerk-react/internal';
```
- Drop from the `@clerk/clerk-react` and all other clerk-react wrapper packages:
@@ -1423,15 +1415,15 @@
Remove the named `Clerk` import from `@clerk/remix` and import `createClerkClient` instead. The latter is a factory method to create a Clerk client instance for you. This update aligns usage across our SDKs and will enable us to ship DX improvements better in the future.
```js
- import { Clerk } from "@clerk/remix";
- const clerk = Clerk({ secretKey: "..." });
+ import { Clerk } from '@clerk/remix';
+ const clerk = Clerk({ secretKey: '...' });
```
You need to rename the import from `Clerk` to `createClerkClient` and change its usage:
```js
- import { createClerkClient } from "@clerk/remix";
- const clerk = createClerkClient({ secretKey: "..." });
+ import { createClerkClient } from '@clerk/remix';
+ const clerk = createClerkClient({ secretKey: '...' });
```
### Patch Changes
diff --git a/packages/remix/package.json b/packages/remix/package.json
index a568d7b007..33076d80ca 100644
--- a/packages/remix/package.json
+++ b/packages/remix/package.json
@@ -1,6 +1,6 @@
{
"name": "@clerk/remix",
- "version": "4.2.44",
+ "version": "4.2.45",
"description": "Clerk SDK for Remix",
"keywords": [
"clerk",
@@ -73,9 +73,9 @@
"publish:local": "npx yalc push --replace --sig"
},
"dependencies": {
- "@clerk/backend": "1.15.4",
- "@clerk/clerk-react": "5.14.2",
- "@clerk/shared": "2.11.2",
+ "@clerk/backend": "1.15.5",
+ "@clerk/clerk-react": "5.14.3",
+ "@clerk/shared": "2.11.3",
"@clerk/types": "4.29.0",
"cookie": "0.7.0",
"tslib": "2.4.1"
diff --git a/packages/sdk-node/CHANGELOG.md b/packages/sdk-node/CHANGELOG.md
index fb30e1da6b..2573e1c797 100644
--- a/packages/sdk-node/CHANGELOG.md
+++ b/packages/sdk-node/CHANGELOG.md
@@ -1,5 +1,13 @@
# Change Log
+## 5.0.58
+
+### Patch Changes
+
+- Updated dependencies [[`a7726cc12a824b278f6d2a37cb1901c38c5f70dc`](https://github.com/clerk/javascript/commit/a7726cc12a824b278f6d2a37cb1901c38c5f70dc)]:
+ - @clerk/shared@2.11.3
+ - @clerk/backend@1.15.5
+
## 5.0.55
### Patch Changes
@@ -440,13 +448,13 @@
The below code now works as expected: (requires CLERK_SECRET_KEY env var to have been set)
```ts
- import { clerkClient } from "@clerk/clerk-sdk-node";
+ import { clerkClient } from '@clerk/clerk-sdk-node';
// Use the default settings from the already instanciated clerkClient
clerkClient.verifyToken(token);
// or provide overrides the options
clerkClient.verifyToken(token, {
- secretKey: "xxxx",
+ secretKey: 'xxxx',
});
```
@@ -500,23 +508,23 @@
Remove the named `Clerk` import from `@clerk/clerk-sdk-node` and import `createClerkClient` instead. The latter is a factory method to create a Clerk client instance for you. This update aligns usage across our SDKs and will enable us to ship DX improvements better in the future.
```js
- import { Clerk } from "@clerk/clerk-sdk-node";
- const clerk = Clerk({ secretKey: "..." });
+ import { Clerk } from '@clerk/clerk-sdk-node';
+ const clerk = Clerk({ secretKey: '...' });
```
You need to rename the import from `Clerk` to `createClerkClient` and change its usage:
```js
- import { createClerkClient } from "@clerk/clerk-sdk-node";
- const clerk = createClerkClient({ secretKey: "..." });
+ import { createClerkClient } from '@clerk/clerk-sdk-node';
+ const clerk = createClerkClient({ secretKey: '...' });
```
- 9b02c1aae: Drop all pre-instantiated Backend API resources (`allowlistIdentifiers`, `clients`, `emailAddresses`, `emails`, `invitations`, `organizations`, `phoneNumbers`, `redirectUrls`, `sessions`, `signInTokens`, `users`, `domains`). Use the `clerkClient` import instead.
```typescript
// Before
- import { users } from "@clerk/clerk-sdk-node";
+ import { users } from '@clerk/clerk-sdk-node';
// After
- import { clerkClient } from "@clerk/clerk-sdk-node";
+ import { clerkClient } from '@clerk/clerk-sdk-node';
clerkClient.users;
```
- 71663c568: Internal update default apiUrl domain from clerk.dev to clerk.com
@@ -524,11 +532,10 @@
Code example to keep the same behavior:
```typescript
- import { users } from "@clerk/backend";
- import { ClerkAPIResponseError } from "@clerk/shared/error";
+ import { users } from '@clerk/backend';
+ import { ClerkAPIResponseError } from '@clerk/shared/error';
- const { data, errors, clerkTraceId, status, statusText } =
- await users.getUser("user_deadbeef");
+ const { data, errors, clerkTraceId, status, statusText } = await users.getUser('user_deadbeef');
if (errors) {
throw new ClerkAPIResponseError(statusText, {
data: errors,
@@ -601,7 +608,7 @@
sanitizeAuthObject,
signedInAuthObject,
signedOutAuthObject,
- } from "@clerk/backend/internal";
+ } from '@clerk/backend/internal';
```
- Drop the above exports from the top-level api:
```typescript
@@ -638,29 +645,18 @@
Token,
User,
Verification,
- } from "@clerk/backend";
+ } 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";
+ import type { Organization, Session, User, WebhookEvent, WebhookEventType } from '@clerk/backend';
```
- f58a9949b: Changes in exports of `@clerk/backend`:
- Expose the following helpers and enums from `@clerk/backend/jwt`:
```typescript
- import {
- decodeJwt,
- hasValidSignature,
- signJwt,
- verifyJwt,
- } from "@clerk/backend/jwt";
+ import { decodeJwt, hasValidSignature, signJwt, verifyJwt } from '@clerk/backend/jwt';
```
- Drop the above exports from the top-level api:
```typescript
@@ -680,20 +676,14 @@
TokenVerificationErrorAction,
TokenVerificationErrorCode,
TokenVerificationErrorReason,
- } from "@clerk/backend/errors";
+ } from '@clerk/backend/errors';
```
- Drop errors from top-level export
```typescript
// Before
- import {
- TokenVerificationError,
- TokenVerificationErrorReason,
- } from "@clerk/backend";
+ import { TokenVerificationError, TokenVerificationErrorReason } from '@clerk/backend';
// After
- import {
- TokenVerificationError,
- TokenVerificationErrorReason,
- } from "@clerk/backend/errors";
+ import { TokenVerificationError, TokenVerificationErrorReason } from '@clerk/backend/errors';
```
### Minor Changes
@@ -1160,9 +1150,9 @@
```typescript
// Before
- import { users } from "@clerk/clerk-sdk-node";
+ import { users } from '@clerk/clerk-sdk-node';
// After
- import { clerkClient } from "@clerk/clerk-sdk-node";
+ import { clerkClient } from '@clerk/clerk-sdk-node';
clerkClient.users;
```
@@ -1183,7 +1173,7 @@
sanitizeAuthObject,
signedInAuthObject,
signedOutAuthObject,
- } from "@clerk/backend/internal";
+ } from '@clerk/backend/internal';
```
- Drop the above exports from the top-level api:
```typescript
@@ -1222,31 +1212,20 @@
Token,
User,
Verification,
- } from "@clerk/backend";
+ } 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";
+ 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";
+ import { decodeJwt, hasValidSignature, signJwt, verifyJwt } from '@clerk/backend/jwt';
```
- Drop the above exports from the top-level api:
```typescript
@@ -1267,20 +1246,14 @@
TokenVerificationErrorAction,
TokenVerificationErrorCode,
TokenVerificationErrorReason,
- } from "@clerk/backend/errors";
+ } from '@clerk/backend/errors';
```
- Drop errors from top-level export
```typescript
// Before
- import {
- TokenVerificationError,
- TokenVerificationErrorReason,
- } from "@clerk/backend";
+ import { TokenVerificationError, TokenVerificationErrorReason } from '@clerk/backend';
// After
- import {
- TokenVerificationError,
- TokenVerificationErrorReason,
- } from "@clerk/backend/errors";
+ import { TokenVerificationError, TokenVerificationErrorReason } from '@clerk/backend/errors';
```
### Minor Changes
@@ -1309,15 +1282,15 @@
Remove the named `Clerk` import from `@clerk/clerk-sdk-node` and import `createClerkClient` instead. The latter is a factory method to create a Clerk client instance for you. This update aligns usage across our SDKs and will enable us to ship DX improvements better in the future.
```js
- import { Clerk } from "@clerk/clerk-sdk-node";
- const clerk = Clerk({ secretKey: "..." });
+ import { Clerk } from '@clerk/clerk-sdk-node';
+ const clerk = Clerk({ secretKey: '...' });
```
You need to rename the import from `Clerk` to `createClerkClient` and change its usage:
```js
- import { createClerkClient } from "@clerk/clerk-sdk-node";
- const clerk = createClerkClient({ secretKey: "..." });
+ import { createClerkClient } from '@clerk/clerk-sdk-node';
+ const clerk = createClerkClient({ secretKey: '...' });
```
### Patch Changes
@@ -1440,11 +1413,10 @@
Code example to keep the same behavior:
```typescript
- import { users } from "@clerk/backend";
- import { ClerkAPIResponseError } from "@clerk/shared/error";
+ import { users } from '@clerk/backend';
+ import { ClerkAPIResponseError } from '@clerk/shared/error';
- const { data, errors, clerkTraceId, status, statusText } =
- await users.getUser("user_deadbeef");
+ const { data, errors, clerkTraceId, status, statusText } = await users.getUser('user_deadbeef');
if (errors) {
throw new ClerkAPIResponseError(statusText, {
data: errors,
diff --git a/packages/sdk-node/package.json b/packages/sdk-node/package.json
index 9eb5518d59..bb6bdb0b28 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.57",
+ "version": "5.0.58",
"description": "Clerk server SDK for usage with node",
"keywords": [
"clerk",
@@ -53,8 +53,8 @@
"test:ci": "jest --maxWorkers=70%"
},
"dependencies": {
- "@clerk/backend": "1.15.4",
- "@clerk/shared": "2.11.2",
+ "@clerk/backend": "1.15.5",
+ "@clerk/shared": "2.11.3",
"@clerk/types": "4.29.0",
"tslib": "2.4.1"
},
diff --git a/packages/shared/CHANGELOG.md b/packages/shared/CHANGELOG.md
index b09d436f42..951170a946 100644
--- a/packages/shared/CHANGELOG.md
+++ b/packages/shared/CHANGELOG.md
@@ -1,5 +1,11 @@
# Change Log
+## 2.11.3
+
+### Patch Changes
+
+- Refactor imports from @clerk/shared to improve treeshaking support by [@nikosdouvlis](https://github.com/nikosdouvlis)
+
## 2.11.0
### Minor Changes
@@ -117,8 +123,8 @@
```ts
has({
__experimental_assurance: {
- level: "L2.secondFactor",
- maxAge: "A1.10min",
+ level: 'L2.secondFactor',
+ maxAge: 'A1.10min',
},
});
```
diff --git a/packages/shared/package.json b/packages/shared/package.json
index 90f6b39358..e6ced30e72 100644
--- a/packages/shared/package.json
+++ b/packages/shared/package.json
@@ -1,6 +1,6 @@
{
"name": "@clerk/shared",
- "version": "2.11.2",
+ "version": "2.11.3",
"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 3577929f8d..fe24a0de12 100644
--- a/packages/tanstack-start/CHANGELOG.md
+++ b/packages/tanstack-start/CHANGELOG.md
@@ -1,5 +1,14 @@
# @clerk/tanstack-start
+## 0.4.21
+
+### Patch Changes
+
+- Updated dependencies [[`a7726cc12a824b278f6d2a37cb1901c38c5f70dc`](https://github.com/clerk/javascript/commit/a7726cc12a824b278f6d2a37cb1901c38c5f70dc)]:
+ - @clerk/shared@2.11.3
+ - @clerk/backend@1.15.5
+ - @clerk/clerk-react@5.14.3
+
## 0.4.18
### Patch Changes
diff --git a/packages/tanstack-start/package.json b/packages/tanstack-start/package.json
index 9fb81144d0..3cdd1f837f 100644
--- a/packages/tanstack-start/package.json
+++ b/packages/tanstack-start/package.json
@@ -1,6 +1,6 @@
{
"name": "@clerk/tanstack-start",
- "version": "0.4.20",
+ "version": "0.4.21",
"description": "Clerk SDK for TanStack Start",
"keywords": [
"clerk",
@@ -54,9 +54,9 @@
"publish:local": "npx yalc push --replace --sig"
},
"dependencies": {
- "@clerk/backend": "1.15.4",
- "@clerk/clerk-react": "5.14.2",
- "@clerk/shared": "2.11.2",
+ "@clerk/backend": "1.15.5",
+ "@clerk/clerk-react": "5.14.3",
+ "@clerk/shared": "2.11.3",
"@clerk/types": "4.29.0",
"tslib": "2.4.1"
},
diff --git a/packages/testing/CHANGELOG.md b/packages/testing/CHANGELOG.md
index 9b1443e54d..52c8e293d8 100644
--- a/packages/testing/CHANGELOG.md
+++ b/packages/testing/CHANGELOG.md
@@ -1,5 +1,13 @@
# @clerk/testing
+## 1.3.19
+
+### Patch Changes
+
+- Updated dependencies [[`a7726cc12a824b278f6d2a37cb1901c38c5f70dc`](https://github.com/clerk/javascript/commit/a7726cc12a824b278f6d2a37cb1901c38c5f70dc)]:
+ - @clerk/shared@2.11.3
+ - @clerk/backend@1.15.5
+
## 1.3.16
### Patch Changes
diff --git a/packages/testing/package.json b/packages/testing/package.json
index f84a2694b1..99f11cda59 100644
--- a/packages/testing/package.json
+++ b/packages/testing/package.json
@@ -1,6 +1,6 @@
{
"name": "@clerk/testing",
- "version": "1.3.18",
+ "version": "1.3.19",
"description": "Utilities to help you create E2E test suites for apps using Clerk",
"keywords": [
"auth",
@@ -62,8 +62,8 @@
"lint": "eslint src/"
},
"dependencies": {
- "@clerk/backend": "1.15.4",
- "@clerk/shared": "2.11.2",
+ "@clerk/backend": "1.15.5",
+ "@clerk/shared": "2.11.3",
"@clerk/types": "4.29.0",
"dotenv": "16.4.5"
},
diff --git a/packages/ui/CHANGELOG.md b/packages/ui/CHANGELOG.md
index 32bdfcd4e0..3e6ae56a95 100644
--- a/packages/ui/CHANGELOG.md
+++ b/packages/ui/CHANGELOG.md
@@ -1,5 +1,13 @@
# @clerk/ui
+## 0.1.14
+
+### Patch Changes
+
+- Updated dependencies [[`a7726cc12a824b278f6d2a37cb1901c38c5f70dc`](https://github.com/clerk/javascript/commit/a7726cc12a824b278f6d2a37cb1901c38c5f70dc), [`a7726cc12a824b278f6d2a37cb1901c38c5f70dc`](https://github.com/clerk/javascript/commit/a7726cc12a824b278f6d2a37cb1901c38c5f70dc)]:
+ - @clerk/elements@0.18.3
+ - @clerk/shared@2.11.3
+
## 0.1.11
### Patch Changes
diff --git a/packages/ui/package.json b/packages/ui/package.json
index 82a682eeae..e3c2dd4316 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -1,6 +1,6 @@
{
"name": "@clerk/ui",
- "version": "0.1.13",
+ "version": "0.1.14",
"repository": {
"type": "git",
"url": "git+https://github.com/clerk/javascript.git",
@@ -52,8 +52,8 @@
"test": "vitest"
},
"dependencies": {
- "@clerk/elements": "0.18.2",
- "@clerk/shared": "2.11.2",
+ "@clerk/elements": "0.18.3",
+ "@clerk/shared": "2.11.3",
"@clerk/types": "4.29.0",
"@formkit/auto-animate": "^0.8.2",
"@radix-ui/react-slot": "^1.1.0",
diff --git a/packages/upgrade/CHANGELOG.md b/packages/upgrade/CHANGELOG.md
index a842f1564a..0722e48b12 100644
--- a/packages/upgrade/CHANGELOG.md
+++ b/packages/upgrade/CHANGELOG.md
@@ -1,5 +1,11 @@
# @clerk/upgrade
+## 1.2.3
+
+### Patch Changes
+
+- Updates broken Clerk documentation references by [@nikosdouvlis](https://github.com/nikosdouvlis)
+
## 1.2.0
### Minor Changes
@@ -33,7 +39,7 @@
Previously the `auth()` method from `@clerk/nextjs/server` was synchronous.
```typescript
- import { auth } from "@clerk/nextjs/server";
+ import { auth } from '@clerk/nextjs/server';
export function GET() {
const { userId } = auth();
diff --git a/packages/upgrade/package.json b/packages/upgrade/package.json
index 81507c3bf2..f09dca8e0c 100644
--- a/packages/upgrade/package.json
+++ b/packages/upgrade/package.json
@@ -1,6 +1,6 @@
{
"name": "@clerk/upgrade",
- "version": "1.2.2",
+ "version": "1.2.3",
"repository": {
"type": "git",
"url": "git+https://github.com/clerk/javascript.git",