Skip to content

Releases: clerk/javascript

@clerk/[email protected]

26 Feb 21:31
bb4b762
Compare
Choose a tag to compare

Patch Changes

@clerk/[email protected]

26 Feb 21:31
bb4b762
Compare
Choose a tag to compare

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]

26 Feb 21:32
bb4b762
Compare
Choose a tag to compare

@clerk/[email protected]

26 Feb 21:32
bb4b762
Compare
Choose a tag to compare

@clerk/[email protected]

26 Feb 21:31
bb4b762
Compare
Choose a tag to compare

@clerk/[email protected]

26 Feb 21:31
bb4b762
Compare
Choose a tag to compare

@clerk/[email protected]

26 Feb 21:31
bb4b762
Compare
Choose a tag to compare

@clerk/[email protected]

26 Feb 21:31
bb4b762
Compare
Choose a tag to compare

@clerk/[email protected]

26 Feb 21:31
bb4b762
Compare
Choose a tag to compare

Minor Changes

Patch Changes

@clerk/[email protected]

26 Feb 21:31
bb4b762
Compare
Choose a tag to compare

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