Skip to content

Commit af660a8

Browse files
chore(repo): Version packages (alpha-v5)
1 parent 9a637e4 commit af660a8

File tree

28 files changed

+751
-49
lines changed

28 files changed

+751
-49
lines changed

.changeset/pre.json

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
"@clerk/types": "3.57.0"
2020
},
2121
"changesets": [
22+
"afraid-nails-play",
23+
"angry-clocks-attend",
2224
"blue-garlics-remain",
2325
"blue-ghosts-float",
2426
"blue-grapes-marry",
@@ -27,7 +29,10 @@
2729
"bright-knives-jump",
2830
"bright-plants-swim",
2931
"bright-trainers-sort",
32+
"bright-ways-provide",
3033
"brown-clouds-divide",
34+
"brown-ducks-reply",
35+
"chatty-beans-fix",
3136
"chatty-berries-jump",
3237
"chatty-boats-tease",
3338
"chilly-donuts-work",
@@ -45,7 +50,9 @@
4550
"curvy-mails-rhyme",
4651
"curvy-timers-play",
4752
"cyan-dodos-provide",
53+
"cyan-rockets-fail",
4854
"cyan-stingrays-own",
55+
"dirty-icons-rescue",
4956
"dirty-panthers-begin",
5057
"dry-feet-join",
5158
"dry-sheep-poke",
@@ -55,11 +62,13 @@
5562
"early-forks-argue",
5663
"early-timers-wave",
5764
"early-tomatoes-hide",
65+
"eight-badgers-speak",
5866
"eleven-bananas-joke",
5967
"empty-jars-press",
6068
"fair-cameras-boil",
6169
"famous-carrots-notice",
6270
"famous-forks-buy",
71+
"famous-spies-clean",
6372
"fast-ads-mix",
6473
"fast-games-hide",
6574
"fast-swans-smile",
@@ -71,11 +80,14 @@
7180
"flat-pots-hear",
7281
"fluffy-chicken-explain",
7382
"friendly-months-film",
83+
"friendly-parrots-nail",
7484
"friendly-tables-chew",
7585
"friendly-vans-develop",
7686
"funny-gifts-cough",
7787
"funny-lamps-work",
7888
"fuzzy-horses-fix",
89+
"fuzzy-years-taste",
90+
"gentle-donkeys-talk",
7991
"gentle-pants-matter",
8092
"gold-fireants-sort",
8193
"gold-islands-cover",
@@ -84,10 +96,12 @@
8496
"grumpy-suns-boil",
8597
"heavy-falcons-help",
8698
"heavy-horses-nail",
99+
"hip-eagles-clap",
87100
"honest-onions-work",
88101
"hungry-bears-allow",
89102
"hungry-bikes-clean",
90103
"hungry-news-bathe",
104+
"itchy-chairs-argue",
91105
"khaki-buttons-march",
92106
"khaki-spoons-teach",
93107
"khaki-timers-work",
@@ -102,51 +116,65 @@
102116
"little-dolphins-scream",
103117
"little-numbers-jam",
104118
"long-beds-mate",
119+
"long-dancers-whisper",
105120
"long-icons-share",
106121
"loud-countries-hang",
107122
"loud-lions-compete",
123+
"loud-panthers-poke",
124+
"lovely-jobs-arrive",
108125
"lovely-mirrors-remember",
109126
"lovely-plums-sin",
110127
"lovely-spies-kiss",
111128
"lucky-ligers-brush",
112129
"many-dragons-carry",
130+
"many-flowers-heal",
113131
"many-weeks-march",
114132
"mean-houses-juggle",
115133
"mean-poets-bow",
116134
"metal-baboons-vanish",
117135
"metal-cougars-fail",
136+
"metal-ears-cheat",
118137
"metal-olives-press",
138+
"mighty-bulldogs-try",
119139
"mighty-melons-greet",
120140
"mighty-pugs-knock",
121141
"moody-radios-begin",
122142
"moody-trainers-bow",
123143
"moody-zoos-deliver",
124144
"nasty-books-tap",
125145
"neat-lies-thank",
146+
"neat-numbers-decide",
126147
"new-cougars-taste",
127148
"new-eels-mix",
128149
"new-points-train",
129150
"new-points-turn",
130151
"nice-dingos-argue",
152+
"nice-doors-fail",
131153
"nice-starfishes-itch",
154+
"nine-beans-travel",
132155
"odd-lemons-reply",
133156
"odd-toes-develop",
134157
"old-actors-beg",
135158
"old-ads-push",
159+
"old-timers-obey",
160+
"olive-steaks-end",
136161
"orange-pumpkins-poke",
137162
"pink-days-drum",
138163
"polite-kiwis-arrive",
139164
"poor-horses-press",
140165
"poor-kings-marry",
166+
"popular-parents-hope",
141167
"popular-singers-sort",
142168
"pretty-mice-share",
143169
"pretty-months-greet",
170+
"pretty-scissors-thank",
144171
"pretty-singers-change",
145172
"proud-hairs-check",
146173
"purple-pumas-study",
147174
"purple-rules-prove",
148175
"quick-countries-scream",
149176
"quick-trains-rush",
177+
"quiet-cougars-watch",
150178
"rare-bottles-sell",
151179
"rare-students-sell",
152180
"real-cougars-design",
@@ -156,57 +184,80 @@
156184
"red-shrimps-hunt",
157185
"red-worms-fetch",
158186
"rich-actors-cross",
187+
"rich-readers-obey",
159188
"rotten-ways-do",
160189
"rude-jobs-yawn",
161190
"rude-lamps-yawn",
162191
"selfish-eggs-sort",
163192
"selfish-trains-breathe",
164193
"shaggy-points-cheer",
194+
"shaggy-pumpkins-tap",
165195
"sharp-trains-ring",
196+
"shiny-glasses-switch",
197+
"shiny-pumas-share",
198+
"short-eagles-search",
199+
"short-kings-mate",
200+
"shy-bikes-draw",
201+
"silent-comics-roll",
166202
"silly-emus-boil",
167203
"silly-icons-kick",
168204
"silly-poems-tease",
169205
"silver-cats-appear",
170206
"six-kangaroos-serve",
207+
"sixty-frogs-pump",
171208
"slimy-brooms-smoke",
172209
"slimy-singers-glow",
173210
"slimy-windows-grab",
174211
"slimy-wolves-burn",
212+
"slow-bugs-exist",
175213
"slow-eels-fly",
176214
"slow-wombats-battle",
215+
"small-cats-check",
177216
"smart-suns-train",
178217
"smooth-baboons-shake",
218+
"smooth-pets-rhyme",
179219
"soft-birds-thank",
220+
"soft-fireants-jog",
180221
"soft-swans-swim",
222+
"sour-avocados-sin",
181223
"sour-comics-stare",
224+
"spicy-feet-buy",
182225
"spotty-apples-march",
183226
"spotty-boxes-do",
184227
"spotty-roses-push",
185228
"strong-cows-sit",
186229
"stupid-suits-accept",
187230
"stupid-toys-remain",
231+
"sweet-pumas-press",
188232
"swift-rocks-nail",
189233
"tall-roses-invent",
234+
"tame-olives-check",
190235
"tasty-countries-walk",
191236
"tasty-phones-lie",
192237
"ten-mugs-film",
193238
"ten-nails-whisper",
194239
"thin-phones-drop",
240+
"thirty-chicken-divide",
195241
"thirty-doors-peel",
196242
"thirty-insects-exist",
197243
"tiny-forks-sit",
198244
"tough-pots-grow",
199245
"tough-roses-hunt",
246+
"tricky-swans-develop",
200247
"twenty-elephants-try",
201248
"two-pumas-doubt",
202249
"two-terms-speak",
250+
"violet-birds-scream",
203251
"weak-elephants-grin",
204252
"wicked-spoons-confess",
205253
"wild-phones-smoke",
206254
"wise-houses-shop",
207255
"wise-lions-type",
256+
"witty-forks-cheer",
208257
"yellow-elephants-begin",
258+
"yellow-tigers-know",
209259
"young-experts-attack",
210-
"young-frogs-enjoy"
260+
"young-frogs-enjoy",
261+
"young-items-explode"
211262
]
212263
}

