Commit 9aee912
committed
chore(deps): @casl/ability v7 parity in api + drop @casl/react
Follow-up to #104, which bumped @casl/ability to 7.0.0 in ui only.
- api: @casl/ability 6.8.1 -> 7.0.0 (keeps the shared ACL model in parity; api
was left on v6 by #104).
- ui: drop @casl/react. v7 removed createContextualCan, the only API the UI used
from it, and #104 left @casl/react@6 paired with @casl/ability@7 (peer
mismatch). Reimplement the small <Can> directly over the existing typed
AbilityContext instead of pulling v7's AbilityProvider/useAbility (which would
replace the template's deliberate AbilityContext + emptyAbility design and its
tests). That makes @casl/react unused, so it's removed.
Validated: bun run check (api, ui), ACL suites (api 50, ui 13), ui build; bun
install --frozen-lockfile clean in both apps.1 parent 34fff4a commit 9aee912
5 files changed
Lines changed: 44 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | 62 | | |
64 | 63 | | |
65 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
4 | 17 | | |
5 | 18 | | |
6 | 19 | | |
7 | | - | |
8 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
9 | 26 | | |
10 | 27 | | |
11 | 28 | | |
12 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
0 commit comments