Skip to content

Commit 0991745

Browse files
chore: version packages (#75)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 951cea7 commit 0991745

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

.changeset/fair-ligers-move.md

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

CHANGELOG.md

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

3+
## 5.1.0
4+
5+
### Minor Changes
6+
7+
- [#74](https://github.com/tivac/xstate-component-tree/pull/74) [`951cea7`](https://github.com/tivac/xstate-component-tree/commit/951cea77d3bdcced2ad6520d4bc6b6e62e7961f7) Thanks [@tivac](https://github.com/tivac)! - Adding `.can()` API from XState
8+
9+
The `.can()` API is a simple passthrough to the interpreter for the root statechart being managed by `xstate-component-tree`, and is intended as a convenience function to make it easier to interact with a ComponentTree instance instead of a direct XState Interpreter reference.
10+
11+
From the XState docs on `.can()`:
12+
13+
> Determines whether sending the event will cause a non-forbidden transition to be selected, even if the transitions have no actions nor change the state value.
14+
315
## 5.0.1
416

517
### Patch 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.0.1",
3+
"version": "5.1.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)