Repository navigation
Upgrade ACL generation and runtime to CASL 7 - #106
Merged
Merged
Conversation
izakgl-hubsync
approved these changes
Nov 3, 2026
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.
CASL 7 consumers cannot compile the generated
AppAbilityor import the ACL runtime because they reference removedPureAbilityand CASL React context APIs. Upgrade@casl/abilityto 7.1.1 and@casl/reactto 7.1.0, migrate both JavaScript and native ACL templates toAbility, and adapt the runtime toAbilityProviderwhile preservingAbilityContext.Consumer, theCantuple API, and its(isAllowed, ability)callback.This raises the optional CASL peer requirements to version 7. Consumers should regenerate their client and migrate handwritten
PureAbilitytypes. The README documents the new peer ranges and CASL 7's empty-condition behavior.Validation on macOS with Bun 1.4.4:
bun run test:ts: 1,331 passed, 13 skipped.bun run test:native: 1,331 passed, 13 skipped.Canrendering/callbacks.Local native validation used the existing
OPENAPI_NATIVE_FAST_BUILD=1development build. The release build compiled successfully, but its binary failed to load on this macOS host withmis-aligned LINKEDIT string pool; release-binary runtime validation remains for CI. No build configuration changes are included.