Skip to content
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/cyan-stingrays-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
'@clerk/nextjs': major
---

Drop deprecations. Migration steps:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dimkl Should we mark these as breaking?

@dimkl dimkl Nov 3, 2023

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought that the major version bump should indicate that but we can also mark them as breaking changes. All the changes with major version are breaking. What do you think?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merging this to continue with the cleanup and i will update the changeset if we want to somehow mark the changes as breaking.

- use `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY` instead of `NEXT_PUBLIC_CLERK_FRONTEND_API` env variable
- use `NEXT_PUBLIC_CLERK_JS_VERSION` instead of `CLERK_JS_VERSION`
- use `CLERK_SECRET_KEY` instead of `CLERK_API_KEY`
- use `publishableKey` instead of `frontendApi`
- use `isEmailLinkError` instead of `isMagicLinkError`
- use `EmailLinkErrorCode` instead of `MagicLinkErrorCode`
- use `useEmailLink` instead of `useMagicLink`
- use `@clerk/nextjs` instead of `@clerk/nextjs/app-beta`
- use `@clerk/nextjs` instead of `@clerk/nextjs/ssr`
- use `@clerk/nextjs` instead of `@clerk/nextjs/edge-middleware` or `@clerk/nextjs/edge-middlewarefiles`
- use `@clerk/nextjs` instead of `@clerk/nextjs/api`
- use middleware with `authMiddleware` instead of `withClerkMiddleware`
- avoid using exported constants: `API_URL`, `API_VERSION`, `CLERK_JS_URL`, `CLERK_JS_VERSION`, `DOMAIN`, `IS_SATELLITE`, `PROXY_URL`, `PUBLISHABLE_KEY`, `SECRET_KEY`, `SIGN_IN_URL`, `SIGN_UP_URL`
Loading