v2.0.0
Pre-release
Pre-release
2.0.0 (2023-08-17)
Features
- add support for xstate v5 (0637a6f)
- no-async-guard: support the "guard" prop with xstate v5 (2b0346d)
- no-auto-forward: report error if autoForward is found with XState v5 (ffa717e)
- no-imperative-actions: add support for xstate v5 action creators (409fd67)
- no-infinite-loop: add detection of incorrect eventless transitions in xstate v5 (360b609)
- no-inline-implementation: allow built-in higher level guards with xstate v5 (bee4ad5)
- no-inline-implementation: detect inline implementation inside spawn calls with xstate v4 (9654443)
- no-inline-implementation: detect inline implementations inside spawn call with xstate v5 (b95101d)
- no-invalid-state-props: modify the rule to accept new xstate@5 state props (4aecdff)
- no-invalid-transition-props: support new transition props from xstate v5 (c9a2b9c)
- prefer-always: add message about deprecated eventless empty string transitions for xstate v5 (7678a5b)
- prefer-predictable-action-arguments: add a deprecation error for this rule with xstate v5 (15f778c)
- spawn-usage: throw error if spawn-usage is used with xstate > 4 (02976f2)
BREAKING CHANGES
- no-inline-implementation: Option "serviceCreatorRegex" has been renamed to "actorCreatorRegex".
- The default configs are no longer compatible with xstate v4. To continue working
with xstate v4, use new shareable configs "all_v4" or "recommended_v4".