Skip to content

Commit ff2fb69

Browse files
chore(repo): Version packages (#2330)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 96b9bb5 commit ff2fb69

31 files changed

+246
-87
lines changed

.changeset/angry-clocks-attend.md

-5
This file was deleted.

.changeset/friendly-parrots-nail.md

-2
This file was deleted.

.changeset/long-dancers-whisper.md

-5
This file was deleted.

.changeset/short-eagles-search.md

-20
This file was deleted.

.changeset/thirty-chicken-divide.md

-16
This file was deleted.

packages/backend/CHANGELOG.md

+23
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# Change Log
22

3+
## 0.36.0
4+
5+
### Minor Changes
6+
7+
- Introduce Protect for authorization. ([#2309](https://github.com/clerk/javascript/pull/2309)) by [@panteliselef](https://github.com/panteliselef)
8+
9+
Changes in public APIs:
10+
11+
- Rename Gate to Protect
12+
- Support for permission checks. (Previously only roles could be used)
13+
- Remove the `experimental` tags and prefixes
14+
- 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.
15+
- Protect can now be used without required props. In this case behaves as `<SignedIn>`, if no authorization props are passed.
16+
- `has` will throw an error if neither `permission` or `role` is passed.
17+
- `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.
18+
- inside a page or layout file it will render the nearest `not-found` component set by the developer
19+
- inside a route handler it will return empty response body with a 404 status code
20+
21+
### Patch Changes
22+
23+
- Updated dependencies [[`b4868ab8f`](https://github.com/clerk/javascript/commit/b4868ab8fdb84144d2016b49e67e7fdd2c348316), [`2dc93d4d8`](https://github.com/clerk/javascript/commit/2dc93d4d8dcdc5f83c21576400ae6d6f43705847)]:
24+
- @clerk/types@3.60.0
25+
326
## 0.35.1
427

528
### Patch Changes

packages/backend/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@clerk/backend",
3-
"version": "0.35.1",
3+
"version": "0.36.0",
44
"description": "Clerk Backend SDK - REST Client for Backend API & JWT verification utilities",
55
"homepage": "https://clerk.com/",
66
"bugs": {
@@ -56,7 +56,7 @@
5656
},
5757
"dependencies": {
5858
"@clerk/shared": "1.1.1",
59-
"@clerk/types": "3.59.0",
59+
"@clerk/types": "3.60.0",
6060
"@peculiar/webcrypto": "1.4.1",
6161
"@types/node": "16.18.6",
6262
"cookie": "0.5.0",

packages/chrome-extension/CHANGELOG.md

+24
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# Change Log
22

3+
## 0.6.0
4+
5+
### Minor Changes
6+
7+
- Introduce Protect for authorization. ([#2309](https://github.com/clerk/javascript/pull/2309)) by [@panteliselef](https://github.com/panteliselef)
8+
9+
Changes in public APIs:
10+
11+
- Rename Gate to Protect
12+
- Support for permission checks. (Previously only roles could be used)
13+
- Remove the `experimental` tags and prefixes
14+
- 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.
15+
- Protect can now be used without required props. In this case behaves as `<SignedIn>`, if no authorization props are passed.
16+
- `has` will throw an error if neither `permission` or `role` is passed.
17+
- `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.
18+
- inside a page or layout file it will render the nearest `not-found` component set by the developer
19+
- inside a route handler it will return empty response body with a 404 status code
20+
21+
### Patch Changes
22+
23+
- Updated dependencies [[`b4868ab8f`](https://github.com/clerk/javascript/commit/b4868ab8fdb84144d2016b49e67e7fdd2c348316), [`2dc93d4d8`](https://github.com/clerk/javascript/commit/2dc93d4d8dcdc5f83c21576400ae6d6f43705847)]:
24+
- @clerk/clerk-js@4.67.0
25+
- @clerk/clerk-react@4.30.0
26+
327
## 0.5.8
428

529
### Patch Changes

packages/chrome-extension/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@clerk/chrome-extension",
3-
"version": "0.5.8",
3+
"version": "0.6.0",
44
"description": "Clerk SDK for Chrome extensions",
55
"keywords": [
66
"auth",
@@ -45,8 +45,8 @@
4545
"test:coverage": "jest --collectCoverage && open coverage/lcov-report/index.html"
4646
},
4747
"dependencies": {
48-
"@clerk/clerk-js": "4.66.0",
49-
"@clerk/clerk-react": "4.29.0"
48+
"@clerk/clerk-js": "4.67.0",
49+
"@clerk/clerk-react": "4.30.0"
5050
},
5151
"devDependencies": {
5252
"@types/chrome": "*",

packages/clerk-js/CHANGELOG.md

+26
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
11
# Change Log
22

3+
## 4.67.0
4+
5+
### Minor Changes
6+
7+
- Introduce Protect for authorization. ([#2309](https://github.com/clerk/javascript/pull/2309)) by [@panteliselef](https://github.com/panteliselef)
8+
9+
Changes in public APIs:
10+
11+
- Rename Gate to Protect
12+
- Support for permission checks. (Previously only roles could be used)
13+
- Remove the `experimental` tags and prefixes
14+
- 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.
15+
- Protect can now be used without required props. In this case behaves as `<SignedIn>`, if no authorization props are passed.
16+
- `has` will throw an error if neither `permission` or `role` is passed.
17+
- `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.
18+
- inside a page or layout file it will render the nearest `not-found` component set by the developer
19+
- inside a route handler it will return empty response body with a 404 status code
20+
21+
### Patch Changes
22+
23+
- 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)
24+
25+
- Updated dependencies [[`b4868ab8f`](https://github.com/clerk/javascript/commit/b4868ab8fdb84144d2016b49e67e7fdd2c348316), [`2dc93d4d8`](https://github.com/clerk/javascript/commit/2dc93d4d8dcdc5f83c21576400ae6d6f43705847)]:
26+
- @clerk/types@3.60.0
27+
- @clerk/localizations@1.26.13
28+
329
## 4.66.0
430

531
### Minor Changes

packages/clerk-js/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@clerk/clerk-js",
3-
"version": "4.66.0",
3+
"version": "4.67.0",
44
"description": "Clerk JS library",
55
"keywords": [
66
"clerk",
@@ -50,9 +50,9 @@
5050
},
5151
"browserslist": "last 2 versions, ios_saf > 12, Safari > 12, > 1%, not dead, not ie > 0",
5252
"dependencies": {
53-
"@clerk/localizations": "1.26.12",
53+
"@clerk/localizations": "1.26.13",
5454
"@clerk/shared": "1.1.1",
55-
"@clerk/types": "3.59.0",
55+
"@clerk/types": "3.60.0",
5656
"@emotion/cache": "11.11.0",
5757
"@emotion/react": "11.11.1",
5858
"@floating-ui/react": "0.25.4",

packages/expo/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Change Log
22

3+
## 0.19.25
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`b4868ab8f`](https://github.com/clerk/javascript/commit/b4868ab8fdb84144d2016b49e67e7fdd2c348316), [`2dc93d4d8`](https://github.com/clerk/javascript/commit/2dc93d4d8dcdc5f83c21576400ae6d6f43705847)]:
8+
- @clerk/clerk-js@4.67.0
9+
- @clerk/clerk-react@4.30.0
10+
311
## 0.19.24
412

513
### Patch Changes

packages/expo/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@clerk/clerk-expo",
3-
"version": "0.19.24",
3+
"version": "0.19.25",
44
"description": "Clerk React Native/Expo library",
55
"keywords": [
66
"react",
@@ -39,14 +39,14 @@
3939
"publish:local": "npx yalc push --replace --sig"
4040
},
4141
"dependencies": {
42-
"@clerk/clerk-js": "4.66.0",
43-
"@clerk/clerk-react": "4.29.0",
42+
"@clerk/clerk-js": "4.67.0",
43+
"@clerk/clerk-react": "4.30.0",
4444
"@clerk/shared": "1.1.1",
4545
"base-64": "1.0.0",
4646
"react-native-url-polyfill": "2.0.0"
4747
},
4848
"devDependencies": {
49-
"@clerk/types": "^3.59.0",
49+
"@clerk/types": "^3.60.0",
5050
"@types/base-64": "^1.0.0",
5151
"@types/node": "^16.11.55",
5252
"@types/react": "*",

packages/fastify/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Change Log
22

3+
## 0.6.27
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`b4868ab8f`](https://github.com/clerk/javascript/commit/b4868ab8fdb84144d2016b49e67e7fdd2c348316), [`2dc93d4d8`](https://github.com/clerk/javascript/commit/2dc93d4d8dcdc5f83c21576400ae6d6f43705847)]:
8+
- @clerk/types@3.60.0
9+
- @clerk/backend@0.36.0
10+
311
## 0.6.26
412

513
### Patch Changes

packages/fastify/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@clerk/fastify",
3-
"version": "0.6.26",
3+
"version": "0.6.27",
44
"description": "Clerk SDK for Fastify",
55
"keywords": [
66
"auth",
@@ -40,9 +40,9 @@
4040
"test:cache:clear": "jest --clearCache --useStderr"
4141
},
4242
"dependencies": {
43-
"@clerk/backend": "0.35.1",
43+
"@clerk/backend": "0.36.0",
4444
"@clerk/shared": "1.1.1",
45-
"@clerk/types": "3.59.0",
45+
"@clerk/types": "3.60.0",
4646
"cookies": "0.8.0"
4747
},
4848
"devDependencies": {

packages/gatsby-plugin-clerk/CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Change Log
22

3+
## 4.4.29
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`b4868ab8f`](https://github.com/clerk/javascript/commit/b4868ab8fdb84144d2016b49e67e7fdd2c348316), [`2dc93d4d8`](https://github.com/clerk/javascript/commit/2dc93d4d8dcdc5f83c21576400ae6d6f43705847)]:
8+
- @clerk/types@3.60.0
9+
- @clerk/backend@0.36.0
10+
- @clerk/clerk-react@4.30.0
11+
- @clerk/clerk-sdk-node@4.13.2
12+
313
## 4.4.28
414

515
### Patch Changes

packages/gatsby-plugin-clerk/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gatsby-plugin-clerk",
3-
"version": "4.4.28",
3+
"version": "4.4.29",
44
"description": "Clerk SDK for Gatsby",
55
"keywords": [
66
"clerk",
@@ -44,10 +44,10 @@
4444
"publish:local": "npx yalc push --replace --sig"
4545
},
4646
"dependencies": {
47-
"@clerk/backend": "0.35.1",
48-
"@clerk/clerk-react": "4.29.0",
49-
"@clerk/clerk-sdk-node": "4.13.1",
50-
"@clerk/types": "3.59.0",
47+
"@clerk/backend": "0.36.0",
48+
"@clerk/clerk-react": "4.30.0",
49+
"@clerk/clerk-sdk-node": "4.13.2",
50+
"@clerk/types": "3.60.0",
5151
"cookie": "0.5.0",
5252
"tslib": "2.4.1"
5353
},

packages/localizations/CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Change Log
22

3+
## 1.26.13
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`b4868ab8f`](https://github.com/clerk/javascript/commit/b4868ab8fdb84144d2016b49e67e7fdd2c348316), [`2dc93d4d8`](https://github.com/clerk/javascript/commit/2dc93d4d8dcdc5f83c21576400ae6d6f43705847)]:
8+
- @clerk/types@3.60.0
9+
310
## 1.26.12
411

512
### Patch Changes

packages/localizations/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@clerk/localizations",
3-
"version": "1.26.12",
3+
"version": "1.26.13",
44
"description": "Localizations for the Clerk components",
55
"keywords": [
66
"react",
@@ -38,7 +38,7 @@
3838
"lint": "eslint src/"
3939
},
4040
"dependencies": {
41-
"@clerk/types": "3.59.0"
41+
"@clerk/types": "3.60.0"
4242
},
4343
"devDependencies": {
4444
"tsup": "*",

packages/nextjs/CHANGELOG.md

+39
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,44 @@
11
# Change Log
22

3+
## 4.28.0
4+
5+
### Minor Changes
6+
7+
- Introduce Protect for authorization. ([#2309](https://github.com/clerk/javascript/pull/2309)) by [@panteliselef](https://github.com/panteliselef)
8+
9+
Changes in public APIs:
10+
11+
- Rename Gate to Protect
12+
- Support for permission checks. (Previously only roles could be used)
13+
- Remove the `experimental` tags and prefixes
14+
- 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.
15+
- Protect can now be used without required props. In this case behaves as `<SignedIn>`, if no authorization props are passed.
16+
- `has` will throw an error if neither `permission` or `role` is passed.
17+
- `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.
18+
- inside a page or layout file it will render the nearest `not-found` component set by the developer
19+
- inside a route handler it will return empty response body with a 404 status code
20+
21+
### Patch Changes
22+
23+
- Accept `redirectUrl` as an option for `auth().protect()`. ([#2333](https://github.com/clerk/javascript/pull/2333)) by [@panteliselef](https://github.com/panteliselef)
24+
25+
For example:
26+
27+
```ts
28+
// Authorization
29+
auth().protect({ role: 'org:admin' }, { redirectUrl: '/any-page' });
30+
auth().protect({ permission: 'org:settings:manage' }, { redirectUrl: '/any-page' });
31+
32+
// Authentication
33+
auth().protect({ redirectUrl: '/any-page' });
34+
```
35+
36+
- Updated dependencies [[`b4868ab8f`](https://github.com/clerk/javascript/commit/b4868ab8fdb84144d2016b49e67e7fdd2c348316), [`2dc93d4d8`](https://github.com/clerk/javascript/commit/2dc93d4d8dcdc5f83c21576400ae6d6f43705847)]:
37+
- @clerk/types@3.60.0
38+
- @clerk/backend@0.36.0
39+
- @clerk/clerk-react@4.30.0
40+
- @clerk/clerk-sdk-node@4.13.2
41+
342
## 4.27.7
443

544
### Patch Changes

0 commit comments

Comments
 (0)