clerk / javascript

Official Javascript repository for Clerk authentication
https://clerk.com
MIT License
958 stars 212 forks source link

feat(nextjs): Deprecate `clerkClient` singleton into a proxy for dynamic keys #3598

Closed LauraBeatris closed 2 weeks ago

LauraBeatris commented 3 weeks ago

Description

Part of SDK-1810

Refactors clerkClient to be a proxy function from createClerkClient to read dynamic keys from the request.

clerkClient as an object will get deprecated and removed in the next major version.

Checklist

Type of change

changeset-bot[bot] commented 3 weeks ago

🦋 Changeset detected

Latest commit: e77445282a485057672fa929bb06366c2c87cad0

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

This PR includes changesets to release 5 packages | Name | Type | | ----------------------- | ----- | | @clerk/elements | Minor | | @clerk/clerk-js | Patch | | @clerk/ui | Patch | | @clerk/chrome-extension | Patch | | @clerk/clerk-expo | 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

LauraBeatris commented 2 weeks ago

I've ended up doing a rebase against main that messed up this whole branch... I'll close this one and open another which is going to be easier than solving here 😢