Skip to content

Commit

Permalink
fix(clerk-react): Use specific clerk/shared entries
Browse files Browse the repository at this point in the history
  • Loading branch information
brkalow committed Oct 20, 2023
1 parent 24f2ac1 commit 9676e41
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/react/src/contexts/ClerkProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isLegacyFrontendApiKey, isPublishableKey } from '@clerk/shared';
import { isLegacyFrontendApiKey, isPublishableKey } from '@clerk/shared/keys';
import type { InitialState } from '@clerk/types';
import React from 'react';

Expand Down
4 changes: 3 additions & 1 deletion packages/react/src/isomorphicClerk.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { deprecated, handleValueOrFn, inBrowser } from '@clerk/shared';
import { inBrowser } from '@clerk/shared/browser';
import { deprecated } from '@clerk/shared/deprecated';
import { handleValueOrFn } from '@clerk/shared/handleValueOrFn';
import type {
ActiveSessionResource,
AuthenticateWithMetamaskParams,
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/utils/isDevOrStageUrl.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { createDevOrStagingUrlCache } from '@clerk/shared';
import { createDevOrStagingUrlCache } from '@clerk/shared/keys';
const { isDevOrStagingUrl } = createDevOrStagingUrlCache();
export { isDevOrStagingUrl };
7 changes: 5 additions & 2 deletions packages/react/src/utils/loadClerkJsScript.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { addClerkPrefix, isValidProxyUrl, loadScript, parsePublishableKey, proxyUrlToAbsoluteURL } from '@clerk/shared';
import { parsePublishableKey } from '@clerk/shared/keys';
import { loadScript } from '@clerk/shared/loadScript';
import { isValidProxyUrl, proxyUrlToAbsoluteURL } from '@clerk/shared/proxy';
import { addClerkPrefix } from '@clerk/shared/url';

import type { IsomorphicClerkOptions } from '../types';
import { errorThrower } from './errorThrower';
Expand All @@ -12,7 +15,7 @@ type LoadClerkJsScriptOptions = Omit<IsomorphicClerkOptions, 'proxyUrl' | 'domai
domain: string;
};

export const loadClerkJsScript = async (opts: LoadClerkJsScriptOptions) => {
export const loadClerkJsScript = (opts: LoadClerkJsScriptOptions) => {
const { frontendApi, publishableKey } = opts;

if (!publishableKey && !frontendApi) {
Expand Down

0 comments on commit 9676e41

Please sign in to comment.