Skip to content

Releases: rlaffers/eslint-plugin-xstate

v3.2.1

16 Dec 11:36
Compare
Choose a tag to compare

3.2.1 (2023-12-16)

Bug Fixes

  • event-names: fix event name linting in sendTo and forwardTo action creators (334b571), closes #22

v3.2.0

18 Oct 09:06
aa2ac95
Compare
Choose a tag to compare

3.2.0 (2023-10-18)

Features

  • no-invalid-state-props: add "output" as a valid prop on the root state (d946e25)

v3.1.0

05 Oct 16:56
3500b16
Compare
Choose a tag to compare
v3.1.0 Pre-release
Pre-release

3.1.0 (2023-10-05)

Features

  • enforce-system-id: add rule enforce-system-id (128d239)
  • enforce-system-id: detect duplicate system IDs (fbc914c)
  • system-id: add detection of missing systemId within spawn calls (92d077d)

v3.0.1

28 Sep 10:35
Compare
Choose a tag to compare
v3.0.1 Pre-release
Pre-release

3.0.1 (2023-09-28)

Bug Fixes

  • event-names: fix event name linting in sendTo and forwardTo action creators (18e7d86), closes #22

v3.0.0

28 Sep 10:04
Compare
Choose a tag to compare
v3.0.0 Pre-release
Pre-release

3.0.0 (2023-09-28)

Bug Fixes

  • prevent errors when the plugin is used with eslint < 8.40.0 by raising the min required version (3af1b77)

Features

  • prefer-predictable-action-arguments: change auto-fix into a suggestion for switching this on (dcd50f1)

BREAKING CHANGES

  • The minimum required eslint version has been raised to 8.40.0

v1.1.3

28 Sep 10:45
Compare
Choose a tag to compare

1.1.3 (2023-09-28)

Bug Fixes

  • event-names: fix event name linting in sendTo and forwardTo action creators (334b571), closes #22

v2.2.0

26 Aug 15:00
Compare
Choose a tag to compare
v2.2.0 Pre-release
Pre-release

2.2.0 (2023-08-26)

Bug Fixes

  • entry-exit-action: recognize "guard" in entry/exit actions with xstate v5 (3136344)

Features

  • add a comment directive tu enforce this plugin (48cd089), closes #20

v2.1.0

21 Aug 10:56
Compare
Choose a tag to compare
v2.1.0 Pre-release
Pre-release

2.1.0 (2023-08-21)

Features

  • no-invalid-conditional-action: add a new rule for linting conditional actions (4c7c201)
  • no-invalid-transition-props: add error for invalid props within "always" transitions (69ff424)

v2.0.0

17 Aug 11:08
Compare
Choose a tag to compare
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".

v1.1.2

04 Aug 10:06
Compare
Choose a tag to compare

1.1.2 (2023-08-04)

Bug Fixes

  • no-invalid-state-props: allow the exit prop on the root state node (a3adedf), closes #17
  • no-ondone-outside-compound-state: allow the use of onDone within an array of invoke blocks (10e1e0c), closes #18