Skip to content

Commit

Permalink
'Version Packages (next)'
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 6, 2020
1 parent e0801cb commit 3a6a6b0
Show file tree
Hide file tree
Showing 12 changed files with 143 additions and 7 deletions.
16 changes: 14 additions & 2 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,19 @@
"@xstate/scxml": "0.2.1",
"@xstate/test": "0.1.0",
"@xstate/viz": "0.1.0",
"@xstate/viz-example": "1.0.0"
"@xstate/viz-example": "1.0.0",
"@xstate/vue": "0.0.1"
},
"changesets": []
"changesets": [
"eighty-coins-tease",
"fifty-pears-hammer",
"flat-avocados-beam",
"forty-news-wash",
"green-apes-heal",
"hot-parents-share",
"shy-walls-develop",
"silly-jeans-behave",
"sixty-hornets-allow",
"slow-apples-dance"
]
}
36 changes: 36 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,41 @@
# xstate

## 5.0.0-next.0

### Major Changes

- e09efc7: 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')`.
- 97b0569: Simplified invoke definition: the `invoke` property of a state definition will now only accept an `InvokeCreator`, which is a function that takes in context, event, and meta (parent, id, etc.) and returns an `Actor`.

```diff
- invoke: someMachine
+ invoke: spawnMachine(someMachine)

- invoke: (ctx, e) => somePromise
+ invoke: spawnPromise((ctx, e) => somePromise)

- invoke: (ctx, e) => (cb, receive) => { ... }
+ invoke: spawnCallback((ctx, e) => (cb, receive) => { ... })

- invoke: (ctx, e) => someObservable$
+ invoke: spawnObservable((ctx, e) => someObservable$)
```

This also includes a helper function for spawning activities:

```diff
- activity: (ctx, e) => { ... }
+ invoke: spawnActivity((ctx, e) => { ... })
```

- 025a2d6: - Breaking: activities removed (can be invoked)

Since activities can be considered invoked services, they can be implemented as such. Activities are services that do not send any events back to the parent machine, nor do they receive any events, other than a "stop" signal when the parent changes to a state where the activity is no longer active. This is modeled the same way as a callback service is modeled.- e09efc7: Removed previously deprecated config properties: `onEntry`, `onExit`, `parallel` and `forward`.

### Patch Changes

- dae8818: Typestates are now propagated to interpreted services.

## 4.7.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xstate",
"version": "4.7.5",
"version": "5.0.0-next.0",
"description": "Finite State Machines and Statecharts for the Modern Web.",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down
13 changes: 13 additions & 0 deletions packages/xstate-analytics/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# @xstate/analytics

## 1.0.0-next.0

### Patch Changes

- Updated dependencies [e09efc7]
- Updated dependencies [97b0569]
- Updated dependencies [dae8818]
- Updated dependencies [e09efc7]
- Updated dependencies [025a2d6]
- Updated dependencies [e09efc7]
- xstate@5.0.0-next.0
12 changes: 12 additions & 0 deletions packages/xstate-fsm/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# @xstate/fsm

## 1.2.0-next.0

### Minor Changes

- 3cda398: The `assign()` action creator is now strongly-typed, and takes the context and event types as generic parameters, just like in XState core.
- 61ccfbd: Make `interpret` default for `TEvent` type parameter more strict. It's now `EventObject` instead of `any` and it matches the default on `createMachine`.

### Patch Changes

- 15fc24c: Export `Typestate` type.
2 changes: 1 addition & 1 deletion packages/xstate-fsm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xstate/fsm",
"version": "1.1.0",
"version": "1.2.0-next.0",
"description": "XState for finite state machines",
"keywords": [
"state",
Expand Down
13 changes: 13 additions & 0 deletions packages/xstate-graph/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# @xstate/graph

## 2.0.0-next.0

### Patch Changes

- Updated dependencies [e09efc7]
- Updated dependencies [97b0569]
- Updated dependencies [dae8818]
- Updated dependencies [e09efc7]
- Updated dependencies [025a2d6]
- Updated dependencies [e09efc7]
- xstate@5.0.0-next.0
13 changes: 13 additions & 0 deletions packages/xstate-immer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# @xstate/immer

## 1.0.0-next.0

### Patch Changes

- Updated dependencies [e09efc7]
- Updated dependencies [97b0569]
- Updated dependencies [dae8818]
- Updated dependencies [e09efc7]
- Updated dependencies [025a2d6]
- Updated dependencies [e09efc7]
- xstate@5.0.0-next.0
13 changes: 13 additions & 0 deletions packages/xstate-scxml/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# @xstate/scxml

## 0.2.2-next.0

### Patch Changes

- Updated dependencies [e09efc7]
- Updated dependencies [97b0569]
- Updated dependencies [dae8818]
- Updated dependencies [e09efc7]
- Updated dependencies [025a2d6]
- Updated dependencies [e09efc7]
- xstate@5.0.0-next.0
17 changes: 17 additions & 0 deletions packages/xstate-test/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# @xstate/test

## 1.0.0-next.0

### Minor Changes

- 1405754: Options for `testModel.getCoverage()` and `testModel.testCoverage()` can now be provided to filter which state nodes should be covered by the tests.

### Patch Changes

- Updated dependencies [e09efc7]
- Updated dependencies [97b0569]
- Updated dependencies [dae8818]
- Updated dependencies [e09efc7]
- Updated dependencies [025a2d6]
- Updated dependencies [e09efc7]
- xstate@5.0.0-next.0
- @xstate/graph@2.0.0-next.0

## 0.2.1

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/xstate-test/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xstate/test",
"version": "0.2.1",
"version": "1.0.0-next.0",
"description": "XState test utilities",
"keywords": [
"state",
Expand Down Expand Up @@ -39,7 +39,7 @@
"url": "https://github.com/davidkpiano/xstate/issues"
},
"peerDependencies": {
"xstate": "^4.7.5"
"xstate": "^5.0.0-next.0"
},
"devDependencies": {
"@types/jest-environment-puppeteer": "^4.0.0",
Expand All @@ -54,7 +54,7 @@
"xstate": "*"
},
"dependencies": {
"@xstate/graph": "^1.0.0",
"@xstate/graph": "^2.0.0-next.0",
"chalk": "^2.4.2"
}
}
7 changes: 7 additions & 0 deletions packages/xstate-viz/example/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# @xstate/viz-example

## 1.0.1-next.0

### Patch Changes

- @xstate/react@1.0.0-next.2

0 comments on commit 3a6a6b0

Please sign in to comment.