-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into brk.feat/handshake-fetch
- Loading branch information
Showing
208 changed files
with
1,629 additions
and
1,631 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
"@clerk/clerk-react": major | ||
--- | ||
|
||
Replace the `signOutCallback` prop on the `<SignOutButton />` with `redirectUrl`. This aligns the API surface with other UI components provided by `@clerk/clerk-react`. | ||
|
||
If you previously used the `signOutCallback` prop to navigate to another page, you can migrate as shown below. | ||
|
||
Before: | ||
|
||
```jsx | ||
import { SignOutButton } from "@clerk/clerk-react"; | ||
|
||
export const Signout = () => { | ||
return ( | ||
<SignOutButton signOutCallback={() => { window.location.href = "/your-path" }}> | ||
<button>Sign Out</button> | ||
</SignOutButton> | ||
) | ||
} | ||
``` | ||
|
||
After: | ||
|
||
```jsx | ||
import { SignOutButton } from "@clerk/clerk-react"; | ||
|
||
export const Signout = () => { | ||
return ( | ||
<SignOutButton redirectUrl="/your-path"> | ||
<button>Sign Out</button> | ||
</SignOutButton> | ||
) | ||
} | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
'@clerk/clerk-sdk-node': major | ||
--- | ||
|
||
Drop all pre-instantiated Backend API resources (`allowlistIdentifiers`, `clients`, `emailAddresses`, `emails`, `invitations`, `organizations`, `phoneNumbers`, `redirectUrls`, `sessions`, `signInTokens`, `users`, `domains`). Use the `clerkClient` import instead. | ||
```typescript | ||
// Before | ||
import { users } from "@clerk/clerk-sdk-node" | ||
// After | ||
import { clerkClient } from "@clerk/clerk-sdk-node" | ||
clerkClient.users | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
--- |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
'@clerk/nextjs': major | ||
--- | ||
|
||
Drop support for NextJS v12: v12 was released on 26 Oct 2021. Support for security updates stopped on 21 Nov 2022. | ||
|
||
Drop support for NextJS <13.0.4: Various header-related bugs were introduced with the 12.1.0, 12.2.0, 13.0.1, 13.0.2, 13.0.3 NextJS releases which are now fixed since next@^13.0.4. We will be dropping support for these problematic versions in order to greatly reduce complexity in our codebase. | ||
|
||
Drop support for NextJS < 14.0.3 because of the issues described here: https://github.com/clerk/javascript/issues/1436. | ||
|
||
Deprecate `authMiddleware` in favor of `clerkMiddleware`. For more information, see https://clerk.com/docs/upgrade-guides/v5-introduction | ||
|
||
Move the server-side APIs from `@clerk/nextjs` to the `@clerk/nextjs/server` module: `WebhookEventType`, `WebhookEvent`, `verifyToken`, `redirectToSignIn`, `auth`, `buildClerkProps`, `clerkClient`, `currentUser`, `getAuth`, `redirectToSignUp` and `authMiddleware`. For more information, see https://clerk.com/docs/upgrade-guides/v5-introduction |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
--- |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
--- |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@clerk/backend': minor | ||
--- | ||
|
||
Improve ESM support in `@clerk/backend` for Node by using .mjs for #crypto subpath import |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
'gatsby-plugin-clerk': major | ||
'@clerk/clerk-sdk-node': major | ||
'@clerk/backend': major | ||
'@clerk/fastify': major | ||
'@clerk/nextjs': major | ||
'@clerk/remix': major | ||
--- | ||
|
||
Changes in exports of `@clerk/backend`: | ||
- Expose the following helpers and enums from `@clerk/backend/internal`: | ||
```typescript | ||
import { | ||
AuthStatus, | ||
buildRequestUrl, | ||
constants, | ||
createAuthenticateRequest, | ||
createIsomorphicRequest, | ||
debugRequestState, | ||
makeAuthObjectSerializable, | ||
prunePrivateMetadata, | ||
redirect, | ||
sanitizeAuthObject, | ||
signedInAuthObject, | ||
signedOutAuthObject } from '@clerk/backend/internal'; | ||
``` | ||
- Drop the above exports from the top-level api: | ||
```typescript | ||
// Before | ||
import { AuthStatus, ... } from '@clerk/backend'; | ||
// After | ||
import { AuthStatus, ... } from '@clerk/backend/internal'; | ||
``` | ||
Dropping those exports results in also dropping the exports from `gatsby-plugin-clerk`, `@clerk/clerk-sdk-node`, `@clerk/backend`, `@clerk/fastify`, `@clerk/nextjs`, `@clerk/remix` packages. |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
--- |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@clerk/nextjs': patch | ||
--- | ||
|
||
Update NextJS quickstart link in error message |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
--- |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
'@clerk/clerk-sdk-node': major | ||
'@clerk/backend': major | ||
'@clerk/nextjs': major | ||
--- | ||
|
||
Changes in `@clerk/backend` exports: | ||
- Drop Internal `deserialize` helper | ||
- Introduce `/errors` subpath export, eg: | ||
```typescript | ||
import { | ||
TokenVerificationError, | ||
TokenVerificationErrorAction, | ||
TokenVerificationErrorCode, | ||
TokenVerificationErrorReason } from '@clerk/backend/errors'; | ||
``` | ||
- Drop errors from top-level export | ||
```typescript | ||
// Before | ||
import { TokenVerificationError, TokenVerificationErrorReason } from '@clerk/backend'; | ||
// After | ||
import { TokenVerificationError, TokenVerificationErrorReason } from '@clerk/backend/errors'; | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@clerk/backend': major | ||
--- | ||
|
||
Drop unused SearchParams.AuthStatus constant |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@clerk/clerk-sdk-node': minor | ||
--- | ||
|
||
Fix error thrown for undefined `Clerk` in case of using default clerkClient from `@clerk/clerk-sdk-node` without secretKey caused by replaced import. |
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.