Skip to content

Commit 29fabe8

Browse files
committed
chore(shared): Replace clerk.dev occurrences with clerk.com
1 parent 8e14161 commit 29fabe8

6 files changed

Lines changed: 13 additions & 16 deletions

File tree

packages/shared/src/errors/thrower.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ describe('ErrorThrower', () => {
66

77
it('throws the correct error message and interpolates pkg and known parameters', () => {
88
expect(() => errorThrower.throwInvalidPublishableKeyError({ key: 'whatever' })).toThrow(
9-
'@clerk/test-package: The publishableKey passed to Clerk is invalid. You can get your Publishable key at https://dashboard.clerk.dev/last-active?path=api-keys. (key=whatever)',
9+
'@clerk/test-package: The publishableKey passed to Clerk is invalid. You can get your Publishable key at https://dashboard.clerk.com/last-active?path=api-keys. (key=whatever)',
1010
);
1111
});
1212

1313
it('throws the correct error message and interpolates pkg if no parameters are provided', () => {
1414
expect(() => errorThrower.throwMissingPublishableKeyError()).toThrow(
15-
'@clerk/test-package: Missing publishableKey. You can get your key at https://dashboard.clerk.dev/last-active?path=api-keys.',
15+
'@clerk/test-package: Missing publishableKey. You can get your key at https://dashboard.clerk.com/last-active?path=api-keys.',
1616
);
1717
});
1818

packages/shared/src/errors/thrower.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
const DefaultMessages = Object.freeze({
2-
InvalidFrontendApiErrorMessage: `The frontendApi passed to Clerk is invalid. You can get your Frontend API key at https://dashboard.clerk.dev/last-active?path=api-keys. (key={{key}})`,
2+
InvalidFrontendApiErrorMessage: `The frontendApi passed to Clerk is invalid. You can get your Frontend API key at https://dashboard.clerk.com/last-active?path=api-keys. (key={{key}})`,
33
InvalidProxyUrlErrorMessage: `The proxyUrl passed to Clerk is invalid. The expected value for proxyUrl is an absolute URL or a relative path with a leading '/'. (key={{url}})`,
4-
InvalidPublishableKeyErrorMessage: `The publishableKey passed to Clerk is invalid. You can get your Publishable key at https://dashboard.clerk.dev/last-active?path=api-keys. (key={{key}})`,
5-
MissingPublishableKeyErrorMessage: `Missing publishableKey. You can get your key at https://dashboard.clerk.dev/last-active?path=api-keys.`,
4+
InvalidPublishableKeyErrorMessage: `The publishableKey passed to Clerk is invalid. You can get your Publishable key at https://dashboard.clerk.com/last-active?path=api-keys. (key={{key}})`,
5+
MissingPublishableKeyErrorMessage: `Missing publishableKey. You can get your key at https://dashboard.clerk.com/last-active?path=api-keys.`,
66
});
77

88
type MessageKeys = keyof typeof DefaultMessages;

packages/shared/src/utils/keys.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ describe('isPublishableKey(key)', () => {
4343
});
4444

4545
it('returns false if the key is not a valid publishable key', () => {
46-
expect(isPublishableKey('clerk.clerk.dev')).toBe(false);
46+
expect(isPublishableKey('clerk.clerk.com')).toBe(false);
4747
});
4848
});
4949

5050
describe('isLegacyFrontendApiKey(key)', () => {
5151
it('returns true if the key is a valid legacy frontend Api key', () => {
52-
expect(isLegacyFrontendApiKey('clerk.clerk.dev')).toBe(true);
52+
expect(isLegacyFrontendApiKey('clerk.clerk.com')).toBe(true);
5353
});
5454
it('returns true if the key is not a valid legacy frontend Api key', () => {
5555
expect(isLegacyFrontendApiKey('pk_live_Y2xlcmsuY2xlcmsuZGV2JA==')).toBe(false);

packages/shared/src/utils/multiDomain.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('handleValueOrFn(opts)', () => {
1111
[() => false, false],
1212
['', ''],
1313
['some-domain', 'some-domain'],
14-
['clerk.dev', 'clerk.dev'],
14+
['clerk.com', 'clerk.com'],
1515
[url => url.host, 'example.com'],
1616
[() => 'some-other-domain', 'some-other-domain'],
1717
])('.handleValueOrFn(%s)', (key, expected) => {

packages/shared/src/utils/proxy.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ describe('isProxyUrlRelative(key)', () => {
2626

2727
describe('isHttpOrHttps(key)', () => {
2828
it.each([
29-
['http://clerk.dev/api/__clerk', true],
30-
['http://clerk.dev/api/__clerk', true],
29+
['http://clerk.com/api/__clerk', true],
30+
['http://clerk.com/api/__clerk', true],
3131
[undefined, false],
3232
['/api/__clerk', false],
3333
['', false],
@@ -43,7 +43,7 @@ describe('proxyUrlToAbsoluteURL(url)', () => {
4343
Object.defineProperty(global.window, 'location', {
4444
get() {
4545
return {
46-
origin: 'https://clerk.dev',
46+
origin: 'https://clerk.com',
4747
};
4848
},
4949
configurable: true,
@@ -58,11 +58,11 @@ describe('proxyUrlToAbsoluteURL(url)', () => {
5858
});
5959

6060
it('returns an absolute URL made from window.location.origin and the partial a path', () => {
61-
expect(proxyUrlToAbsoluteURL('/api/__clerk')).toBe('https://clerk.dev/api/__clerk');
61+
expect(proxyUrlToAbsoluteURL('/api/__clerk')).toBe('https://clerk.com/api/__clerk');
6262
});
6363

6464
it('returns the same value as the parameter given as it already an absolute URL', () => {
65-
expect(proxyUrlToAbsoluteURL('https://clerk.dev/api/__clerk')).toBe('https://clerk.dev/api/__clerk');
65+
expect(proxyUrlToAbsoluteURL('https://clerk.com/api/__clerk')).toBe('https://clerk.com/api/__clerk');
6666
});
6767
it('returns empty string if parameter is undefined', () => {
6868
expect(proxyUrlToAbsoluteURL(undefined)).toBe('');

packages/shared/src/utils/url.test.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,8 @@ describe('addClerkPrefix(str)', () => {
4545
['clerk.clerk.example.com', 'clerk.example.com'],
4646
['clerk.abc', 'clerk.clerk.abc'],
4747
['clerk.com', 'clerk.clerk.com'],
48-
['clerk.dev', 'clerk.clerk.dev'],
4948
['clerk.clerk.com', 'clerk.clerk.com'],
5049
['clerk.clerk.clerk.com', 'clerk.clerk.com'],
51-
['clerk.clerk.dev', 'clerk.clerk.dev'],
52-
['clerk.clerk.clerk.dev', 'clerk.clerk.dev'],
5350
['satellite.dev', 'clerk.satellite.dev'],
5451
['clerk.satellite.dev', 'clerk.satellite.dev'],
5552
['quick-marten-1.clerk.accounts.lclclerk.com', 'quick-marten-1.clerk.accounts.lclclerk.com'],

0 commit comments

Comments
 (0)