Skip to content

fix(nextjs): Support unstable_rethrow inside clerkMiddleware in next@canary - #4727

Merged
panteliselef merged 3 commits into
mainfrom
elef/sdki-797-support-unstable_rethrow-with-the-new
Dec 11, 2024
Merged

panteliselef merged 3 commits into
mainfrom
elef/sdki-797-support-unstable_rethrow-with-the-new

Conversation

@panteliselef

Copy link
Copy Markdown
Contributor

Description

Currently, in next@canary > next@15.0.4, the underlying structure of the notFound error has changed. This PR adds support for those canary versions.

Dropped our internal nextjsNotFound and the CONTROL_FLOW_ERROR.FORCE_NOT_FOUND since we can already identify a not found error and we don't need to recreate it.

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

…ckError from next.

Currently, in `next@canary` > `next@15.0.4`, the underlying structure of the notFound error has changed. This PR adds support for those canary versions.
@changeset-bot

changeset-bot Bot commented Dec 6, 2024 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 88a2e9c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@clerk/nextjs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Dec 6, 2024 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
clerk-js-sandbox ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 9, 2024 6:40pm

@panteliselef
panteliselef requested a review from a team December 6, 2024 10:46
@panteliselef panteliselef changed the title fix(nextjs): Support unstable_rethrow with the new HTTPAccessFallbackError from next. fix(nextjs): Support unstable_rethrow inside clerkMiddleware in next@canary Dec 6, 2024
@panteliselef panteliselef self-assigned this Dec 6, 2024
@panteliselef
panteliselef merged commit 7ad473e into main Dec 11, 2024
@panteliselef
panteliselef deleted the elef/sdki-797-support-unstable_rethrow-with-the-new branch December 11, 2024 18:19
wobsoriano pushed a commit that referenced this pull request Feb 8, 2025

This branch was successfully deployed

1 active deployment
Preview — 88a2e9ca Deployed Dec 9, 2024 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants