You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
- import { deprecated, OrganizationProvider } from "@clerk/shared"+ import { deprecated } from "@clerk/shared/deprecated"+ import { OrganizationProvider } from "@clerk/shared/react"
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:
- import { createCookieHandler, globs } from "@clerk/shared"+ import { createCookieHandler } from "@clerk/shared/cookie"+ import { globs } from "@clerk/shared/globs"
Everything related to React. Below is a small example and the full list of exports:
- import { useSafeLayoutEffect, ClerkInstanceContext } from "@clerk/shared"+ import { useSafeLayoutEffect, ClerkInstanceContext } from "@clerk/shared/react"
Full list of exports moved to @clerk/shared/react:
Improve internal test coverage and fix small bug inside callWithRetry (#1925) 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 @BRKalow
@clerk/clerk-js@4.63.0
Minor Changes
Introduce customization in UserProfile and OrganizationProfile (#1822) by @anagstef
The <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 as Account and Security, can be reordered.
Custom pages and links should be provided as children using the <UserButton.UserProfilePage> and <UserButton.UserProfileLink> components when using the UserButton 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 as Members and Settings, can be reordered.
Custom pages and links should be provided as children using the <OrganizationSwitcher.OrganizationProfilePage> and <OrganizationSwitcher.OrganizationProfileLink> components when using the OrganizationSwitcher component.
Introduce customization in UserProfile and OrganizationProfile (#1822) by @anagstef
The <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 as Account and Security, can be reordered.
Custom pages and links should be provided as children using the <UserButton.UserProfilePage> and <UserButton.UserProfileLink> components when using the UserButton 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 as Members and Settings, can be reordered.
Custom pages and links should be provided as children using the <OrganizationSwitcher.OrganizationProfilePage> and <OrganizationSwitcher.OrganizationProfileLink> components when using the OrganizationSwitcher component.
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 @BRKalow
Consider Clerk.setActive as stable. (#1917) by @dimkl
Introduce customization in UserProfile and OrganizationProfile (#1822) by @anagstef
The <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 as Account and Security, can be reordered.
Custom pages and links should be provided as children using the <UserButton.UserProfilePage> and <UserButton.UserProfileLink> components when using the UserButton 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 as Members and Settings, can be reordered.
Custom pages and links should be provided as children using the <OrganizationSwitcher.OrganizationProfilePage> and <OrganizationSwitcher.OrganizationProfileLink> components when using the OrganizationSwitcher component.
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 @BRKalow
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 @BRKalow
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 @BRKalow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/sharedimport 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/shareddirectly (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/sharedand@clerk/shared/<name>subpaths.Breaking Changes
@clerk/sharedwas and still is a dual CJS/ESM package. The ESM files provided by@clerk/sharednow use.mjsfile 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/sharedimport 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/sharedto 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
UserProfileandOrganizationProfile(#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 asAccountandSecurity, 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 theUserButtoncomponent.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 asMembersandSettings, 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 theOrganizationSwitchercomponent.Patch Changes
Publish packages with npm provenance enabled (#1891) by @LekoArts
Keep
CreateOrganizationFormdisabled in case of an uploaded avatar and organization name is empty. (#1910) by @nikospapcomDrop
experimental_force_oauth_first&experimental__forceOauthFirstfromDisplayConfig(#1918) by @dimklConsider
Clerk.setActiveas stable. (#1917) by @dimklUpdated dependencies [
3bf64107e,734dc52af,52f8553d2,92727eec3,b09b66eec,51861addf,aa4cd7615]:@clerk/clerk-react@4.27.0
Minor Changes
Introduce customization in
UserProfileandOrganizationProfile(#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 asAccountandSecurity, 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 theUserButtoncomponent.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 asMembersandSettings, 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 theOrganizationSwitchercomponent.Patch Changes
Publish packages with npm provenance enabled (#1891) by @LekoArts
Update imports of
@clerk/sharedto 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.setActiveas 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
UserProfileandOrganizationProfile(#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 asAccountandSecurity, 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 theUserButtoncomponent.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 asMembersandSettings, 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 theOrganizationSwitchercomponent.Patch Changes
Publish packages with npm provenance enabled (#1891) by @LekoArts
Drop
experimental_force_oauth_first&experimental__forceOauthFirstfromDisplayConfig(#1918) by @dimkl@clerk/backend@0.31.3
Patch Changes
Publish packages with npm provenance enabled (#1891) by @LekoArts
Update imports of
@clerk/sharedto 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
dangerSectiontranslations to thetrTrtranslation 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
publicRoutesprop 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/sharedto 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