xstate 4.35.1 → 4.35.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -63,7 +63,7 @@ toggleService.send('TOGGLE');
63
63
  - [Why? (info about statecharts)](#why)
64
64
  - [Installation](https://xstate.js.org/docs/guides/installation.html)
65
65
  - [Finite State Machines](#finite-state-machines)
66
- - [Hierarchical (Nested) State Machines](#hierarchical-nested-state-machines)
66
+ - [Hierarchical (Nested) State Machines](#hierarchical--nested--state-machines)
67
67
  - [Parallel State Machines](#parallel-state-machines)
68
68
  - [History States](#history-states)
69
69
 
@@ -83,7 +83,8 @@ Read [📽 the slides](http://slides.com/davidkhourshid/finite-state-machines) (
83
83
  - [The World of Statecharts](https://statecharts.github.io/) by Erik Mogensen
84
84
  - [Pure UI](https://rauchg.com/2015/pure-ui) by Guillermo Rauch
85
85
  - [Pure UI Control](https://medium.com/@asolove/pure-ui-control-ac8d1be97a8d) by Adam Solove
86
- - [Spectrum - Statecharts Community](https://spectrum.chat/statecharts) (For XState specific questions, please use the [GitHub Discussions](https://github.com/statelyai/xstate/discussions))
86
+ - [Stately Discord](https://discord.gg/xstate) chat about anything related to statecharts and XState
87
+ - [GitHub Discussions](https://github.com/statelyai/xstate/discussions)
87
88
 
88
89
  ## Finite State Machines
89
90
 
package/es/types.d.ts CHANGED
@@ -285,11 +285,11 @@ export interface InvokeConfig<TContext, TEvent extends EventObject> {
285
285
  /**
286
286
  * The transition to take upon the invoked child machine reaching its final top-level state.
287
287
  */
288
- onDone?: string | SingleOrArray<TransitionConfig<TContext, DoneInvokeEvent<any>>>;
288
+ onDone?: string | SingleOrArray<TransitionConfigOrTarget<TContext, DoneInvokeEvent<any>>>;
289
289
  /**
290
290
  * The transition to take upon the invoked child machine sending an error event.
291
291
  */
292
- onError?: string | SingleOrArray<TransitionConfig<TContext, DoneInvokeEvent<any>>>;
292
+ onError?: string | SingleOrArray<TransitionConfigOrTarget<TContext, DoneInvokeEvent<any>>>;
293
293
  /**
294
294
  * Meta data related to this invocation
295
295
  */
package/lib/types.d.ts CHANGED
@@ -285,11 +285,11 @@ export interface InvokeConfig<TContext, TEvent extends EventObject> {
285
285
  /**
286
286
  * The transition to take upon the invoked child machine reaching its final top-level state.
287
287
  */
288
- onDone?: string | SingleOrArray<TransitionConfig<TContext, DoneInvokeEvent<any>>>;
288
+ onDone?: string | SingleOrArray<TransitionConfigOrTarget<TContext, DoneInvokeEvent<any>>>;
289
289
  /**
290
290
  * The transition to take upon the invoked child machine sending an error event.
291
291
  */
292
- onError?: string | SingleOrArray<TransitionConfig<TContext, DoneInvokeEvent<any>>>;
292
+ onError?: string | SingleOrArray<TransitionConfigOrTarget<TContext, DoneInvokeEvent<any>>>;
293
293
  /**
294
294
  * Meta data related to this invocation
295
295
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xstate",
3
- "version": "4.35.1",
3
+ "version": "4.35.2",
4
4
  "description": "Finite State Machines and Statecharts for the Modern Web.",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",