diff --git a/.changeset/famous-crabs-build.md b/.changeset/famous-crabs-build.md deleted file mode 100644 index 5a224f97e7..0000000000 --- a/.changeset/famous-crabs-build.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'xstate': minor ---- - -The actor snapshot `status` type (`'active' | 'done' | 'error' | 'stopped'`) is now exposed as `SnapshotStatus` diff --git a/.changeset/nervous-snails-help.md b/.changeset/nervous-snails-help.md deleted file mode 100644 index f6acde6261..0000000000 --- a/.changeset/nervous-snails-help.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'xstate': minor ---- - -Added `sendParent` to the `enqueueActions` feature. This allows users to enqueue actions that send events to the parent actor within the `enqueueActions` block. - -```js -import { createMachine, enqueueActions } from 'xstate'; - -const childMachine = createMachine({ - entry: enqueueActions(({ enqueue }) => { - enqueue.sendParent({ type: 'CHILD_READY' }); - }) -}); -``` diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 586bd7a494..a600e18042 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,23 @@ # xstate +## 5.16.0 + +### Minor Changes + +- [#4996](https://github.com/statelyai/xstate/pull/4996) [`5be796cd2`](https://github.com/statelyai/xstate/commit/5be796cd252f024ed29a589d1f2d6c8e626167db) Thanks [@ronvoluted](https://github.com/ronvoluted)! - The actor snapshot `status` type (`'active' | 'done' | 'error' | 'stopped'`) is now exposed as `SnapshotStatus` + +- [#4981](https://github.com/statelyai/xstate/pull/4981) [`c4ae156b2`](https://github.com/statelyai/xstate/commit/c4ae156b278779e898aeb8d86b089de2cf959683) Thanks [@davidkpiano](https://github.com/davidkpiano)! - Added `sendParent` to the `enqueueActions` feature. This allows users to enqueue actions that send events to the parent actor within the `enqueueActions` block. + + ```js + import { createMachine, enqueueActions } from 'xstate'; + + const childMachine = createMachine({ + entry: enqueueActions(({ enqueue }) => { + enqueue.sendParent({ type: 'CHILD_READY' }); + }) + }); + ``` + ## 5.15.0 ### Minor Changes diff --git a/packages/core/package.json b/packages/core/package.json index 33642986f4..20a0b95e52 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "xstate", - "version": "5.15.0", + "version": "5.16.0", "description": "Finite State Machines and Statecharts for the Modern Web.", "main": "dist/xstate.cjs.js", "module": "dist/xstate.esm.js", diff --git a/packages/xstate-graph/package.json b/packages/xstate-graph/package.json index aa31d8ae53..655320fa5b 100644 --- a/packages/xstate-graph/package.json +++ b/packages/xstate-graph/package.json @@ -40,10 +40,10 @@ "url": "https://github.com/statelyai/xstate/issues" }, "peerDependencies": { - "xstate": "^5.15.0" + "xstate": "^5.16.0" }, "devDependencies": { - "xstate": "5.15.0" + "xstate": "5.16.0" }, "dependencies": {} } diff --git a/packages/xstate-immer/package.json b/packages/xstate-immer/package.json index 8844215b61..6b5896ebc6 100644 --- a/packages/xstate-immer/package.json +++ b/packages/xstate-immer/package.json @@ -41,10 +41,10 @@ "dependencies": {}, "peerDependencies": { "immer": "^9.0.6 || ^10", - "xstate": "^5.15.0" + "xstate": "^5.16.0" }, "devDependencies": { "immer": "^10.0.2", - "xstate": "5.15.0" + "xstate": "5.16.0" } } diff --git a/packages/xstate-inspect/package.json b/packages/xstate-inspect/package.json index 57847880f2..3035b4c53e 100644 --- a/packages/xstate-inspect/package.json +++ b/packages/xstate-inspect/package.json @@ -53,12 +53,12 @@ "devDependencies": { "@types/ws": "^8.2.2", "ws": "^8.4.0", - "xstate": "5.15.0" + "xstate": "5.16.0" }, "peerDependencies": { "@types/ws": "^8.0.0", "ws": "^8.0.0", - "xstate": "^5.15.0" + "xstate": "^5.16.0" }, "peerDependenciesMeta": { "@types/ws": { diff --git a/packages/xstate-react/package.json b/packages/xstate-react/package.json index 96d096ff7e..06a69fe58d 100644 --- a/packages/xstate-react/package.json +++ b/packages/xstate-react/package.json @@ -55,7 +55,7 @@ }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0", - "xstate": "^5.15.0" + "xstate": "^5.16.0" }, "peerDependenciesMeta": { "xstate": { @@ -76,6 +76,6 @@ "jsdom-global": "^3.0.2", "react": "^18.0.0", "react-dom": "^18.0.0", - "xstate": "5.15.0" + "xstate": "5.16.0" } } diff --git a/packages/xstate-solid/package.json b/packages/xstate-solid/package.json index 6d7b1bf869..962261b183 100644 --- a/packages/xstate-solid/package.json +++ b/packages/xstate-solid/package.json @@ -43,7 +43,7 @@ }, "peerDependencies": { "solid-js": "^1.6.0", - "xstate": "^5.15.0" + "xstate": "^5.16.0" }, "peerDependenciesMeta": { "xstate": { @@ -53,6 +53,6 @@ "devDependencies": { "solid-js": "^1.7.6", "solid-testing-library": "^0.3.0", - "xstate": "5.15.0" + "xstate": "5.16.0" } } diff --git a/packages/xstate-svelte/package.json b/packages/xstate-svelte/package.json index cb5cd4010e..4da716fd6b 100644 --- a/packages/xstate-svelte/package.json +++ b/packages/xstate-svelte/package.json @@ -45,7 +45,7 @@ }, "peerDependencies": { "svelte": "^3.24.1 || ^4", - "xstate": "^5.15.0" + "xstate": "^5.16.0" }, "peerDependenciesMeta": { "xstate": { @@ -60,6 +60,6 @@ "svelte-check": "^3.2.0", "svelte-jester": "^2.3.2", "svelte-preprocess": "^5.0.0", - "xstate": "5.15.0" + "xstate": "5.16.0" } } diff --git a/packages/xstate-vue/package.json b/packages/xstate-vue/package.json index 03917ba60a..9aa9b286d5 100644 --- a/packages/xstate-vue/package.json +++ b/packages/xstate-vue/package.json @@ -54,7 +54,7 @@ }, "peerDependencies": { "vue": "^3.0.0", - "xstate": "^5.15.0" + "xstate": "^5.16.0" }, "peerDependenciesMeta": { "xstate": { @@ -66,6 +66,6 @@ "@testing-library/vue": "^6.6.1", "@vue/compiler-sfc": "^3.0.11", "vue": "^3.0.11", - "xstate": "5.15.0" + "xstate": "5.16.0" } }