Skip to content

Commit 3ea2ccb

Browse files
Version Packages (#99)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent e7cd20d commit 3ea2ccb

File tree

3 files changed

+27
-26
lines changed

3 files changed

+27
-26
lines changed

.changeset/new-colts-yawn.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
11
# Changelog
22

3+
## 5.2.0
4+
5+
### Minor Changes
6+
7+
- [#98](https://github.com/tivac/xstate-component-tree/pull/98) [`e7cd20d`](https://github.com/tivac/xstate-component-tree/commit/e7cd20dfc3ec20427bb46fea6b7b49085bc0b5cd) Thanks [@tivac](https://github.com/tivac)! - Support for components at the root of machines
8+
9+
```js
10+
createMachine({
11+
initial: "foo",
12+
13+
meta: {
14+
component: RootComponent,
15+
},
16+
17+
states: {
18+
foo: {
19+
meta: {
20+
component: FooComponent,
21+
},
22+
},
23+
},
24+
});
25+
```
26+
27+
Previously `RootComponent` would be ignored, now it will be the first component in the tree and `FooComponent` will be placed as a child of it.
28+
329
## 5.1.0
430

531
### Minor Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "xstate-component-tree",
3-
"version": "5.1.0",
3+
"version": "5.2.0",
44
"description": "Build a tree of components based on statechart values",
55
"author": "Pat Cavit <[email protected]>",
66
"license": "MIT",

0 commit comments

Comments
 (0)