From ff2fb6902065341973a830f0fdb3dbf373bbdcbe Mon Sep 17 00:00:00 2001 From: Clerk Cookie <136073014+clerk-cookie@users.noreply.github.com> Date: Wed, 13 Dec 2023 18:19:49 +0200 Subject: [PATCH] chore(repo): Version packages (#2330) Co-authored-by: github-actions[bot] --- .changeset/angry-clocks-attend.md | 5 --- .changeset/friendly-parrots-nail.md | 2 -- .changeset/long-dancers-whisper.md | 5 --- .changeset/short-eagles-search.md | 20 ------------ .changeset/thirty-chicken-divide.md | 16 ---------- packages/backend/CHANGELOG.md | 23 +++++++++++++ packages/backend/package.json | 4 +-- packages/chrome-extension/CHANGELOG.md | 24 ++++++++++++++ packages/chrome-extension/package.json | 6 ++-- packages/clerk-js/CHANGELOG.md | 26 +++++++++++++++ packages/clerk-js/package.json | 6 ++-- packages/expo/CHANGELOG.md | 8 +++++ packages/expo/package.json | 8 ++--- packages/fastify/CHANGELOG.md | 8 +++++ packages/fastify/package.json | 6 ++-- packages/gatsby-plugin-clerk/CHANGELOG.md | 10 ++++++ packages/gatsby-plugin-clerk/package.json | 10 +++--- packages/localizations/CHANGELOG.md | 7 ++++ packages/localizations/package.json | 4 +-- packages/nextjs/CHANGELOG.md | 39 +++++++++++++++++++++++ packages/nextjs/package.json | 10 +++--- packages/react/CHANGELOG.md | 23 +++++++++++++ packages/react/package.json | 4 +-- packages/remix/CHANGELOG.md | 9 ++++++ packages/remix/package.json | 8 ++--- packages/sdk-node/CHANGELOG.md | 8 +++++ packages/sdk-node/package.json | 6 ++-- packages/shared/package.json | 2 +- packages/themes/package.json | 2 +- packages/types/CHANGELOG.md | 22 +++++++++++++ packages/types/package.json | 2 +- 31 files changed, 246 insertions(+), 87 deletions(-) delete mode 100644 .changeset/angry-clocks-attend.md delete mode 100644 .changeset/friendly-parrots-nail.md delete mode 100644 .changeset/long-dancers-whisper.md delete mode 100644 .changeset/short-eagles-search.md delete mode 100644 .changeset/thirty-chicken-divide.md diff --git a/.changeset/angry-clocks-attend.md b/.changeset/angry-clocks-attend.md deleted file mode 100644 index 5b83cab47f..0000000000 --- a/.changeset/angry-clocks-attend.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/clerk-js': patch ---- - -Update `@zxcvbn-ts/core` from `2.2.1` to `3.0.4`. Update `@zxcvbn-ts/language-common` from `3.0.2` to `3.0.4`. diff --git a/.changeset/friendly-parrots-nail.md b/.changeset/friendly-parrots-nail.md deleted file mode 100644 index a845151cc8..0000000000 --- a/.changeset/friendly-parrots-nail.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/long-dancers-whisper.md b/.changeset/long-dancers-whisper.md deleted file mode 100644 index 15a02f2067..0000000000 --- a/.changeset/long-dancers-whisper.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@clerk/types': patch ---- - -Adjust `ZxcvbnResult` interface to use current `feedback.warning` type as used in the upstream `@zxcvbn-ts/core` library. diff --git a/.changeset/short-eagles-search.md b/.changeset/short-eagles-search.md deleted file mode 100644 index 956ec761ab..0000000000 --- a/.changeset/short-eagles-search.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@clerk/chrome-extension': minor -'@clerk/clerk-js': minor -'@clerk/backend': minor -'@clerk/nextjs': minor -'@clerk/clerk-react': minor -'@clerk/types': minor ---- - -Introduce Protect for authorization. -Changes in public APIs: -- Rename Gate to Protect -- Support for permission checks. (Previously only roles could be used) -- Remove the `experimental` tags and prefixes -- Drop `some` from the `has` utility and Protect. Protect now accepts a `condition` prop where a function is expected with the `has` being exposed as the param. -- Protect can now be used without required props. In this case behaves as ``, if no authorization props are passed. -- `has` will throw an error if neither `permission` or `role` is passed. -- `auth().protect()` for Nextjs App Router. Allow per page protection in app router. This utility will automatically throw a 404 error if user is not authorized or authenticated. - - inside a page or layout file it will render the nearest `not-found` component set by the developer - - inside a route handler it will return empty response body with a 404 status code diff --git a/.changeset/thirty-chicken-divide.md b/.changeset/thirty-chicken-divide.md deleted file mode 100644 index 8e8b8f2289..0000000000 --- a/.changeset/thirty-chicken-divide.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@clerk/nextjs': patch ---- - -Accept `redirectUrl` as an option for `auth().protect()`. - -For example: - -```ts -// Authorization -auth().protect({ role:'org:admin' }, { redirectUrl: "/any-page" }) -auth().protect({ permission:'org:settings:manage' }, { redirectUrl: "/any-page" }) - -// Authentication -auth().protect({ redirectUrl: "/any-page" }) -``` diff --git a/packages/backend/CHANGELOG.md b/packages/backend/CHANGELOG.md index 2aba6943ea..d66884103e 100644 --- a/packages/backend/CHANGELOG.md +++ b/packages/backend/CHANGELOG.md @@ -1,5 +1,28 @@ # Change Log +## 0.36.0 + +### Minor Changes + +- Introduce Protect for authorization. ([#2309](https://github.com/clerk/javascript/pull/2309)) by [@panteliselef](https://github.com/panteliselef) + + Changes in public APIs: + + - Rename Gate to Protect + - Support for permission checks. (Previously only roles could be used) + - Remove the `experimental` tags and prefixes + - Drop `some` from the `has` utility and Protect. Protect now accepts a `condition` prop where a function is expected with the `has` being exposed as the param. + - Protect can now be used without required props. In this case behaves as ``, if no authorization props are passed. + - `has` will throw an error if neither `permission` or `role` is passed. + - `auth().protect()` for Nextjs App Router. Allow per page protection in app router. This utility will automatically throw a 404 error if user is not authorized or authenticated. + - inside a page or layout file it will render the nearest `not-found` component set by the developer + - inside a route handler it will return empty response body with a 404 status code + +### Patch Changes + +- Updated dependencies [[`b4868ab8f`](https://github.com/clerk/javascript/commit/b4868ab8fdb84144d2016b49e67e7fdd2c348316), [`2dc93d4d8`](https://github.com/clerk/javascript/commit/2dc93d4d8dcdc5f83c21576400ae6d6f43705847)]: + - @clerk/types@3.60.0 + ## 0.35.1 ### Patch Changes diff --git a/packages/backend/package.json b/packages/backend/package.json index 74d92b76cc..9cbff41f05 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/backend", - "version": "0.35.1", + "version": "0.36.0", "description": "Clerk Backend SDK - REST Client for Backend API & JWT verification utilities", "homepage": "https://clerk.com/", "bugs": { @@ -56,7 +56,7 @@ }, "dependencies": { "@clerk/shared": "1.1.1", - "@clerk/types": "3.59.0", + "@clerk/types": "3.60.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 aad50c4f65..8e2c30d9c9 100644 --- a/packages/chrome-extension/CHANGELOG.md +++ b/packages/chrome-extension/CHANGELOG.md @@ -1,5 +1,29 @@ # Change Log +## 0.6.0 + +### Minor Changes + +- Introduce Protect for authorization. ([#2309](https://github.com/clerk/javascript/pull/2309)) by [@panteliselef](https://github.com/panteliselef) + + Changes in public APIs: + + - Rename Gate to Protect + - Support for permission checks. (Previously only roles could be used) + - Remove the `experimental` tags and prefixes + - Drop `some` from the `has` utility and Protect. Protect now accepts a `condition` prop where a function is expected with the `has` being exposed as the param. + - Protect can now be used without required props. In this case behaves as ``, if no authorization props are passed. + - `has` will throw an error if neither `permission` or `role` is passed. + - `auth().protect()` for Nextjs App Router. Allow per page protection in app router. This utility will automatically throw a 404 error if user is not authorized or authenticated. + - inside a page or layout file it will render the nearest `not-found` component set by the developer + - inside a route handler it will return empty response body with a 404 status code + +### Patch Changes + +- Updated dependencies [[`b4868ab8f`](https://github.com/clerk/javascript/commit/b4868ab8fdb84144d2016b49e67e7fdd2c348316), [`2dc93d4d8`](https://github.com/clerk/javascript/commit/2dc93d4d8dcdc5f83c21576400ae6d6f43705847)]: + - @clerk/clerk-js@4.67.0 + - @clerk/clerk-react@4.30.0 + ## 0.5.8 ### Patch Changes diff --git a/packages/chrome-extension/package.json b/packages/chrome-extension/package.json index 82c336a9a1..f34217a468 100644 --- a/packages/chrome-extension/package.json +++ b/packages/chrome-extension/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/chrome-extension", - "version": "0.5.8", + "version": "0.6.0", "description": "Clerk SDK for Chrome extensions", "keywords": [ "auth", @@ -45,8 +45,8 @@ "test:coverage": "jest --collectCoverage && open coverage/lcov-report/index.html" }, "dependencies": { - "@clerk/clerk-js": "4.66.0", - "@clerk/clerk-react": "4.29.0" + "@clerk/clerk-js": "4.67.0", + "@clerk/clerk-react": "4.30.0" }, "devDependencies": { "@types/chrome": "*", diff --git a/packages/clerk-js/CHANGELOG.md b/packages/clerk-js/CHANGELOG.md index af06392fa6..5222df2d68 100644 --- a/packages/clerk-js/CHANGELOG.md +++ b/packages/clerk-js/CHANGELOG.md @@ -1,5 +1,31 @@ # Change Log +## 4.67.0 + +### Minor Changes + +- Introduce Protect for authorization. ([#2309](https://github.com/clerk/javascript/pull/2309)) by [@panteliselef](https://github.com/panteliselef) + + Changes in public APIs: + + - Rename Gate to Protect + - Support for permission checks. (Previously only roles could be used) + - Remove the `experimental` tags and prefixes + - Drop `some` from the `has` utility and Protect. Protect now accepts a `condition` prop where a function is expected with the `has` being exposed as the param. + - Protect can now be used without required props. In this case behaves as ``, if no authorization props are passed. + - `has` will throw an error if neither `permission` or `role` is passed. + - `auth().protect()` for Nextjs App Router. Allow per page protection in app router. This utility will automatically throw a 404 error if user is not authorized or authenticated. + - inside a page or layout file it will render the nearest `not-found` component set by the developer + - inside a route handler it will return empty response body with a 404 status code + +### Patch Changes + +- Update `@zxcvbn-ts/core` from `2.2.1` to `3.0.4`. Update `@zxcvbn-ts/language-common` from `3.0.2` to `3.0.4`. ([#2332](https://github.com/clerk/javascript/pull/2332)) by [@clerk-cookie](https://github.com/clerk-cookie) + +- Updated dependencies [[`b4868ab8f`](https://github.com/clerk/javascript/commit/b4868ab8fdb84144d2016b49e67e7fdd2c348316), [`2dc93d4d8`](https://github.com/clerk/javascript/commit/2dc93d4d8dcdc5f83c21576400ae6d6f43705847)]: + - @clerk/types@3.60.0 + - @clerk/localizations@1.26.13 + ## 4.66.0 ### Minor Changes diff --git a/packages/clerk-js/package.json b/packages/clerk-js/package.json index bedd9a3f0f..bf5516e891 100644 --- a/packages/clerk-js/package.json +++ b/packages/clerk-js/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/clerk-js", - "version": "4.66.0", + "version": "4.67.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": "1.26.12", + "@clerk/localizations": "1.26.13", "@clerk/shared": "1.1.1", - "@clerk/types": "3.59.0", + "@clerk/types": "3.60.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 525bbb83b4..93321e35e4 100644 --- a/packages/expo/CHANGELOG.md +++ b/packages/expo/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 0.19.25 + +### Patch Changes + +- Updated dependencies [[`b4868ab8f`](https://github.com/clerk/javascript/commit/b4868ab8fdb84144d2016b49e67e7fdd2c348316), [`2dc93d4d8`](https://github.com/clerk/javascript/commit/2dc93d4d8dcdc5f83c21576400ae6d6f43705847)]: + - @clerk/clerk-js@4.67.0 + - @clerk/clerk-react@4.30.0 + ## 0.19.24 ### Patch Changes diff --git a/packages/expo/package.json b/packages/expo/package.json index 3a7c04c525..244c3c8c70 100644 --- a/packages/expo/package.json +++ b/packages/expo/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/clerk-expo", - "version": "0.19.24", + "version": "0.19.25", "description": "Clerk React Native/Expo library", "keywords": [ "react", @@ -39,14 +39,14 @@ "publish:local": "npx yalc push --replace --sig" }, "dependencies": { - "@clerk/clerk-js": "4.66.0", - "@clerk/clerk-react": "4.29.0", + "@clerk/clerk-js": "4.67.0", + "@clerk/clerk-react": "4.30.0", "@clerk/shared": "1.1.1", "base-64": "1.0.0", "react-native-url-polyfill": "2.0.0" }, "devDependencies": { - "@clerk/types": "^3.59.0", + "@clerk/types": "^3.60.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 5975139e26..f832374929 100644 --- a/packages/fastify/CHANGELOG.md +++ b/packages/fastify/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 0.6.27 + +### Patch Changes + +- Updated dependencies [[`b4868ab8f`](https://github.com/clerk/javascript/commit/b4868ab8fdb84144d2016b49e67e7fdd2c348316), [`2dc93d4d8`](https://github.com/clerk/javascript/commit/2dc93d4d8dcdc5f83c21576400ae6d6f43705847)]: + - @clerk/types@3.60.0 + - @clerk/backend@0.36.0 + ## 0.6.26 ### Patch Changes diff --git a/packages/fastify/package.json b/packages/fastify/package.json index fad9b8f33e..e9defdf944 100644 --- a/packages/fastify/package.json +++ b/packages/fastify/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/fastify", - "version": "0.6.26", + "version": "0.6.27", "description": "Clerk SDK for Fastify", "keywords": [ "auth", @@ -40,9 +40,9 @@ "test:cache:clear": "jest --clearCache --useStderr" }, "dependencies": { - "@clerk/backend": "0.35.1", + "@clerk/backend": "0.36.0", "@clerk/shared": "1.1.1", - "@clerk/types": "3.59.0", + "@clerk/types": "3.60.0", "cookies": "0.8.0" }, "devDependencies": { diff --git a/packages/gatsby-plugin-clerk/CHANGELOG.md b/packages/gatsby-plugin-clerk/CHANGELOG.md index 1f3301bde7..70637f6d78 100644 --- a/packages/gatsby-plugin-clerk/CHANGELOG.md +++ b/packages/gatsby-plugin-clerk/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## 4.4.29 + +### Patch Changes + +- Updated dependencies [[`b4868ab8f`](https://github.com/clerk/javascript/commit/b4868ab8fdb84144d2016b49e67e7fdd2c348316), [`2dc93d4d8`](https://github.com/clerk/javascript/commit/2dc93d4d8dcdc5f83c21576400ae6d6f43705847)]: + - @clerk/types@3.60.0 + - @clerk/backend@0.36.0 + - @clerk/clerk-react@4.30.0 + - @clerk/clerk-sdk-node@4.13.2 + ## 4.4.28 ### Patch Changes diff --git a/packages/gatsby-plugin-clerk/package.json b/packages/gatsby-plugin-clerk/package.json index e4678f3c85..997a695f37 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.28", + "version": "4.4.29", "description": "Clerk SDK for Gatsby", "keywords": [ "clerk", @@ -44,10 +44,10 @@ "publish:local": "npx yalc push --replace --sig" }, "dependencies": { - "@clerk/backend": "0.35.1", - "@clerk/clerk-react": "4.29.0", - "@clerk/clerk-sdk-node": "4.13.1", - "@clerk/types": "3.59.0", + "@clerk/backend": "0.36.0", + "@clerk/clerk-react": "4.30.0", + "@clerk/clerk-sdk-node": "4.13.2", + "@clerk/types": "3.60.0", "cookie": "0.5.0", "tslib": "2.4.1" }, diff --git a/packages/localizations/CHANGELOG.md b/packages/localizations/CHANGELOG.md index 6734ef09eb..d96dce12cf 100644 --- a/packages/localizations/CHANGELOG.md +++ b/packages/localizations/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## 1.26.13 + +### Patch Changes + +- Updated dependencies [[`b4868ab8f`](https://github.com/clerk/javascript/commit/b4868ab8fdb84144d2016b49e67e7fdd2c348316), [`2dc93d4d8`](https://github.com/clerk/javascript/commit/2dc93d4d8dcdc5f83c21576400ae6d6f43705847)]: + - @clerk/types@3.60.0 + ## 1.26.12 ### Patch Changes diff --git a/packages/localizations/package.json b/packages/localizations/package.json index 1aea9bae00..68e2df91fc 100644 --- a/packages/localizations/package.json +++ b/packages/localizations/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/localizations", - "version": "1.26.12", + "version": "1.26.13", "description": "Localizations for the Clerk components", "keywords": [ "react", @@ -38,7 +38,7 @@ "lint": "eslint src/" }, "dependencies": { - "@clerk/types": "3.59.0" + "@clerk/types": "3.60.0" }, "devDependencies": { "tsup": "*", diff --git a/packages/nextjs/CHANGELOG.md b/packages/nextjs/CHANGELOG.md index c0421ffbf1..57c403344f 100644 --- a/packages/nextjs/CHANGELOG.md +++ b/packages/nextjs/CHANGELOG.md @@ -1,5 +1,44 @@ # Change Log +## 4.28.0 + +### Minor Changes + +- Introduce Protect for authorization. ([#2309](https://github.com/clerk/javascript/pull/2309)) by [@panteliselef](https://github.com/panteliselef) + + Changes in public APIs: + + - Rename Gate to Protect + - Support for permission checks. (Previously only roles could be used) + - Remove the `experimental` tags and prefixes + - Drop `some` from the `has` utility and Protect. Protect now accepts a `condition` prop where a function is expected with the `has` being exposed as the param. + - Protect can now be used without required props. In this case behaves as ``, if no authorization props are passed. + - `has` will throw an error if neither `permission` or `role` is passed. + - `auth().protect()` for Nextjs App Router. Allow per page protection in app router. This utility will automatically throw a 404 error if user is not authorized or authenticated. + - inside a page or layout file it will render the nearest `not-found` component set by the developer + - inside a route handler it will return empty response body with a 404 status code + +### Patch Changes + +- Accept `redirectUrl` as an option for `auth().protect()`. ([#2333](https://github.com/clerk/javascript/pull/2333)) by [@panteliselef](https://github.com/panteliselef) + + For example: + + ```ts + // Authorization + auth().protect({ role: 'org:admin' }, { redirectUrl: '/any-page' }); + auth().protect({ permission: 'org:settings:manage' }, { redirectUrl: '/any-page' }); + + // Authentication + auth().protect({ redirectUrl: '/any-page' }); + ``` + +- Updated dependencies [[`b4868ab8f`](https://github.com/clerk/javascript/commit/b4868ab8fdb84144d2016b49e67e7fdd2c348316), [`2dc93d4d8`](https://github.com/clerk/javascript/commit/2dc93d4d8dcdc5f83c21576400ae6d6f43705847)]: + - @clerk/types@3.60.0 + - @clerk/backend@0.36.0 + - @clerk/clerk-react@4.30.0 + - @clerk/clerk-sdk-node@4.13.2 + ## 4.27.7 ### Patch Changes diff --git a/packages/nextjs/package.json b/packages/nextjs/package.json index 90a018c7c7..39b43d122f 100644 --- a/packages/nextjs/package.json +++ b/packages/nextjs/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/nextjs", - "version": "4.27.7", + "version": "4.28.0", "description": "Clerk SDK for NextJS", "keywords": [ "clerk", @@ -87,11 +87,11 @@ "test:ci": "jest --maxWorkers=70%" }, "dependencies": { - "@clerk/backend": "0.35.1", - "@clerk/clerk-react": "4.29.0", - "@clerk/clerk-sdk-node": "4.13.1", + "@clerk/backend": "0.36.0", + "@clerk/clerk-react": "4.30.0", + "@clerk/clerk-sdk-node": "4.13.2", "@clerk/shared": "1.1.1", - "@clerk/types": "3.59.0", + "@clerk/types": "3.60.0", "path-to-regexp": "6.2.1", "tslib": "2.4.1" }, diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index 9bd0f648bf..b56553fa20 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,28 @@ # Change Log +## 4.30.0 + +### Minor Changes + +- Introduce Protect for authorization. ([#2309](https://github.com/clerk/javascript/pull/2309)) by [@panteliselef](https://github.com/panteliselef) + + Changes in public APIs: + + - Rename Gate to Protect + - Support for permission checks. (Previously only roles could be used) + - Remove the `experimental` tags and prefixes + - Drop `some` from the `has` utility and Protect. Protect now accepts a `condition` prop where a function is expected with the `has` being exposed as the param. + - Protect can now be used without required props. In this case behaves as ``, if no authorization props are passed. + - `has` will throw an error if neither `permission` or `role` is passed. + - `auth().protect()` for Nextjs App Router. Allow per page protection in app router. This utility will automatically throw a 404 error if user is not authorized or authenticated. + - inside a page or layout file it will render the nearest `not-found` component set by the developer + - inside a route handler it will return empty response body with a 404 status code + +### Patch Changes + +- Updated dependencies [[`b4868ab8f`](https://github.com/clerk/javascript/commit/b4868ab8fdb84144d2016b49e67e7fdd2c348316), [`2dc93d4d8`](https://github.com/clerk/javascript/commit/2dc93d4d8dcdc5f83c21576400ae6d6f43705847)]: + - @clerk/types@3.60.0 + ## 4.29.0 ### Minor Changes diff --git a/packages/react/package.json b/packages/react/package.json index a6353f0ce0..2c649b860f 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/clerk-react", - "version": "4.29.0", + "version": "4.30.0", "description": "Clerk React library", "keywords": [ "clerk", @@ -57,7 +57,7 @@ }, "dependencies": { "@clerk/shared": "1.1.1", - "@clerk/types": "3.59.0", + "@clerk/types": "3.60.0", "tslib": "2.4.1" }, "devDependencies": { diff --git a/packages/remix/CHANGELOG.md b/packages/remix/CHANGELOG.md index 9d1eeae84e..33aaf2a8ea 100644 --- a/packages/remix/CHANGELOG.md +++ b/packages/remix/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 3.1.11 + +### Patch Changes + +- Updated dependencies [[`b4868ab8f`](https://github.com/clerk/javascript/commit/b4868ab8fdb84144d2016b49e67e7fdd2c348316), [`2dc93d4d8`](https://github.com/clerk/javascript/commit/2dc93d4d8dcdc5f83c21576400ae6d6f43705847)]: + - @clerk/types@3.60.0 + - @clerk/backend@0.36.0 + - @clerk/clerk-react@4.30.0 + ## 3.1.10 ### Patch Changes diff --git a/packages/remix/package.json b/packages/remix/package.json index b2d148415a..4e188a5aa1 100644 --- a/packages/remix/package.json +++ b/packages/remix/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/remix", - "version": "3.1.10", + "version": "3.1.11", "description": "Clerk SDK for Remix", "keywords": [ "clerk", @@ -69,10 +69,10 @@ "publish:local": "npx yalc push --replace --sig" }, "dependencies": { - "@clerk/backend": "0.35.1", - "@clerk/clerk-react": "4.29.0", + "@clerk/backend": "0.36.0", + "@clerk/clerk-react": "4.30.0", "@clerk/shared": "1.1.1", - "@clerk/types": "3.59.0", + "@clerk/types": "3.60.0", "cookie": "0.5.0", "tslib": "2.4.1" }, diff --git a/packages/sdk-node/CHANGELOG.md b/packages/sdk-node/CHANGELOG.md index 9c10b7a4b0..055b413d51 100644 --- a/packages/sdk-node/CHANGELOG.md +++ b/packages/sdk-node/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 4.13.2 + +### Patch Changes + +- Updated dependencies [[`b4868ab8f`](https://github.com/clerk/javascript/commit/b4868ab8fdb84144d2016b49e67e7fdd2c348316), [`2dc93d4d8`](https://github.com/clerk/javascript/commit/2dc93d4d8dcdc5f83c21576400ae6d6f43705847)]: + - @clerk/types@3.60.0 + - @clerk/backend@0.36.0 + ## 4.13.1 ### Patch Changes diff --git a/packages/sdk-node/package.json b/packages/sdk-node/package.json index 849bfa828c..04022d5deb 100644 --- a/packages/sdk-node/package.json +++ b/packages/sdk-node/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/clerk-sdk-node", - "version": "4.13.1", + "version": "4.13.2", "description": "Clerk server SDK for usage with node", "keywords": [ "clerk", @@ -65,9 +65,9 @@ "test:ci": "jest --maxWorkers=70%" }, "dependencies": { - "@clerk/backend": "0.35.1", + "@clerk/backend": "0.36.0", "@clerk/shared": "1.1.1", - "@clerk/types": "3.59.0", + "@clerk/types": "3.60.0", "@types/cookies": "0.7.7", "@types/express": "4.17.14", "@types/node-fetch": "2.6.2", diff --git a/packages/shared/package.json b/packages/shared/package.json index 2541076def..6671cd6a32 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -86,7 +86,7 @@ "swr": "2.2.0" }, "devDependencies": { - "@clerk/types": "3.59.0", + "@clerk/types": "3.60.0", "@types/glob-to-regexp": "0.4.1", "@types/js-cookie": "3.0.2", "tsup": "*", diff --git a/packages/themes/package.json b/packages/themes/package.json index 955eb53daf..da38683c83 100644 --- a/packages/themes/package.json +++ b/packages/themes/package.json @@ -37,7 +37,7 @@ "lint": "eslint src/" }, "devDependencies": { - "@clerk/types": "3.59.0", + "@clerk/types": "3.60.0", "typescript": "*" }, "peerDependencies": { diff --git a/packages/types/CHANGELOG.md b/packages/types/CHANGELOG.md index 52f96994a8..ce6c59a503 100644 --- a/packages/types/CHANGELOG.md +++ b/packages/types/CHANGELOG.md @@ -1,5 +1,27 @@ # Change Log +## 3.60.0 + +### Minor Changes + +- Introduce Protect for authorization. ([#2309](https://github.com/clerk/javascript/pull/2309)) by [@panteliselef](https://github.com/panteliselef) + + Changes in public APIs: + + - Rename Gate to Protect + - Support for permission checks. (Previously only roles could be used) + - Remove the `experimental` tags and prefixes + - Drop `some` from the `has` utility and Protect. Protect now accepts a `condition` prop where a function is expected with the `has` being exposed as the param. + - Protect can now be used without required props. In this case behaves as ``, if no authorization props are passed. + - `has` will throw an error if neither `permission` or `role` is passed. + - `auth().protect()` for Nextjs App Router. Allow per page protection in app router. This utility will automatically throw a 404 error if user is not authorized or authenticated. + - inside a page or layout file it will render the nearest `not-found` component set by the developer + - inside a route handler it will return empty response body with a 404 status code + +### Patch Changes + +- Adjust `ZxcvbnResult` interface to use current `feedback.warning` type as used in the upstream `@zxcvbn-ts/core` library. ([#2332](https://github.com/clerk/javascript/pull/2332)) by [@clerk-cookie](https://github.com/clerk-cookie) + ## 3.59.0 ### Minor Changes diff --git a/packages/types/package.json b/packages/types/package.json index 644385c861..7e103bb0b6 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@clerk/types", - "version": "3.59.0", + "version": "3.60.0", "description": "Typings for Clerk libraries.", "keywords": [ "clerk",