diff --git a/.changeset/big-jeans-wait.md b/.changeset/big-jeans-wait.md deleted file mode 100644 index c3131c7720..0000000000 --- a/.changeset/big-jeans-wait.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@xstate/fsm': patch ---- - -Fixed entry actions defined on an initial state not being executed. diff --git a/.changeset/lazy-windows-tan.md b/.changeset/lazy-windows-tan.md deleted file mode 100644 index cfbaefd883..0000000000 --- a/.changeset/lazy-windows-tan.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'xstate': patch ---- - -The `escalate()` action can now take in an expression, which will be evaluated against the `context`, `event`, and `meta` to return the error data. diff --git a/.changeset/mighty-coats-beam.md b/.changeset/mighty-coats-beam.md deleted file mode 100644 index 882d9bb468..0000000000 --- a/.changeset/mighty-coats-beam.md +++ /dev/null @@ -1,33 +0,0 @@ ---- -'@xstate/fsm': minor ---- - -Added a second, optional, `options` parameter to the `createMachine`. Currently only `actions` map can be put there - similarly how this can be done for `xstate` itself: - -
-Example - -```js -const machine = createMachine({ - initial: 'idle' - states: { - idle: { - on: { - LOAD: { - target: 'loading', - actions: 'fetchData' - } - } - }, - loading: { - // ... - } - } -}, { - actions: { - fetchData: () => /* ... */ - } -}) -``` - -
diff --git a/.changeset/neat-files-switch.md b/.changeset/neat-files-switch.md deleted file mode 100644 index 79a828a13a..0000000000 --- a/.changeset/neat-files-switch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'xstate': patch ---- - -The typings for the raise() action have been fixed to allow any event to be raised. This typed behavior will be refined in version 5, to limit raised events to those that the machine accepts. diff --git a/.changeset/nice-cobras-suffer.md b/.changeset/nice-cobras-suffer.md deleted file mode 100644 index 81038948fa..0000000000 --- a/.changeset/nice-cobras-suffer.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'xstate': patch ---- - -Fixed memory leak - each created service has been registered in internal map but it was never removed from it. Registration has been moved to a point where Interpreter is being started and it's deregistered when it is being stopped. diff --git a/.changeset/yellow-weeks-visit.md b/.changeset/yellow-weeks-visit.md deleted file mode 100644 index d4560e8d05..0000000000 --- a/.changeset/yellow-weeks-visit.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@xstate/fsm': minor ---- - -A `config` property got exposed on created machines. It's the same object which got passed in as argument. diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index d81c47ba42..e20a48aa61 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,15 @@ # xstate +## 4.7.7 + +### Patch Changes + +- [`c8db035`](https://github.com/davidkpiano/xstate/commit/c8db035b90a7ab4a557359d493d3dd7973dacbdd) [#936](https://github.com/davidkpiano/xstate/pull/936) Thanks [@davidkpiano](https://github.com/davidkpiano)! - The `escalate()` action can now take in an expression, which will be evaluated against the `context`, `event`, and `meta` to return the error data. + +* [`2a3fea1`](https://github.com/davidkpiano/xstate/commit/2a3fea18dcd5be18880ad64007d44947cc327d0d) [#952](https://github.com/davidkpiano/xstate/pull/952) Thanks [@davidkpiano](https://github.com/davidkpiano)! - The typings for the raise() action have been fixed to allow any event to be raised. This typed behavior will be refined in version 5, to limit raised events to those that the machine accepts. + +- [`f86d419`](https://github.com/davidkpiano/xstate/commit/f86d41979ed108e2ac4df63299fc16f798da69f7) [#957](https://github.com/davidkpiano/xstate/pull/957) Thanks [@Andarist](https://github.com/Andarist)! - Fixed memory leak - each created service has been registered in internal map but it was never removed from it. Registration has been moved to a point where Interpreter is being started and it's deregistered when it is being stopped. + ## 4.7.6 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index e4e5f53884..e8d68a7cd0 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "xstate", - "version": "4.7.6", + "version": "4.7.7", "description": "Finite State Machines and Statecharts for the Modern Web.", "main": "lib/index.js", "module": "es/index.js", diff --git a/packages/xstate-fsm/CHANGELOG.md b/packages/xstate-fsm/CHANGELOG.md index 821aaec0f6..afab814408 100644 --- a/packages/xstate-fsm/CHANGELOG.md +++ b/packages/xstate-fsm/CHANGELOG.md @@ -1,5 +1,45 @@ # @xstate/fsm +## 1.3.0 + +### Minor Changes + +- [`7367de2`](https://github.com/davidkpiano/xstate/commit/7367de29a641e693702e919160292022a4d35323) [#946](https://github.com/davidkpiano/xstate/pull/946) Thanks [@Andarist](https://github.com/Andarist)! - Added a second, optional, `options` parameter to the `createMachine`. Currently only `actions` map can be put there - similarly how this can be done for `xstate` itself: + +
+ Example + + ```js + const machine = createMachine({ + initial: 'idle' + states: { + idle: { + on: { + LOAD: { + target: 'loading', + actions: 'fetchData' + } + } + }, + loading: { + // ... + } + } + }, { + actions: { + fetchData: () => /* ... */ + } + }) + ``` + +
+ +* [`3c10215`](https://github.com/davidkpiano/xstate/commit/3c102158d24d3f12aa671bc39dea0a2e98e3c34f) [#811](https://github.com/davidkpiano/xstate/pull/811) Thanks [@ghengeveld](https://github.com/ghengeveld)! - A `config` property got exposed on created machines. It's the same object which got passed in as argument. + +### Patch Changes + +- [`a337473`](https://github.com/davidkpiano/xstate/commit/a337473c669c3a486c5cfa4a0ff4956b5136053d) [#827](https://github.com/davidkpiano/xstate/pull/827) Thanks [@Andarist](https://github.com/Andarist)! - Fixed entry actions defined on an initial state not being executed. + ## 1.2.0 ### Minor Changes diff --git a/packages/xstate-fsm/package.json b/packages/xstate-fsm/package.json index c5923ee0e7..7a9b4f7450 100644 --- a/packages/xstate-fsm/package.json +++ b/packages/xstate-fsm/package.json @@ -1,6 +1,6 @@ { "name": "@xstate/fsm", - "version": "1.2.0", + "version": "1.3.0", "description": "XState for finite state machines", "keywords": [ "state",