packages/backend/CHANGELOG.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,53 @@
11
# Change Log
22

3+
## 1.0.0-alpha-v5.8
4+
5+
### Major Changes
6+
7+
- Remove the named `Clerk` import from `@clerk/backend` and import `createClerkClient` instead. The latter is a factory method that will create a Clerk client instance for you. This aligns usage across our SDKs and will enable us to better ship DX improvements in the future. ([#2317](https://github.com/clerk/javascript/pull/2317)) by [@tmilewski](https://github.com/tmilewski)
8+
9+
Inside your code, search for occurrences like these:
10+
11+
```js
12+
import { Clerk } from '@clerk/backend';
13+
const clerk = Clerk({ secretKey: '...' });
14+
```
15+
16+
You need to rename the import from `Clerk` to `createClerkClient` and change its usage:
17+
18+
```js
19+
import { createClerkClient } from '@clerk/backend';
20+
const clerk = createClerkClient({ secretKey: '...' });
21+
```
22+
23+
- - Refactor the `authenticateRequest()` flow to use the new client handshake endpoint. This replaces the previous "interstitial"-based flow. This should improve performance and overall reliability of Clerk's server-side request authentication functionality. ([#2300](https://github.com/clerk/javascript/pull/2300)) by [@BRKalow](https://github.com/BRKalow)
24+
25+
- `authenticateRequest()` now accepts two arguments, a `Request` object to authenticate and options:
26+
```ts
27+
authenticateRequest(new Request(...), { secretKey: '...' })
28+
```
29+
30+
### Minor Changes
31+
32+
- Introduce Protect for authorization. ([#2170](https://github.com/clerk/javascript/pull/2170)) by [@panteliselef](https://github.com/panteliselef)
33+
34+
Changes in public APIs:
35+
36+
- Rename Gate to Protect
37+
- Support for permission checks. (Previously only roles could be used)
38+
- Remove the `experimental` tags and prefixes
39+
- 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.
40+
- Protect can now be used without required props. In this case behaves as `<SignedIn>`, if no authorization props are passed.
41+
- `has` will throw an error if neither `permission` or `role` is passed.
42+
- `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.
43+
- inside a page or layout file it will render the nearest `not-found` component set by the developer
44+
- inside a route handler it will return empty response body with a 404 status code
45+
46+
### Patch Changes
47+
48+
- Updated dependencies [[`896cb6104`](https://github.com/clerk/javascript/commit/896cb610409f84c0ff7a4f502f0b4ccee1afc157), [`75ea300bc`](https://github.com/clerk/javascript/commit/75ea300bce16a0ce401a225263bb267ad2a217b8)]:
49+
- @clerk/shared@2.0.0-alpha-v5.6
50+
351
## 1.0.0-alpha-v5.7
452

553
### Major Changes

packages/backend/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@clerk/backend",
3-
"version": "1.0.0-alpha-v5.7",
3+
"version": "1.0.0-alpha-v5.8",
44
"description": "Clerk Backend SDK - REST Client for Backend API & JWT verification utilities",
55
"homepage": "https://clerk.com/",
66
"bugs": {
@@ -48,13 +48,13 @@
4848
"test:cloudflare-workerd": "tests/cloudflare-workerd/run.sh"
4949
},
5050
"dependencies": {
51-
"@clerk/shared": "2.0.0-alpha-v5.5",
51+
"@clerk/shared": "2.0.0-alpha-v5.6",
5252
"cookie": "0.5.0",
5353
"snakecase-keys": "5.4.4",
5454
"tslib": "2.4.1"
5555
},
5656
"devDependencies": {
57-
"@clerk/types": "4.0.0-alpha-v5.9",
57+
"@clerk/types": "4.0.0-alpha-v5.10",
5858
"@cloudflare/workers-types": "^3.18.0",
5959
"@types/chai": "^4.3.3",
6060
"@types/cookie": "^0.5.1",

0 commit comments

Comments
 (0)