Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Packages (alpha-v5) #2554

Merged
merged 1 commit into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"@clerk/elements": "0.0.1"
},
"changesets": [
"afraid-falcons-leave",
"afraid-nails-play",
"angry-beers-play",
"angry-clocks-attend",
Expand Down Expand Up @@ -67,6 +68,7 @@
"dirty-chefs-sell",
"dirty-icons-rescue",
"dirty-panthers-begin",
"dirty-rockets-cheat",
"dirty-sheep-warn",
"dirty-swans-joke",
"dry-feet-join",
Expand All @@ -80,6 +82,7 @@
"early-timers-wave",
"early-tomatoes-hide",
"eight-badgers-speak",
"eight-cherries-tan",
"eighty-walls-appear",
"eleven-bananas-joke",
"empty-jars-press",
Expand All @@ -103,14 +106,17 @@
"flat-bugs-visit",
"flat-clocks-clap",
"flat-donuts-sleep",
"flat-lions-divide",
"flat-pots-hear",
"flat-waves-cheat",
"fluffy-chicken-explain",
"fluffy-pets-greet",
"fluffy-queens-tap",
"fresh-crews-lick",
"friendly-boats-chew",
"friendly-months-film",
"friendly-parrots-nail",
"friendly-swans-clap",
"friendly-tables-chew",
"friendly-vans-develop",
"funny-avocados-shout",
Expand All @@ -133,6 +139,7 @@
"grumpy-suns-boil",
"happy-dolls-taste",
"happy-panthers-approve",
"happy-trees-burn",
"heavy-falcons-help",
"heavy-horses-nail",
"hip-eagles-clap",
Expand Down Expand Up @@ -200,6 +207,7 @@
"metal-toes-smell",
"metal-wolves-wave",
"mighty-bulldogs-try",
"mighty-cooks-admire",
"mighty-melons-greet",
"mighty-pugs-knock",
"mighty-rice-marry",
Expand All @@ -213,6 +221,7 @@
"moody-zoos-deliver",
"nasty-books-tap",
"nasty-lemons-obey",
"nasty-mirrors-arrive",
"neat-lies-thank",
"neat-mice-invite",
"neat-numbers-decide",
Expand All @@ -233,16 +242,19 @@
"odd-toes-develop",
"old-actors-beg",
"old-ads-push",
"old-guests-watch",
"old-onions-swim",
"old-timers-obey",
"olive-bags-reflect",
"olive-beers-scream",
"olive-kings-retire",
"olive-steaks-end",
"orange-files-end",
"orange-melons-destroy",
"orange-pumpkins-poke",
"perfect-ants-joke",
"pink-days-drum",
"pink-gifts-retire",
"pink-swans-fetch",
"polite-kiwis-arrive",
"poor-geese-rescue",
Expand All @@ -262,6 +274,7 @@
"purple-rules-prove",
"quick-countries-scream",
"quick-gorillas-grin",
"quick-poems-sip",
"quick-trains-rush",
"quiet-cougars-watch",
"rare-bottles-sell",
Expand Down Expand Up @@ -343,6 +356,7 @@
"strong-cows-sit",
"stupid-suits-accept",
"stupid-toys-remain",
"sweet-chairs-fry",
"sweet-planes-learn",
"sweet-pumas-press",
"swift-rocks-nail",
Expand All @@ -356,9 +370,11 @@
"tasty-terms-fly",
"ten-mugs-film",
"ten-nails-whisper",
"ten-taxis-lick",
"tender-peaches-yell",
"tender-phones-explain",
"thick-doors-smile",
"thin-coats-serve",
"thin-fireants-fix",
"thin-phones-drop",
"thirty-chicken-divide",
Expand Down Expand Up @@ -394,11 +410,13 @@
"wicked-suits-remain",
"wild-cougars-greet",
"wild-cycles-jog",
"wild-emus-whisper",
"wild-phones-smoke",
"wise-houses-shop",
"wise-lions-type",
"wise-scissors-know",
"witty-forks-cheer",
"witty-shirts-dream",
"yellow-elephants-begin",
"yellow-tigers-know",
"young-experts-attack",
Expand Down
55 changes: 55 additions & 0 deletions packages/backend/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,60 @@
# Change Log

## 1.0.0-alpha-v5.15

### Major Changes

- Change `SessionApi.getToken()` to return consistent `{ data, errors }` return value ([#2539](https://github.com/clerk/javascript/pull/2539)) by [@dimkl](https://github.com/dimkl)

and fix the `getToken()` from requestState to have the same return behavior as v4
(return Promise<string> or throw error).
This change fixes issues with `getToken()` in `@clerk/nextjs` / `@clerk/remix` / `@clerk/fastify` / `@clerk/sdk-node` / `gatsby-plugin-clerk`:

Example:

```typescript
import { getAuth } from '@clerk/nextjs/server';

const { getToken } = await getAuth(...);
const jwtString = await getToken(...);
```

The change in `SessionApi.getToken()` return value is a breaking change, to keep the existing behavior use the following:

```typescript
import { ClerkAPIResponseError } from '@clerk/shared/error';

const response = await clerkClient.sessions.getToken(...);

if (response.errors) {
const { status, statusText, clerkTraceId } = response;
const error = new ClerkAPIResponseError(statusText || '', {
data: [],
status: Number(status || ''),
clerkTraceId,
});
error.errors = response.errors;

throw error;
}

// the value of the v4 `clerkClient.sessions.getToken(...)`
const jwtString = response.data.jwt;
```

### Minor Changes

- Replace the `Clerk-Backend-SDK` header with `User-Agent` in BAPI requests and update it's value to contain both the package name and the package version of the clerk package ([#2558](https://github.com/clerk/javascript/pull/2558)) by [@dimkl](https://github.com/dimkl)

executing the request. Eg request from `@clerk/nextjs` to BAPI with append `User-Agent: @clerk/nextjs@5.0.0-alpha-v5.16` using the latest version.

Miscellaneous changes: The backend test build changed to use tsup.

### Patch Changes

- Updated dependencies [[`8cc45d2af`](https://github.com/clerk/javascript/commit/8cc45d2af98320ccced3768fb039b86576e424a5)]:
- @clerk/shared@2.0.0-alpha-v5.10

## 1.0.0-alpha-v5.14

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/backend",
"version": "1.0.0-alpha-v5.14",
"version": "1.0.0-alpha-v5.15",
"description": "Clerk Backend SDK - REST Client for Backend API & JWT verification utilities",
"homepage": "https://clerk.com/",
"bugs": {
Expand Down Expand Up @@ -95,7 +95,7 @@
"test:cloudflare-workerd": "tests/cloudflare-workerd/run.sh"
},
"dependencies": {
"@clerk/shared": "2.0.0-alpha-v5.9",
"@clerk/shared": "2.0.0-alpha-v5.10",
"cookie": "0.5.0",
"snakecase-keys": "5.4.4",
"tslib": "2.4.1"
Expand Down
9 changes: 9 additions & 0 deletions packages/chrome-extension/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Change Log

## 1.0.0-alpha-v5.16

### Patch Changes

- Updated dependencies [[`8cc45d2af`](https://github.com/clerk/javascript/commit/8cc45d2af98320ccced3768fb039b86576e424a5), [`db2d82901`](https://github.com/clerk/javascript/commit/db2d829013722957332bcf03928685a4771f9a3c)]:
- @clerk/clerk-js@5.0.0-alpha-v5.16
- @clerk/clerk-react@5.0.0-alpha-v5.16
- @clerk/shared@2.0.0-alpha-v5.10

## 1.0.0-alpha-v5.15

### Patch Changes
Expand Down
8 changes: 4 additions & 4 deletions packages/chrome-extension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/chrome-extension",
"version": "1.0.0-alpha-v5.15",
"version": "1.0.0-alpha-v5.16",
"description": "Clerk SDK for Chrome extensions",
"keywords": [
"auth",
Expand Down Expand Up @@ -44,9 +44,9 @@
"test:coverage": "jest --collectCoverage && open coverage/lcov-report/index.html"
},
"dependencies": {
"@clerk/clerk-js": "5.0.0-alpha-v5.15",
"@clerk/clerk-react": "5.0.0-alpha-v5.15",
"@clerk/shared": "2.0.0-alpha-v5.9",
"@clerk/clerk-js": "5.0.0-alpha-v5.16",
"@clerk/clerk-react": "5.0.0-alpha-v5.16",
"@clerk/shared": "2.0.0-alpha-v5.10",
"webextension-polyfill": "^0.10.0"
},
"devDependencies": {
Expand Down
9 changes: 9 additions & 0 deletions packages/clerk-js/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Change Log

## 5.0.0-alpha-v5.16

### Patch Changes

- Allow dynamic values components props, even if these values change after the components are rendered. For example, a `SignIn` component with a `redirectUrl` prop passed in will always respect the latest value of `redirectUrl`. ([#2515](https://github.com/clerk/javascript/pull/2515)) by [@nikosdouvlis](https://github.com/nikosdouvlis)

- Updated dependencies [[`8cc45d2af`](https://github.com/clerk/javascript/commit/8cc45d2af98320ccced3768fb039b86576e424a5)]:
- @clerk/shared@2.0.0-alpha-v5.10

## 5.0.0-alpha-v5.15

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/clerk-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/clerk-js",
"version": "5.0.0-alpha-v5.15",
"version": "5.0.0-alpha-v5.16",
"description": "Clerk JS library",
"keywords": [
"clerk",
Expand Down Expand Up @@ -51,7 +51,7 @@
"browserslist": "last 2 versions, ios_saf > 12, Safari > 12, > 1%, not dead, not ie > 0",
"dependencies": {
"@clerk/localizations": "2.0.0-alpha-v5.10",
"@clerk/shared": "2.0.0-alpha-v5.9",
"@clerk/shared": "2.0.0-alpha-v5.10",
"@clerk/types": "4.0.0-alpha-v5.12",
"@emotion/cache": "11.11.0",
"@emotion/react": "11.11.1",
Expand Down
9 changes: 9 additions & 0 deletions packages/elements/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @clerk/elements

## 0.0.2-alpha-v5.5

### Patch Changes

- Updated dependencies [[`8cc45d2af`](https://github.com/clerk/javascript/commit/8cc45d2af98320ccced3768fb039b86576e424a5), [`b4e79c1b9`](https://github.com/clerk/javascript/commit/b4e79c1b9ab8e14cbfccaf290f0f596da0416e13), [`c0a7455ac`](https://github.com/clerk/javascript/commit/c0a7455acfaa51dc77fa626f7fc48bbdfe388cbd), [`db2d82901`](https://github.com/clerk/javascript/commit/db2d829013722957332bcf03928685a4771f9a3c)]:
- @clerk/clerk-react@5.0.0-alpha-v5.16
- @clerk/shared@2.0.0-alpha-v5.10
- @clerk/nextjs@5.0.0-alpha-v5.17

## 0.0.2-alpha-v5.4

### Patch Changes
Expand Down
8 changes: 4 additions & 4 deletions packages/elements/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/elements",
"version": "0.0.2-alpha-v5.4",
"version": "0.0.2-alpha-v5.5",
"private": true,
"description": "Clerk Elements",
"keywords": [
Expand Down Expand Up @@ -58,9 +58,9 @@
"test:cache:clear": "jest --clearCache --useStderr"
},
"dependencies": {
"@clerk/clerk-react": "5.0.0-alpha-v5.15",
"@clerk/nextjs": "5.0.0-alpha-v5.16",
"@clerk/shared": "2.0.0-alpha-v5.9",
"@clerk/clerk-react": "5.0.0-alpha-v5.16",
"@clerk/nextjs": "5.0.0-alpha-v5.17",
"@clerk/shared": "2.0.0-alpha-v5.10",
"@radix-ui/react-form": "^0.0.3",
"@radix-ui/react-slot": "^1.0.2",
"@statelyai/inspect": "^0.1.0",
Expand Down
9 changes: 9 additions & 0 deletions packages/expo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Change Log

## 1.0.0-alpha-v5.16

### Patch Changes

- Updated dependencies [[`8cc45d2af`](https://github.com/clerk/javascript/commit/8cc45d2af98320ccced3768fb039b86576e424a5), [`db2d82901`](https://github.com/clerk/javascript/commit/db2d829013722957332bcf03928685a4771f9a3c)]:
- @clerk/clerk-js@5.0.0-alpha-v5.16
- @clerk/clerk-react@5.0.0-alpha-v5.16
- @clerk/shared@2.0.0-alpha-v5.10

## 1.0.0-alpha-v5.15

### Minor Changes
Expand Down
8 changes: 4 additions & 4 deletions packages/expo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/clerk-expo",
"version": "1.0.0-alpha-v5.15",
"version": "1.0.0-alpha-v5.16",
"description": "Clerk React Native/Expo library",
"keywords": [
"react",
Expand Down Expand Up @@ -39,9 +39,9 @@
"publish:local": "npx yalc push --replace --sig"
},
"dependencies": {
"@clerk/clerk-js": "5.0.0-alpha-v5.15",
"@clerk/clerk-react": "5.0.0-alpha-v5.15",
"@clerk/shared": "2.0.0-alpha-v5.9",
"@clerk/clerk-js": "5.0.0-alpha-v5.16",
"@clerk/clerk-react": "5.0.0-alpha-v5.16",
"@clerk/shared": "2.0.0-alpha-v5.10",
"base-64": "^1.0.0",
"react-native-url-polyfill": "2.0.0"
},
Expand Down
16 changes: 16 additions & 0 deletions packages/fastify/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Change Log

## 1.0.0-alpha-v5.17

### Minor Changes

- Replace the `Clerk-Backend-SDK` header with `User-Agent` in BAPI requests and update it's value to contain both the package name and the package version of the clerk package ([#2558](https://github.com/clerk/javascript/pull/2558)) by [@dimkl](https://github.com/dimkl)

executing the request. Eg request from `@clerk/nextjs` to BAPI with append `User-Agent: @clerk/nextjs@5.0.0-alpha-v5.16` using the latest version.

Miscellaneous changes: The backend test build changed to use tsup.

### Patch Changes

- Updated dependencies [[`799abc281`](https://github.com/clerk/javascript/commit/799abc281182efb953dd6637f9db7fc61c71a2cd), [`8cc45d2af`](https://github.com/clerk/javascript/commit/8cc45d2af98320ccced3768fb039b86576e424a5), [`b4e79c1b9`](https://github.com/clerk/javascript/commit/b4e79c1b9ab8e14cbfccaf290f0f596da0416e13)]:
- @clerk/backend@1.0.0-alpha-v5.15
- @clerk/shared@2.0.0-alpha-v5.10

## 1.0.0-alpha-v5.16

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/fastify/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@clerk/fastify",
"version": "1.0.0-alpha-v5.16",
"version": "1.0.0-alpha-v5.17",
"description": "Clerk SDK for Fastify",
"keywords": [
"auth",
Expand Down Expand Up @@ -40,8 +40,8 @@
"test:cache:clear": "jest --clearCache --useStderr"
},
"dependencies": {
"@clerk/backend": "1.0.0-alpha-v5.14",
"@clerk/shared": "2.0.0-alpha-v5.9",
"@clerk/backend": "1.0.0-alpha-v5.15",
"@clerk/shared": "2.0.0-alpha-v5.10",
"@clerk/types": "4.0.0-alpha-v5.12",
"cookies": "0.8.0"
},
Expand Down
Loading
Loading