Skip to content

Commit 71663c5

Browse files
authored
chore(repo): Replace clerk.dev with clerk.com (clerk#1878)
1 parent 641de48 commit 71663c5

51 files changed

Lines changed: 219 additions & 212 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'gatsby-plugin-clerk': patch
3+
'@clerk/clerk-js': patch
4+
'@clerk/clerk-sdk-node': patch
5+
'@clerk/backend': patch
6+
'@clerk/fastify': patch
7+
'@clerk/nextjs': patch
8+
'@clerk/shared': patch
9+
'@clerk/clerk-expo': patch
10+
---
11+
12+
Internal update default apiUrl domain from clerk.dev to clerk.com

packages/backend/src/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const API_URL = 'https://api.clerk.dev';
1+
export const API_URL = 'https://api.clerk.com';
22
export const API_VERSION = 'v1';
33

44
// TODO: Get information from package.json or define them from ESBuild

packages/backend/src/tokens/keys.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default (QUnit: QUnit) => {
5454
skipJwksCache: true,
5555
});
5656

57-
fakeFetch.calledOnceWith('https://api.clerk.dev/v1/jwks', {
57+
fakeFetch.calledOnceWith('https://api.clerk.com/v1/jwks', {
5858
method: 'GET',
5959
headers: {
6060
Authorization: 'Bearer deadbeef',
@@ -73,7 +73,7 @@ export default (QUnit: QUnit) => {
7373
skipJwksCache: true,
7474
});
7575

76-
fakeFetch.calledOnceWith('https://api.clerk.dev/v1/jwks', {
76+
fakeFetch.calledOnceWith('https://api.clerk.com/v1/jwks', {
7777
method: 'GET',
7878
headers: {
7979
Authorization: 'Bearer deadbeef',

packages/clerk-js/src/core/clerk.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1121,7 +1121,7 @@ describe('Clerk singleton', () => {
11211121
external_verification_redirect_url: '',
11221122
error: {
11231123
code: 'not_allowed_to_sign_up',
1124-
long_message: 'You cannot sign up with test@clerk.dev since this is a restricted application.',
1124+
long_message: 'You cannot sign up with test@clerk.com since this is a restricted application.',
11251125
message: 'Not allowed to sign up',
11261126
meta: {
11271127
session_id: 'sess_1yDceUR8SIKtQ0gIOO8fNsW7nhe',

packages/clerk-js/src/core/resources/OrganizationDomain.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ describe('OrganizationDomain', () => {
55
const organization = new OrganizationDomain({
66
object: 'organization_domain',
77
id: 'test_domain_id',
8-
name: 'clerk.dev',
8+
name: 'clerk.com',
99
organization_id: 'test_org_id',
1010
enrollment_mode: 'manual_invitation',
1111
verification: {
@@ -14,7 +14,7 @@ describe('OrganizationDomain', () => {
1414
strategy: 'email_code',
1515
status: 'verified',
1616
},
17-
affiliation_email_address: 'some@clerk.dev',
17+
affiliation_email_address: 'some@clerk.com',
1818
created_at: 12345,
1919
updated_at: 5678,
2020
});
@@ -26,7 +26,7 @@ describe('OrganizationDomain', () => {
2626
const organization = new OrganizationDomain({
2727
object: 'organization_domain',
2828
id: 'test_domain_id',
29-
name: 'clerk.dev',
29+
name: 'clerk.com',
3030
organization_id: 'test_org_id',
3131
enrollment_mode: 'manual_invitation',
3232
verification: null,

packages/clerk-js/src/core/resources/User.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ describe('User', () => {
7474
const userWithUnverifiedEmail = new User({
7575
email_addresses: [
7676
{
77-
emailAddress: 'unverified@clerk.dev',
77+
emailAddress: 'unverified@clerk.com',
7878
verification: null,
7979
},
8080
],
@@ -88,7 +88,7 @@ describe('User', () => {
8888
const userWithVerifiedEmail = new User({
8989
email_addresses: [
9090
{
91-
emailAddress: 'unverified@clerk.dev',
91+
emailAddress: 'unverified@clerk.com',
9292
verification: {
9393
status: 'verified',
9494
},

packages/clerk-js/src/core/resources/__snapshots__/OrganizationDomain.test.ts.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ OrganizationDomain {
77
"delete": [Function],
88
"enrollmentMode": "manual_invitation",
99
"id": "test_domain_id",
10-
"name": "clerk.dev",
10+
"name": "clerk.com",
1111
"organizationId": "test_org_id",
1212
"pathRoot": "",
1313
"prepareAffiliationVerification": [Function],
@@ -20,12 +20,12 @@ OrganizationDomain {
2020

2121
exports[`OrganizationDomain has the same initial properties 1`] = `
2222
OrganizationDomain {
23-
"affiliationEmailAddress": "some@clerk.dev",
23+
"affiliationEmailAddress": "some@clerk.com",
2424
"attemptAffiliationVerification": [Function],
2525
"delete": [Function],
2626
"enrollmentMode": "manual_invitation",
2727
"id": "test_domain_id",
28-
"name": "clerk.dev",
28+
"name": "clerk.com",
2929
"organizationId": "test_org_id",
3030
"pathRoot": "",
3131
"prepareAffiliationVerification": [Function],

packages/clerk-js/src/core/test/fixtures.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export const createEmail = (params?: Partial<EmailAddressJSON>): EmailAddressJSO
6868
return {
6969
object: 'email_address',
7070
id: params?.email_address || '',
71-
email_address: 'test@clerk.dev',
71+
email_address: 'test@clerk.com',
7272
reserved: false,
7373
verification: {
7474
status: 'verified',
@@ -106,7 +106,7 @@ export const createExternalAccount = (params?: Partial<ExternalAccountJSON>): Ex
106106
identification_id: '98675202',
107107
provider_user_id: '3232',
108108
approved_scopes: '',
109-
email_address: 'test@clerk.dev',
109+
email_address: 'test@clerk.com',
110110
first_name: 'First name',
111111
last_name: 'Last name',
112112
avatar_url: '',

packages/clerk-js/src/ui/components/CreateOrganization/__tests__/CreateOrganization.test.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ describe('CreateOrganization', () => {
7272
const { wrapper } = await createFixtures(f => {
7373
f.withOrganizations();
7474
f.withUser({
75-
email_addresses: ['test@clerk.dev'],
75+
email_addresses: ['test@clerk.com'],
7676
});
7777
});
7878
const { getByText } = render(<CreateOrganization />, { wrapper });
@@ -83,7 +83,7 @@ describe('CreateOrganization', () => {
8383
const { wrapper, fixtures, props } = await createFixtures(f => {
8484
f.withOrganizations();
8585
f.withUser({
86-
email_addresses: ['test@clerk.dev'],
86+
email_addresses: ['test@clerk.com'],
8787
});
8888
});
8989

@@ -111,7 +111,7 @@ describe('CreateOrganization', () => {
111111
const { wrapper, fixtures, props } = await createFixtures(f => {
112112
f.withOrganizations();
113113
f.withUser({
114-
email_addresses: ['test@clerk.dev'],
114+
email_addresses: ['test@clerk.com'],
115115
});
116116
});
117117

@@ -139,7 +139,7 @@ describe('CreateOrganization', () => {
139139
const { wrapper, fixtures } = await createFixtures(f => {
140140
f.withOrganizations();
141141
f.withUser({
142-
email_addresses: ['test@clerk.dev'],
142+
email_addresses: ['test@clerk.com'],
143143
});
144144
});
145145

@@ -167,7 +167,7 @@ describe('CreateOrganization', () => {
167167
const { wrapper, fixtures, props } = await createFixtures(f => {
168168
f.withOrganizations();
169169
f.withUser({
170-
email_addresses: ['test@clerk.dev'],
170+
email_addresses: ['test@clerk.com'],
171171
});
172172
});
173173

@@ -191,7 +191,7 @@ describe('CreateOrganization', () => {
191191
const { wrapper, fixtures, props } = await createFixtures(f => {
192192
f.withOrganizations();
193193
f.withUser({
194-
email_addresses: ['test@clerk.dev'],
194+
email_addresses: ['test@clerk.com'],
195195
});
196196
});
197197

packages/clerk-js/src/ui/components/OrganizationList/__tests__/OrganizationList.test.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe('OrganizationList', () => {
1616
const { wrapper } = await createFixtures(f => {
1717
f.withOrganizations();
1818
f.withUser({
19-
email_addresses: ['test@clerk.dev'],
19+
email_addresses: ['test@clerk.com'],
2020
});
2121
});
2222

@@ -40,7 +40,7 @@ describe('OrganizationList', () => {
4040
const { wrapper, props, fixtures } = await createFixtures(f => {
4141
f.withOrganizations();
4242
f.withUser({
43-
email_addresses: ['test@clerk.dev'],
43+
email_addresses: ['test@clerk.com'],
4444
});
4545
});
4646

@@ -88,7 +88,7 @@ describe('OrganizationList', () => {
8888
const { wrapper, props } = await createFixtures(f => {
8989
f.withOrganizations();
9090
f.withUser({
91-
email_addresses: ['test@clerk.dev'],
91+
email_addresses: ['test@clerk.com'],
9292
organization_memberships: [{ name: 'Org1', id: '1', role: 'admin' }],
9393
});
9494
});
@@ -118,7 +118,7 @@ describe('OrganizationList', () => {
118118
const { wrapper, props, fixtures } = await createFixtures(f => {
119119
f.withOrganizations();
120120
f.withUser({
121-
email_addresses: ['test@clerk.dev'],
121+
email_addresses: ['test@clerk.com'],
122122
});
123123
});
124124

@@ -198,7 +198,7 @@ describe('OrganizationList', () => {
198198
it('display CreateOrganization within OrganizationList', async () => {
199199
const { wrapper } = await createFixtures(f => {
200200
f.withOrganizations();
201-
f.withUser({ email_addresses: ['test@clerk.dev'] });
201+
f.withUser({ email_addresses: ['test@clerk.com'] });
202202
});
203203

204204
const { queryByLabelText, getByRole, userEvent, queryByRole } = render(<OrganizationList />, { wrapper });
@@ -224,7 +224,7 @@ describe('OrganizationList', () => {
224224
it('display CreateOrganization and navigates to Invite Members', async () => {
225225
const { wrapper } = await createFixtures(f => {
226226
f.withOrganizations();
227-
f.withUser({ email_addresses: ['test@clerk.dev'] });
227+
f.withUser({ email_addresses: ['test@clerk.com'] });
228228
});
229229

230230
const { getByLabelText, getByRole, userEvent, queryByText } = render(<OrganizationList />, { wrapper });
@@ -247,7 +247,7 @@ describe('OrganizationList', () => {
247247
f.withOrganizations();
248248
f.withUser({
249249
id: 'test_user_id',
250-
email_addresses: ['test@clerk.dev'],
250+
email_addresses: ['test@clerk.com'],
251251
});
252252
});
253253

@@ -276,7 +276,7 @@ describe('OrganizationList', () => {
276276
f.withOrganizations();
277277
f.withUser({
278278
id: 'test_user_id',
279-
email_addresses: ['test@clerk.dev'],
279+
email_addresses: ['test@clerk.com'],
280280
});
281281
});
282282

0 commit comments

Comments
 (0)