build(deps): bump @casl/vue from 2.2.6 to 3.0.0#4195
Closed
dependabot[bot] wants to merge 1 commit into
Closed
Conversation
Bumps [@casl/vue](https://github.com/stalniy/casl/tree/HEAD/packages/casl-vue) from 2.2.6 to 3.0.0. - [Release notes](https://github.com/stalniy/casl/releases) - [Changelog](https://github.com/stalniy/casl/blob/master/packages/casl-vue/CHANGELOG.md) - [Commits](https://github.com/stalniy/casl/commits/@casl/vue@3.0.0/packages/casl-vue) --- updated-dependencies: - dependency-name: "@casl/vue" dependency-version: 3.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
4 tasks
Collaborator
Contributor
Author
|
OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting If you change your mind, just re-open this PR and I'll resolve any conflicts on it. |
PierreBrisorgueil
added a commit
that referenced
this pull request
May 22, 2026
* build(deps): migrate @casl/ability v7 + @casl/vue v3 Bump both together — @casl/vue@2 rejects @casl/ability@^7 as a peer (build breaks), @casl/vue@3 requires it. v7 freezes the ability's internal rule structures, so wrapping it in Vue's reactive() throws a Proxy get-invariant TypeError on the first .can() call. Wrap with a local toReactiveAbility() helper that tracks the `updated` event via a ref read in possibleRulesFor, keeping component computeds reactive. Mirrors @casl/vue's internal reactiveAbility, which v3 declares in its types but does not export at runtime. Supersedes dependabot #4194, #4195. See MIGRATIONS.md for downstream notes. * fix(ability): forward all possibleRulesFor args + clarify migration note Review (Copilot): the reactive wrapper overrode possibleRulesFor but only forwarded (action, subject), dropping CASL's optional `field` arg — silently breaking field-level permission checks. Forward all args via (...args). Also corrects the MIGRATIONS wording (v7 renames PureAbility→Ability, doesn't remove it) and drops the stale `reactiveAbility` reference (not exported at runtime).
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Bumps @casl/vue from 2.2.6 to 3.0.0.
Release notes
Sourced from @casl/vue's releases.
Changelog
Sourced from @casl/vue's changelog.
Commits
a4a4a1achore: release master (#1199)b51b1b8chore: allow next as publish branchd49daa6chore: specify dist tag in release script22b00fffix(deps): upgrades @ucast/* to latest version (#1218)cabbdd8feat: exposes rule.reason in <Can> computed slot and updates supported versio...b63e471chore: migrates to tsdown for package builds (#1204)Attestation changes
This version has no provenance attestation, while the previous version (2.2.6) was attested. Review the package versions before updating.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)