unstale

npm / @casl/react

@casl/react

What changed in @casl/react 6 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.

4 breaking1 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.8 on npm

@casl/react 73 changes

Breaking changes 3

  • Can no longer accepts an ability prop and instead relies on useAbility.

    7.0.0release notes

  • createContextualCan is replaced by an unnamed alternative in the release notes.

    7.0.0release notes

  • useAbility no longer accepts a context parameter.

    7.0.0release notes

@casl/react 62 changes

Breaking changes 1

  • Support for React 17.x is dropped because @casl/react uses the useSyncExternalStore hook.

    6.0.0release notes

Fixes and other changes 1

  • useAbility replaces useState and useEffect with useSyncExternalStore.

    6.0.0release notes