Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Packages - V4 #2330

Merged
merged 1 commit into from
Dec 13, 2023
Merged

Conversation

clerk-cookie
Copy link
Collaborator

@clerk-cookie clerk-cookie commented Dec 12, 2023

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 release/v4, this PR will be updated.

Releases

@clerk/backend@0.36.0

Minor Changes

  • Introduce Protect for authorization. (#2309) by @panteliselef

    Changes in public APIs:

    • Rename Gate to Protect
    • Support for permission checks. (Previously only roles could be used)
    • Remove the experimental tags and prefixes
    • Drop some from the has utility and Protect. Protect now accepts a condition prop where a function is expected with the has being exposed as the param.
    • Protect can now be used without required props. In this case behaves as <SignedIn>, if no authorization props are passed.
    • has will throw an error if neither permission or role 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.
      • inside a page or layout file it will render the nearest not-found component set by the developer
      • inside a route handler it will return empty response body with a 404 status code

Patch Changes

@clerk/chrome-extension@0.6.0

Minor Changes

  • Introduce Protect for authorization. (#2309) by @panteliselef

    Changes in public APIs:

    • Rename Gate to Protect
    • Support for permission checks. (Previously only roles could be used)
    • Remove the experimental tags and prefixes
    • Drop some from the has utility and Protect. Protect now accepts a condition prop where a function is expected with the has being exposed as the param.
    • Protect can now be used without required props. In this case behaves as <SignedIn>, if no authorization props are passed.
    • has will throw an error if neither permission or role 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.
      • inside a page or layout file it will render the nearest not-found component set by the developer
      • inside a route handler it will return empty response body with a 404 status code

Patch Changes

  • Updated dependencies [b4868ab8f, 2dc93d4d8]:
    • @clerk/clerk-js@4.67.0
    • @clerk/clerk-react@4.30.0

@clerk/clerk-js@4.67.0

Minor Changes

  • Introduce Protect for authorization. (#2309) by @panteliselef

    Changes in public APIs:

    • Rename Gate to Protect
    • Support for permission checks. (Previously only roles could be used)
    • Remove the experimental tags and prefixes
    • Drop some from the has utility and Protect. Protect now accepts a condition prop where a function is expected with the has being exposed as the param.
    • Protect can now be used without required props. In this case behaves as <SignedIn>, if no authorization props are passed.
    • has will throw an error if neither permission or role 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.
      • inside a page or layout file it will render the nearest not-found component set by the developer
      • inside a route handler it will return empty response body with a 404 status code

Patch Changes

  • Update @zxcvbn-ts/core from 2.2.1 to 3.0.4. Update @zxcvbn-ts/language-common from 3.0.2 to 3.0.4. (#2332) by @clerk-cookie

  • Updated dependencies [b4868ab8f, 2dc93d4d8]:

    • @clerk/types@3.60.0
    • @clerk/localizations@1.26.13

@clerk/nextjs@4.28.0

Minor Changes

  • Introduce Protect for authorization. (#2309) by @panteliselef

    Changes in public APIs:

    • Rename Gate to Protect
    • Support for permission checks. (Previously only roles could be used)
    • Remove the experimental tags and prefixes
    • Drop some from the has utility and Protect. Protect now accepts a condition prop where a function is expected with the has being exposed as the param.
    • Protect can now be used without required props. In this case behaves as <SignedIn>, if no authorization props are passed.
    • has will throw an error if neither permission or role 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.
      • inside a page or layout file it will render the nearest not-found component set by the developer
      • inside a route handler it will return empty response body with a 404 status code

Patch Changes

  • Accept redirectUrl as an option for auth().protect(). (#2333) by @panteliselef

    For example:

    // Authorization
    auth().protect({ role: 'org:admin' }, { redirectUrl: '/any-page' });
    auth().protect({ permission: 'org:settings:manage' }, { redirectUrl: '/any-page' });
    
    // Authentication
    auth().protect({ redirectUrl: '/any-page' });
  • Updated dependencies [b4868ab8f, 2dc93d4d8]:

    • @clerk/types@3.60.0
    • @clerk/backend@0.36.0
    • @clerk/clerk-react@4.30.0
    • @clerk/clerk-sdk-node@4.13.2

@clerk/clerk-react@4.30.0

Minor Changes

  • Introduce Protect for authorization. (#2309) by @panteliselef

    Changes in public APIs:

    • Rename Gate to Protect
    • Support for permission checks. (Previously only roles could be used)
    • Remove the experimental tags and prefixes
    • Drop some from the has utility and Protect. Protect now accepts a condition prop where a function is expected with the has being exposed as the param.
    • Protect can now be used without required props. In this case behaves as <SignedIn>, if no authorization props are passed.
    • has will throw an error if neither permission or role 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.
      • inside a page or layout file it will render the nearest not-found component set by the developer
      • inside a route handler it will return empty response body with a 404 status code

Patch Changes

@clerk/types@3.60.0

Minor Changes

  • Introduce Protect for authorization. (#2309) by @panteliselef

    Changes in public APIs:

    • Rename Gate to Protect
    • Support for permission checks. (Previously only roles could be used)
    • Remove the experimental tags and prefixes
    • Drop some from the has utility and Protect. Protect now accepts a condition prop where a function is expected with the has being exposed as the param.
    • Protect can now be used without required props. In this case behaves as <SignedIn>, if no authorization props are passed.
    • has will throw an error if neither permission or role 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.
      • inside a page or layout file it will render the nearest not-found component set by the developer
      • inside a route handler it will return empty response body with a 404 status code

Patch Changes

  • Adjust ZxcvbnResult interface to use current feedback.warning type as used in the upstream @zxcvbn-ts/core library. (#2332) by @clerk-cookie

@clerk/clerk-expo@0.19.25

Patch Changes

  • Updated dependencies [b4868ab8f, 2dc93d4d8]:
    • @clerk/clerk-js@4.67.0
    • @clerk/clerk-react@4.30.0

@clerk/fastify@0.6.27

Patch Changes

gatsby-plugin-clerk@4.4.29

Patch Changes

  • Updated dependencies [b4868ab8f, 2dc93d4d8]:
    • @clerk/types@3.60.0
    • @clerk/backend@0.36.0
    • @clerk/clerk-react@4.30.0
    • @clerk/clerk-sdk-node@4.13.2

@clerk/localizations@1.26.13

Patch Changes

@clerk/remix@3.1.11

Patch Changes

  • Updated dependencies [b4868ab8f, 2dc93d4d8]:
    • @clerk/types@3.60.0
    • @clerk/backend@0.36.0
    • @clerk/clerk-react@4.30.0

@clerk/clerk-sdk-node@4.13.2

Patch Changes

@panteliselef panteliselef requested a review from a team December 13, 2023 16:02
@nikosdouvlis nikosdouvlis reopened this Dec 13, 2023
@nikosdouvlis nikosdouvlis merged commit ff2fb69 into release/v4 Dec 13, 2023
5 of 7 checks passed
@nikosdouvlis nikosdouvlis deleted the changeset-release/release/v4 branch December 13, 2023 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants