Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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/shared@1.0.0
Major Changes
The package was reworked to allow for better isomorphic use cases and ESM support, resulting in some breaking changes. It now allows for subpath exports and restricts some imports to specific subpaths. (#1898) by @LekoArts
Instead of importing from the root
@clerk/shared
import you can now use subpaths for most things:By using subpaths you can tell bundlers to only bundle specific parts, potentially helping with tree-shaking. It also mitigates issues where e.g. modules only relevant for React where picked up in Node.js-only environments.
If you're not using
@clerk/shared
directly (only by proxy through e.g.@clerk/clerk-react
) you don't need to do anything. If you are relying on@clerk/shared
, please read through the breaking changes below and change your code accordingly. You can rely on your IDE to give you hints on which exports are available at@clerk/shared
and@clerk/shared/<name>
subpaths.Breaking Changes
@clerk/shared
was and still is a dual CJS/ESM package. The ESM files provided by@clerk/shared
now use.mjs
file extensions and also define them in their import paths, following the ESM spec. Your bundler should handle this for you.Some imports where moved from the root
@clerk/shared
import to isolated subpaths.Helper utils for cookies and globs:
Everything related to React. Below is a small example and the full list of exports:
Full list of exports moved to
@clerk/shared/react
:If you run into an issues that might be a bug, please open a bug report with a minimal reproduction.
Patch Changes
Publish packages with npm provenance enabled (#1891) by @LekoArts
Improve internal test coverage and fix small bug inside
callWithRetry
(#1925) by @LekoArtsUpdate imports of
@clerk/shared
to granular entrypoints. This addresses warnings during a Next.js build that are the result of unsupported APIs being included in the module graph of builds for the edge runtime. (#1924) by @BRKalow@clerk/clerk-js@4.63.0
Minor Changes
Introduce customization in
UserProfile
andOrganizationProfile
(#1822) by @anagstefThe
<UserProfile />
component now allows the addition of custom pages and external links to the navigation sidebar. Custom pages can be created using the<UserProfile.Page>
component, and external links can be added using the<UserProfile.Link>
component. The default routes, such asAccount
andSecurity
, can be reordered.Example React API usage:
Custom pages and links should be provided as children using the
<UserButton.UserProfilePage>
and<UserButton.UserProfileLink>
components when using theUserButton
component.The
<OrganizationProfile />
component now supports the addition of custom pages and external links to the navigation sidebar. Custom pages can be created using the<OrganizationProfile.Page>
component, and external links can be added using the<OrganizationProfile.Link>
component. The default routes, such asMembers
andSettings
, can be reordered.Example React API usage:
Custom pages and links should be provided as children using the
<OrganizationSwitcher.OrganizationProfilePage>
and<OrganizationSwitcher.OrganizationProfileLink>
components when using theOrganizationSwitcher
component.Patch Changes
Publish packages with npm provenance enabled (#1891) by @LekoArts
Keep
CreateOrganizationForm
disabled in case of an uploaded avatar and organization name is empty. (#1910) by @nikospapcomDrop
experimental_force_oauth_first
&experimental__forceOauthFirst
fromDisplayConfig
(#1918) by @dimklConsider
Clerk.setActive
as stable. (#1917) by @dimklUpdated dependencies [
3bf64107e
,734dc52af
,52f8553d2
,92727eec3
,b09b66eec
,51861addf
,aa4cd7615
]:@clerk/clerk-react@4.27.0
Minor Changes
Introduce customization in
UserProfile
andOrganizationProfile
(#1822) by @anagstefThe
<UserProfile />
component now allows the addition of custom pages and external links to the navigation sidebar. Custom pages can be created using the<UserProfile.Page>
component, and external links can be added using the<UserProfile.Link>
component. The default routes, such asAccount
andSecurity
, can be reordered.Example React API usage:
Custom pages and links should be provided as children using the
<UserButton.UserProfilePage>
and<UserButton.UserProfileLink>
components when using theUserButton
component.The
<OrganizationProfile />
component now supports the addition of custom pages and external links to the navigation sidebar. Custom pages can be created using the<OrganizationProfile.Page>
component, and external links can be added using the<OrganizationProfile.Link>
component. The default routes, such asMembers
andSettings
, can be reordered.Example React API usage:
Custom pages and links should be provided as children using the
<OrganizationSwitcher.OrganizationProfilePage>
and<OrganizationSwitcher.OrganizationProfileLink>
components when using theOrganizationSwitcher
component.Patch Changes
Publish packages with npm provenance enabled (#1891) by @LekoArts
Update imports of
@clerk/shared
to granular entrypoints. This addresses warnings during a Next.js build that are the result of unsupported APIs being included in the module graph of builds for the edge runtime. (#1924) by @BRKalowConsider
Clerk.setActive
as stable. (#1917) by @dimklUpdated dependencies [
3bf64107e
,52f8553d2
,92727eec3
,b09b66eec
,51861addf
,aa4cd7615
]:@clerk/remix@3.1.0
Minor Changes
defer()
method in the loader passed torootAuthLoader()
. (#1926) by @BRKalowPatch Changes
Publish packages with npm provenance enabled (#1891) by @LekoArts
Updated dependencies [
3bf64107e
,52f8553d2
,92727eec3
,b09b66eec
,51861addf
,37d8856ba
,aa4cd7615
]:@clerk/types@3.57.0
Minor Changes
Introduce customization in
UserProfile
andOrganizationProfile
(#1822) by @anagstefThe
<UserProfile />
component now allows the addition of custom pages and external links to the navigation sidebar. Custom pages can be created using the<UserProfile.Page>
component, and external links can be added using the<UserProfile.Link>
component. The default routes, such asAccount
andSecurity
, can be reordered.Example React API usage:
Custom pages and links should be provided as children using the
<UserButton.UserProfilePage>
and<UserButton.UserProfileLink>
components when using theUserButton
component.The
<OrganizationProfile />
component now supports the addition of custom pages and external links to the navigation sidebar. Custom pages can be created using the<OrganizationProfile.Page>
component, and external links can be added using the<OrganizationProfile.Link>
component. The default routes, such asMembers
andSettings
, can be reordered.Example React API usage:
Custom pages and links should be provided as children using the
<OrganizationSwitcher.OrganizationProfilePage>
and<OrganizationSwitcher.OrganizationProfileLink>
components when using theOrganizationSwitcher
component.Patch Changes
Publish packages with npm provenance enabled (#1891) by @LekoArts
Drop
experimental_force_oauth_first
&experimental__forceOauthFirst
fromDisplayConfig
(#1918) by @dimkl@clerk/backend@0.31.3
Patch Changes
Publish packages with npm provenance enabled (#1891) by @LekoArts
Update imports of
@clerk/shared
to granular entrypoints. This addresses warnings during a Next.js build that are the result of unsupported APIs being included in the module graph of builds for the edge runtime. (#1924) by @BRKalowUpdated dependencies [
3bf64107e
,52f8553d2
,92727eec3
,b09b66eec
,51861addf
,aa4cd7615
]:@clerk/chrome-extension@0.4.10
Patch Changes
Publish packages with npm provenance enabled (#1891) by @LekoArts
Updated dependencies [
3bf64107e
,89932e1b3
,92727eec3
,b09b66eec
,51861addf
,37d8856ba
]:@clerk/clerk-expo@0.19.12
Patch Changes
Publish packages with npm provenance enabled (#1891) by @LekoArts
Updated dependencies [
3bf64107e
,52f8553d2
,89932e1b3
,92727eec3
,b09b66eec
,51861addf
,37d8856ba
,aa4cd7615
]:@clerk/fastify@0.6.17
Patch Changes
Publish packages with npm provenance enabled (#1891) by @LekoArts
Updated dependencies [
3bf64107e
,52f8553d2
,92727eec3
,b09b66eec
,51861addf
,aa4cd7615
]:gatsby-plugin-clerk@4.4.18
Patch Changes
Publish packages with npm provenance enabled (#1891) by @LekoArts
Updated dependencies [
3bf64107e
,92727eec3
,b09b66eec
,51861addf
,37d8856ba
]:@clerk/localizations@1.26.7
Patch Changes
Publish packages with npm provenance enabled (#1891) by @LekoArts
Add
dangerSection
translations to thetrTr
translation file (#1920) by @EdizKeskinUpdated dependencies [
3bf64107e
,b09b66eec
,51861addf
]:@clerk/nextjs@4.25.7
Patch Changes
Fix an issue where only static routes would be allowed by
publicRoutes
prop fromauthMiddleware
. (#1928) by @desiprisgPublish packages with npm provenance enabled (#1891) by @LekoArts
Update
<ClerkProvider />
to work in client components within the app router. This allows rendering of the provider in client components, previously the pages router provider was being imported and throwing an error. (#1840) by @BRKalowUpdate imports of
@clerk/shared
to granular entrypoints. This addresses warnings during a Next.js build that are the result of unsupported APIs being included in the module graph of builds for the edge runtime. (#1924) by @BRKalowUpdated dependencies [
3bf64107e
,52f8553d2
,92727eec3
,b09b66eec
,51861addf
,37d8856ba
,aa4cd7615
]:@clerk/clerk-sdk-node@4.12.16
Patch Changes
Publish packages with npm provenance enabled (#1891) by @LekoArts
Updated dependencies [
3bf64107e
,52f8553d2
,92727eec3
,b09b66eec
,51861addf
,aa4cd7615
]:@clerk/themes@1.7.9
Patch Changes