Skip to content

Commit

Permalink
chore(deps): update dependency @clerk/types to v3.60.0 (#9644)
Browse files Browse the repository at this point in the history
[![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 (@&#8203;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.
([#&#8203;2309](https://github.com/clerk/javascript/pull/2309)) by
[@&#8203;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.
([#&#8203;2332](https://github.com/clerk/javascript/pull/2332)) by
[@&#8203;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`
([#&#8203;2293](https://github.com/clerk/javascript/pull/2293)) by
[@&#8203;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.
([#&#8203;2285](https://github.com/clerk/javascript/pull/2285)) by
[@&#8203;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.
([#&#8203;2270](https://github.com/clerk/javascript/pull/2270)) by
[@&#8203;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
2 people authored and Tobbe committed Dec 21, 2023
1 parent 6728746 commit 18ae88a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/auth-providers/clerk/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@babel/cli": "7.23.4",
"@babel/core": "^7.22.20",
"@clerk/clerk-react": "4.28.3",
"@clerk/types": "3.58.0",
"@clerk/types": "3.60.0",
"@types/react": "18.2.37",
"jest": "29.7.0",
"react": "18.2.0",
Expand Down
20 changes: 10 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2173,15 +2173,6 @@ __metadata:
languageName: node
linkType: hard

"@clerk/types@npm:3.58.0":
version: 3.58.0
resolution: "@clerk/types@npm:3.58.0"
dependencies:
csstype: 3.1.1
checksum: 28f3839d7749aa648334791dd6c1b2b88db7f06bed53b810c7678bf12fce1adad249db89c8bf5b67dbe54c04a3ec10823dab38a5cc6990e39a7f57a07c14e0a7
languageName: node
linkType: hard

"@clerk/types@npm:3.58.1":
version: 3.58.1
resolution: "@clerk/types@npm:3.58.1"
Expand All @@ -2200,6 +2191,15 @@ __metadata:
languageName: node
linkType: hard

"@clerk/types@npm:3.60.0":
version: 3.60.0
resolution: "@clerk/types@npm:3.60.0"
dependencies:
csstype: 3.1.1
checksum: 46a850320d03d2bc1b91e309ccf90e9f24abae58c51c75b45396aee16d68921661abd70fe9b2eee830404a05f178adfb0ccaddff6262c495a283965e6d0aad28
languageName: node
linkType: hard

"@colors/colors@npm:1.5.0":
version: 1.5.0
resolution: "@colors/colors@npm:1.5.0"
Expand Down Expand Up @@ -8038,7 +8038,7 @@ __metadata:
"@babel/core": ^7.22.20
"@babel/runtime-corejs3": 7.23.5
"@clerk/clerk-react": 4.28.3
"@clerk/types": 3.58.0
"@clerk/types": 3.60.0
"@redwoodjs/auth": 6.5.1
"@types/react": 18.2.37
core-js: 3.34.0
Expand Down

0 comments on commit 18ae88a

Please sign in to comment.