Skip to content
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

ci(repo): Version packages #4754

Merged
merged 1 commit into from
Dec 12, 2024
Merged

ci(repo): Version packages #4754

merged 1 commit into from
Dec 12, 2024

Conversation

clerk-cookie
Copy link
Collaborator

@clerk-cookie clerk-cookie commented Dec 11, 2024

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@clerk/[email protected]

Minor Changes

Patch Changes

@clerk/[email protected]

Minor Changes

  • Introduce improved offline support for Expo. (#4604) by @anagstef

    We're introducing an improved offline support for the @clerk/clerk-expo package to enhance reliability and user experience. This new improvement allows apps to bootstrap without an internet connection by using cached Clerk resources, ensuring quick initialization.

    It solves issues as the following:

    • Faster resolution of the isLoaded property and the ClerkLoaded component, with only a single network fetch attempt, and if it fails, it falls back to the cached resources.
    • The getToken function of useAuth hook now returns a cached token if network errors occur.
    • Developers can now catch and handle network errors gracefully in their custom flows, as the errors are no longer muted.

    How to use it:

    1. Install the expo-secure-store package in your project by running:

      npm i expo-secure-store
    2. Use import { secureStore } from "@clerk/clerk-expo/secure-store" to import our implementation of the SecureStore API.

    3. Pass the secureStore in the __experimental_resourceCache property of the ClerkProvider to enable offline support.

    import { ClerkProvider, ClerkLoaded } from '@clerk/clerk-expo';
    import { Slot } from 'expo-router';
    import { tokenCache } from '../token-cache';
    import { secureStore } from '@clerk/clerk-expo/secure-store';
    
    export default function RootLayout() {
      const publishableKey = process.env.EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY!;
    
      if (!publishableKey) {
        throw new Error('Add EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY to your .env file');
      }
    
      return (
        <ClerkProvider
          publishableKey={publishableKey}
          tokenCache={tokenCache}
          __experimental_resourceCache={secureStore}
        >
          <ClerkLoaded>
            <Slot />
          </ClerkLoaded>
        </ClerkProvider>
      );
    }

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

  • Introduce __internal_copyInstanceKeysUrl as property in ClerkOptions. It is intented for internall usage from other Clerk SDKs and will be used in Keyless mode. (#4755) by @panteliselef

  • Add claimedAt proprty inside AuthConfig for the environment. It describes when a instance that was created from the Keyless mode was finally claimed. (#4752) by @panteliselef

  • Introduce a toJSON() function on resources. (#4604) by @anagstef

    This change also introduces two new internal methods on the Clerk resource, to be used by the expo package.

    • __internal_getCachedResources(): (Optional) This function is used to load cached Client and Environment resources if Clerk fails to load them from the Frontend API.
    • __internal_reloadInitialResources(): This funtion is used to reload the initial resources (Environment/Client) from the Frontend API.

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

Copy link

vercel bot commented Dec 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
clerk-js-sandbox ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2024 7:09pm

@github-actions github-actions bot force-pushed the changeset-release/main branch from 6223c80 to 2046906 Compare December 12, 2024 19:07
@panteliselef panteliselef reopened this Dec 12, 2024
@panteliselef panteliselef merged commit 5c5f1db into main Dec 12, 2024
31 checks passed
@panteliselef panteliselef deleted the changeset-release/main branch December 12, 2024 19:26
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.

2 participants