npm svelte-clerk 1.2.0
v1.2.0

3 hours ago

Minor Changes

  • 4aff994: <Show> now renders on the server and during hydration when initialState is provided (via buildClerkProps), instead of rendering nothing until clerk-js has loaded in the browser. This matches @clerk/react and @clerk/vue and removes the blank-content flash on full page loads.
    • <Show> now accepts a treatPendingAsSignedOut prop (default true), matching the other Clerk SDKs. Sessions with a pending status are now treated as signed out unless the prop is set to false. In SvelteKit, locals.auth() applies the same default on the server, so to opt out during SSR as well, build initialState with buildClerkProps(locals.auth({ treatPendingAsSignedOut: false })).
    • Because <Show> can now render server-side, when predicate functions, children, and fallback snippets must be safe to run during SSR.

Patch Changes

  • e577043: Bump @clerk/backend from 3.16.3 to 3.17.2
  • e577043: Bump @clerk/shared from 4.28.1 to 4.31.1

Don't miss a new svelte-clerk release

NewReleases is sending notifications on new releases.