Minor Changes
-
Introduce
protect-fallbackslot to avoid naming conflicts with Astro's server islandsfallbackslot. (#5196) by @wobsorianoWhen using Clerk's
<Protect>component withserver:defer, you can now use both slots:fallback: Default loading contentprotect-fallback: Shows when a user doesn't have theroleorpermissionto 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
pendingsession as a signed-in state (#5136) by @LauraBeatris
Patch Changes
-
The
exportsmap insidepackage.jsonhas been slightly adjusted to allow forrequire(esm)to work correctly. The"import"conditions have been changed to"default". (#5188) by @LekoArtsYou shouldn't see any change in behavior/functionality on your end.
-
Updated dependencies [
28179323d9891bd13625e32c5682a3276e73cdae,7ae77b74326e378bf161e29886ee82e1556d9840,c5c246ce91c01db9f1eaccbd354f646bcd24ec0a,bcbe5f6382ebcc70ef4fddb950d052bf6b7d693a,382c30240f563e58bc4d4832557c6825da40ce7f]:- @clerk/types@4.47.0
- @clerk/shared@3.0.0
- @clerk/backend@1.24.3