-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore(deps-dev): bump xstate from 4.38.3 to 5.19.0 Bumps [xstate](https://github.com/statelyai/xstate) from 4.38.3 to 5.19.0. - [Release notes](https://github.com/statelyai/xstate/releases) - [Commits](https://github.com/statelyai/xstate/compare/[email protected]@5.19.0) --- updated-dependencies: - dependency-name: xstate dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * refactor: some tests passing * refactor: tests passing Few minor hiccups, but I think they're in the test harness and how it's not _actually_ waiting for runs to complete correctly? * refactor: coverage * refactor: early-out of repeat runs TODO: Causing some tests to freak out, but only two * test: Removed some nonsense * test: fixed up exploding test * test: remove .only * chore: remove gunk * docs: changeset * chore: remove gunk --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pat Cavit <[email protected]>
- Loading branch information
1 parent
ff80874
commit e711a23
Showing
21 changed files
with
323 additions
and
272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"xstate-component-tree": major | ||
--- | ||
|
||
# 🎉 xstate v5 support 🎉 | ||
|
||
This release finally updates `xstate-component-tree` to work with modern versions of xstate. No major API changes within the library itself, mostly v4 to v5 stuff like [always sending `{ type : "EVENT" }`](https://stately.ai/docs/migration#actorsend-no-longer-accepts-string-types). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
<script> | ||
import { ComponentTree } from "xstate-component-tree"; | ||
import service from "./statechart.js"; | ||
import Children from "./children.svelte"; | ||
let components = []; | ||
new ComponentTree(service, (tree) => { | ||
components = tree; | ||
}); | ||
service.start(); | ||
</script> | ||
|
||
<div> | ||
<p>LAYOUT RENDERED AT {Date.now()}</p> | ||
|
||
<code>{JSON.stringify($service.value)}</code> | ||
|
||
<p> | ||
<button on:click={() => service.send("NAV")}>Navigate</button> | ||
<button on:click={() => service.send({ type: "NAV" })}>Navigate</button> | ||
</p> | ||
|
||
<Children children={components} /> | ||
</div> | ||
|
||
<script> | ||
import ComponentTree from "xstate-component-tree"; | ||
import service from "./statechart.js"; | ||
import Children from "./children.svelte"; | ||
let components = []; | ||
new ComponentTree(service, (tree) => { | ||
components = tree; | ||
}); | ||
service.start(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<script> | ||
import service from "./statechart.js"; | ||
</script> | ||
|
||
<p> | ||
<button on:click={() => service.send("NEXT")}>Next Child</button> | ||
<button on:click={() => service.send({ type: "NEXT" })}>Next Child</button> | ||
</p> | ||
|
||
<script> | ||
import service from "./statechart.js"; | ||
</script> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.