Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): update dependency @clerk/types to v3.60.0 (#9644)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@clerk/types](https://clerk.com/) ([source](https://github.com/clerk/javascript/tree/HEAD/packages/types)) | [`3.58.0` -> `3.60.0`](https://renovatebot.com/diffs/npm/@clerk%2ftypes/3.58.0/3.60.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@clerk%2ftypes/3.60.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@clerk%2ftypes/3.60.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@clerk%2ftypes/3.58.0/3.60.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@clerk%2ftypes/3.58.0/3.60.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- <details> <summary>clerk/javascript (@​clerk/types)</summary> [`v3.60.0`](https://github.com/clerk/javascript/releases/tag/%40clerk/types%403.60.0) [Compare Source](https://github.com/clerk/javascript/compare/@clerk/types@3.59.0...@clerk/types@3.60.0) - Introduce Protect for authorization. ([#​2309](https://github.com/clerk/javascript/pull/2309)) by [@​panteliselef](https://github.com/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 - Adjust `ZxcvbnResult` interface to use current `feedback.warning` type as used in the upstream `@zxcvbn-ts/core` library. ([#​2332](https://github.com/clerk/javascript/pull/2332)) by [@​clerk-cookie](https://github.com/clerk-cookie) [`v3.59.0`](https://github.com/clerk/javascript/releases/tag/%40clerk/types%403.59.0) [Compare Source](https://github.com/clerk/javascript/compare/@clerk/types@3.58.1...@clerk/types@3.59.0) - Deprecate `Clerk.isReady()` in favor of `Clerk.loaded` ([#​2293](https://github.com/clerk/javascript/pull/2293)) by [@​dimkl](https://github.com/dimkl) [`v3.58.1`](https://github.com/clerk/javascript/releases/tag/%40clerk/types%403.58.1) [Compare Source](https://github.com/clerk/javascript/compare/@clerk/types@3.58.0...@clerk/types@3.58.1) - Add `permissions` to `meta` field of fapi error. ([#​2285](https://github.com/clerk/javascript/pull/2285)) by [@​clerk-cookie](https://github.com/clerk-cookie) - Drop `org:sys_domains:delete` and `org:sys_memberships:delete` as those have now been merged with the respective `manage` ones. ([#​2270](https://github.com/clerk/javascript/pull/2270)) by [@​panteliselef](https://github.com/panteliselef) </details> --- 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/redwoodjs/redwood). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy44Ny4yIiwidXBkYXRlZEluVmVyIjoiMzcuODcuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com>
- Loading branch information