From 91549ce8a6a5105b3d354ca442ea5c058e58e206 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 7 Feb 2024 11:43:56 -0500 Subject: [PATCH] Version Packages (#4732) Co-authored-by: github-actions[bot] --- .changeset/clean-brooms-yell.md | 16 ---------------- packages/core/CHANGELOG.md | 17 +++++++++++++++++ packages/core/package.json | 2 +- packages/xstate-graph/package.json | 4 ++-- packages/xstate-immer/package.json | 4 ++-- packages/xstate-inspect/package.json | 4 ++-- packages/xstate-react/package.json | 4 ++-- packages/xstate-solid/package.json | 4 ++-- packages/xstate-svelte/package.json | 4 ++-- packages/xstate-test/package.json | 4 ++-- packages/xstate-vue/package.json | 4 ++-- 11 files changed, 34 insertions(+), 33 deletions(-) delete mode 100644 .changeset/clean-brooms-yell.md diff --git a/.changeset/clean-brooms-yell.md b/.changeset/clean-brooms-yell.md deleted file mode 100644 index fc8273d0f5..0000000000 --- a/.changeset/clean-brooms-yell.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'xstate': patch ---- - -You can now import `getInitialSnapshot(…)` from `xstate` directly, which is useful for getting a mock of the initial snapshot when interacting with machines (or other actor logic) without `createActor(…)`: - -```ts -import { getInitialSnapshot } from 'xstate'; -import { someMachine } from './someMachine'; - -// Returns the initial snapshot (state) of the machine -const initialSnapshot = getInitialSnapshot( - someMachine, - { name: 'Mateusz' } // optional input -); -``` diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index e0df738b41..b5c262e251 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,22 @@ # xstate +## 5.6.2 + +### Patch Changes + +- [#4731](https://github.com/statelyai/xstate/pull/4731) [`960cdcbcb`](https://github.com/statelyai/xstate/commit/960cdcbcb88eb565bba2f03f3eeceff6001576d9) Thanks [@davidkpiano](https://github.com/davidkpiano)! - You can now import `getInitialSnapshot(…)` from `xstate` directly, which is useful for getting a mock of the initial snapshot when interacting with machines (or other actor logic) without `createActor(…)`: + + ```ts + import { getInitialSnapshot } from 'xstate'; + import { someMachine } from './someMachine'; + + // Returns the initial snapshot (state) of the machine + const initialSnapshot = getInitialSnapshot( + someMachine, + { name: 'Mateusz' } // optional input + ); + ``` + ## 5.6.1 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index 875f3b4814..ad980b4f70 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "xstate", - "version": "5.6.1", + "version": "5.6.2", "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 c9a6413e6e..9081ae6e64 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.6.1" + "xstate": "^5.6.2" }, "devDependencies": { - "xstate": "5.6.1" + "xstate": "5.6.2" }, "dependencies": {} } diff --git a/packages/xstate-immer/package.json b/packages/xstate-immer/package.json index 04ff3b0503..a15b050c04 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.6.1" + "xstate": "^5.6.2" }, "devDependencies": { "immer": "^10.0.2", - "xstate": "5.6.1" + "xstate": "5.6.2" } } diff --git a/packages/xstate-inspect/package.json b/packages/xstate-inspect/package.json index 1da51240d1..cf31040ff8 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.6.1" + "xstate": "5.6.2" }, "peerDependencies": { "@types/ws": "^8.0.0", "ws": "^8.0.0", - "xstate": "^5.6.1" + "xstate": "^5.6.2" }, "peerDependenciesMeta": { "@types/ws": { diff --git a/packages/xstate-react/package.json b/packages/xstate-react/package.json index 7ae02a6e72..3e4bcaa7ac 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.6.1" + "xstate": "^5.6.2" }, "peerDependenciesMeta": { "xstate": { @@ -76,6 +76,6 @@ "jsdom-global": "^3.0.2", "react": "^18.0.0", "react-dom": "^18.0.0", - "xstate": "5.6.1" + "xstate": "5.6.2" } } diff --git a/packages/xstate-solid/package.json b/packages/xstate-solid/package.json index 8df9c47c3d..6b5e98123b 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.6.1" + "xstate": "^5.6.2" }, "peerDependenciesMeta": { "xstate": { @@ -53,6 +53,6 @@ "devDependencies": { "solid-js": "^1.7.6", "solid-testing-library": "^0.3.0", - "xstate": "5.6.1" + "xstate": "5.6.2" } } diff --git a/packages/xstate-svelte/package.json b/packages/xstate-svelte/package.json index 45f4c057dd..aed90b715b 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.6.1" + "xstate": "^5.6.2" }, "peerDependenciesMeta": { "xstate": { @@ -60,6 +60,6 @@ "svelte-check": "^3.2.0", "svelte-jester": "^2.3.2", "svelte-preprocess": "^5.0.0", - "xstate": "5.6.1" + "xstate": "5.6.2" } } diff --git a/packages/xstate-test/package.json b/packages/xstate-test/package.json index 0070e3af3d..01da7816c1 100644 --- a/packages/xstate-test/package.json +++ b/packages/xstate-test/package.json @@ -46,11 +46,11 @@ "url": "https://github.com/statelyai/xstate/issues" }, "peerDependencies": { - "xstate": "^5.6.1" + "xstate": "^5.6.2" }, "devDependencies": { "strip-ansi": "^5.2.0", - "xstate": "5.6.1" + "xstate": "5.6.2" }, "dependencies": { "@xstate/graph": "2.0.0-beta.6" diff --git a/packages/xstate-vue/package.json b/packages/xstate-vue/package.json index 9537e6c4ec..79e960a232 100644 --- a/packages/xstate-vue/package.json +++ b/packages/xstate-vue/package.json @@ -54,7 +54,7 @@ }, "peerDependencies": { "vue": "^3.0.0", - "xstate": "^5.6.1" + "xstate": "^5.6.2" }, "peerDependenciesMeta": { "xstate": { @@ -66,6 +66,6 @@ "@testing-library/vue": "^6.6.1", "@vue/compiler-sfc": "^3.0.11", "vue": "^3.0.11", - "xstate": "5.6.1" + "xstate": "5.6.2" } }