diff --git a/.changeset/curly-ties-mix.md b/.changeset/curly-ties-mix.md deleted file mode 100644 index e51e72cb46..0000000000 --- a/.changeset/curly-ties-mix.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/nextjs': patch ---- - -Fix an issue where only static routes would be allowed by `publicRoutes` prop from `authMiddleware`. diff --git a/.changeset/dull-ducks-dance.md b/.changeset/dull-ducks-dance.md deleted file mode 100644 index a845151cc8..0000000000 --- a/.changeset/dull-ducks-dance.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/empty-terms-scream.md b/.changeset/empty-terms-scream.md deleted file mode 100644 index a845151cc8..0000000000 --- a/.changeset/empty-terms-scream.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/fast-planes-talk.md b/.changeset/fast-planes-talk.md deleted file mode 100644 index f9d9e74872..0000000000 --- a/.changeset/fast-planes-talk.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'gatsby-plugin-clerk': patch -'@clerk/chrome-extension': patch -'@clerk/localizations': patch -'@clerk/clerk-js': patch -'@clerk/clerk-sdk-node': patch -'@clerk/backend': patch -'@clerk/fastify': patch -'@clerk/nextjs': patch -'@clerk/shared': patch -'@clerk/themes': patch -'@clerk/clerk-react': patch -'@clerk/remix': patch -'@clerk/types': patch -'@clerk/clerk-expo': patch ---- - -Publish packages with [npm provenance](https://docs.npmjs.com/generating-provenance-statements) enabled diff --git a/.changeset/fifty-wombats-refuse.md b/.changeset/fifty-wombats-refuse.md deleted file mode 100644 index 1392c4f7c2..0000000000 --- a/.changeset/fifty-wombats-refuse.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@clerk/localizations": patch ---- - -Add `dangerSection` translations to the `trTr` translation file diff --git a/.changeset/gorgeous-countries-appear.md b/.changeset/gorgeous-countries-appear.md deleted file mode 100644 index 9720c566af..0000000000 --- a/.changeset/gorgeous-countries-appear.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/nextjs': patch ---- - -Update `` to work in client components within the app router. This allows rendering of the provider in client components, previously the pages router provider was being imported and throwing an error. diff --git a/.changeset/gorgeous-radios-switch.md b/.changeset/gorgeous-radios-switch.md deleted file mode 100644 index a845151cc8..0000000000 --- a/.changeset/gorgeous-radios-switch.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/grumpy-swans-taste.md b/.changeset/grumpy-swans-taste.md deleted file mode 100644 index ed4a745e20..0000000000 --- a/.changeset/grumpy-swans-taste.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@clerk/shared": patch ---- - -Improve internal test coverage and fix small bug inside `callWithRetry` diff --git a/.changeset/hot-shoes-roll.md b/.changeset/hot-shoes-roll.md deleted file mode 100644 index 56427f7bd2..0000000000 --- a/.changeset/hot-shoes-roll.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/clerk-js': patch ---- - -Keep `CreateOrganizationForm` disabled in case of an uploaded avatar and organization name is empty. diff --git a/.changeset/loud-peaches-travel.md b/.changeset/loud-peaches-travel.md deleted file mode 100644 index 889072cf14..0000000000 --- a/.changeset/loud-peaches-travel.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/remix': minor ---- - -Support usage of Remix's `defer()` method in the loader passed to `rootAuthLoader()`. diff --git a/.changeset/poor-balloons-pretend.md b/.changeset/poor-balloons-pretend.md deleted file mode 100644 index 51964faade..0000000000 --- a/.changeset/poor-balloons-pretend.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@clerk/backend': patch -'@clerk/nextjs': patch -'@clerk/shared': patch -'@clerk/clerk-react': patch ---- - -Update imports of `@clerk/shared` to granular entrypoints. This addresses warnings during a Next.js build that are the result of unsupported APIs being included in the module graph of builds for the edge runtime. diff --git a/.changeset/pretty-planes-kick.md b/.changeset/pretty-planes-kick.md deleted file mode 100644 index b0623a510a..0000000000 --- a/.changeset/pretty-planes-kick.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@clerk/clerk-js": patch -"@clerk/types": patch ---- - -Drop `experimental_force_oauth_first` & `experimental__forceOauthFirst` from `DisplayConfig` diff --git a/.changeset/proud-ways-lie.md b/.changeset/proud-ways-lie.md deleted file mode 100644 index d099191bd3..0000000000 --- a/.changeset/proud-ways-lie.md +++ /dev/null @@ -1,39 +0,0 @@ ---- -'@clerk/clerk-js': minor -'@clerk/clerk-react': minor -'@clerk/types': minor ---- - -Introduce customization in `UserProfile` and `OrganizationProfile` - -The `` component now allows the addition of custom pages and external links to the navigation sidebar. Custom pages can be created using the `` component, and external links can be added using the `` component. The default routes, such as `Account` and `Security`, can be reordered. - -Example React API usage: - -```tsx - - }> - - - } /> - - - -``` -Custom pages and links should be provided as children using the `` and `` components when using the `UserButton` component. - -The `` component now supports the addition of custom pages and external links to the navigation sidebar. Custom pages can be created using the `` component, and external links can be added using the `` component. The default routes, such as `Members` and `Settings`, can be reordered. - -Example React API usage: - -```tsx - - }> - - - } /> - - - -``` -Custom pages and links should be provided as children using the `` and `` components when using the `OrganizationSwitcher` component. diff --git a/.changeset/slimy-hornets-obey.md b/.changeset/slimy-hornets-obey.md deleted file mode 100644 index 9c4e7271ab..0000000000 --- a/.changeset/slimy-hornets-obey.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@clerk/clerk-js": patch -"@clerk/clerk-react": patch ---- - -Consider `Clerk.setActive` as stable. diff --git a/.changeset/wild-carrots-reply.md b/.changeset/wild-carrots-reply.md deleted file mode 100644 index fabaf13958..0000000000 --- a/.changeset/wild-carrots-reply.md +++ /dev/null @@ -1,61 +0,0 @@ ---- -"@clerk/shared": major ---- - -The package was reworked to allow for better isomorphic use cases and ESM support, resulting in some breaking changes. It now allows for [subpath exports](https://nodejs.org/api/packages.html#subpath-exports) and restricts some imports to specific subpaths. - -Instead of importing from the root `@clerk/shared` import you can now use subpaths for most things: - -```diff -- import { deprecated, OrganizationProvider } from "@clerk/shared" -+ import { deprecated } from "@clerk/shared/deprecated" -+ import { OrganizationProvider } from "@clerk/shared/react" -``` - -By using subpaths you can tell bundlers to only bundle specific parts, potentially helping with tree-shaking. It also mitigates issues where e.g. modules only relevant for React where picked up in Node.js-only environments. - -If you're not using `@clerk/shared` directly (only by proxy through e.g. `@clerk/clerk-react`) you don't need to do anything. If you are relying on `@clerk/shared`, please read through the breaking changes below and change your code accordingly. You can rely on your IDE to give you hints on which exports are available at `@clerk/shared` and `@clerk/shared/` subpaths. - -**Breaking Changes** - -- `@clerk/shared` was and still is a dual CJS/ESM package. The ESM files provided by `@clerk/shared` now use `.mjs` file extensions and also define them in their import paths, following the ESM spec. Your bundler should handle this for you. -- Some imports where moved from the root `@clerk/shared` import to isolated subpaths. - - Helper utils for cookies and globs: - - ```diff - - import { createCookieHandler, globs } from "@clerk/shared" - + import { createCookieHandler } from "@clerk/shared/cookie" - + import { globs } from "@clerk/shared/globs" - ``` - - Everything related to React. Below is a small example and the full list of exports: - - ```diff - - import { useSafeLayoutEffect, ClerkInstanceContext } from "@clerk/shared" - + import { useSafeLayoutEffect, ClerkInstanceContext } from "@clerk/shared/react" - ``` - - Full list of exports moved to `@clerk/shared/react`: - - ```ts - export { - ClerkInstanceContext, - ClientContext, - OrganizationContext, - OrganizationProvider, - SessionContext, - UserContext, - assertContextExists, - createContextAndHook, - useClerkInstanceContext, - useClientContext, - useOrganization, - useOrganizationContext, - useOrganizationList, - useOrganizations, - useSafeLayoutEffect, - useSessionContext, - useUserContext - } - ``` - -If you run into an issues that might be a bug, please [open a bug report](https://github.com/clerkinc/javascript/issues/new?assignees=&labels=needs-triage&projects=&template=BUG_REPORT.yml) with a minimal reproduction. diff --git a/packages/backend/CHANGELOG.md b/packages/backend/CHANGELOG.md index a081c3ed8f..d3def14292 100644 --- a/packages/backend/CHANGELOG.md +++ b/packages/backend/CHANGELOG.md @@ -1,5 +1,17 @@ # Change Log +## 0.31.3 + +### Patch Changes + +- Publish packages with [npm provenance](https://docs.npmjs.com/generating-provenance-statements) enabled ([#1891](https://github.com/clerkinc/javascript/pull/1891)) by [@LekoArts](https://github.com/LekoArts) + +- Update imports of `@clerk/shared` to granular entrypoints. This addresses warnings during a Next.js build that are the result of unsupported APIs being included in the module graph of builds for the edge runtime. ([#1924](https://github.com/clerkinc/javascript/pull/1924)) by [@BRKalow](https://github.com/BRKalow) + +- Updated dependencies [[`3bf64107e`](https://github.com/clerkinc/javascript/commit/3bf64107e1d0f9fce55163276d157da7849a390f), [`52f8553d2`](https://github.com/clerkinc/javascript/commit/52f8553d22f9454ee1194fd162410db15da7a4be), [`92727eec3`](https://github.com/clerkinc/javascript/commit/92727eec39566278263ffa118a085493f964eb94), [`b09b66eec`](https://github.com/clerkinc/javascript/commit/b09b66eec6ed0fbf99d93cd6843826f19c911099), [`51861addf`](https://github.com/clerkinc/javascript/commit/51861addff911615035fdc74718a1deff3f5cd62), [`aa4cd7615`](https://github.com/clerkinc/javascript/commit/aa4cd761585b888706a36a6eed7436a8f0476dbf)]: + - @clerk/shared@1.0.0 + - @clerk/types@3.57.0 + ## 0.31.2 ### Patch Changes diff --git a/packages/backend/package.json b/packages/backend/package.json index 6e27da5a25..4931f8d0b2 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/backend", - "version": "0.31.2", + "version": "0.31.3", "license": "MIT", "description": "Clerk Backend SDK - REST Client for Backend API & JWT verification utilities", "types": "./dist/types/index.d.ts", @@ -46,8 +46,8 @@ "test:cloudflare-workerd": "tests/cloudflare-workerd/run.sh" }, "dependencies": { - "@clerk/shared": "0.24.5", - "@clerk/types": "3.56.1", + "@clerk/shared": "1.0.0", + "@clerk/types": "3.57.0", "@peculiar/webcrypto": "1.4.1", "@types/node": "16.18.6", "cookie": "0.5.0", diff --git a/packages/chrome-extension/CHANGELOG.md b/packages/chrome-extension/CHANGELOG.md index 78b938ae49..cd83b280d9 100644 --- a/packages/chrome-extension/CHANGELOG.md +++ b/packages/chrome-extension/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## 0.4.10 + +### Patch Changes + +- Publish packages with [npm provenance](https://docs.npmjs.com/generating-provenance-statements) enabled ([#1891](https://github.com/clerkinc/javascript/pull/1891)) by [@LekoArts](https://github.com/LekoArts) + +- Updated dependencies [[`3bf64107e`](https://github.com/clerkinc/javascript/commit/3bf64107e1d0f9fce55163276d157da7849a390f), [`89932e1b3`](https://github.com/clerkinc/javascript/commit/89932e1b32723479541ab2ba4cc87e3973b5ef85), [`92727eec3`](https://github.com/clerkinc/javascript/commit/92727eec39566278263ffa118a085493f964eb94), [`b09b66eec`](https://github.com/clerkinc/javascript/commit/b09b66eec6ed0fbf99d93cd6843826f19c911099), [`51861addf`](https://github.com/clerkinc/javascript/commit/51861addff911615035fdc74718a1deff3f5cd62), [`37d8856ba`](https://github.com/clerkinc/javascript/commit/37d8856babb9db8edf763455172c4d22d6035036)]: + - @clerk/clerk-js@4.63.0 + - @clerk/clerk-react@4.27.0 + ## 0.4.9 ### Patch Changes diff --git a/packages/chrome-extension/package.json b/packages/chrome-extension/package.json index 09147a6fa6..164194a93d 100644 --- a/packages/chrome-extension/package.json +++ b/packages/chrome-extension/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/chrome-extension", - "version": "0.4.9", + "version": "0.4.10", "license": "MIT", "description": "Clerk SDK for Chrome extensions", "keywords": [ @@ -35,8 +35,8 @@ "prepublishOnly": "npm run build" }, "dependencies": { - "@clerk/clerk-js": "4.62.1", - "@clerk/clerk-react": "4.26.6" + "@clerk/clerk-js": "4.63.0", + "@clerk/clerk-react": "4.27.0" }, "devDependencies": { "@types/chrome": "*", diff --git a/packages/clerk-js/CHANGELOG.md b/packages/clerk-js/CHANGELOG.md index 456b536df9..0962bff8c0 100644 --- a/packages/clerk-js/CHANGELOG.md +++ b/packages/clerk-js/CHANGELOG.md @@ -1,5 +1,76 @@ # Change Log +## 4.63.0 + +### Minor Changes + +- Introduce customization in `UserProfile` and `OrganizationProfile` ([#1822](https://github.com/clerkinc/javascript/pull/1822)) by [@anagstef](https://github.com/anagstef) + + The `` component now allows the addition of custom pages and external links to the navigation sidebar. Custom pages can be created using the `` component, and external links can be added using the `` component. The default routes, such as `Account` and `Security`, can be reordered. + + Example React API usage: + + ```tsx + + } + > + + + } + /> + + + + ``` + + Custom pages and links should be provided as children using the `` and `` components when using the `UserButton` component. + + The `` component now supports the addition of custom pages and external links to the navigation sidebar. Custom pages can be created using the `` component, and external links can be added using the `` component. The default routes, such as `Members` and `Settings`, can be reordered. + + Example React API usage: + + ```tsx + + } + > + + + } + /> + + + + ``` + + Custom pages and links should be provided as children using the `` and `` components when using the `OrganizationSwitcher` component. + +### Patch Changes + +- Publish packages with [npm provenance](https://docs.npmjs.com/generating-provenance-statements) enabled ([#1891](https://github.com/clerkinc/javascript/pull/1891)) by [@LekoArts](https://github.com/LekoArts) + +- Keep `CreateOrganizationForm` disabled in case of an uploaded avatar and organization name is empty. ([#1910](https://github.com/clerkinc/javascript/pull/1910)) by [@nikospapcom](https://github.com/nikospapcom) + +- Drop `experimental_force_oauth_first` & `experimental__forceOauthFirst` from `DisplayConfig` ([#1918](https://github.com/clerkinc/javascript/pull/1918)) by [@dimkl](https://github.com/dimkl) + +- Consider `Clerk.setActive` as stable. ([#1917](https://github.com/clerkinc/javascript/pull/1917)) by [@dimkl](https://github.com/dimkl) + +- Updated dependencies [[`3bf64107e`](https://github.com/clerkinc/javascript/commit/3bf64107e1d0f9fce55163276d157da7849a390f), [`734dc52af`](https://github.com/clerkinc/javascript/commit/734dc52af2ea8c214d617aa5c4065a66471c9f48), [`52f8553d2`](https://github.com/clerkinc/javascript/commit/52f8553d22f9454ee1194fd162410db15da7a4be), [`92727eec3`](https://github.com/clerkinc/javascript/commit/92727eec39566278263ffa118a085493f964eb94), [`b09b66eec`](https://github.com/clerkinc/javascript/commit/b09b66eec6ed0fbf99d93cd6843826f19c911099), [`51861addf`](https://github.com/clerkinc/javascript/commit/51861addff911615035fdc74718a1deff3f5cd62), [`aa4cd7615`](https://github.com/clerkinc/javascript/commit/aa4cd761585b888706a36a6eed7436a8f0476dbf)]: + - @clerk/localizations@1.26.7 + - @clerk/shared@1.0.0 + - @clerk/types@3.57.0 + ## 4.62.1 ### Patch Changes diff --git a/packages/clerk-js/package.json b/packages/clerk-js/package.json index 8236fb348a..253358ded8 100644 --- a/packages/clerk-js/package.json +++ b/packages/clerk-js/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/clerk-js", - "version": "4.62.1", + "version": "4.63.0", "license": "MIT", "description": "Clerk JS library", "keywords": [ @@ -43,9 +43,9 @@ "watch": "webpack --config webpack.config.js --env production --watch" }, "dependencies": { - "@clerk/localizations": "1.26.6", - "@clerk/shared": "0.24.5", - "@clerk/types": "3.56.1", + "@clerk/localizations": "1.26.7", + "@clerk/shared": "1.0.0", + "@clerk/types": "3.57.0", "@emotion/cache": "11.11.0", "@emotion/react": "11.11.1", "@floating-ui/react": "0.25.4", diff --git a/packages/expo/CHANGELOG.md b/packages/expo/CHANGELOG.md index e3237ec262..a61624571c 100644 --- a/packages/expo/CHANGELOG.md +++ b/packages/expo/CHANGELOG.md @@ -1,5 +1,16 @@ # Change Log +## 0.19.12 + +### Patch Changes + +- Publish packages with [npm provenance](https://docs.npmjs.com/generating-provenance-statements) enabled ([#1891](https://github.com/clerkinc/javascript/pull/1891)) by [@LekoArts](https://github.com/LekoArts) + +- Updated dependencies [[`3bf64107e`](https://github.com/clerkinc/javascript/commit/3bf64107e1d0f9fce55163276d157da7849a390f), [`52f8553d2`](https://github.com/clerkinc/javascript/commit/52f8553d22f9454ee1194fd162410db15da7a4be), [`89932e1b3`](https://github.com/clerkinc/javascript/commit/89932e1b32723479541ab2ba4cc87e3973b5ef85), [`92727eec3`](https://github.com/clerkinc/javascript/commit/92727eec39566278263ffa118a085493f964eb94), [`b09b66eec`](https://github.com/clerkinc/javascript/commit/b09b66eec6ed0fbf99d93cd6843826f19c911099), [`51861addf`](https://github.com/clerkinc/javascript/commit/51861addff911615035fdc74718a1deff3f5cd62), [`37d8856ba`](https://github.com/clerkinc/javascript/commit/37d8856babb9db8edf763455172c4d22d6035036), [`aa4cd7615`](https://github.com/clerkinc/javascript/commit/aa4cd761585b888706a36a6eed7436a8f0476dbf)]: + - @clerk/clerk-js@4.63.0 + - @clerk/shared@1.0.0 + - @clerk/clerk-react@4.27.0 + ## 0.19.11 ### Patch Changes diff --git a/packages/expo/package.json b/packages/expo/package.json index 6c46b442d7..1ea8cc5d00 100644 --- a/packages/expo/package.json +++ b/packages/expo/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/clerk-expo", - "version": "0.19.11", + "version": "0.19.12", "license": "MIT", "description": "Clerk React Native/Expo library", "keywords": [ @@ -30,14 +30,14 @@ "lint": "eslint src/" }, "dependencies": { - "@clerk/clerk-js": "4.62.1", - "@clerk/clerk-react": "4.26.6", - "@clerk/shared": "0.24.5", + "@clerk/clerk-js": "4.63.0", + "@clerk/clerk-react": "4.27.0", + "@clerk/shared": "1.0.0", "base-64": "1.0.0", "react-native-url-polyfill": "2.0.0" }, "devDependencies": { - "@clerk/types": "^3.56.1", + "@clerk/types": "^3.57.0", "@types/base-64": "^1.0.0", "@types/node": "^16.11.55", "@types/react": "*", diff --git a/packages/fastify/CHANGELOG.md b/packages/fastify/CHANGELOG.md index 6d3a19f543..b30c8d88da 100644 --- a/packages/fastify/CHANGELOG.md +++ b/packages/fastify/CHANGELOG.md @@ -1,5 +1,16 @@ # Change Log +## 0.6.17 + +### Patch Changes + +- Publish packages with [npm provenance](https://docs.npmjs.com/generating-provenance-statements) enabled ([#1891](https://github.com/clerkinc/javascript/pull/1891)) by [@LekoArts](https://github.com/LekoArts) + +- Updated dependencies [[`3bf64107e`](https://github.com/clerkinc/javascript/commit/3bf64107e1d0f9fce55163276d157da7849a390f), [`52f8553d2`](https://github.com/clerkinc/javascript/commit/52f8553d22f9454ee1194fd162410db15da7a4be), [`92727eec3`](https://github.com/clerkinc/javascript/commit/92727eec39566278263ffa118a085493f964eb94), [`b09b66eec`](https://github.com/clerkinc/javascript/commit/b09b66eec6ed0fbf99d93cd6843826f19c911099), [`51861addf`](https://github.com/clerkinc/javascript/commit/51861addff911615035fdc74718a1deff3f5cd62), [`aa4cd7615`](https://github.com/clerkinc/javascript/commit/aa4cd761585b888706a36a6eed7436a8f0476dbf)]: + - @clerk/backend@0.31.3 + - @clerk/shared@1.0.0 + - @clerk/types@3.57.0 + ## 0.6.16 ### Patch Changes diff --git a/packages/fastify/package.json b/packages/fastify/package.json index 77433d0cc0..5b3ffefdcf 100644 --- a/packages/fastify/package.json +++ b/packages/fastify/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/fastify", - "version": "0.6.16", + "version": "0.6.17", "license": "MIT", "description": "Clerk SDK for Fastify", "keywords": [ @@ -30,9 +30,9 @@ "test:cache:clear": "jest --clearCache --useStderr" }, "dependencies": { - "@clerk/backend": "0.31.2", - "@clerk/shared": "0.24.5", - "@clerk/types": "3.56.1", + "@clerk/backend": "0.31.3", + "@clerk/shared": "1.0.0", + "@clerk/types": "3.57.0", "cookies": "0.8.0" }, "devDependencies": { diff --git a/packages/gatsby-plugin-clerk/CHANGELOG.md b/packages/gatsby-plugin-clerk/CHANGELOG.md index 86293405d2..859081ad37 100644 --- a/packages/gatsby-plugin-clerk/CHANGELOG.md +++ b/packages/gatsby-plugin-clerk/CHANGELOG.md @@ -1,5 +1,17 @@ # Change Log +## 4.4.18 + +### Patch Changes + +- Publish packages with [npm provenance](https://docs.npmjs.com/generating-provenance-statements) enabled ([#1891](https://github.com/clerkinc/javascript/pull/1891)) by [@LekoArts](https://github.com/LekoArts) + +- Updated dependencies [[`3bf64107e`](https://github.com/clerkinc/javascript/commit/3bf64107e1d0f9fce55163276d157da7849a390f), [`92727eec3`](https://github.com/clerkinc/javascript/commit/92727eec39566278263ffa118a085493f964eb94), [`b09b66eec`](https://github.com/clerkinc/javascript/commit/b09b66eec6ed0fbf99d93cd6843826f19c911099), [`51861addf`](https://github.com/clerkinc/javascript/commit/51861addff911615035fdc74718a1deff3f5cd62), [`37d8856ba`](https://github.com/clerkinc/javascript/commit/37d8856babb9db8edf763455172c4d22d6035036)]: + - @clerk/clerk-sdk-node@4.12.16 + - @clerk/backend@0.31.3 + - @clerk/clerk-react@4.27.0 + - @clerk/types@3.57.0 + ## 4.4.17 ### Patch Changes diff --git a/packages/gatsby-plugin-clerk/package.json b/packages/gatsby-plugin-clerk/package.json index b9d6c72611..c5e9c36813 100644 --- a/packages/gatsby-plugin-clerk/package.json +++ b/packages/gatsby-plugin-clerk/package.json @@ -1,6 +1,6 @@ { "name": "gatsby-plugin-clerk", - "version": "4.4.17", + "version": "4.4.18", "license": "MIT", "description": "Clerk SDK for Gatsby", "keywords": [ @@ -35,10 +35,10 @@ "lint": "eslint src/" }, "dependencies": { - "@clerk/backend": "0.31.2", - "@clerk/clerk-react": "4.26.6", - "@clerk/clerk-sdk-node": "4.12.15", - "@clerk/types": "3.56.1", + "@clerk/backend": "0.31.3", + "@clerk/clerk-react": "4.27.0", + "@clerk/clerk-sdk-node": "4.12.16", + "@clerk/types": "3.57.0", "cookie": "0.5.0", "tslib": "2.4.1" }, diff --git a/packages/localizations/CHANGELOG.md b/packages/localizations/CHANGELOG.md index bf0fe1a3f1..5bda94248e 100644 --- a/packages/localizations/CHANGELOG.md +++ b/packages/localizations/CHANGELOG.md @@ -1,5 +1,16 @@ # Change Log +## 1.26.7 + +### Patch Changes + +- Publish packages with [npm provenance](https://docs.npmjs.com/generating-provenance-statements) enabled ([#1891](https://github.com/clerkinc/javascript/pull/1891)) by [@LekoArts](https://github.com/LekoArts) + +- Add `dangerSection` translations to the `trTr` translation file ([#1920](https://github.com/clerkinc/javascript/pull/1920)) by [@EdizKeskin](https://github.com/EdizKeskin) + +- Updated dependencies [[`3bf64107e`](https://github.com/clerkinc/javascript/commit/3bf64107e1d0f9fce55163276d157da7849a390f), [`b09b66eec`](https://github.com/clerkinc/javascript/commit/b09b66eec6ed0fbf99d93cd6843826f19c911099), [`51861addf`](https://github.com/clerkinc/javascript/commit/51861addff911615035fdc74718a1deff3f5cd62)]: + - @clerk/types@3.57.0 + ## 1.26.6 ### Patch Changes diff --git a/packages/localizations/package.json b/packages/localizations/package.json index db7e9ab4b2..af0f9df491 100644 --- a/packages/localizations/package.json +++ b/packages/localizations/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/localizations", - "version": "1.26.6", + "version": "1.26.7", "license": "MIT", "description": "Localizations for the Clerk components", "keywords": [ @@ -28,7 +28,7 @@ "lint": "eslint src/" }, "dependencies": { - "@clerk/types": "3.56.1" + "@clerk/types": "3.57.0" }, "devDependencies": { "tsup": "*", diff --git a/packages/nextjs/CHANGELOG.md b/packages/nextjs/CHANGELOG.md index 220abbc339..83b783582e 100644 --- a/packages/nextjs/CHANGELOG.md +++ b/packages/nextjs/CHANGELOG.md @@ -1,5 +1,24 @@ # Change Log +## 4.25.7 + +### Patch Changes + +- Fix an issue where only static routes would be allowed by `publicRoutes` prop from `authMiddleware`. ([#1928](https://github.com/clerkinc/javascript/pull/1928)) by [@desiprisg](https://github.com/desiprisg) + +- Publish packages with [npm provenance](https://docs.npmjs.com/generating-provenance-statements) enabled ([#1891](https://github.com/clerkinc/javascript/pull/1891)) by [@LekoArts](https://github.com/LekoArts) + +- Update `` to work in client components within the app router. This allows rendering of the provider in client components, previously the pages router provider was being imported and throwing an error. ([#1840](https://github.com/clerkinc/javascript/pull/1840)) by [@BRKalow](https://github.com/BRKalow) + +- Update imports of `@clerk/shared` to granular entrypoints. This addresses warnings during a Next.js build that are the result of unsupported APIs being included in the module graph of builds for the edge runtime. ([#1924](https://github.com/clerkinc/javascript/pull/1924)) by [@BRKalow](https://github.com/BRKalow) + +- Updated dependencies [[`3bf64107e`](https://github.com/clerkinc/javascript/commit/3bf64107e1d0f9fce55163276d157da7849a390f), [`52f8553d2`](https://github.com/clerkinc/javascript/commit/52f8553d22f9454ee1194fd162410db15da7a4be), [`92727eec3`](https://github.com/clerkinc/javascript/commit/92727eec39566278263ffa118a085493f964eb94), [`b09b66eec`](https://github.com/clerkinc/javascript/commit/b09b66eec6ed0fbf99d93cd6843826f19c911099), [`51861addf`](https://github.com/clerkinc/javascript/commit/51861addff911615035fdc74718a1deff3f5cd62), [`37d8856ba`](https://github.com/clerkinc/javascript/commit/37d8856babb9db8edf763455172c4d22d6035036), [`aa4cd7615`](https://github.com/clerkinc/javascript/commit/aa4cd761585b888706a36a6eed7436a8f0476dbf)]: + - @clerk/clerk-sdk-node@4.12.16 + - @clerk/backend@0.31.3 + - @clerk/shared@1.0.0 + - @clerk/clerk-react@4.27.0 + - @clerk/types@3.57.0 + ## 4.25.6 ### Patch Changes diff --git a/packages/nextjs/package.json b/packages/nextjs/package.json index 8819f7e1bd..234ae993e0 100644 --- a/packages/nextjs/package.json +++ b/packages/nextjs/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/nextjs", - "version": "4.25.6", + "version": "4.25.7", "license": "MIT", "description": "Clerk SDK for NextJS", "keywords": [ @@ -78,11 +78,11 @@ "test:ci": "jest --maxWorkers=70%" }, "dependencies": { - "@clerk/backend": "0.31.2", - "@clerk/clerk-react": "4.26.6", - "@clerk/clerk-sdk-node": "4.12.15", - "@clerk/shared": "0.24.5", - "@clerk/types": "3.56.1", + "@clerk/backend": "0.31.3", + "@clerk/clerk-react": "4.27.0", + "@clerk/clerk-sdk-node": "4.12.16", + "@clerk/shared": "1.0.0", + "@clerk/types": "3.57.0", "path-to-regexp": "6.2.1", "tslib": "2.4.1" }, diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index 2fce810210..b09be1c76d 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,73 @@ # Change Log +## 4.27.0 + +### Minor Changes + +- Introduce customization in `UserProfile` and `OrganizationProfile` ([#1822](https://github.com/clerkinc/javascript/pull/1822)) by [@anagstef](https://github.com/anagstef) + + The `` component now allows the addition of custom pages and external links to the navigation sidebar. Custom pages can be created using the `` component, and external links can be added using the `` component. The default routes, such as `Account` and `Security`, can be reordered. + + Example React API usage: + + ```tsx + + } + > + + + } + /> + + + + ``` + + Custom pages and links should be provided as children using the `` and `` components when using the `UserButton` component. + + The `` component now supports the addition of custom pages and external links to the navigation sidebar. Custom pages can be created using the `` component, and external links can be added using the `` component. The default routes, such as `Members` and `Settings`, can be reordered. + + Example React API usage: + + ```tsx + + } + > + + + } + /> + + + + ``` + + Custom pages and links should be provided as children using the `` and `` components when using the `OrganizationSwitcher` component. + +### Patch Changes + +- Publish packages with [npm provenance](https://docs.npmjs.com/generating-provenance-statements) enabled ([#1891](https://github.com/clerkinc/javascript/pull/1891)) by [@LekoArts](https://github.com/LekoArts) + +- Update imports of `@clerk/shared` to granular entrypoints. This addresses warnings during a Next.js build that are the result of unsupported APIs being included in the module graph of builds for the edge runtime. ([#1924](https://github.com/clerkinc/javascript/pull/1924)) by [@BRKalow](https://github.com/BRKalow) + +- Consider `Clerk.setActive` as stable. ([#1917](https://github.com/clerkinc/javascript/pull/1917)) by [@dimkl](https://github.com/dimkl) + +- Updated dependencies [[`3bf64107e`](https://github.com/clerkinc/javascript/commit/3bf64107e1d0f9fce55163276d157da7849a390f), [`52f8553d2`](https://github.com/clerkinc/javascript/commit/52f8553d22f9454ee1194fd162410db15da7a4be), [`92727eec3`](https://github.com/clerkinc/javascript/commit/92727eec39566278263ffa118a085493f964eb94), [`b09b66eec`](https://github.com/clerkinc/javascript/commit/b09b66eec6ed0fbf99d93cd6843826f19c911099), [`51861addf`](https://github.com/clerkinc/javascript/commit/51861addff911615035fdc74718a1deff3f5cd62), [`aa4cd7615`](https://github.com/clerkinc/javascript/commit/aa4cd761585b888706a36a6eed7436a8f0476dbf)]: + - @clerk/shared@1.0.0 + - @clerk/types@3.57.0 + ## 4.26.6 ### Patch Changes diff --git a/packages/react/package.json b/packages/react/package.json index 4b51c444ec..3af333a489 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/clerk-react", - "version": "4.26.6", + "version": "4.27.0", "license": "MIT", "description": "Clerk React library", "keywords": [ @@ -47,8 +47,8 @@ "test:ci": "jest --maxWorkers=70%" }, "dependencies": { - "@clerk/shared": "0.24.5", - "@clerk/types": "3.56.1", + "@clerk/shared": "1.0.0", + "@clerk/types": "3.57.0", "tslib": "2.4.1" }, "devDependencies": { diff --git a/packages/remix/CHANGELOG.md b/packages/remix/CHANGELOG.md index 485de51d93..e8bc708c4f 100644 --- a/packages/remix/CHANGELOG.md +++ b/packages/remix/CHANGELOG.md @@ -1,5 +1,21 @@ # Change Log +## 3.1.0 + +### Minor Changes + +- Support usage of Remix's `defer()` method in the loader passed to `rootAuthLoader()`. ([#1926](https://github.com/clerkinc/javascript/pull/1926)) by [@BRKalow](https://github.com/BRKalow) + +### Patch Changes + +- Publish packages with [npm provenance](https://docs.npmjs.com/generating-provenance-statements) enabled ([#1891](https://github.com/clerkinc/javascript/pull/1891)) by [@LekoArts](https://github.com/LekoArts) + +- Updated dependencies [[`3bf64107e`](https://github.com/clerkinc/javascript/commit/3bf64107e1d0f9fce55163276d157da7849a390f), [`52f8553d2`](https://github.com/clerkinc/javascript/commit/52f8553d22f9454ee1194fd162410db15da7a4be), [`92727eec3`](https://github.com/clerkinc/javascript/commit/92727eec39566278263ffa118a085493f964eb94), [`b09b66eec`](https://github.com/clerkinc/javascript/commit/b09b66eec6ed0fbf99d93cd6843826f19c911099), [`51861addf`](https://github.com/clerkinc/javascript/commit/51861addff911615035fdc74718a1deff3f5cd62), [`37d8856ba`](https://github.com/clerkinc/javascript/commit/37d8856babb9db8edf763455172c4d22d6035036), [`aa4cd7615`](https://github.com/clerkinc/javascript/commit/aa4cd761585b888706a36a6eed7436a8f0476dbf)]: + - @clerk/backend@0.31.3 + - @clerk/shared@1.0.0 + - @clerk/clerk-react@4.27.0 + - @clerk/types@3.57.0 + ## 3.0.8 ### Patch Changes diff --git a/packages/remix/package.json b/packages/remix/package.json index caa95933a1..cbd2b13683 100644 --- a/packages/remix/package.json +++ b/packages/remix/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/remix", - "version": "3.0.8", + "version": "3.1.0", "license": "MIT", "description": "Clerk SDK for Remix", "keywords": [ @@ -60,10 +60,10 @@ "lint:attw": "attw --pack ." }, "dependencies": { - "@clerk/backend": "0.31.2", - "@clerk/clerk-react": "4.26.6", - "@clerk/shared": "0.24.5", - "@clerk/types": "3.56.1", + "@clerk/backend": "0.31.3", + "@clerk/clerk-react": "4.27.0", + "@clerk/shared": "1.0.0", + "@clerk/types": "3.57.0", "cookie": "0.5.0", "tslib": "2.4.1" }, diff --git a/packages/sdk-node/CHANGELOG.md b/packages/sdk-node/CHANGELOG.md index 155abf48c6..7b3c39b428 100644 --- a/packages/sdk-node/CHANGELOG.md +++ b/packages/sdk-node/CHANGELOG.md @@ -1,5 +1,16 @@ # Change Log +## 4.12.16 + +### Patch Changes + +- Publish packages with [npm provenance](https://docs.npmjs.com/generating-provenance-statements) enabled ([#1891](https://github.com/clerkinc/javascript/pull/1891)) by [@LekoArts](https://github.com/LekoArts) + +- Updated dependencies [[`3bf64107e`](https://github.com/clerkinc/javascript/commit/3bf64107e1d0f9fce55163276d157da7849a390f), [`52f8553d2`](https://github.com/clerkinc/javascript/commit/52f8553d22f9454ee1194fd162410db15da7a4be), [`92727eec3`](https://github.com/clerkinc/javascript/commit/92727eec39566278263ffa118a085493f964eb94), [`b09b66eec`](https://github.com/clerkinc/javascript/commit/b09b66eec6ed0fbf99d93cd6843826f19c911099), [`51861addf`](https://github.com/clerkinc/javascript/commit/51861addff911615035fdc74718a1deff3f5cd62), [`aa4cd7615`](https://github.com/clerkinc/javascript/commit/aa4cd761585b888706a36a6eed7436a8f0476dbf)]: + - @clerk/backend@0.31.3 + - @clerk/shared@1.0.0 + - @clerk/types@3.57.0 + ## 4.12.15 ### Patch Changes diff --git a/packages/sdk-node/package.json b/packages/sdk-node/package.json index dd3316b7b8..4b46da392e 100644 --- a/packages/sdk-node/package.json +++ b/packages/sdk-node/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/clerk-sdk-node", - "version": "4.12.15", + "version": "4.12.16", "license": "MIT", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.mjs", @@ -60,9 +60,9 @@ "typescript": "*" }, "dependencies": { - "@clerk/backend": "0.31.2", - "@clerk/shared": "0.24.5", - "@clerk/types": "3.56.1", + "@clerk/backend": "0.31.3", + "@clerk/shared": "1.0.0", + "@clerk/types": "3.57.0", "@types/cookies": "0.7.7", "@types/express": "4.17.14", "@types/node-fetch": "2.6.2", diff --git a/packages/shared/CHANGELOG.md b/packages/shared/CHANGELOG.md index c950a4966c..2272a02f28 100644 --- a/packages/shared/CHANGELOG.md +++ b/packages/shared/CHANGELOG.md @@ -1,5 +1,77 @@ # Change Log +## 1.0.0 + +### Major Changes + +- The package was reworked to allow for better isomorphic use cases and ESM support, resulting in some breaking changes. It now allows for [subpath exports](https://nodejs.org/api/packages.html#subpath-exports) and restricts some imports to specific subpaths. ([#1898](https://github.com/clerkinc/javascript/pull/1898)) by [@LekoArts](https://github.com/LekoArts) + + Instead of importing from the root `@clerk/shared` import you can now use subpaths for most things: + + ```diff + - import { deprecated, OrganizationProvider } from "@clerk/shared" + + import { deprecated } from "@clerk/shared/deprecated" + + import { OrganizationProvider } from "@clerk/shared/react" + ``` + + By using subpaths you can tell bundlers to only bundle specific parts, potentially helping with tree-shaking. It also mitigates issues where e.g. modules only relevant for React where picked up in Node.js-only environments. + + If you're not using `@clerk/shared` directly (only by proxy through e.g. `@clerk/clerk-react`) you don't need to do anything. If you are relying on `@clerk/shared`, please read through the breaking changes below and change your code accordingly. You can rely on your IDE to give you hints on which exports are available at `@clerk/shared` and `@clerk/shared/` subpaths. + + **Breaking Changes** + + - `@clerk/shared` was and still is a dual CJS/ESM package. The ESM files provided by `@clerk/shared` now use `.mjs` file extensions and also define them in their import paths, following the ESM spec. Your bundler should handle this for you. + - Some imports where moved from the root `@clerk/shared` import to isolated subpaths. + + - Helper utils for cookies and globs: + + ```diff + - import { createCookieHandler, globs } from "@clerk/shared" + + import { createCookieHandler } from "@clerk/shared/cookie" + + import { globs } from "@clerk/shared/globs" + ``` + + - Everything related to React. Below is a small example and the full list of exports: + + ```diff + - import { useSafeLayoutEffect, ClerkInstanceContext } from "@clerk/shared" + + import { useSafeLayoutEffect, ClerkInstanceContext } from "@clerk/shared/react" + ``` + + Full list of exports moved to `@clerk/shared/react`: + + ```ts + export { + ClerkInstanceContext, + ClientContext, + OrganizationContext, + OrganizationProvider, + SessionContext, + UserContext, + assertContextExists, + createContextAndHook, + useClerkInstanceContext, + useClientContext, + useOrganization, + useOrganizationContext, + useOrganizationList, + useOrganizations, + useSafeLayoutEffect, + useSessionContext, + useUserContext, + }; + ``` + + If you run into an issues that might be a bug, please [open a bug report](https://github.com/clerkinc/javascript/issues/new?assignees=&labels=needs-triage&projects=&template=BUG_REPORT.yml) with a minimal reproduction. + +### Patch Changes + +- Publish packages with [npm provenance](https://docs.npmjs.com/generating-provenance-statements) enabled ([#1891](https://github.com/clerkinc/javascript/pull/1891)) by [@LekoArts](https://github.com/LekoArts) + +- Improve internal test coverage and fix small bug inside `callWithRetry` ([#1925](https://github.com/clerkinc/javascript/pull/1925)) by [@LekoArts](https://github.com/LekoArts) + +- Update imports of `@clerk/shared` to granular entrypoints. This addresses warnings during a Next.js build that are the result of unsupported APIs being included in the module graph of builds for the edge runtime. ([#1924](https://github.com/clerkinc/javascript/pull/1924)) by [@BRKalow](https://github.com/BRKalow) + ## 0.24.5 ### Patch Changes diff --git a/packages/shared/package.json b/packages/shared/package.json index 0f7e5e7406..11a2a911c8 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/shared", - "version": "0.24.5", + "version": "1.0.0", "description": "Internal package utils used by the Clerk SDKs", "sideEffects": false, "files": [ @@ -60,7 +60,7 @@ "swr": "2.2.0" }, "devDependencies": { - "@clerk/types": "3.56.1", + "@clerk/types": "3.57.0", "@types/glob-to-regexp": "0.4.1", "@types/js-cookie": "3.0.2", "tsup": "*", diff --git a/packages/themes/CHANGELOG.md b/packages/themes/CHANGELOG.md index 87e6c874e4..aca68bf5b8 100644 --- a/packages/themes/CHANGELOG.md +++ b/packages/themes/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 1.7.9 + +### Patch Changes + +- Publish packages with [npm provenance](https://docs.npmjs.com/generating-provenance-statements) enabled ([#1891](https://github.com/clerkinc/javascript/pull/1891)) by [@LekoArts](https://github.com/LekoArts) + ## 1.7.8 ### Patch Changes diff --git a/packages/themes/package.json b/packages/themes/package.json index b5e5e07f56..ac49e3271b 100644 --- a/packages/themes/package.json +++ b/packages/themes/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/themes", - "version": "1.7.8", + "version": "1.7.9", "license": "MIT", "description": "Themes for the Clerk auth components", "keywords": [ @@ -28,7 +28,7 @@ "lint": "eslint src/" }, "devDependencies": { - "@clerk/types": "3.56.1", + "@clerk/types": "3.57.0", "typescript": "*" }, "peerDependencies": { diff --git a/packages/types/CHANGELOG.md b/packages/types/CHANGELOG.md index 92c7a19ab5..2a3a7a4105 100644 --- a/packages/types/CHANGELOG.md +++ b/packages/types/CHANGELOG.md @@ -1,5 +1,67 @@ # Change Log +## 3.57.0 + +### Minor Changes + +- Introduce customization in `UserProfile` and `OrganizationProfile` ([#1822](https://github.com/clerkinc/javascript/pull/1822)) by [@anagstef](https://github.com/anagstef) + + The `` component now allows the addition of custom pages and external links to the navigation sidebar. Custom pages can be created using the `` component, and external links can be added using the `` component. The default routes, such as `Account` and `Security`, can be reordered. + + Example React API usage: + + ```tsx + + } + > + + + } + /> + + + + ``` + + Custom pages and links should be provided as children using the `` and `` components when using the `UserButton` component. + + The `` component now supports the addition of custom pages and external links to the navigation sidebar. Custom pages can be created using the `` component, and external links can be added using the `` component. The default routes, such as `Members` and `Settings`, can be reordered. + + Example React API usage: + + ```tsx + + } + > + + + } + /> + + + + ``` + + Custom pages and links should be provided as children using the `` and `` components when using the `OrganizationSwitcher` component. + +### Patch Changes + +- Publish packages with [npm provenance](https://docs.npmjs.com/generating-provenance-statements) enabled ([#1891](https://github.com/clerkinc/javascript/pull/1891)) by [@LekoArts](https://github.com/LekoArts) + +- Drop `experimental_force_oauth_first` & `experimental__forceOauthFirst` from `DisplayConfig` ([#1918](https://github.com/clerkinc/javascript/pull/1918)) by [@dimkl](https://github.com/dimkl) + ## 3.56.1 ### Patch Changes diff --git a/packages/types/package.json b/packages/types/package.json index 72060a82c1..56c561b39d 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/types", - "version": "3.56.1", + "version": "3.57.0", "license": "MIT", "description": "Typings for Clerk libraries.", "keywords": [