Skip to content

chore(repo): Replace clerk.dev with clerk.com - #1878

Merged
dimkl merged 1 commit into
mainfrom
hou-46-clerk-dev
Oct 26, 2023
Merged

chore(repo): Replace clerk.dev with clerk.com#1878
dimkl merged 1 commit into
mainfrom
hou-46-clerk-dev

Conversation

@dimkl

Copy link
Copy Markdown
Contributor

Description

Since we have completely migrated to clerk.com, this PR replaces all references of the previous domain (clerk.dev) to clerk.com.

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/clerk-js
  • @clerk/clerk-react
  • @clerk/nextjs
  • @clerk/remix
  • @clerk/types
  • @clerk/themes
  • @clerk/localizations
  • @clerk/clerk-expo
  • @clerk/backend
  • @clerk/clerk-sdk-node
  • @clerk/shared
  • @clerk/fastify
  • @clerk/chrome-extension
  • gatsby-plugin-clerk
  • build/tooling/chore

@dimkl
dimkl requested a review from agisOctober 13, 2023 12:17
@dimkldimkl self-assigned this Oct 13, 2023
@dimkl
dimkl requested a review from a team as a code ownerOctober 13, 2023 12:17
@changeset-bot

changeset-botBot commented Oct 13, 2023

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 9fe869b

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

This PR includes changesets to release 11 packages
NameType
gatsby-plugin-clerkPatch
@clerk/clerk-jsPatch
@clerk/clerk-sdk-nodePatch
@clerk/backendPatch
@clerk/fastifyPatch
@clerk/nextjsPatch
@clerk/sharedPatch
@clerk/clerk-expoPatch
@clerk/chrome-extensionPatch
@clerk/remixPatch
@clerk/clerk-reactPatch

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

Comment threadpackages/clerk-js/src/utils/email.ts
Comment threadpackages/clerk-js/src/ui/customizables/makeResponsive.tsx Outdated

@anagstefanagstef left a comment

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.

Good stuff! Just a small change!

@agisagis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM (only one note regarding backwards compatibility)! 🚀

@@ -1,4 +1,4 @@
export const API_URL = 'https://api.clerk.dev';
export const API_URL = 'https://api.clerk.com';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

❓ I'm wondering if there could be use cases that depend on that value, for example:

  • test suites asserting things like expect(request).to('api.clerk.dev')
  • strict firewalls configured to only allow outgoing traffic to api.clerk.dev and not api.clerk.com

These seem unlikely to me, but just wanted to point out that this has some small chance of breaking someone.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

strict firewalls configured to only allow outgoing traffic to api.clerk.dev and not api.clerk.com

@agis Could you check the firewall rules if we support the clerk.com for all of our workers services (eg img.clerk.com)? If so, I think we could proceed with this PR.

test suites asserting things like expect(request).to('api.clerk.dev')

Could you elaborate more on this? In the javascript repo, I believe that all the tests are updated to use clerk.com

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I was referring to customers' test suites and WAF, not our own (our own WAF is fine, since clerk.com is already used by a handful of customers already). I was just trying to envision any cases where changing this constant's value would break customers.

Feel free to disregard my comment if you believe this is highly unlikely.

@dimkldimklOct 16, 2023

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Based on the above comments i think we should introduce the change of clerk.dev -> clerk.com) as part of the next major version and add references in the migration guide and changelog about changing the clerk domains to avoid causing issues in customers depending the requests to our systems (eg mocking the requests).

@anagstefanagstef left a comment

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.

LGTM

@dimkl

Copy link
Copy Markdown
ContributorAuthor

Blocked by #1837

@nikosdouvlisnikosdouvlis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice cleanup @dimkl

@dimkl
dimkl enabled auto-merge October 26, 2023 20:17
@dimkl
dimkl added this pull request to the merge queue Oct 26, 2023
Merged via the queue into main with commit 71663c5Oct 26, 2023
@dimkl
dimkl deleted the hou-46-clerk-dev branch October 26, 2023 20:37
@clerk-cookie

Copy link
Copy Markdown
Collaborator

This PR has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@clerkclerk locked as resolved and limited conversation to collaborators Oct 26, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@dimkl@clerk-cookie@agis@nikosdouvlis@anagstef@panteliselef@desiprisg