Skip to content

Commit

Permalink
Enter changeset pre mode (#878)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Dec 28, 2019
1 parent 7281323 commit e09efc7
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/eighty-coins-tease.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'xstate': major
---

Removed third parameter (context) from Machine's transition method. If you want to transition with a particular context value you should create appropriate `State` using `State.from`. So instead of this - `machine.transition('green', 'TIMER', { elapsed: 100 })`, you should do this - `machine.transition(State.from('green', { elapsed: 100 }), 'TIMER')`.
17 changes: 17 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"mode": "pre",
"tag": "next",
"initialVersions": {
"xstate": "4.7.3",
"@xstate/analytics": "0.0.1",
"@xstate/fsm": "1.1.0",
"@xstate/graph": "1.0.0",
"@xstate/immer": "0.0.1",
"@xstate/react": "1.0.0-rc.0",
"@xstate/scxml": "0.2.1",
"@xstate/test": "0.1.0",
"@xstate/viz": "0.1.0",
"@xstate/viz-example": "1.0.0"
},
"changesets": []
}
5 changes: 5 additions & 0 deletions .changeset/shy-walls-develop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'xstate': major
---

Support for compound string state values has been dropped from Machine's transition method. It's no longer allowed to call transition like this - `machine.transition('a.b', 'NEXT')`, instead it's required to use "state value" representation like this - `machine.transition({ a: 'b' }, 'NEXT')`.
5 changes: 5 additions & 0 deletions .changeset/slow-apples-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'xstate': major
---

Removed previously deprecated config properties: `onEntry`, `onExit`, `parallel` and `forward`.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
- next

jobs:
release:
Expand Down

0 comments on commit e09efc7

Please sign in to comment.