From 671fa21c5e613a30cb0ac518e132e5ece6d12bec Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 10 Feb 2025 23:59:38 +0000 Subject: [PATCH] Version Packages --- .changeset/slow-planets-begin.md | 20 -------------------- CHANGELOG.md | 21 +++++++++++++++++++++ package.json | 2 +- 3 files changed, 22 insertions(+), 21 deletions(-) delete mode 100644 .changeset/slow-planets-begin.md diff --git a/.changeset/slow-planets-begin.md b/.changeset/slow-planets-begin.md deleted file mode 100644 index 8ae98b0..0000000 --- a/.changeset/slow-planets-begin.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -"xstate-component-tree": major ---- - -Matching state and invoke names would cause `xstate-component-tree` to fail to return child components in some cases because internally it named them the same thing and stomped all over itself. - -``` -states : { - foo : { - invoke : { - id : "foo", - // ... - }, - }, -}, -``` - -This should work now. - -**BREAKING CHANGE**: All `machine` values in the output that previously looked like `root.foo` will now look like `root.#foo`, in order to help differentiate the child machine `id` from the parent state path. diff --git a/CHANGELOG.md b/CHANGELOG.md index b9dcff8..8aeb17d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,26 @@ # Changelog +## 8.0.0 + +### Major Changes + +- [#230](https://github.com/tivac/xstate-component-tree/pull/230) [`fdba194`](https://github.com/tivac/xstate-component-tree/commit/fdba194de0e9e8c396725a2c9cdd7264e118175c) Thanks [@tivac](https://github.com/tivac)! - Matching state and invoke names would cause `xstate-component-tree` to fail to return child components in some cases because internally it named them the same thing and stomped all over itself. + + ``` + states : { + foo : { + invoke : { + id : "foo", + // ... + }, + }, + }, + ``` + + This should work now. + + **BREAKING CHANGE**: All `machine` values in the output that previously looked like `root.foo` will now look like `root.#foo`, in order to help differentiate the child machine `id` from the parent state path. + ## 7.1.0 ### Minor Changes diff --git a/package.json b/package.json index e75bc56..2186e11 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xstate-component-tree", - "version": "7.1.0", + "version": "8.0.0", "description": "Build a tree of components based on statechart values", "author": "Pat Cavit ", "license": "MIT",