Skip to content

Commit

Permalink
Merge branch 'main' into brk.feat/handshake-fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
BRKalow committed Dec 15, 2023
2 parents 0759578 + 0ec3a14 commit df9aba8
Show file tree
Hide file tree
Showing 208 changed files with 1,629 additions and 1,631 deletions.
35 changes: 35 additions & 0 deletions .changeset/bright-dragons-join.md
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>
)
}
```
12 changes: 12 additions & 0 deletions .changeset/fifty-snakes-accept.md
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
```
2 changes: 2 additions & 0 deletions .changeset/gentle-berries-teach.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
13 changes: 13 additions & 0 deletions .changeset/grumpy-drinks-turn.md
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
2 changes: 2 additions & 0 deletions .changeset/loud-panthers-poke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
2 changes: 2 additions & 0 deletions .changeset/many-flowers-heal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
5 changes: 5 additions & 0 deletions .changeset/mean-numbers-grin.md
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
55 changes: 54 additions & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
"@clerk/types": "3.57.0"
},
"changesets": [
"afraid-nails-play",
"angry-clocks-attend",
"blue-garlics-remain",
"blue-ghosts-float",
"blue-grapes-marry",
Expand All @@ -27,7 +29,10 @@
"bright-knives-jump",
"bright-plants-swim",
"bright-trainers-sort",
"bright-ways-provide",
"brown-clouds-divide",
"brown-ducks-reply",
"chatty-beans-fix",
"chatty-berries-jump",
"chatty-boats-tease",
"chilly-donuts-work",
Expand All @@ -45,7 +50,9 @@
"curvy-mails-rhyme",
"curvy-timers-play",
"cyan-dodos-provide",
"cyan-rockets-fail",
"cyan-stingrays-own",
"dirty-icons-rescue",
"dirty-panthers-begin",
"dry-feet-join",
"dry-sheep-poke",
Expand All @@ -55,11 +62,13 @@
"early-forks-argue",
"early-timers-wave",
"early-tomatoes-hide",
"eight-badgers-speak",
"eleven-bananas-joke",
"empty-jars-press",
"fair-cameras-boil",
"famous-carrots-notice",
"famous-forks-buy",
"famous-spies-clean",
"fast-ads-mix",
"fast-games-hide",
"fast-swans-smile",
Expand All @@ -71,23 +80,29 @@
"flat-pots-hear",
"fluffy-chicken-explain",
"friendly-months-film",
"friendly-parrots-nail",
"friendly-tables-chew",
"friendly-vans-develop",
"funny-gifts-cough",
"funny-lamps-work",
"fuzzy-horses-fix",
"fuzzy-years-taste",
"gentle-donkeys-talk",
"gentle-pants-matter",
"gold-fireants-sort",
"gold-islands-cover",
"gorgeous-baboons-float",
"gorgeous-insects-reply",
"grumpy-drinks-turn",
"grumpy-suns-boil",
"heavy-falcons-help",
"heavy-horses-nail",
"hip-eagles-clap",
"honest-onions-work",
"hungry-bears-allow",
"hungry-bikes-clean",
"hungry-news-bathe",
"itchy-chairs-argue",
"khaki-buttons-march",
"khaki-spoons-teach",
"khaki-timers-work",
Expand All @@ -102,51 +117,65 @@
"little-dolphins-scream",
"little-numbers-jam",
"long-beds-mate",
"long-dancers-whisper",
"long-icons-share",
"loud-countries-hang",
"loud-lions-compete",
"loud-panthers-poke",
"lovely-jobs-arrive",
"lovely-mirrors-remember",
"lovely-plums-sin",
"lovely-spies-kiss",
"lucky-ligers-brush",
"many-dragons-carry",
"many-flowers-heal",
"many-weeks-march",
"mean-houses-juggle",
"mean-poets-bow",
"metal-baboons-vanish",
"metal-cougars-fail",
"metal-ears-cheat",
"metal-olives-press",
"mighty-bulldogs-try",
"mighty-melons-greet",
"mighty-pugs-knock",
"moody-radios-begin",
"moody-trainers-bow",
"moody-zoos-deliver",
"nasty-books-tap",
"neat-lies-thank",
"neat-numbers-decide",
"new-cougars-taste",
"new-eels-mix",
"new-points-train",
"new-points-turn",
"nice-dingos-argue",
"nice-doors-fail",
"nice-starfishes-itch",
"nine-beans-travel",
"odd-lemons-reply",
"odd-toes-develop",
"old-actors-beg",
"old-ads-push",
"old-timers-obey",
"olive-steaks-end",
"orange-pumpkins-poke",
"pink-days-drum",
"polite-kiwis-arrive",
"poor-horses-press",
"poor-kings-marry",
"popular-parents-hope",
"popular-singers-sort",
"pretty-mice-share",
"pretty-months-greet",
"pretty-scissors-thank",
"pretty-singers-change",
"proud-hairs-check",
"purple-pumas-study",
"purple-rules-prove",
"quick-countries-scream",
"quick-trains-rush",
"quiet-cougars-watch",
"rare-bottles-sell",
"rare-students-sell",
"real-cougars-design",
Expand All @@ -156,57 +185,81 @@
"red-shrimps-hunt",
"red-worms-fetch",
"rich-actors-cross",
"rich-readers-obey",
"rotten-ways-do",
"rude-jobs-yawn",
"rude-lamps-yawn",
"selfish-eggs-sort",
"selfish-trains-breathe",
"shaggy-points-cheer",
"shaggy-pumpkins-tap",
"sharp-trains-ring",
"shiny-glasses-switch",
"shiny-pumas-share",
"short-eagles-search",
"short-kings-mate",
"shy-bikes-draw",
"silent-comics-roll",
"silly-emus-boil",
"silly-icons-kick",
"silly-poems-tease",
"silver-cats-appear",
"six-kangaroos-serve",
"sixty-frogs-pump",
"slimy-brooms-smoke",
"slimy-singers-glow",
"slimy-windows-grab",
"slimy-wolves-burn",
"slow-bugs-exist",
"slow-eels-fly",
"slow-wombats-battle",
"small-cats-check",
"smart-suns-train",
"smooth-baboons-shake",
"smooth-pets-rhyme",
"soft-birds-thank",
"soft-fireants-jog",
"soft-swans-swim",
"sour-avocados-sin",
"sour-comics-stare",
"spicy-feet-buy",
"spotty-apples-march",
"spotty-boxes-do",
"spotty-roses-push",
"strong-cows-sit",
"stupid-suits-accept",
"stupid-toys-remain",
"sweet-pumas-press",
"swift-rocks-nail",
"tall-roses-invent",
"tame-olives-check",
"tasty-countries-walk",
"tasty-phones-lie",
"ten-mugs-film",
"ten-nails-whisper",
"thin-phones-drop",
"thirty-chicken-divide",
"thirty-doors-peel",
"thirty-insects-exist",
"tiny-forks-sit",
"tough-pots-grow",
"tough-roses-hunt",
"tricky-bikes-fix",
"tricky-swans-develop",
"twenty-elephants-try",
"two-pumas-doubt",
"two-terms-speak",
"violet-birds-scream",
"weak-elephants-grin",
"wicked-spoons-confess",
"wild-phones-smoke",
"wise-houses-shop",
"wise-lions-type",
"witty-forks-cheer",
"yellow-elephants-begin",
"yellow-tigers-know",
"young-experts-attack",
"young-frogs-enjoy"
"young-frogs-enjoy",
"young-items-explode"
]
}
34 changes: 34 additions & 0 deletions .changeset/red-suns-perform.md
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.
2 changes: 2 additions & 0 deletions .changeset/shy-bikes-draw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
5 changes: 5 additions & 0 deletions .changeset/silent-comics-roll.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/nextjs': patch
---

Update NextJS quickstart link in error message
2 changes: 2 additions & 0 deletions .changeset/sixty-frogs-pump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
23 changes: 23 additions & 0 deletions .changeset/tasty-terms-fly.md
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';
```
5 changes: 5 additions & 0 deletions .changeset/tricky-bikes-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/backend': major
---

Drop unused SearchParams.AuthStatus constant
5 changes: 5 additions & 0 deletions .changeset/weak-bears-cover.md
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.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ packages/*/dist/**
packages/eslint-config-custom/**
**/dist/*
**/build/*
**/.turbo/*
playground
packages/*/examples
.github
.idea
.vscode
.turbo
Expand Down
Loading

0 comments on commit df9aba8

Please sign in to comment.