-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(repo): Version packages (alpha-v5) (#2554)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
5c21e98
commit cdc4f51
Showing
25 changed files
with
262 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected]` 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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected]` 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/[email protected] | ||
- @clerk/[email protected] | ||
|
||
## 1.0.0-alpha-v5.16 | ||
|
||
### Patch Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.