diff --git a/.changeset/pre.json b/.changeset/pre.json index f33402b83d..5a7fecdd83 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -126,6 +126,7 @@ "popular-guests-kneel", "popular-months-confess", "pretty-beans-pretend", + "proud-apricots-double", "proud-glasses-develop", "purple-buses-hug", "quick-lizards-burn", @@ -134,6 +135,7 @@ "rare-phones-whisper", "rare-snakes-protect", "red-berries-occur", + "rich-ladybugs-love", "rotten-rivers-wonder", "rotten-schools-march", "rotten-wombats-pump", @@ -175,6 +177,8 @@ "tricky-spoons-lay", "twelve-dingos-fold", "twenty-fishes-fix", + "twenty-hornets-push", + "wild-apes-play", "wise-eggs-train", "wise-wombats-invite", "witty-hounds-invent", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 5fde5a3fff..e5601a698f 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,21 @@ # xstate +## 5.0.0-beta.36 + +### Major Changes + +- [#4372](https://github.com/statelyai/xstate/pull/4372) [`c19e6fb1e`](https://github.com/statelyai/xstate/commit/c19e6fb1e32ee84644d0029af0ac439b6137dd06) Thanks [@Andarist](https://github.com/Andarist)! - Removed `State['_internalQueue']`. + +- [#4371](https://github.com/statelyai/xstate/pull/4371) [`8b3f6647c`](https://github.com/statelyai/xstate/commit/8b3f6647c70c7bf98c76284bf41c6fbad8e1a63d) Thanks [@Andarist](https://github.com/Andarist)! - Changed behavior of `always` transitions. Previously they were always selected after selecting any transition (including the `always` transitions). Because of that it was relatively easy to create an infinite loop using them. + + Now they are no longer selected if the preceeding transition doesn't change the state of a machine. + +- [#4377](https://github.com/statelyai/xstate/pull/4377) [`14cb2ed0c`](https://github.com/statelyai/xstate/commit/14cb2ed0c211b199b7bb119686df800f729677d5) Thanks [@Andarist](https://github.com/Andarist)! - `exit` actions of all states are no longer called when the machine gets stopped externally. Note that they are still called when the machine reaches its final state. + +### Patch Changes + +- [#4376](https://github.com/statelyai/xstate/pull/4376) [`078eaaddd`](https://github.com/statelyai/xstate/commit/078eaaddd5eb6a9258ad6adfad6e3778e7f74f96) Thanks [@Andarist](https://github.com/Andarist)! - Fixed an issue with exit actions being called twice when machine reached its final state. + ## 5.0.0-beta.35 ### Major Changes diff --git a/packages/core/package.json b/packages/core/package.json index e2fc77cd0a..ec87b64a2a 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "xstate", - "version": "5.0.0-beta.35", + "version": "5.0.0-beta.36", "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-analytics/package.json b/packages/xstate-analytics/package.json index 261afd4684..f9345c13f2 100644 --- a/packages/xstate-analytics/package.json +++ b/packages/xstate-analytics/package.json @@ -41,10 +41,10 @@ "url": "https://github.com/statelyai/xstate/issues" }, "peerDependencies": { - "xstate": "^5.0.0-beta.35" + "xstate": "^5.0.0-beta.36" }, "devDependencies": { - "xstate": "5.0.0-beta.35" + "xstate": "5.0.0-beta.36" }, "dependencies": {} } diff --git a/packages/xstate-graph/package.json b/packages/xstate-graph/package.json index 55fb839b36..6287188001 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.0.0-beta.35" + "xstate": "^5.0.0-beta.36" }, "devDependencies": { - "xstate": "5.0.0-beta.35" + "xstate": "5.0.0-beta.36" }, "dependencies": {} } diff --git a/packages/xstate-immer/package.json b/packages/xstate-immer/package.json index 5009f9ce3d..10ec6f833b 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.0.0-beta.35" + "xstate": "^5.0.0-beta.36" }, "devDependencies": { "immer": "^10.0.2", - "xstate": "5.0.0-beta.35" + "xstate": "5.0.0-beta.36" } } diff --git a/packages/xstate-inspect/package.json b/packages/xstate-inspect/package.json index 08494b282a..f958ca244c 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.0.0-beta.35" + "xstate": "5.0.0-beta.36" }, "peerDependencies": { "@types/ws": "^8.0.0", "ws": "^8.0.0", - "xstate": "^5.0.0-beta.35" + "xstate": "^5.0.0-beta.36" }, "peerDependenciesMeta": { "@types/ws": { diff --git a/packages/xstate-react/package.json b/packages/xstate-react/package.json index b6bb3bb338..15a58616ed 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.0.0-beta.35" + "xstate": "^5.0.0-beta.36" }, "peerDependenciesMeta": { "xstate": { @@ -76,6 +76,6 @@ "jsdom-global": "^3.0.2", "react": "^18.0.0", "react-dom": "^18.0.0", - "xstate": "5.0.0-beta.35" + "xstate": "5.0.0-beta.36" } } diff --git a/packages/xstate-solid/package.json b/packages/xstate-solid/package.json index b20f16c80b..6b1fd6617c 100644 --- a/packages/xstate-solid/package.json +++ b/packages/xstate-solid/package.json @@ -49,7 +49,7 @@ }, "peerDependencies": { "solid-js": "^1.6.0", - "xstate": "^5.0.0-beta.35" + "xstate": "^5.0.0-beta.36" }, "peerDependenciesMeta": { "xstate": { @@ -59,6 +59,6 @@ "devDependencies": { "solid-js": "^1.7.6", "solid-testing-library": "^0.3.0", - "xstate": "5.0.0-beta.35" + "xstate": "5.0.0-beta.36" } } diff --git a/packages/xstate-svelte/package.json b/packages/xstate-svelte/package.json index 869b5938d8..67d55a7159 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.0.0-beta.35" + "xstate": "^5.0.0-beta.36" }, "peerDependenciesMeta": { "xstate": { @@ -60,6 +60,6 @@ "svelte-check": "^3.2.0", "svelte-jester": "^2.3.2", "svelte-preprocess": "^5.0.0", - "xstate": "5.0.0-beta.35" + "xstate": "5.0.0-beta.36" } } diff --git a/packages/xstate-test/package.json b/packages/xstate-test/package.json index 8bb235b094..7d36bbfe15 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.0.0-beta.35" + "xstate": "^5.0.0-beta.36" }, "devDependencies": { "strip-ansi": "^5.2.0", - "xstate": "5.0.0-beta.35" + "xstate": "5.0.0-beta.36" }, "dependencies": { "@xstate/graph": "2.0.0-beta.5" diff --git a/packages/xstate-vue/package.json b/packages/xstate-vue/package.json index 6b57153871..019b780211 100644 --- a/packages/xstate-vue/package.json +++ b/packages/xstate-vue/package.json @@ -43,7 +43,7 @@ }, "peerDependencies": { "vue": "^3.0.0", - "xstate": "^5.0.0-beta.35" + "xstate": "^5.0.0-beta.36" }, "peerDependenciesMeta": { "xstate": { @@ -55,6 +55,6 @@ "@testing-library/vue": "^6.6.1", "@vue/compiler-sfc": "^3.0.11", "vue": "^3.0.11", - "xstate": "5.0.0-beta.35" + "xstate": "5.0.0-beta.36" } }