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 #5193

Merged
merged 1 commit into from
Feb 26, 2025
Merged

ci(repo): Version packages #5193

merged 1 commit into from
Feb 26, 2025

Conversation

clerk-cookie
Copy link
Collaborator

@clerk-cookie clerk-cookie commented Feb 18, 2025

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]

Major Changes

  • This new version introduces the following breaking changes: (#5144) by @nikosdouvlis

    • Introduced a new retry utility function to replace the deprecated callWithRetry.
    • Removed the callWithRetry function and its associated tests.
    • Renamed runWithExponentialBackOff to retry for consistency.

    Migration steps:

    • Replace any usage of callWithRetry with the new retry function.
    • Update import statements from:
      import { callWithRetry } from '@clerk/shared/callWithRetry';
      to:
      import { retry } from '@clerk/shared/retry';
    • Replace any usage of runWithExponentialBackOff with retry.
    • Update import statements from:
      import { runWithExponentialBackOff } from '@clerk/shared/utils';
      to:
      import { retry } from '@clerk/shared/retry';

Minor Changes

Patch Changes

@clerk/[email protected]

Minor Changes

  • Introduce protect-fallback slot to avoid naming conflicts with Astro's server islands fallback slot. (#5196) by @wobsoriano

    When using Clerk's <Protect> component with server:defer, you can now use both slots:

    • fallback: Default loading content
    • protect-fallback: Shows when a user doesn't have the role or permission to access the protected content

    Regular usage without server islands:

    <Protect role="admin">
      <p slot="fallback">Not an admin</p>
      <p>You're an admin</p>
    </Protect>

    Example with server islands:

    <Protect server:defer role="admin">
      <p slot="fallback">Loading...</p>
      <p slot="protect-fallback">Not an admin</p>
      <p>You're an admin</p>
    </Protect>
  • Surface new pending session as a signed-in state (#5136) by @LauraBeatris

Patch Changes

@clerk/[email protected]

Minor Changes

  • Introduce the appearance.captcha property for the CAPTCHA widget (#5184) by @anagstef

  • Track usage of modal UI Components as part of telemetry. (#5185) by @panteliselef

    • Initialize new pending session status as an signed-in state (#5136) by @LauraBeatris

    • Deprecate Clerk.client.activeSessions in favor of Clerk.client.signedInSessions

    • Introduce Clerk.isSignedIn property as an explicit signed-in state check, instead of !!Clerk.session or !!Clerk.user:

    - if (Clerk.user) {
    + if (Clerk.isSignedIn) {
      // Mount user button component
      document.getElementById('signed-in').innerHTML = `
        <div id="user-button"></div>
      `
    
      const userbuttonDiv = document.getElementById('user-button')
    
      clerk.mountUserButton(userbuttonDiv)
    }

Patch Changes

@clerk/[email protected]

Minor Changes

Patch Changes

@clerk/[email protected]

Minor Changes

Patch Changes

@clerk/[email protected]

Minor Changes

  • Introduce updateClerkOptions() utility function to update Clerk options on the fly. (#5235) by @wobsoriano

    Usage:

    <script setup>
    import { updateClerkOptions } from '@clerk/vue';
    import { dark } from '@clerk/themes';
    import { frFR } from '@clerk/localizations';
    
    function enableDarkTheme() {
      updateClerkOptions({
        appearance: {
          baseTheme: dark,
        },
      });
    }
    
    function changeToFrench() {
      updateClerkOptions({
        localization: frFR,
      });
    }
    </script>
    
    <template>
      <button @click="enableDarkTheme">Enable Dark Theme</button>
      <button @click="changeToFrench">Change to French</button>
    </template>

Patch Changes

@clerk/[email protected]

Minor Changes

Patch Changes

@clerk/[email protected]

Minor Changes

Patch Changes

@clerk/[email protected]

Minor Changes

  • Introduce the appearance.captcha property for the CAPTCHA widget (#5184) by @anagstef

  • Surface new pending session as a signed-in state (#5136) by @LauraBeatris

Patch Changes

@clerk/[email protected]

Minor Changes

  • Introduce updateClerkOptions() utility function to update Clerk options on the fly. (#5235) by @wobsoriano

    Usage:

    <script setup>
    import { updateClerkOptions } from '@clerk/vue';
    import { dark } from '@clerk/themes';
    import { frFR } from '@clerk/localizations';
    
    function enableDarkTheme() {
      updateClerkOptions({
        appearance: {
          baseTheme: dark,
        },
      });
    }
    
    function changeToFrench() {
      updateClerkOptions({
        localization: frFR,
      });
    }
    </script>
    
    <template>
      <button @click="enableDarkTheme">Enable Dark Theme</button>
      <button @click="changeToFrench">Change to French</button>
    </template>
  • Surface new pending session as a signed-in state (#5136) by @LauraBeatris

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

Copy link

vercel bot commented Feb 18, 2025

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 Feb 26, 2025 8:07pm

@github-actions github-actions bot force-pushed the changeset-release/main branch from 9b3c530 to c2ab3c6 Compare February 26, 2025 20:06
@brkalow brkalow closed this Feb 26, 2025
@brkalow brkalow reopened this Feb 26, 2025
@brkalow brkalow merged commit bb4b762 into main Feb 26, 2025
30 of 31 checks passed
@brkalow brkalow deleted the changeset-release/main branch February 26, 2025 21:28
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.

3 participants