Skip to content

Conversation

@tivac
Copy link
Owner

@tivac tivac commented Mar 16, 2022

  • Documenting new features
  • Rearranging tests a bit to take advantage of new features
  • 👇🏼👇🏼👇🏼

BREAKING CHANGE: previously the second arg to the callback function had a single data property on it representing the last State object seen by the top-level machine. Now it has state (same as data was previously), and some bound APIs for interacting with the statechart: .hasTag(), .broadcast(), and .matches(). These are the same APIs available on the ComponentTree instance but made available through the callback args for convenience.

tivac added 6 commits March 15, 2022 23:24
BREAKING CHANGE: previously the second arg to the callback function had a single `data` property on it representing the last `State` object seen by the top-level machine. Now it has `state` (same as `data` was previously), and some bound APIs for interacting with the statechart: `.hasTag()`, `.broadcast()`, and `.matches()`. These are the same APIs available on the `ComponentTree` instance but made available through the callback args for convenience.
@codecov-commenter
Copy link

Codecov Report

Merging #42 (169bfce) into main (c64065d) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main       #42   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines          514       524   +10     
=========================================
+ Hits           514       524   +10     
Impacted Files Coverage Δ
src/component-tree.js 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c64065d...169bfce. Read the comment docs.

@tivac tivac merged commit 2da5301 into main Mar 16, 2022
@tivac tivac deleted the fixed-versioning branch March 16, 2022 06:40
tivac added a commit that referenced this pull request Mar 16, 2022
- Documenting new features
- Rearranging tests a bit to take advantage of new features

BREAKING CHANGE: previously the second arg to the callback function had a single `data` property on it representing the last `State` object seen by the top-level machine. Now it has `state` (same as data was previously), and some bound APIs for interacting with the statechart: `.hasTag()`, `.broadcast()`, and `.matches()`. These are the same APIs available on the `ComponentTree` instance but made available through the callback args for convenience.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants