diff --git a/.changeset/pre.json b/.changeset/pre.json index 266b01c03f..140c1b0042 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -67,6 +67,7 @@ "itchy-owls-swim", "large-cooks-taste", "late-mugs-film", + "lemon-cycles-cross", "lemon-dancers-repeat", "lemon-mails-smoke", "lemon-pans-lay", @@ -91,6 +92,7 @@ "orange-pillows-deny", "perfect-ants-count", "perfect-jokes-lie", + "pink-pandas-promise", "plenty-countries-divide", "plenty-dragons-lie", "poor-badgers-explain", @@ -139,6 +141,7 @@ "thin-ads-obey", "thin-dryers-argue", "tidy-pots-double", + "tricky-clouds-clap", "tricky-spoons-lay", "twelve-dingos-fold", "twenty-fishes-fix", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index f175e48a9f..84a1c54472 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,33 @@ # xstate +## 5.0.0-beta.25 + +### Minor Changes + +- [#4213](https://github.com/statelyai/xstate/pull/4213) [`243d36fa8`](https://github.com/statelyai/xstate/commit/243d36fa81444dedda41885b284b87433bdd3b80) Thanks [@Andarist](https://github.com/Andarist)! - You can now define strict tags for machines: + + ```ts + createMachine({ + types: {} as { + tags: 'pending' | 'success' | 'error'; + } + // ... + }); + ``` + +- [#4209](https://github.com/statelyai/xstate/pull/4209) [`e658a37f4`](https://github.com/statelyai/xstate/commit/e658a37f49f2e30309ca34761e3bd82bf9c89cfd) Thanks [@Andarist](https://github.com/Andarist)! - Allow the `TGuard` type to flow into actions. Thanks to that `choose` can benefit from strongly-typed guards. + +- [#4182](https://github.com/statelyai/xstate/pull/4182) [`d34f8b102`](https://github.com/statelyai/xstate/commit/d34f8b1024dbdfa98c86c57f461cc2fceba08d39) Thanks [@davidkpiano](https://github.com/davidkpiano)! - You can now specify delay types for machines: + + ```ts + createMachine({ + types: {} as { + delays: 'one second' | 'one minute'; + } + // ... + }); + ``` + ## 5.0.0-beta.24 ### Minor Changes diff --git a/packages/core/package.json b/packages/core/package.json index c0b22926f9..8d3890e1a1 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "xstate", - "version": "5.0.0-beta.24", + "version": "5.0.0-beta.25", "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 b3653f008b..d60fd9592a 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.24" + "xstate": "^5.0.0-beta.25" }, "devDependencies": { - "xstate": "5.0.0-beta.24" + "xstate": "5.0.0-beta.25" }, "dependencies": {} } diff --git a/packages/xstate-graph/package.json b/packages/xstate-graph/package.json index 09c82880de..8481402220 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.24" + "xstate": "^5.0.0-beta.25" }, "devDependencies": { - "xstate": "5.0.0-beta.24" + "xstate": "5.0.0-beta.25" }, "dependencies": {} } diff --git a/packages/xstate-immer/package.json b/packages/xstate-immer/package.json index f8f78870d2..6975c3c5fa 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.24" + "xstate": "^5.0.0-beta.25" }, "devDependencies": { "immer": "^10.0.2", - "xstate": "5.0.0-beta.24" + "xstate": "5.0.0-beta.25" } } diff --git a/packages/xstate-inspect/package.json b/packages/xstate-inspect/package.json index 3584af883b..92299ae307 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.24" + "xstate": "5.0.0-beta.25" }, "peerDependencies": { "@types/ws": "^8.0.0", "ws": "^8.0.0", - "xstate": "^5.0.0-beta.24" + "xstate": "^5.0.0-beta.25" }, "peerDependenciesMeta": { "@types/ws": { diff --git a/packages/xstate-react/package.json b/packages/xstate-react/package.json index a2aff39947..2f07a8c6e9 100644 --- a/packages/xstate-react/package.json +++ b/packages/xstate-react/package.json @@ -71,7 +71,7 @@ "peerDependencies": { "@xstate/fsm": "^3.0.0-beta.3", "react": "^16.8.0 || ^17.0.0 || ^18.0.0", - "xstate": "^5.0.0-beta.24" + "xstate": "^5.0.0-beta.25" }, "peerDependenciesMeta": { "@xstate/fsm": { @@ -96,7 +96,7 @@ "jsdom-global": "^3.0.2", "react": "^18.0.0", "react-dom": "^18.0.0", - "xstate": "5.0.0-beta.24" + "xstate": "5.0.0-beta.25" }, "preconstruct": { "entrypoints": [ diff --git a/packages/xstate-solid/package.json b/packages/xstate-solid/package.json index 8795ad0789..276c332190 100644 --- a/packages/xstate-solid/package.json +++ b/packages/xstate-solid/package.json @@ -60,7 +60,7 @@ "peerDependencies": { "@xstate/fsm": "^3.0.0-beta.3", "solid-js": "^1.6.0", - "xstate": "^5.0.0-beta.24" + "xstate": "^5.0.0-beta.25" }, "peerDependenciesMeta": { "@xstate/fsm": { @@ -74,7 +74,7 @@ "@xstate/fsm": "3.0.0-beta.3", "solid-js": "^1.7.6", "solid-testing-library": "^0.3.0", - "xstate": "5.0.0-beta.24" + "xstate": "5.0.0-beta.25" }, "preconstruct": { "entrypoints": [ diff --git a/packages/xstate-svelte/package.json b/packages/xstate-svelte/package.json index cd1cd0eff8..ffd7663de0 100644 --- a/packages/xstate-svelte/package.json +++ b/packages/xstate-svelte/package.json @@ -56,7 +56,7 @@ "peerDependencies": { "@xstate/fsm": "^3.0.0-beta.3", "svelte": "^3.24.1 || ^4", - "xstate": "^5.0.0-beta.24" + "xstate": "^5.0.0-beta.25" }, "peerDependenciesMeta": { "@xstate/fsm": { @@ -75,7 +75,7 @@ "svelte-check": "^3.2.0", "svelte-jester": "^2.3.2", "svelte-preprocess": "^5.0.0", - "xstate": "5.0.0-beta.24" + "xstate": "5.0.0-beta.25" }, "preconstruct": { "entrypoints": [ diff --git a/packages/xstate-test/package.json b/packages/xstate-test/package.json index d153b3ce14..3264bcb7c4 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.24" + "xstate": "^5.0.0-beta.25" }, "devDependencies": { "strip-ansi": "^5.2.0", - "xstate": "5.0.0-beta.24" + "xstate": "5.0.0-beta.25" }, "dependencies": { "@xstate/graph": "^2.0.0-alpha.1" diff --git a/packages/xstate-vue/package.json b/packages/xstate-vue/package.json index eb017276c2..81e1b0bd18 100644 --- a/packages/xstate-vue/package.json +++ b/packages/xstate-vue/package.json @@ -54,7 +54,7 @@ "peerDependencies": { "@xstate/fsm": "^3.0.0-beta.3", "vue": "^3.0.0", - "xstate": "^5.0.0-beta.24" + "xstate": "^5.0.0-beta.25" }, "peerDependenciesMeta": { "@xstate/fsm": { @@ -70,7 +70,7 @@ "@vue/compiler-sfc": "^3.0.11", "@xstate/fsm": "3.0.0-beta.3", "vue": "^3.0.11", - "xstate": "5.0.0-beta.24" + "xstate": "5.0.0-beta.25" }, "preconstruct": { "entrypoints": [