From be509ddc5f221b119cb272243914bbe3efce3eed Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 22 Oct 2024 23:59:05 +0000 Subject: [PATCH] ci(repo): Version packages --- .changeset/beige-spoons-type.md | 2 - .changeset/bright-parents-work.md | 2 - .changeset/clean-fishes-shout.md | 2 - .changeset/dirty-paws-explode.md | 2 - .changeset/eighty-badgers-travel.md | 2 - .changeset/empty-mangos-help.md | 2 - .changeset/fair-avocados-tap.md | 5 - .changeset/fluffy-eyes-arrive.md | 5 - .changeset/gorgeous-dingos-knock.md | 7 -- .changeset/gorgeous-suits-rush.md | 5 - .changeset/grumpy-hairs-remember.md | 90 ----------------- .changeset/late-kiwis-warn.md | 5 - .changeset/late-pigs-study.md | 5 - .changeset/nervous-guests-guess.md | 9 -- .changeset/purple-gifts-beam.md | 2 - .changeset/rich-pens-build.md | 2 - .changeset/shiny-numbers-walk.md | 6 -- .changeset/sixty-deers-fix.md | 2 - .changeset/tame-pets-arrive.md | 2 - .changeset/ten-worms-report.md | 5 - .changeset/tender-eagles-sleep.md | 2 - .changeset/two-bottles-report.md | 5 - .changeset/unlucky-steaks-protect.md | 5 - package-lock.json | 134 ++++++++++++------------- packages/astro/CHANGELOG.md | 13 +++ packages/astro/package.json | 8 +- packages/backend/CHANGELOG.md | 15 +++ packages/backend/package.json | 6 +- packages/chrome-extension/CHANGELOG.md | 9 ++ packages/chrome-extension/package.json | 8 +- packages/clerk-js/CHANGELOG.md | 15 +++ packages/clerk-js/package.json | 8 +- packages/elements/CHANGELOG.md | 14 +++ packages/elements/package.json | 8 +- packages/expo/CHANGELOG.md | 10 ++ packages/expo/package.json | 10 +- packages/express/CHANGELOG.md | 9 ++ packages/express/package.json | 8 +- packages/fastify/CHANGELOG.md | 9 ++ packages/fastify/package.json | 8 +- packages/localizations/CHANGELOG.md | 7 ++ packages/localizations/package.json | 4 +- packages/nextjs/CHANGELOG.md | 113 +++++++++++++++++++++ packages/nextjs/package.json | 10 +- packages/react/CHANGELOG.md | 12 +++ packages/react/package.json | 8 +- packages/remix/CHANGELOG.md | 10 ++ packages/remix/package.json | 10 +- packages/sdk-node/CHANGELOG.md | 9 ++ packages/sdk-node/package.json | 8 +- packages/shared/CHANGELOG.md | 11 ++ packages/shared/package.json | 4 +- packages/tanstack-start/CHANGELOG.md | 10 ++ packages/tanstack-start/package.json | 10 +- packages/testing/CHANGELOG.md | 9 ++ packages/testing/package.json | 8 +- packages/themes/CHANGELOG.md | 7 ++ packages/themes/package.json | 4 +- packages/types/CHANGELOG.md | 10 ++ packages/types/package.json | 2 +- packages/upgrade/CHANGELOG.md | 91 +++++++++++++++++ packages/upgrade/package.json | 2 +- 62 files changed, 517 insertions(+), 308 deletions(-) delete mode 100644 .changeset/beige-spoons-type.md delete mode 100644 .changeset/bright-parents-work.md delete mode 100644 .changeset/clean-fishes-shout.md delete mode 100644 .changeset/dirty-paws-explode.md delete mode 100644 .changeset/eighty-badgers-travel.md delete mode 100644 .changeset/empty-mangos-help.md delete mode 100644 .changeset/fair-avocados-tap.md delete mode 100644 .changeset/fluffy-eyes-arrive.md delete mode 100644 .changeset/gorgeous-dingos-knock.md delete mode 100644 .changeset/gorgeous-suits-rush.md delete mode 100644 .changeset/grumpy-hairs-remember.md delete mode 100644 .changeset/late-kiwis-warn.md delete mode 100644 .changeset/late-pigs-study.md delete mode 100644 .changeset/nervous-guests-guess.md delete mode 100644 .changeset/purple-gifts-beam.md delete mode 100644 .changeset/rich-pens-build.md delete mode 100644 .changeset/shiny-numbers-walk.md delete mode 100644 .changeset/sixty-deers-fix.md delete mode 100644 .changeset/tame-pets-arrive.md delete mode 100644 .changeset/ten-worms-report.md delete mode 100644 .changeset/tender-eagles-sleep.md delete mode 100644 .changeset/two-bottles-report.md delete mode 100644 .changeset/unlucky-steaks-protect.md diff --git a/.changeset/beige-spoons-type.md b/.changeset/beige-spoons-type.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/beige-spoons-type.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/bright-parents-work.md b/.changeset/bright-parents-work.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/bright-parents-work.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/clean-fishes-shout.md b/.changeset/clean-fishes-shout.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/clean-fishes-shout.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/dirty-paws-explode.md b/.changeset/dirty-paws-explode.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/dirty-paws-explode.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/eighty-badgers-travel.md b/.changeset/eighty-badgers-travel.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/eighty-badgers-travel.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/empty-mangos-help.md b/.changeset/empty-mangos-help.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/empty-mangos-help.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/fair-avocados-tap.md b/.changeset/fair-avocados-tap.md deleted file mode 100644 index f09fc840d51..00000000000 --- a/.changeset/fair-avocados-tap.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@clerk/clerk-js": patch ---- - -Bug fix: Always receive a new session verification object when UserVerification component mounts. diff --git a/.changeset/fluffy-eyes-arrive.md b/.changeset/fluffy-eyes-arrive.md deleted file mode 100644 index 240930360fa..00000000000 --- a/.changeset/fluffy-eyes-arrive.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@clerk/nextjs": minor ---- - -Bug fix: Correctly redirect to sign in page in Next 15. diff --git a/.changeset/gorgeous-dingos-knock.md b/.changeset/gorgeous-dingos-knock.md deleted file mode 100644 index 5c56b312630..00000000000 --- a/.changeset/gorgeous-dingos-knock.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@clerk/backend": minor ---- - -- Added `legalAcceptedAt` on `User` -- Added `legalAcceptedAt` and `skipLegalChecks` on `CreateUserParams` and `UpdateUserParams` -- Added `legal_accepted_at` on `UserJSON` diff --git a/.changeset/gorgeous-suits-rush.md b/.changeset/gorgeous-suits-rush.md deleted file mode 100644 index 9cca69bf368..00000000000 --- a/.changeset/gorgeous-suits-rush.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@clerk/nextjs": major ---- - -Stop `` from opting applications into dynamic rendering. A new prop, `` can be used to opt-in to dynamic rendering and make auth data available during server-side rendering. The RSC `auth()` helper should be preferred for accessing auth data during dynamic rendering. diff --git a/.changeset/grumpy-hairs-remember.md b/.changeset/grumpy-hairs-remember.md deleted file mode 100644 index e85253fe2e4..00000000000 --- a/.changeset/grumpy-hairs-remember.md +++ /dev/null @@ -1,90 +0,0 @@ ---- -"@clerk/nextjs": major -"@clerk/upgrade": minor ---- - -@clerk/nextjs: Converting auth() and clerkClient() interfaces to be async -@clerk/upgrade: Adding required codemod for @clerk/nextjs breaking changes - -# Migration guide - -## `auth()` is now async - -Previously the `auth()` method from `@clerk/nextjs/server` was synchronous. - -```typescript -import { auth } from '@clerk/nextjs/server'; - -export function GET() { - const { userId } = auth(); - return new Response(JSON.stringify({ userId })); -} -``` - -The `auth` method now becomes asynchronous. You will need to make the following changes to the snippet above to make it compatible. - -```diff -- export function GET() { -+ export async function GET() { -- const { userId } = auth(); -+ const { userId } = await auth(); - return new Response(JSON.stringify({ userId })); -} -``` - -## Clerk middleware auth is now async - -```typescript -import { clerkClient, clerkMiddleware } from '@clerk/nextjs/server'; -import { NextResponse } from 'next/server'; - -export default clerkMiddleware(async (auth, request) => { - const resolvedAuth = await auth(); - - const count = await resolvedAuth.users.getCount(); - - if (count) { - return NextResponse.redirect(new URL('/new-url', request.url)); - } -}); - -export const config = { - matcher: [...], -}; -``` - -## clerkClient() is now async - -Previously the `clerkClient()` method from `@clerk/nextjs/server` was synchronous. - -```typescript -import { clerkClient, clerkMiddleware } from '@clerk/nextjs/server'; -import { NextResponse } from 'next/server'; - -export default clerkMiddleware((auth, request) => { - const client = clerkClient(); - - const count = await client.users?.getCount(); - - if (count) { - return NextResponse.redirect(new URL('/new-url', request.url)); - } -}); - -export const config = { - matcher: [...], -}; -``` - -The method now becomes async. You will need to make the following changes to the snippet above to make it compatible. - -```diff -- export default clerkMiddleware((auth, request) => { -- const client = clerkClient(); -+ export default clerkMiddleware(async (auth, request) => { -+ const client = await clerkClient(); - const count = await client.users?.getCount(); - - if (count) { -} -``` diff --git a/.changeset/late-kiwis-warn.md b/.changeset/late-kiwis-warn.md deleted file mode 100644 index 6ab9fa5a6be..00000000000 --- a/.changeset/late-kiwis-warn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@clerk/elements": patch ---- - -Remove @clerk/clerk-react as a dev depedency. Move @clerk/shared to depedencies (previously devDepedencies). diff --git a/.changeset/late-pigs-study.md b/.changeset/late-pigs-study.md deleted file mode 100644 index 0b521cd1d32..00000000000 --- a/.changeset/late-pigs-study.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@clerk/astro": minor ---- - -Add support for Astro View Transitions diff --git a/.changeset/nervous-guests-guess.md b/.changeset/nervous-guests-guess.md deleted file mode 100644 index 2e2d2d3586a..00000000000 --- a/.changeset/nervous-guests-guess.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@clerk/clerk-js": minor -"@clerk/elements": minor -"@clerk/nextjs": minor -"@clerk/shared": minor -"@clerk/types": minor ---- - -Add experimental support for new UI components diff --git a/.changeset/purple-gifts-beam.md b/.changeset/purple-gifts-beam.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/purple-gifts-beam.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/rich-pens-build.md b/.changeset/rich-pens-build.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/rich-pens-build.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/shiny-numbers-walk.md b/.changeset/shiny-numbers-walk.md deleted file mode 100644 index 3ffc12abb85..00000000000 --- a/.changeset/shiny-numbers-walk.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@clerk/nextjs": major ---- - -Support `unstable_rethrow` inside `clerkMiddleware`. -We changed the errors thrown by `protect()` inside `clerkMiddleware` in order for `unstable_rethrow` to recognise them and rethrow them. diff --git a/.changeset/sixty-deers-fix.md b/.changeset/sixty-deers-fix.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/sixty-deers-fix.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/tame-pets-arrive.md b/.changeset/tame-pets-arrive.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/tame-pets-arrive.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/ten-worms-report.md b/.changeset/ten-worms-report.md deleted file mode 100644 index 713f10b52d0..00000000000 --- a/.changeset/ten-worms-report.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@clerk/nextjs": major ---- - -Removes deprecated APIs: `authMiddleware()`, `redirectToSignIn()`, and `redirectToSignUp()`. See the migration guide to learn how to update your usage. diff --git a/.changeset/tender-eagles-sleep.md b/.changeset/tender-eagles-sleep.md deleted file mode 100644 index a845151cc84..00000000000 --- a/.changeset/tender-eagles-sleep.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/two-bottles-report.md b/.changeset/two-bottles-report.md deleted file mode 100644 index aecebdc39c1..00000000000 --- a/.changeset/two-bottles-report.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@clerk/clerk-react": minor ---- - -Internal changes to support `` diff --git a/.changeset/unlucky-steaks-protect.md b/.changeset/unlucky-steaks-protect.md deleted file mode 100644 index e5a01da6c27..00000000000 --- a/.changeset/unlucky-steaks-protect.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@clerk/types": patch ---- - -Fix `SignInProps`/`SignUpProps` `__experimental` type to allow for arbitrary properties diff --git a/package-lock.json b/package-lock.json index 301f92b2d4a..4e64a6db144 100644 --- a/package-lock.json +++ b/package-lock.json @@ -43693,12 +43693,12 @@ }, "packages/astro": { "name": "@clerk/astro", - "version": "1.3.16", + "version": "1.4.0", "license": "MIT", "dependencies": { - "@clerk/backend": "1.14.1", - "@clerk/shared": "2.9.2", - "@clerk/types": "4.26.0", + "@clerk/backend": "1.15.0", + "@clerk/shared": "2.10.0", + "@clerk/types": "4.27.0", "nanoid": "5.0.7", "nanostores": "0.11.3" }, @@ -43745,11 +43745,11 @@ }, "packages/backend": { "name": "@clerk/backend", - "version": "1.14.1", + "version": "1.15.0", "license": "MIT", "dependencies": { - "@clerk/shared": "2.9.2", - "@clerk/types": "4.26.0", + "@clerk/shared": "2.10.0", + "@clerk/types": "4.27.0", "cookie": "0.7.0", "snakecase-keys": "5.4.4", "tslib": "2.4.1" @@ -44322,12 +44322,12 @@ }, "packages/chrome-extension": { "name": "@clerk/chrome-extension", - "version": "1.3.20", + "version": "1.3.21", "license": "MIT", "dependencies": { - "@clerk/clerk-js": "5.27.0", - "@clerk/clerk-react": "5.12.0", - "@clerk/shared": "2.9.2", + "@clerk/clerk-js": "5.28.0", + "@clerk/clerk-react": "5.13.0", + "@clerk/shared": "2.10.0", "webextension-polyfill": "^0.10.0" }, "devDependencies": { @@ -44371,12 +44371,12 @@ }, "packages/clerk-js": { "name": "@clerk/clerk-js", - "version": "5.27.0", + "version": "5.28.0", "license": "MIT", "dependencies": { - "@clerk/localizations": "3.3.0", - "@clerk/shared": "2.9.2", - "@clerk/types": "4.26.0", + "@clerk/localizations": "3.3.1", + "@clerk/shared": "2.10.0", + "@clerk/types": "4.27.0", "@clerk/ui": "0.1.9", "@coinbase/wallet-sdk": "4.0.4", "@emotion/cache": "11.11.0", @@ -44850,11 +44850,11 @@ }, "packages/elements": { "name": "@clerk/elements", - "version": "0.16.2", + "version": "0.17.0", "license": "MIT", "dependencies": { - "@clerk/shared": "2.9.2", - "@clerk/types": "^4.26.0", + "@clerk/shared": "2.10.0", + "@clerk/types": "^4.27.0", "@radix-ui/react-form": "^0.1.0", "@radix-ui/react-slot": "^1.1.0", "@xstate/react": "^4.1.1", @@ -44862,7 +44862,7 @@ "xstate": "^5.15.0" }, "devDependencies": { - "@clerk/clerk-react": "5.12.0", + "@clerk/clerk-react": "5.13.0", "@clerk/eslint-config-custom": "*", "@statelyai/inspect": "^0.4.0", "@types/node": "^18.19.33", @@ -45693,13 +45693,13 @@ }, "packages/expo": { "name": "@clerk/clerk-expo", - "version": "2.2.26", + "version": "2.2.27", "license": "MIT", "dependencies": { - "@clerk/clerk-js": "5.27.0", - "@clerk/clerk-react": "5.12.0", - "@clerk/shared": "2.9.2", - "@clerk/types": "4.26.0", + "@clerk/clerk-js": "5.28.0", + "@clerk/clerk-react": "5.13.0", + "@clerk/shared": "2.10.0", + "@clerk/types": "4.27.0", "base-64": "^1.0.0", "react-native-url-polyfill": "2.0.0", "tslib": "2.4.1" @@ -45978,12 +45978,12 @@ }, "packages/express": { "name": "@clerk/express", - "version": "1.3.1", + "version": "1.3.2", "license": "MIT", "dependencies": { - "@clerk/backend": "^1.14.1", - "@clerk/shared": "^2.9.2", - "@clerk/types": "4.26.0", + "@clerk/backend": "^1.15.0", + "@clerk/shared": "^2.10.0", + "@clerk/types": "4.27.0", "tslib": "2.4.1" }, "devDependencies": { @@ -46009,12 +46009,12 @@ }, "packages/fastify": { "name": "@clerk/fastify", - "version": "2.0.3", + "version": "2.0.4", "license": "MIT", "dependencies": { - "@clerk/backend": "1.14.1", - "@clerk/shared": "2.9.2", - "@clerk/types": "4.26.0", + "@clerk/backend": "1.15.0", + "@clerk/shared": "2.10.0", + "@clerk/types": "4.27.0", "cookies": "0.8.0", "fastify-plugin": "^5.0.1" }, @@ -46349,10 +46349,10 @@ }, "packages/localizations": { "name": "@clerk/localizations", - "version": "3.3.0", + "version": "3.3.1", "license": "MIT", "dependencies": { - "@clerk/types": "4.26.0" + "@clerk/types": "4.27.0" }, "devDependencies": { "@clerk/eslint-config-custom": "*", @@ -46365,13 +46365,13 @@ }, "packages/nextjs": { "name": "@clerk/nextjs", - "version": "5.7.5", + "version": "6.0.0", "license": "MIT", "dependencies": { - "@clerk/backend": "1.14.1", - "@clerk/clerk-react": "5.12.0", - "@clerk/shared": "2.9.2", - "@clerk/types": "4.26.0", + "@clerk/backend": "1.15.0", + "@clerk/clerk-react": "5.13.0", + "@clerk/shared": "2.10.0", + "@clerk/types": "4.27.0", "crypto-js": "4.2.0", "server-only": "0.0.1", "tslib": "2.4.1" @@ -46624,16 +46624,16 @@ }, "packages/react": { "name": "@clerk/clerk-react", - "version": "5.12.0", + "version": "5.13.0", "license": "MIT", "dependencies": { - "@clerk/shared": "2.9.2", - "@clerk/types": "4.26.0", + "@clerk/shared": "2.10.0", + "@clerk/types": "4.27.0", "tslib": "2.4.1" }, "devDependencies": { "@clerk/eslint-config-custom": "*", - "@clerk/themes": "2.1.37", + "@clerk/themes": "2.1.38", "@types/node": "^18.19.33", "@types/react": "*", "@types/react-dom": "*", @@ -46654,13 +46654,13 @@ }, "packages/remix": { "name": "@clerk/remix", - "version": "4.2.39", + "version": "4.2.40", "license": "MIT", "dependencies": { - "@clerk/backend": "1.14.1", - "@clerk/clerk-react": "5.12.0", - "@clerk/shared": "2.9.2", - "@clerk/types": "4.26.0", + "@clerk/backend": "1.15.0", + "@clerk/clerk-react": "5.13.0", + "@clerk/shared": "2.10.0", + "@clerk/types": "4.27.0", "cookie": "0.7.0", "tslib": "2.4.1" }, @@ -46703,12 +46703,12 @@ }, "packages/sdk-node": { "name": "@clerk/clerk-sdk-node", - "version": "5.0.52", + "version": "5.0.53", "license": "MIT", "dependencies": { - "@clerk/backend": "1.14.1", - "@clerk/shared": "2.9.2", - "@clerk/types": "4.26.0", + "@clerk/backend": "1.15.0", + "@clerk/shared": "2.10.0", + "@clerk/types": "4.27.0", "tslib": "2.4.1" }, "devDependencies": { @@ -46730,11 +46730,11 @@ }, "packages/shared": { "name": "@clerk/shared", - "version": "2.9.2", + "version": "2.10.0", "hasInstallScript": true, "license": "MIT", "dependencies": { - "@clerk/types": "4.26.0", + "@clerk/types": "4.27.0", "glob-to-regexp": "0.4.1", "js-cookie": "3.0.5", "std-env": "^3.7.0", @@ -47429,13 +47429,13 @@ }, "packages/tanstack-start": { "name": "@clerk/tanstack-start", - "version": "0.4.15", + "version": "0.4.16", "license": "MIT", "dependencies": { - "@clerk/backend": "1.14.1", - "@clerk/clerk-react": "5.12.0", - "@clerk/shared": "2.9.2", - "@clerk/types": "4.26.0", + "@clerk/backend": "1.15.0", + "@clerk/clerk-react": "5.13.0", + "@clerk/shared": "2.10.0", + "@clerk/types": "4.27.0", "tslib": "2.4.1" }, "devDependencies": { @@ -47881,12 +47881,12 @@ }, "packages/testing": { "name": "@clerk/testing", - "version": "1.3.13", + "version": "1.3.14", "license": "MIT", "dependencies": { - "@clerk/backend": "1.14.1", - "@clerk/shared": "2.9.2", - "@clerk/types": "4.26.0", + "@clerk/backend": "1.15.0", + "@clerk/shared": "2.10.0", + "@clerk/types": "4.27.0", "dotenv": "16.4.5" }, "devDependencies": { @@ -47915,10 +47915,10 @@ }, "packages/themes": { "name": "@clerk/themes", - "version": "2.1.37", + "version": "2.1.38", "license": "MIT", "dependencies": { - "@clerk/types": "4.26.0", + "@clerk/types": "4.27.0", "tslib": "2.4.1" }, "devDependencies": { @@ -47935,7 +47935,7 @@ }, "packages/types": { "name": "@clerk/types", - "version": "4.26.0", + "version": "4.27.0", "license": "MIT", "dependencies": { "csstype": "3.1.1" @@ -48250,7 +48250,7 @@ }, "packages/upgrade": { "name": "@clerk/upgrade", - "version": "1.0.9", + "version": "1.1.0", "license": "MIT", "dependencies": { "@inkjs/ui": "^2.0.0", diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 1c1b256d6d5..3eee87d4d8b 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,18 @@ # @clerk/astro +## 1.4.0 + +### Minor Changes + +- Add support for Astro View Transitions ([#4354](https://github.com/clerk/javascript/pull/4354)) by [@wobsoriano](https://github.com/wobsoriano) + +### Patch Changes + +- Updated dependencies [[`93dfe7a09`](https://github.com/clerk/javascript/commit/93dfe7a09648f414ee3f50bc8fb3f342d24020cd), [`3b50b67bd`](https://github.com/clerk/javascript/commit/3b50b67bd40da33c9e36773aa05462717e9f44cc), [`3b50b67bd`](https://github.com/clerk/javascript/commit/3b50b67bd40da33c9e36773aa05462717e9f44cc)]: + - @clerk/backend@1.15.0 + - @clerk/shared@2.10.0 + - @clerk/types@4.27.0 + ## 1.3.16 ### Patch Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index a88aaeeffa4..f7e3d94d1f7 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/astro", - "version": "1.3.16", + "version": "1.4.0", "description": "Clerk SDK for Astro", "keywords": [ "auth", @@ -81,9 +81,9 @@ "publish:local": "npx yalc push --replace --sig" }, "dependencies": { - "@clerk/backend": "1.14.1", - "@clerk/shared": "2.9.2", - "@clerk/types": "4.26.0", + "@clerk/backend": "1.15.0", + "@clerk/shared": "2.10.0", + "@clerk/types": "4.27.0", "nanoid": "5.0.7", "nanostores": "0.11.3" }, diff --git a/packages/backend/CHANGELOG.md b/packages/backend/CHANGELOG.md index 7d255640700..799bd1181b6 100644 --- a/packages/backend/CHANGELOG.md +++ b/packages/backend/CHANGELOG.md @@ -1,5 +1,20 @@ # Change Log +## 1.15.0 + +### Minor Changes + +- - Added `legalAcceptedAt` on `User` ([#4367](https://github.com/clerk/javascript/pull/4367)) by [@octoper](https://github.com/octoper) + + - Added `legalAcceptedAt` and `skipLegalChecks` on `CreateUserParams` and `UpdateUserParams` + - Added `legal_accepted_at` on `UserJSON` + +### Patch Changes + +- Updated dependencies [[`3b50b67bd`](https://github.com/clerk/javascript/commit/3b50b67bd40da33c9e36773aa05462717e9f44cc), [`3b50b67bd`](https://github.com/clerk/javascript/commit/3b50b67bd40da33c9e36773aa05462717e9f44cc)]: + - @clerk/shared@2.10.0 + - @clerk/types@4.27.0 + ## 1.14.1 ### Patch Changes diff --git a/packages/backend/package.json b/packages/backend/package.json index a1ae71f7d79..3a87c7964d6 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/backend", - "version": "1.14.1", + "version": "1.15.0", "description": "Clerk Backend SDK - REST Client for Backend API & JWT verification utilities", "homepage": "https://clerk.com/", "bugs": { @@ -95,8 +95,8 @@ "test:cloudflare-workerd": "tests/cloudflare-workerd/run.sh" }, "dependencies": { - "@clerk/shared": "2.9.2", - "@clerk/types": "4.26.0", + "@clerk/shared": "2.10.0", + "@clerk/types": "4.27.0", "cookie": "0.7.0", "snakecase-keys": "5.4.4", "tslib": "2.4.1" diff --git a/packages/chrome-extension/CHANGELOG.md b/packages/chrome-extension/CHANGELOG.md index 4ede4fc57c0..ef52c4628cc 100644 --- a/packages/chrome-extension/CHANGELOG.md +++ b/packages/chrome-extension/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 1.3.21 + +### Patch Changes + +- Updated dependencies [[`1be6dac56`](https://github.com/clerk/javascript/commit/1be6dac56ecfd771d0683d16cab8e9d023695419), [`3b50b67bd`](https://github.com/clerk/javascript/commit/3b50b67bd40da33c9e36773aa05462717e9f44cc), [`a0204a8e8`](https://github.com/clerk/javascript/commit/a0204a8e8742b63aea92d67e7d66fe0bc86a166f)]: + - @clerk/clerk-js@5.28.0 + - @clerk/shared@2.10.0 + - @clerk/clerk-react@5.13.0 + ## 1.3.20 ### Patch Changes diff --git a/packages/chrome-extension/package.json b/packages/chrome-extension/package.json index a135d041a56..ffc37b55104 100644 --- a/packages/chrome-extension/package.json +++ b/packages/chrome-extension/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/chrome-extension", - "version": "1.3.20", + "version": "1.3.21", "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.27.0", - "@clerk/clerk-react": "5.12.0", - "@clerk/shared": "2.9.2", + "@clerk/clerk-js": "5.28.0", + "@clerk/clerk-react": "5.13.0", + "@clerk/shared": "2.10.0", "webextension-polyfill": "^0.10.0" }, "devDependencies": { diff --git a/packages/clerk-js/CHANGELOG.md b/packages/clerk-js/CHANGELOG.md index 5c9e1e2457e..74f1a7926fd 100644 --- a/packages/clerk-js/CHANGELOG.md +++ b/packages/clerk-js/CHANGELOG.md @@ -1,5 +1,20 @@ # Change Log +## 5.28.0 + +### Minor Changes + +- Add experimental support for new UI components ([#4114](https://github.com/clerk/javascript/pull/4114)) by [@BRKalow](https://github.com/BRKalow) + +### Patch Changes + +- Bug fix: Always receive a new session verification object when UserVerification component mounts. ([#4359](https://github.com/clerk/javascript/pull/4359)) by [@panteliselef](https://github.com/panteliselef) + +- Updated dependencies [[`3b50b67bd`](https://github.com/clerk/javascript/commit/3b50b67bd40da33c9e36773aa05462717e9f44cc), [`3b50b67bd`](https://github.com/clerk/javascript/commit/3b50b67bd40da33c9e36773aa05462717e9f44cc)]: + - @clerk/shared@2.10.0 + - @clerk/types@4.27.0 + - @clerk/localizations@3.3.1 + ## 5.27.0 ### Minor Changes diff --git a/packages/clerk-js/package.json b/packages/clerk-js/package.json index c89672de833..9f513e90b79 100644 --- a/packages/clerk-js/package.json +++ b/packages/clerk-js/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/clerk-js", - "version": "5.27.0", + "version": "5.28.0", "description": "Clerk JS library", "keywords": [ "clerk", @@ -50,9 +50,9 @@ }, "browserslist": "last 2 versions, ios_saf > 12, Safari > 12, > 1%, not dead, not ie > 0", "dependencies": { - "@clerk/localizations": "3.3.0", - "@clerk/shared": "2.9.2", - "@clerk/types": "4.26.0", + "@clerk/localizations": "3.3.1", + "@clerk/shared": "2.10.0", + "@clerk/types": "4.27.0", "@clerk/ui": "0.1.9", "@coinbase/wallet-sdk": "4.0.4", "@emotion/cache": "11.11.0", diff --git a/packages/elements/CHANGELOG.md b/packages/elements/CHANGELOG.md index 281835eeb97..0d5d2019db9 100644 --- a/packages/elements/CHANGELOG.md +++ b/packages/elements/CHANGELOG.md @@ -1,5 +1,19 @@ # @clerk/elements +## 0.17.0 + +### Minor Changes + +- Add experimental support for new UI components ([#4114](https://github.com/clerk/javascript/pull/4114)) by [@BRKalow](https://github.com/BRKalow) + +### Patch Changes + +- Remove @clerk/clerk-react as a dev depedency. Move @clerk/shared to depedencies (previously devDepedencies). ([#4114](https://github.com/clerk/javascript/pull/4114)) by [@BRKalow](https://github.com/BRKalow) + +- Updated dependencies [[`3b50b67bd`](https://github.com/clerk/javascript/commit/3b50b67bd40da33c9e36773aa05462717e9f44cc), [`3b50b67bd`](https://github.com/clerk/javascript/commit/3b50b67bd40da33c9e36773aa05462717e9f44cc)]: + - @clerk/shared@2.10.0 + - @clerk/types@4.27.0 + ## 0.16.2 ### Patch Changes diff --git a/packages/elements/package.json b/packages/elements/package.json index e46d3c6f468..b48baca5647 100644 --- a/packages/elements/package.json +++ b/packages/elements/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/elements", - "version": "0.16.2", + "version": "0.17.0", "description": "Clerk Elements", "keywords": [ "clerk", @@ -71,8 +71,8 @@ "test:cache:clear": "jest --clearCache --useStderr" }, "dependencies": { - "@clerk/shared": "2.9.2", - "@clerk/types": "^4.26.0", + "@clerk/shared": "2.10.0", + "@clerk/types": "^4.27.0", "@radix-ui/react-form": "^0.1.0", "@radix-ui/react-slot": "^1.1.0", "@xstate/react": "^4.1.1", @@ -80,7 +80,7 @@ "xstate": "^5.15.0" }, "devDependencies": { - "@clerk/clerk-react": "5.12.0", + "@clerk/clerk-react": "5.13.0", "@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 dd855e47af0..2d1ec812812 100644 --- a/packages/expo/CHANGELOG.md +++ b/packages/expo/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## 2.2.27 + +### Patch Changes + +- Updated dependencies [[`1be6dac56`](https://github.com/clerk/javascript/commit/1be6dac56ecfd771d0683d16cab8e9d023695419), [`3b50b67bd`](https://github.com/clerk/javascript/commit/3b50b67bd40da33c9e36773aa05462717e9f44cc), [`a0204a8e8`](https://github.com/clerk/javascript/commit/a0204a8e8742b63aea92d67e7d66fe0bc86a166f), [`3b50b67bd`](https://github.com/clerk/javascript/commit/3b50b67bd40da33c9e36773aa05462717e9f44cc)]: + - @clerk/clerk-js@5.28.0 + - @clerk/shared@2.10.0 + - @clerk/types@4.27.0 + - @clerk/clerk-react@5.13.0 + ## 2.2.26 ### Patch Changes diff --git a/packages/expo/package.json b/packages/expo/package.json index 7402030cd1c..6d1675ea91d 100644 --- a/packages/expo/package.json +++ b/packages/expo/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/clerk-expo", - "version": "2.2.26", + "version": "2.2.27", "description": "Clerk React Native/Expo library", "keywords": [ "react", @@ -55,10 +55,10 @@ "publish:local": "npx yalc push --replace --sig" }, "dependencies": { - "@clerk/clerk-js": "5.27.0", - "@clerk/clerk-react": "5.12.0", - "@clerk/shared": "2.9.2", - "@clerk/types": "4.26.0", + "@clerk/clerk-js": "5.28.0", + "@clerk/clerk-react": "5.13.0", + "@clerk/shared": "2.10.0", + "@clerk/types": "4.27.0", "base-64": "^1.0.0", "react-native-url-polyfill": "2.0.0", "tslib": "2.4.1" diff --git a/packages/express/CHANGELOG.md b/packages/express/CHANGELOG.md index c1da45193c2..1882feb08d0 100644 --- a/packages/express/CHANGELOG.md +++ b/packages/express/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 1.3.2 + +### Patch Changes + +- Updated dependencies [[`93dfe7a09`](https://github.com/clerk/javascript/commit/93dfe7a09648f414ee3f50bc8fb3f342d24020cd), [`3b50b67bd`](https://github.com/clerk/javascript/commit/3b50b67bd40da33c9e36773aa05462717e9f44cc), [`3b50b67bd`](https://github.com/clerk/javascript/commit/3b50b67bd40da33c9e36773aa05462717e9f44cc)]: + - @clerk/backend@1.15.0 + - @clerk/shared@2.10.0 + - @clerk/types@4.27.0 + ## 1.3.1 ### Patch Changes diff --git a/packages/express/package.json b/packages/express/package.json index a2cfa6c95ad..38fad2d521e 100644 --- a/packages/express/package.json +++ b/packages/express/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/express", - "version": "1.3.1", + "version": "1.3.2", "description": "Clerk server SDK for usage with Express", "keywords": [ "clerk", @@ -53,9 +53,9 @@ "test:ci": "jest --maxWorkers=70%" }, "dependencies": { - "@clerk/backend": "^1.14.1", - "@clerk/shared": "^2.9.2", - "@clerk/types": "4.26.0", + "@clerk/backend": "^1.15.0", + "@clerk/shared": "^2.10.0", + "@clerk/types": "4.27.0", "tslib": "2.4.1" }, "devDependencies": { diff --git a/packages/fastify/CHANGELOG.md b/packages/fastify/CHANGELOG.md index d9a5b05f6a5..e6221c2cc85 100644 --- a/packages/fastify/CHANGELOG.md +++ b/packages/fastify/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 2.0.4 + +### Patch Changes + +- Updated dependencies [[`93dfe7a09`](https://github.com/clerk/javascript/commit/93dfe7a09648f414ee3f50bc8fb3f342d24020cd), [`3b50b67bd`](https://github.com/clerk/javascript/commit/3b50b67bd40da33c9e36773aa05462717e9f44cc), [`3b50b67bd`](https://github.com/clerk/javascript/commit/3b50b67bd40da33c9e36773aa05462717e9f44cc)]: + - @clerk/backend@1.15.0 + - @clerk/shared@2.10.0 + - @clerk/types@4.27.0 + ## 2.0.3 ### Patch Changes diff --git a/packages/fastify/package.json b/packages/fastify/package.json index a75a5661dca..42636151cb2 100644 --- a/packages/fastify/package.json +++ b/packages/fastify/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/fastify", - "version": "2.0.3", + "version": "2.0.4", "description": "Clerk SDK for Fastify", "keywords": [ "auth", @@ -40,9 +40,9 @@ "test:cache:clear": "jest --clearCache --useStderr" }, "dependencies": { - "@clerk/backend": "1.14.1", - "@clerk/shared": "2.9.2", - "@clerk/types": "4.26.0", + "@clerk/backend": "1.15.0", + "@clerk/shared": "2.10.0", + "@clerk/types": "4.27.0", "cookies": "0.8.0", "fastify-plugin": "^5.0.1" }, diff --git a/packages/localizations/CHANGELOG.md b/packages/localizations/CHANGELOG.md index c1c7c4d1b87..629ac2f9218 100644 --- a/packages/localizations/CHANGELOG.md +++ b/packages/localizations/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## 3.3.1 + +### Patch Changes + +- Updated dependencies [[`3b50b67bd`](https://github.com/clerk/javascript/commit/3b50b67bd40da33c9e36773aa05462717e9f44cc), [`3b50b67bd`](https://github.com/clerk/javascript/commit/3b50b67bd40da33c9e36773aa05462717e9f44cc)]: + - @clerk/types@4.27.0 + ## 3.3.0 ### Minor Changes diff --git a/packages/localizations/package.json b/packages/localizations/package.json index cafd767be16..ade4a9e1f4a 100644 --- a/packages/localizations/package.json +++ b/packages/localizations/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/localizations", - "version": "3.3.0", + "version": "3.3.1", "description": "Localizations for the Clerk components", "keywords": [ "react", @@ -100,7 +100,7 @@ "lint": "eslint src/" }, "dependencies": { - "@clerk/types": "4.26.0" + "@clerk/types": "4.27.0" }, "devDependencies": { "@clerk/eslint-config-custom": "*", diff --git a/packages/nextjs/CHANGELOG.md b/packages/nextjs/CHANGELOG.md index e0efc0748b3..19eb57e5920 100644 --- a/packages/nextjs/CHANGELOG.md +++ b/packages/nextjs/CHANGELOG.md @@ -1,5 +1,118 @@ # Change Log +## 6.0.0 + +### Major Changes + +- Stop `` from opting applications into dynamic rendering. A new prop, `` can be used to opt-in to dynamic rendering and make auth data available during server-side rendering. The RSC `auth()` helper should be preferred for accessing auth data during dynamic rendering. ([#4366](https://github.com/clerk/javascript/pull/4366)) by [@jacekradko](https://github.com/jacekradko) + +- @clerk/nextjs: Converting auth() and clerkClient() interfaces to be async ([#4366](https://github.com/clerk/javascript/pull/4366)) by [@jacekradko](https://github.com/jacekradko) + + @clerk/upgrade: Adding required codemod for @clerk/nextjs breaking changes + + # Migration guide + + ## `auth()` is now async + + Previously the `auth()` method from `@clerk/nextjs/server` was synchronous. + + ```typescript + import { auth } from "@clerk/nextjs/server"; + + export function GET() { + const { userId } = auth(); + return new Response(JSON.stringify({ userId })); + } + ``` + + The `auth` method now becomes asynchronous. You will need to make the following changes to the snippet above to make it compatible. + + ```diff + - export function GET() { + + export async function GET() { + - const { userId } = auth(); + + const { userId } = await auth(); + return new Response(JSON.stringify({ userId })); + } + ``` + + ## Clerk middleware auth is now async + + ```typescript + import { clerkClient, clerkMiddleware } from '@clerk/nextjs/server'; + import { NextResponse } from 'next/server'; + + export default clerkMiddleware(async (auth, request) => { + const resolvedAuth = await auth(); + + const count = await resolvedAuth.users.getCount(); + + if (count) { + return NextResponse.redirect(new URL('/new-url', request.url)); + } + }); + + export const config = { + matcher: [...], + }; + ``` + + ## clerkClient() is now async + + Previously the `clerkClient()` method from `@clerk/nextjs/server` was synchronous. + + ```typescript + import { clerkClient, clerkMiddleware } from '@clerk/nextjs/server'; + import { NextResponse } from 'next/server'; + + export default clerkMiddleware((auth, request) => { + const client = clerkClient(); + + const count = await client.users?.getCount(); + + if (count) { + return NextResponse.redirect(new URL('/new-url', request.url)); + } + }); + + export const config = { + matcher: [...], + }; + ``` + + The method now becomes async. You will need to make the following changes to the snippet above to make it compatible. + + ```diff + - export default clerkMiddleware((auth, request) => { + - const client = clerkClient(); + + export default clerkMiddleware(async (auth, request) => { + + const client = await clerkClient(); + const count = await client.users?.getCount(); + + if (count) { + } + ``` + +- Support `unstable_rethrow` inside `clerkMiddleware`. ([#4366](https://github.com/clerk/javascript/pull/4366)) by [@jacekradko](https://github.com/jacekradko) + + We changed the errors thrown by `protect()` inside `clerkMiddleware` in order for `unstable_rethrow` to recognise them and rethrow them. + +- Removes deprecated APIs: `authMiddleware()`, `redirectToSignIn()`, and `redirectToSignUp()`. See the migration guide to learn how to update your usage. ([#4366](https://github.com/clerk/javascript/pull/4366)) by [@jacekradko](https://github.com/jacekradko) + +### Minor Changes + +- Bug fix: Correctly redirect to sign in page in Next 15. ([#4383](https://github.com/clerk/javascript/pull/4383)) by [@panteliselef](https://github.com/panteliselef) + +- Add experimental support for new UI components ([#4114](https://github.com/clerk/javascript/pull/4114)) by [@BRKalow](https://github.com/BRKalow) + +### Patch Changes + +- Updated dependencies [[`93dfe7a09`](https://github.com/clerk/javascript/commit/93dfe7a09648f414ee3f50bc8fb3f342d24020cd), [`3b50b67bd`](https://github.com/clerk/javascript/commit/3b50b67bd40da33c9e36773aa05462717e9f44cc), [`a0204a8e8`](https://github.com/clerk/javascript/commit/a0204a8e8742b63aea92d67e7d66fe0bc86a166f), [`3b50b67bd`](https://github.com/clerk/javascript/commit/3b50b67bd40da33c9e36773aa05462717e9f44cc)]: + - @clerk/backend@1.15.0 + - @clerk/shared@2.10.0 + - @clerk/types@4.27.0 + - @clerk/clerk-react@5.13.0 + ## 5.7.5 ### Patch Changes diff --git a/packages/nextjs/package.json b/packages/nextjs/package.json index 16f094533ea..15cb118ae87 100644 --- a/packages/nextjs/package.json +++ b/packages/nextjs/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/nextjs", - "version": "5.7.5", + "version": "6.0.0", "description": "Clerk SDK for NextJS", "keywords": [ "clerk", @@ -67,10 +67,10 @@ "test:ci": "jest --maxWorkers=70%" }, "dependencies": { - "@clerk/backend": "1.14.1", - "@clerk/clerk-react": "5.12.0", - "@clerk/shared": "2.9.2", - "@clerk/types": "4.26.0", + "@clerk/backend": "1.15.0", + "@clerk/clerk-react": "5.13.0", + "@clerk/shared": "2.10.0", + "@clerk/types": "4.27.0", "crypto-js": "4.2.0", "server-only": "0.0.1", "tslib": "2.4.1" diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index 89b38291c04..77ec9822add 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,17 @@ # Change Log +## 5.13.0 + +### Minor Changes + +- Internal changes to support `` ([#4366](https://github.com/clerk/javascript/pull/4366)) by [@jacekradko](https://github.com/jacekradko) + +### Patch Changes + +- Updated dependencies [[`3b50b67bd`](https://github.com/clerk/javascript/commit/3b50b67bd40da33c9e36773aa05462717e9f44cc), [`3b50b67bd`](https://github.com/clerk/javascript/commit/3b50b67bd40da33c9e36773aa05462717e9f44cc)]: + - @clerk/shared@2.10.0 + - @clerk/types@4.27.0 + ## 5.12.0 ### Minor Changes diff --git a/packages/react/package.json b/packages/react/package.json index 36a201936aa..a83223197ae 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/clerk-react", - "version": "5.12.0", + "version": "5.13.0", "description": "Clerk React library", "keywords": [ "clerk", @@ -76,13 +76,13 @@ "test:ci": "jest --maxWorkers=70%" }, "dependencies": { - "@clerk/shared": "2.9.2", - "@clerk/types": "4.26.0", + "@clerk/shared": "2.10.0", + "@clerk/types": "4.27.0", "tslib": "2.4.1" }, "devDependencies": { "@clerk/eslint-config-custom": "*", - "@clerk/themes": "2.1.37", + "@clerk/themes": "2.1.38", "@types/node": "^18.19.33", "@types/react": "*", "@types/react-dom": "*", diff --git a/packages/remix/CHANGELOG.md b/packages/remix/CHANGELOG.md index 45197c5ea99..69e34d4acc1 100644 --- a/packages/remix/CHANGELOG.md +++ b/packages/remix/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## 4.2.40 + +### Patch Changes + +- Updated dependencies [[`93dfe7a09`](https://github.com/clerk/javascript/commit/93dfe7a09648f414ee3f50bc8fb3f342d24020cd), [`3b50b67bd`](https://github.com/clerk/javascript/commit/3b50b67bd40da33c9e36773aa05462717e9f44cc), [`a0204a8e8`](https://github.com/clerk/javascript/commit/a0204a8e8742b63aea92d67e7d66fe0bc86a166f), [`3b50b67bd`](https://github.com/clerk/javascript/commit/3b50b67bd40da33c9e36773aa05462717e9f44cc)]: + - @clerk/backend@1.15.0 + - @clerk/shared@2.10.0 + - @clerk/types@4.27.0 + - @clerk/clerk-react@5.13.0 + ## 4.2.39 ### Patch Changes diff --git a/packages/remix/package.json b/packages/remix/package.json index c0aee7b0553..6c2cd18d581 100644 --- a/packages/remix/package.json +++ b/packages/remix/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/remix", - "version": "4.2.39", + "version": "4.2.40", "description": "Clerk SDK for Remix", "keywords": [ "clerk", @@ -73,10 +73,10 @@ "publish:local": "npx yalc push --replace --sig" }, "dependencies": { - "@clerk/backend": "1.14.1", - "@clerk/clerk-react": "5.12.0", - "@clerk/shared": "2.9.2", - "@clerk/types": "4.26.0", + "@clerk/backend": "1.15.0", + "@clerk/clerk-react": "5.13.0", + "@clerk/shared": "2.10.0", + "@clerk/types": "4.27.0", "cookie": "0.7.0", "tslib": "2.4.1" }, diff --git a/packages/sdk-node/CHANGELOG.md b/packages/sdk-node/CHANGELOG.md index fba8c41b25c..5fdbf89d0c5 100644 --- a/packages/sdk-node/CHANGELOG.md +++ b/packages/sdk-node/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 5.0.53 + +### Patch Changes + +- Updated dependencies [[`93dfe7a09`](https://github.com/clerk/javascript/commit/93dfe7a09648f414ee3f50bc8fb3f342d24020cd), [`3b50b67bd`](https://github.com/clerk/javascript/commit/3b50b67bd40da33c9e36773aa05462717e9f44cc), [`3b50b67bd`](https://github.com/clerk/javascript/commit/3b50b67bd40da33c9e36773aa05462717e9f44cc)]: + - @clerk/backend@1.15.0 + - @clerk/shared@2.10.0 + - @clerk/types@4.27.0 + ## 5.0.52 ### Patch Changes diff --git a/packages/sdk-node/package.json b/packages/sdk-node/package.json index 5910a37b994..3ab6e53adf2 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.52", + "version": "5.0.53", "description": "Clerk server SDK for usage with node", "keywords": [ "clerk", @@ -53,9 +53,9 @@ "test:ci": "jest --maxWorkers=70%" }, "dependencies": { - "@clerk/backend": "1.14.1", - "@clerk/shared": "2.9.2", - "@clerk/types": "4.26.0", + "@clerk/backend": "1.15.0", + "@clerk/shared": "2.10.0", + "@clerk/types": "4.27.0", "tslib": "2.4.1" }, "devDependencies": { diff --git a/packages/shared/CHANGELOG.md b/packages/shared/CHANGELOG.md index 6d8d62e182d..57c47d53e1a 100644 --- a/packages/shared/CHANGELOG.md +++ b/packages/shared/CHANGELOG.md @@ -1,5 +1,16 @@ # Change Log +## 2.10.0 + +### Minor Changes + +- Add experimental support for new UI components ([#4114](https://github.com/clerk/javascript/pull/4114)) by [@BRKalow](https://github.com/BRKalow) + +### Patch Changes + +- Updated dependencies [[`3b50b67bd`](https://github.com/clerk/javascript/commit/3b50b67bd40da33c9e36773aa05462717e9f44cc), [`3b50b67bd`](https://github.com/clerk/javascript/commit/3b50b67bd40da33c9e36773aa05462717e9f44cc)]: + - @clerk/types@4.27.0 + ## 2.9.2 ### Patch Changes diff --git a/packages/shared/package.json b/packages/shared/package.json index 66bdd857e3b..b6f614fc3a6 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/shared", - "version": "2.9.2", + "version": "2.10.0", "description": "Internal package utils used by the Clerk SDKs", "repository": { "type": "git", @@ -95,7 +95,7 @@ "test:coverage": "jest --collectCoverage && open coverage/lcov-report/index.html" }, "dependencies": { - "@clerk/types": "4.26.0", + "@clerk/types": "4.27.0", "glob-to-regexp": "0.4.1", "js-cookie": "3.0.5", "std-env": "^3.7.0", diff --git a/packages/tanstack-start/CHANGELOG.md b/packages/tanstack-start/CHANGELOG.md index c483b0e755f..ea1cbc43aea 100644 --- a/packages/tanstack-start/CHANGELOG.md +++ b/packages/tanstack-start/CHANGELOG.md @@ -1,5 +1,15 @@ # @clerk/tanstack-start +## 0.4.16 + +### Patch Changes + +- Updated dependencies [[`93dfe7a09`](https://github.com/clerk/javascript/commit/93dfe7a09648f414ee3f50bc8fb3f342d24020cd), [`3b50b67bd`](https://github.com/clerk/javascript/commit/3b50b67bd40da33c9e36773aa05462717e9f44cc), [`a0204a8e8`](https://github.com/clerk/javascript/commit/a0204a8e8742b63aea92d67e7d66fe0bc86a166f), [`3b50b67bd`](https://github.com/clerk/javascript/commit/3b50b67bd40da33c9e36773aa05462717e9f44cc)]: + - @clerk/backend@1.15.0 + - @clerk/shared@2.10.0 + - @clerk/types@4.27.0 + - @clerk/clerk-react@5.13.0 + ## 0.4.15 ### Patch Changes diff --git a/packages/tanstack-start/package.json b/packages/tanstack-start/package.json index 3587f8a7cad..01a94297505 100644 --- a/packages/tanstack-start/package.json +++ b/packages/tanstack-start/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/tanstack-start", - "version": "0.4.15", + "version": "0.4.16", "description": "Clerk SDK for TanStack Start", "keywords": [ "clerk", @@ -54,10 +54,10 @@ "publish:local": "npx yalc push --replace --sig" }, "dependencies": { - "@clerk/backend": "1.14.1", - "@clerk/clerk-react": "5.12.0", - "@clerk/shared": "2.9.2", - "@clerk/types": "4.26.0", + "@clerk/backend": "1.15.0", + "@clerk/clerk-react": "5.13.0", + "@clerk/shared": "2.10.0", + "@clerk/types": "4.27.0", "tslib": "2.4.1" }, "devDependencies": { diff --git a/packages/testing/CHANGELOG.md b/packages/testing/CHANGELOG.md index fbe97fde30d..dcee80ec0e0 100644 --- a/packages/testing/CHANGELOG.md +++ b/packages/testing/CHANGELOG.md @@ -1,5 +1,14 @@ # @clerk/testing +## 1.3.14 + +### Patch Changes + +- Updated dependencies [[`93dfe7a09`](https://github.com/clerk/javascript/commit/93dfe7a09648f414ee3f50bc8fb3f342d24020cd), [`3b50b67bd`](https://github.com/clerk/javascript/commit/3b50b67bd40da33c9e36773aa05462717e9f44cc), [`3b50b67bd`](https://github.com/clerk/javascript/commit/3b50b67bd40da33c9e36773aa05462717e9f44cc)]: + - @clerk/backend@1.15.0 + - @clerk/shared@2.10.0 + - @clerk/types@4.27.0 + ## 1.3.13 ### Patch Changes diff --git a/packages/testing/package.json b/packages/testing/package.json index 5b4fdaf4d74..32c82932854 100644 --- a/packages/testing/package.json +++ b/packages/testing/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/testing", - "version": "1.3.13", + "version": "1.3.14", "description": "Utilities to help you create E2E test suites for apps using Clerk", "keywords": [ "auth", @@ -62,9 +62,9 @@ "lint": "eslint src/" }, "dependencies": { - "@clerk/backend": "1.14.1", - "@clerk/shared": "2.9.2", - "@clerk/types": "4.26.0", + "@clerk/backend": "1.15.0", + "@clerk/shared": "2.10.0", + "@clerk/types": "4.27.0", "dotenv": "16.4.5" }, "devDependencies": { diff --git a/packages/themes/CHANGELOG.md b/packages/themes/CHANGELOG.md index 2a3283ea227..b573500e03d 100644 --- a/packages/themes/CHANGELOG.md +++ b/packages/themes/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## 2.1.38 + +### Patch Changes + +- Updated dependencies [[`3b50b67bd`](https://github.com/clerk/javascript/commit/3b50b67bd40da33c9e36773aa05462717e9f44cc), [`3b50b67bd`](https://github.com/clerk/javascript/commit/3b50b67bd40da33c9e36773aa05462717e9f44cc)]: + - @clerk/types@4.27.0 + ## 2.1.37 ### Patch Changes diff --git a/packages/themes/package.json b/packages/themes/package.json index 8f68f6ec680..a9fcdf2d063 100644 --- a/packages/themes/package.json +++ b/packages/themes/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/themes", - "version": "2.1.37", + "version": "2.1.38", "description": "Themes for the Clerk auth components", "keywords": [ "react", @@ -37,7 +37,7 @@ "lint": "eslint src/" }, "dependencies": { - "@clerk/types": "4.26.0", + "@clerk/types": "4.27.0", "tslib": "2.4.1" }, "devDependencies": { diff --git a/packages/types/CHANGELOG.md b/packages/types/CHANGELOG.md index 4ffc3e8a81a..f0c8cda4141 100644 --- a/packages/types/CHANGELOG.md +++ b/packages/types/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## 4.27.0 + +### Minor Changes + +- Add experimental support for new UI components ([#4114](https://github.com/clerk/javascript/pull/4114)) by [@BRKalow](https://github.com/BRKalow) + +### Patch Changes + +- Fix `SignInProps`/`SignUpProps` `__experimental` type to allow for arbitrary properties ([#4114](https://github.com/clerk/javascript/pull/4114)) by [@BRKalow](https://github.com/BRKalow) + ## 4.26.0 ### Minor Changes diff --git a/packages/types/package.json b/packages/types/package.json index f5e73b00c57..d6561982a0d 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/types", - "version": "4.26.0", + "version": "4.27.0", "description": "Typings for Clerk libraries.", "keywords": [ "clerk", diff --git a/packages/upgrade/CHANGELOG.md b/packages/upgrade/CHANGELOG.md index d1be9523efc..e3360c81957 100644 --- a/packages/upgrade/CHANGELOG.md +++ b/packages/upgrade/CHANGELOG.md @@ -1,5 +1,96 @@ # @clerk/upgrade +## 1.1.0 + +### Minor Changes + +- @clerk/nextjs: Converting auth() and clerkClient() interfaces to be async ([#4366](https://github.com/clerk/javascript/pull/4366)) by [@jacekradko](https://github.com/jacekradko) + + @clerk/upgrade: Adding required codemod for @clerk/nextjs breaking changes + + # Migration guide + + ## `auth()` is now async + + Previously the `auth()` method from `@clerk/nextjs/server` was synchronous. + + ```typescript + import { auth } from "@clerk/nextjs/server"; + + export function GET() { + const { userId } = auth(); + return new Response(JSON.stringify({ userId })); + } + ``` + + The `auth` method now becomes asynchronous. You will need to make the following changes to the snippet above to make it compatible. + + ```diff + - export function GET() { + + export async function GET() { + - const { userId } = auth(); + + const { userId } = await auth(); + return new Response(JSON.stringify({ userId })); + } + ``` + + ## Clerk middleware auth is now async + + ```typescript + import { clerkClient, clerkMiddleware } from '@clerk/nextjs/server'; + import { NextResponse } from 'next/server'; + + export default clerkMiddleware(async (auth, request) => { + const resolvedAuth = await auth(); + + const count = await resolvedAuth.users.getCount(); + + if (count) { + return NextResponse.redirect(new URL('/new-url', request.url)); + } + }); + + export const config = { + matcher: [...], + }; + ``` + + ## clerkClient() is now async + + Previously the `clerkClient()` method from `@clerk/nextjs/server` was synchronous. + + ```typescript + import { clerkClient, clerkMiddleware } from '@clerk/nextjs/server'; + import { NextResponse } from 'next/server'; + + export default clerkMiddleware((auth, request) => { + const client = clerkClient(); + + const count = await client.users?.getCount(); + + if (count) { + return NextResponse.redirect(new URL('/new-url', request.url)); + } + }); + + export const config = { + matcher: [...], + }; + ``` + + The method now becomes async. You will need to make the following changes to the snippet above to make it compatible. + + ```diff + - export default clerkMiddleware((auth, request) => { + - const client = clerkClient(); + + export default clerkMiddleware(async (auth, request) => { + + const client = await clerkClient(); + const count = await client.users?.getCount(); + + if (count) { + } + ``` + ## 1.0.9 ### Patch Changes diff --git a/packages/upgrade/package.json b/packages/upgrade/package.json index 1a1156cd2df..3996ebab986 100644 --- a/packages/upgrade/package.json +++ b/packages/upgrade/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/upgrade", - "version": "1.0.9", + "version": "1.1.0", "repository": { "type": "git", "url": "git+https://github.com/clerk/javascript.git",