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.
main
is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exit
onmain
.Releases
@clerk/backend@1.0.0-alpha-v5.8
Major Changes
Remove the named
Clerk
import from@clerk/backend
and importcreateClerkClient
instead. The latter is a factory method that will create a Clerk client instance for you. This aligns usage across our SDKs and will enable us to better ship DX improvements in the future. (#2317) by @tmilewskiInside your code, search for occurrences like these:
You need to rename the import from
Clerk
tocreateClerkClient
and change its usage:Refactor the
authenticateRequest()
flow to use the new client handshake endpoint. This replaces the previous "interstitial"-based flow. This should improve performance and overall reliability of Clerk's server-side request authentication functionality. (#2300) by @BRKalowauthenticateRequest()
now accepts two arguments, aRequest
object to authenticate and options:Minor Changes
Introduce Protect for authorization. (#2170) by @panteliselef
Changes in public APIs:
experimental
tags and prefixessome
from thehas
utility and Protect. Protect now accepts acondition
prop where a function is expected with thehas
being exposed as the param.<SignedIn>
, if no authorization props are passed.has
will throw an error if neitherpermission
orrole
is passed.auth().protect()
for Nextjs App Router. Allow per page protection in app router. This utility will automatically throw a 404 error if user is not authorized or authenticated.not-found
component set by the developerPatch Changes
896cb6104
,75ea300bc
]:@clerk/chrome-extension@1.0.0-alpha-v5.10
Major Changes
Introduce
@clerk/clerk-react/errors
and@clerk/clerk-react/internal
subpath exports to expose some internal utilities. Eg (#2328) by @dimklDrop from the
@clerk/clerk-react
and all other clerk-react wrapper packages:__internal__setErrorThrowerOptions
internal utility (moved to /internal subpath)WithClerkProp
typeMultisessionAppSupport
component (moved to /internal subpath)EmailLinkErrorCode
enumDrop
StructureContext
and related errors to reduce to reduce code complexity since it seems that it was not being used.Drop
withUser
,WithUser
,withClerk
HOFs andWithClerk
,withSession
,WithSession
HOCs from the@clerk/clerk-react
to reduce the export surface since it's trivial to implement if needed.
Expand the ability for
@clerk/chrome-extension
WebSSO to sync with host applications which use URL-based session syncing. (#2277) by @tmilewskiHow to Update
WebSSO Host Permissions:
Local Development: You must have your explicit development domain added to your
manifest.json
file in order to use the WebSSO flow.Example:
Production: You must have your explicit Clerk Frontend API domain added to your
manifest.json
file in order to use the WebSSO flow.Example:
WebSSO Provider settings:
WebSSO Storage Cache Interface:
With the prop change from
tokenCache
tostorageCache
, the interface has been expanded to allow for more flexibility.The new interface is as follows:
Minor Changes
Introduce Protect for authorization. (#2170) by @panteliselef
Changes in public APIs:
experimental
tags and prefixessome
from thehas
utility and Protect. Protect now accepts acondition
prop where a function is expected with thehas
being exposed as the param.<SignedIn>
, if no authorization props are passed.has
will throw an error if neitherpermission
orrole
is passed.auth().protect()
for Nextjs App Router. Allow per page protection in app router. This utility will automatically throw a 404 error if user is not authorized or authenticated.not-found
component set by the developerPatch Changes
69ce3e185
,896cb6104
,8aea39cd6
,ab4eb56a5
,46040a2f3
,75ea300bc
,844847e0b
]:@clerk/clerk-js@5.0.0-alpha-v5.10
Major Changes
Drop
redirectToHome
redirect method in favour ofredirectToAfterSignUp
orredirectToAfterSignIn
. (#2251) by @octoperWhen the
<SignIn/>
and<SignUp/>
components are rendered while a user is already logged in, they will now redirect to the configuredafterSignIn
andafterSignUp
URLs, respectively. Previously, the redirect URL was set to the home URL configured in the dashboard.Minor Changes
Introduce Protect for authorization. (#2170) by @panteliselef
Changes in public APIs:
experimental
tags and prefixessome
from thehas
utility and Protect. Protect now accepts acondition
prop where a function is expected with thehas
being exposed as the param.<SignedIn>
, if no authorization props are passed.has
will throw an error if neitherpermission
orrole
is passed.auth().protect()
for Nextjs App Router. Allow per page protection in app router. This utility will automatically throw a 404 error if user is not authorized or authenticated.not-found
component set by the developerPatch Changes
Update
@zxcvbn-ts/core
from2.2.1
to3.0.4
. Update@zxcvbn-ts/language-common
from3.0.2
to3.0.4
. (#2326) by @LekoArtsAdd
useAssertWrappedByClerkProvider
to internal code. If you use hooks likeuseAuth
outside of the<ClerkProvider />
context an error will be thrown. For example: (#2299) by @tmilewskiUpdated dependencies [
896cb6104
,69ce3e185
,ab4eb56a5
,46040a2f3
,75ea300bc
,370b17b12
,844847e0b
]:@clerk/clerk-expo@1.0.0-alpha-v5.10
Major Changes
Introduce
@clerk/clerk-react/errors
and@clerk/clerk-react/internal
subpath exports to expose some internal utilities. Eg (#2328) by @dimklDrop from the
@clerk/clerk-react
and all other clerk-react wrapper packages:__internal__setErrorThrowerOptions
internal utility (moved to /internal subpath)WithClerkProp
typeMultisessionAppSupport
component (moved to /internal subpath)EmailLinkErrorCode
enumDrop
StructureContext
and related errors to reduce to reduce code complexity since it seems that it was not being used.Drop
withUser
,WithUser
,withClerk
HOFs andWithClerk
,withSession
,WithSession
HOCs from the@clerk/clerk-react
to reduce the export surface since it's trivial to implement if needed.
Patch Changes
69ce3e185
,896cb6104
,8aea39cd6
,ab4eb56a5
,46040a2f3
,75ea300bc
,844847e0b
]:@clerk/fastify@1.0.0-alpha-v5.10
Major Changes
(Note: This is only relevant if, in the unlikely case, you are using
Clerk
from@clerk/fastify
directly. If not, you can safely ignore this change.) (#2317) by @tmilewskiRemove the named
Clerk
import from@clerk/fastify
and importcreateClerkClient
instead. The latter is a factory method to create a Clerk client instance for you. This update aligns usage across our SDKs and will enable us to ship DX improvements better in the future.You need to rename the import from
Clerk
tocreateClerkClient
and change its usage:Patch Changes
896cb6104
,02976d494
,69ce3e185
,86d52fb5c
,ab4eb56a5
,46040a2f3
,75ea300bc
,844847e0b
]:gatsby-plugin-clerk@5.0.0-alpha-v5.10
Major Changes
Remove the named
Clerk
import fromgatsby-plugin-clerk
and importcreateClerkClient
instead. The latter is a factory method to create a Clerk client instance for you. This update aligns usage across our SDKs and will enable us to ship DX improvements better in the future. (#2317) by @tmilewskiInside your code, search for occurrences like these:
You need to rename the import from
Clerk
tocreateClerkClient
and change its usage:Introduce
@clerk/clerk-react/errors
and@clerk/clerk-react/internal
subpath exports to expose some internal utilities. Eg (#2328) by @dimklDrop from the
@clerk/clerk-react
and all other clerk-react wrapper packages:__internal__setErrorThrowerOptions
internal utility (moved to /internal subpath)WithClerkProp
typeMultisessionAppSupport
component (moved to /internal subpath)EmailLinkErrorCode
enumDrop
StructureContext
and related errors to reduce to reduce code complexity since it seems that it was not being used.Drop
withUser
,WithUser
,withClerk
HOFs andWithClerk
,withSession
,WithSession
HOCs from the@clerk/clerk-react
to reduce the export surface since it's trivial to implement if needed.
Patch Changes
02976d494
,02976d494
,8aea39cd6
,86d52fb5c
,ab4eb56a5
,46040a2f3
,75ea300bc
,844847e0b
]:@clerk/nextjs@5.0.0-alpha-v5.10
Major Changes
Introduce
@clerk/clerk-react/errors
and@clerk/clerk-react/internal
subpath exports to expose some internal utilities. Eg (#2328) by @dimklDrop from the
@clerk/clerk-react
and all other clerk-react wrapper packages:__internal__setErrorThrowerOptions
internal utility (moved to /internal subpath)WithClerkProp
typeMultisessionAppSupport
component (moved to /internal subpath)EmailLinkErrorCode
enumDrop
StructureContext
and related errors to reduce to reduce code complexity since it seems that it was not being used.Drop
withUser
,WithUser
,withClerk
HOFs andWithClerk
,withSession
,WithSession
HOCs from the@clerk/clerk-react
to reduce the export surface since it's trivial to implement if needed.
(Note: This is only relevant if, in the unlikely case, you are using
Clerk
from@clerk/nextjs
directly. If not, you can safely ignore this change.) (#2317) by @tmilewskiRemove the named
Clerk
import from@clerk/nextjs
and importcreateClerkClient
instead. The latter is a factory method to create a Clerk client instance for you. This update aligns usage across our SDKs and will enable us to ship DX improvements better in the future.You need to rename the import from
Clerk
tocreateClerkClient
and change its usage:Minor Changes
Introduce Protect for authorization. (#2170) by @panteliselef
Changes in public APIs:
experimental
tags and prefixessome
from thehas
utility and Protect. Protect now accepts acondition
prop where a function is expected with thehas
being exposed as the param.<SignedIn>
, if no authorization props are passed.has
will throw an error if neitherpermission
orrole
is passed.auth().protect()
for Nextjs App Router. Allow per page protection in app router. This utility will automatically throw a 404 error if user is not authorized or authenticated.not-found
component set by the developerPatch Changes
Update NextJS quickstart link in error message (#2355) by @dimkl
Accept
redirectUrl
as an option forauth().protect()
. (#2329) by @panteliselefFor example:
Updated dependencies [
896cb6104
,02976d494
,8aea39cd6
,86d52fb5c
,ab4eb56a5
,46040a2f3
,75ea300bc
,844847e0b
]:@clerk/clerk-react@5.0.0-alpha-v5.10
Major Changes
Introduce
@clerk/clerk-react/errors
and@clerk/clerk-react/internal
subpath exports to expose some internal utilities. Eg (#2328) by @dimklDrop from the
@clerk/clerk-react
and all other clerk-react wrapper packages:__internal__setErrorThrowerOptions
internal utility (moved to /internal subpath)WithClerkProp
typeMultisessionAppSupport
component (moved to /internal subpath)EmailLinkErrorCode
enumDrop
StructureContext
and related errors to reduce to reduce code complexity since it seems that it was not being used.Drop
withUser
,WithUser
,withClerk
HOFs andWithClerk
,withSession
,WithSession
HOCs from the@clerk/clerk-react
to reduce the export surface since it's trivial to implement if needed.
Drop
redirectToHome
redirect method in favour ofredirectToAfterSignUp
orredirectToAfterSignIn
. (#2251) by @octoperWhen the
<SignIn/>
and<SignUp/>
components are rendered while a user is already logged in, they will now redirect to the configuredafterSignIn
andafterSignUp
URLs, respectively. Previously, the redirect URL was set to the home URL configured in the dashboard.Align return types for redirectTo* methods in ClerkJS SDK-1037 by @tmilewski
Breaking Changes:
redirectToUserProfile
now returnsPromise<unknown>
instead ofvoid
redirectToOrganizationProfile
now returnsPromise<unknown>
instead ofvoid
redirectToCreateOrganization
now returnsPromise<unknown>
instead ofvoid
redirectToHome
now returnsPromise<unknown>
instead ofvoid
Minor Changes
Introduce Protect for authorization. (#2170) by @panteliselef
Changes in public APIs:
experimental
tags and prefixessome
from thehas
utility and Protect. Protect now accepts acondition
prop where a function is expected with thehas
being exposed as the param.<SignedIn>
, if no authorization props are passed.has
will throw an error if neitherpermission
orrole
is passed.auth().protect()
for Nextjs App Router. Allow per page protection in app router. This utility will automatically throw a 404 error if user is not authorized or authenticated.not-found
component set by the developerPatch Changes
Add
useAssertWrappedByClerkProvider
to internal code. If you use hooks likeuseAuth
outside of the<ClerkProvider />
context an error will be thrown. For example: (#2299) by @tmilewskiUpdated dependencies [
896cb6104
,69ce3e185
,ab4eb56a5
,46040a2f3
,75ea300bc
,844847e0b
]:@clerk/remix@4.0.0-alpha-v5.10
Major Changes
Introduce
@clerk/clerk-react/errors
and@clerk/clerk-react/internal
subpath exports to expose some internal utilities. Eg (#2328) by @dimklDrop from the
@clerk/clerk-react
and all other clerk-react wrapper packages:__internal__setErrorThrowerOptions
internal utility (moved to /internal subpath)WithClerkProp
typeMultisessionAppSupport
component (moved to /internal subpath)EmailLinkErrorCode
enumDrop
StructureContext
and related errors to reduce to reduce code complexity since it seems that it was not being used.Drop
withUser
,WithUser
,withClerk
HOFs andWithClerk
,withSession
,WithSession
HOCs from the@clerk/clerk-react
to reduce the export surface since it's trivial to implement if needed.
(Note: This is only relevant if, in the unlikely case, you are using
Clerk
from@clerk/remix
directly. If not, you can safely ignore this change.) (#2317) by @tmilewskiRemove the named
Clerk
import from@clerk/remix
and importcreateClerkClient
instead. The latter is a factory method to create a Clerk client instance for you. This update aligns usage across our SDKs and will enable us to ship DX improvements better in the future.You need to rename the import from
Clerk
tocreateClerkClient
and change its usage:Patch Changes
896cb6104
,02976d494
,8aea39cd6
,86d52fb5c
,ab4eb56a5
,46040a2f3
,75ea300bc
,844847e0b
]:@clerk/clerk-sdk-node@5.0.0-alpha-v5.8
Major Changes
(Note: This is only relevant if, in the unlikely case, you are using
Clerk
from@clerk/clerk-sdk-node
directly. If not, you can safely ignore this change.) (#2317) by @tmilewskiRemove the named
Clerk
import from@clerk/clerk-sdk-node
and importcreateClerkClient
instead. The latter is a factory method to create a Clerk client instance for you. This update aligns usage across our SDKs and will enable us to ship DX improvements better in the future.You need to rename the import from
Clerk
tocreateClerkClient
and change its usage:Patch Changes
896cb6104
,02976d494
,86d52fb5c
,46040a2f3
,75ea300bc
]:@clerk/types@4.0.0-alpha-v5.10
Major Changes
Align return types for redirectTo* methods in ClerkJS SDK-1037 by @tmilewski
Breaking Changes:
redirectToUserProfile
now returnsPromise<unknown>
instead ofvoid
redirectToOrganizationProfile
now returnsPromise<unknown>
instead ofvoid
redirectToCreateOrganization
now returnsPromise<unknown>
instead ofvoid
redirectToHome
now returnsPromise<unknown>
instead ofvoid
Minor Changes
Introduce Protect for authorization. (#2170) by @panteliselef
Changes in public APIs:
experimental
tags and prefixessome
from thehas
utility and Protect. Protect now accepts acondition
prop where a function is expected with thehas
being exposed as the param.<SignedIn>
, if no authorization props are passed.has
will throw an error if neitherpermission
orrole
is passed.auth().protect()
for Nextjs App Router. Allow per page protection in app router. This utility will automatically throw a 404 error if user is not authorized or authenticated.not-found
component set by the developerPatch Changes
Adjust
ZxcvbnResult
interface to use currentfeedback.warning
type as used in the upstream@zxcvbn-ts/core
library. (#2326) by @LekoArtsDrop
redirectToHome
redirect method in favour ofredirectToAfterSignUp
orredirectToAfterSignIn
. (#2251) by @octoperWhen the
<SignIn/>
and<SignUp/>
components are rendered while a user is already logged in, they will now redirect to the configuredafterSignIn
andafterSignUp
URLs, respectively. Previously, the redirect URL was set to the home URL configured in the dashboard.@clerk/localizations@2.0.0-alpha-v5.7
Patch Changes
@clerk/shared@2.0.0-alpha-v5.6
Patch Changes
Add
react-dom
topeerDependenciesMeta
key insidepackage.json
(#2322) by @LekoArtsAdd
useAssertWrappedByClerkProvider
to internal code. If you use hooks likeuseAuth
outside of the<ClerkProvider />
context an error will be thrown. For example: (#2299) by @tmilewski