Skip to content

chore(backend): Replace Clerk with createClerkClient [SDK-1058] #2317

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Dec 13, 2023

Conversation

tmilewski
Copy link
Member

@tmilewski tmilewski commented Dec 12, 2023

Description

Replace Clerk with createClerkClient [SDK-1058]

Breaking Changes

@clerk/backend

import { Clerk } from '@clerk/backend';
const clerk = Clerk({ secretKey: '...' });

now becomes:

import { createClerkClient } from '@clerk/backend';
const clerk = createClerkClient({ secretKey: '...' });

@clerk/nextjs

No longer returning Clerk. Please replace with createClerkClient

@clerk/remix

No longer returning Clerk. Please replace with createClerkClient

gatsby-plugin-clerk

No longer returning Clerk. Please replace with createClerkClient

SDK-1058

Checklist

  • npm test runs as expected.
  • npm run 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:

Packages affected

  • @clerk/backend
  • @clerk/chrome-extension
  • @clerk/clerk-js
  • @clerk/clerk-expo
  • @clerk/fastify
  • gatsby-plugin-clerk
  • @clerk/localizations
  • @clerk/nextjs
  • @clerk/clerk-react
  • @clerk/remix
  • @clerk/clerk-sdk-node
  • @clerk/shared
  • @clerk/themes
  • @clerk/types
  • build/tooling/chore

@tmilewski tmilewski self-assigned this Dec 12, 2023
Copy link

changeset-bot bot commented Dec 12, 2023

🦋 Changeset detected

Latest commit: 884843c

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

This PR includes changesets to release 6 packages
Name Type
@clerk/clerk-sdk-node Major
@clerk/backend Major
gatsby-plugin-clerk Major
@clerk/remix Major
@clerk/fastify Major
@clerk/nextjs Major

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

@tmilewski tmilewski requested a review from LekoArts December 12, 2023 14:44
@tmilewski tmilewski force-pushed the SDK-1058-backend-factory-pattern branch from 2c63a02 to a63edbd Compare December 12, 2023 23:39
@tmilewski tmilewski requested a review from LekoArts December 12, 2023 23:39
@tmilewski tmilewski enabled auto-merge December 12, 2023 23:39
@tmilewski tmilewski added this pull request to the merge queue Dec 13, 2023
Merged via the queue into main with commit 02976d4 Dec 13, 2023
@tmilewski tmilewski deleted the SDK-1058-backend-factory-pattern branch December 13, 2023 07:17
octoper pushed a commit that referenced this pull request Dec 13, 2023
…2317)

* chore(backend): Replace `Clerk` with `createClerkClient` [SDK-1058]

* chore(*): Update changeset package name

* chore(*): Add individual changesets

* chore(*): Update .changesets

* chore(*): Update integration tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants