diff --git a/.changeset/big-pumas-search.md b/.changeset/big-pumas-search.md deleted file mode 100644 index 9a12e6b814..0000000000 --- a/.changeset/big-pumas-search.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'xstate': patch ---- - -Make `spawn` input required when defined inside referenced actor: - -```ts -const childMachine = createMachine({ - types: { input: {} as { value: number } } -}); - -const machine = createMachine({ - types: {} as { context: { ref: ActorRefFrom } }, - context: ({ spawn }) => ({ - ref: spawn( - childMachine, - // Input is now required! - { input: { value: 42 } } - ) - }) -}); -``` diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 6e6ea0d43a..9ec63afd4b 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,28 @@ # xstate +## 5.19.1 + +### Patch Changes + +- [#5139](https://github.com/statelyai/xstate/pull/5139) [`bf6119a7310a878afbf4f5b01f5e24288f9a0f16`](https://github.com/statelyai/xstate/commit/bf6119a7310a878afbf4f5b01f5e24288f9a0f16) Thanks [@SandroMaglione](https://github.com/SandroMaglione)! - Make `spawn` input required when defined inside referenced actor: + + ```ts + const childMachine = createMachine({ + types: { input: {} as { value: number } } + }); + + const machine = createMachine({ + types: {} as { context: { ref: ActorRefFrom } }, + context: ({ spawn }) => ({ + ref: spawn( + childMachine, + // Input is now required! + { input: { value: 42 } } + ) + }) + }); + ``` + ## 5.19.0 ### Minor Changes diff --git a/packages/core/package.json b/packages/core/package.json index 28ad02dc87..43f0321932 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "xstate", - "version": "5.19.0", + "version": "5.19.1", "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/CHANGELOG.md b/packages/xstate-graph/CHANGELOG.md index 6fccfdcfe4..a84f7d782d 100644 --- a/packages/xstate-graph/CHANGELOG.md +++ b/packages/xstate-graph/CHANGELOG.md @@ -1,5 +1,12 @@ # @xstate/graph +## 3.0.1 + +### Patch Changes + +- Updated dependencies [[`bf6119a7310a878afbf4f5b01f5e24288f9a0f16`](https://github.com/statelyai/xstate/commit/bf6119a7310a878afbf4f5b01f5e24288f9a0f16)]: + - xstate@5.19.1 + ## 3.0.0 ### Patch Changes diff --git a/packages/xstate-graph/package.json b/packages/xstate-graph/package.json index 74cb0b44c0..895645b487 100644 --- a/packages/xstate-graph/package.json +++ b/packages/xstate-graph/package.json @@ -1,6 +1,6 @@ { "name": "@xstate/graph", - "version": "3.0.0", + "version": "3.0.1", "description": "XState graph utilities", "keywords": [ "state", diff --git a/packages/xstate-react/CHANGELOG.md b/packages/xstate-react/CHANGELOG.md index 9b02fba95d..6e90916287 100644 --- a/packages/xstate-react/CHANGELOG.md +++ b/packages/xstate-react/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 5.0.1 + +### Patch Changes + +- Updated dependencies [[`bf6119a7310a878afbf4f5b01f5e24288f9a0f16`](https://github.com/statelyai/xstate/commit/bf6119a7310a878afbf4f5b01f5e24288f9a0f16)]: + - xstate@5.19.1 + ## 5.0.0 ### Patch Changes diff --git a/packages/xstate-react/package.json b/packages/xstate-react/package.json index 3199c74ea8..379fc074b6 100644 --- a/packages/xstate-react/package.json +++ b/packages/xstate-react/package.json @@ -1,6 +1,6 @@ { "name": "@xstate/react", - "version": "5.0.0", + "version": "5.0.1", "description": "XState tools for React", "keywords": [ "state", diff --git a/packages/xstate-solid/CHANGELOG.md b/packages/xstate-solid/CHANGELOG.md index fba5aefcb8..02fbdbd406 100644 --- a/packages/xstate-solid/CHANGELOG.md +++ b/packages/xstate-solid/CHANGELOG.md @@ -1,5 +1,12 @@ # @xstate/solid +## 1.0.1 + +### Patch Changes + +- Updated dependencies [[`bf6119a7310a878afbf4f5b01f5e24288f9a0f16`](https://github.com/statelyai/xstate/commit/bf6119a7310a878afbf4f5b01f5e24288f9a0f16)]: + - xstate@5.19.1 + ## 1.0.0 ### Patch Changes diff --git a/packages/xstate-solid/package.json b/packages/xstate-solid/package.json index 2b8c91eca3..9054ffbe5b 100644 --- a/packages/xstate-solid/package.json +++ b/packages/xstate-solid/package.json @@ -1,6 +1,6 @@ { "name": "@xstate/solid", - "version": "1.0.0", + "version": "1.0.1", "description": "XState tools for SolidJS", "keywords": [ "state", diff --git a/packages/xstate-svelte/CHANGELOG.md b/packages/xstate-svelte/CHANGELOG.md index 47105c93a5..ee4f8ad276 100644 --- a/packages/xstate-svelte/CHANGELOG.md +++ b/packages/xstate-svelte/CHANGELOG.md @@ -1,5 +1,12 @@ # @xstate/svelte +## 4.0.2 + +### Patch Changes + +- Updated dependencies [[`bf6119a7310a878afbf4f5b01f5e24288f9a0f16`](https://github.com/statelyai/xstate/commit/bf6119a7310a878afbf4f5b01f5e24288f9a0f16)]: + - xstate@5.19.1 + ## 4.0.1 ### Patch Changes diff --git a/packages/xstate-svelte/package.json b/packages/xstate-svelte/package.json index a815435af6..c93ec5504a 100644 --- a/packages/xstate-svelte/package.json +++ b/packages/xstate-svelte/package.json @@ -1,6 +1,6 @@ { "name": "@xstate/svelte", - "version": "4.0.1", + "version": "4.0.2", "description": "XState tools for Svelte", "keywords": [ "state", diff --git a/packages/xstate-vue/CHANGELOG.md b/packages/xstate-vue/CHANGELOG.md index 2c04e3d472..d85466d82d 100644 --- a/packages/xstate-vue/CHANGELOG.md +++ b/packages/xstate-vue/CHANGELOG.md @@ -1,5 +1,12 @@ # @xstate/vue +## 4.0.1 + +### Patch Changes + +- Updated dependencies [[`bf6119a7310a878afbf4f5b01f5e24288f9a0f16`](https://github.com/statelyai/xstate/commit/bf6119a7310a878afbf4f5b01f5e24288f9a0f16)]: + - xstate@5.19.1 + ## 4.0.0 ### Patch Changes diff --git a/packages/xstate-vue/package.json b/packages/xstate-vue/package.json index 0bf552a5b8..317358b22e 100644 --- a/packages/xstate-vue/package.json +++ b/packages/xstate-vue/package.json @@ -1,6 +1,6 @@ { "name": "@xstate/vue", - "version": "4.0.0", + "version": "4.0.1", "description": "XState tools for Vue", "keywords": [ "state",