Skip to content

Commit

Permalink
Merge pull request #1513 from davidkpiano/changeset-release/master
Browse files Browse the repository at this point in the history
davidkpiano authored Nov 5, 2020
2 parents f2cb832 + 8b4689d commit b228ade
Showing 18 changed files with 59 additions and 73 deletions.
5 changes: 0 additions & 5 deletions .changeset/blue-ladybugs-retire.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/chatty-wombats-worry.md

This file was deleted.

10 changes: 0 additions & 10 deletions .changeset/cyan-pants-walk.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/funny-spiders-push.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/khaki-rivers-move.md

This file was deleted.

17 changes: 0 additions & 17 deletions .changeset/lemon-rings-kick.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/light-colts-kiss.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/poor-flowers-end.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/thin-papayas-wait.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/thin-teachers-approve.md

This file was deleted.

21 changes: 21 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# xstate

## 4.14.0

### Minor Changes

- [`119db8fb`](https://github.com/davidkpiano/xstate/commit/119db8fbccd08f899e1275a502d8c4c51b5a130e) [#1577](https://github.com/davidkpiano/xstate/pull/1577) Thanks [@davidkpiano](https://github.com/davidkpiano)! - Expressions can now be used in the `stop()` action creator:

```js
// ...
actions: stop(context => context.someActor);
```

### Patch Changes

- [`8c78e120`](https://github.com/davidkpiano/xstate/commit/8c78e1205a729d933e30db01cd4260d82352a9be) [#1570](https://github.com/davidkpiano/xstate/pull/1570) Thanks [@davidkpiano](https://github.com/davidkpiano)! - The return type of `spawn(machine)` will now be `Actor<State<TContext, TEvent>, TEvent>`, which is a supertype of `Interpreter<...>`.

* [`602687c2`](https://github.com/davidkpiano/xstate/commit/602687c235c56cca552c2d5a9d78adf224f522d8) [#1566](https://github.com/davidkpiano/xstate/pull/1566) Thanks [@davidkpiano](https://github.com/davidkpiano)! - Exit actions will now be properly called when an invoked machine reaches its final state. See [#1109](https://github.com/davidkpiano/xstate/issues/1109) for more details.

- [`6e44d02a`](https://github.com/davidkpiano/xstate/commit/6e44d02ad03af4041046120dd6c975e3b5b3772a) [#1553](https://github.com/davidkpiano/xstate/pull/1553) Thanks [@davidkpiano](https://github.com/davidkpiano)! - The `state.children` property now properly shows all spawned and invoked actors. See [#795](https://github.com/davidkpiano/xstate/issues/795) for more details.

* [`72b0880e`](https://github.com/davidkpiano/xstate/commit/72b0880e6444ae009adca72088872bb5c0760ce3) [#1504](https://github.com/davidkpiano/xstate/pull/1504) Thanks [@Andarist](https://github.com/Andarist)! - Added `status` property on the `Interpreter` - this can be used to differentiate not started, running and stopped interpreters. This property is best compared to values on the new `InterpreterStatus` export.

## 4.13.0

### Minor Changes
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.13.0",
"version": "4.14.0",
"description": "Finite State Machines and Statecharts for the Modern Web.",
"main": "lib/index.js",
"module": "es/index.js",
8 changes: 8 additions & 0 deletions packages/xstate-inspect/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# @xstate/inspect

## 0.2.0
### Minor Changes



- [`1725333a`](https://github.com/davidkpiano/xstate/commit/1725333a6edcc5c1e178228aa869c907d3907be5) [#1599](https://github.com/davidkpiano/xstate/pull/1599) Thanks [@davidkpiano](https://github.com/davidkpiano)! - The `@xstate/inspect` package is now built with Rollup which has fixed an issue with TypeScript compiler inserting references to `this` in the top-level scope of the output modules and thus making it harder for some tools (like Rollup) to re-bundle dist files as `this` in modules (as they are always in strict mode) is `undefined`.
2 changes: 1 addition & 1 deletion packages/xstate-inspect/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xstate/inspect",
"version": "0.1.1",
"version": "0.2.0",
"description": "XState inspection utilities",
"keywords": [
"state",
26 changes: 25 additions & 1 deletion packages/xstate-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# Changelog

## 1.0.2

### Patch Changes

- [`c7927083`](https://github.com/davidkpiano/xstate/commit/c7927083a651e3c51952ade2ffda793df0391bf6) [#1516](https://github.com/davidkpiano/xstate/pull/1516) Thanks [@davidkpiano](https://github.com/davidkpiano)! - The `send` function returned from the `useService()` now can take two arguments (an event type and payload), to match the behavior of `@xstate/react` version 0.x.

* [`db77623a`](https://github.com/davidkpiano/xstate/commit/db77623a48955d762cffa9b624f438220add5eed) [#1516](https://github.com/davidkpiano/xstate/pull/1516) Thanks [@davidkpiano](https://github.com/davidkpiano)! - The `send` value returned from the `useService()` hook will now accept a payload, which matches the signature of the `send` value returned from the `useMachine()` hook:

```js
const [state, send] = useService(someService);

// ...

// this is OK:
send('ADD', { value: 3 });

// which is equivalent to:
send({ type: 'ADD', value: 3 });
```

- [`93f6db02`](https://github.com/davidkpiano/xstate/commit/93f6db02a2d56ec997198ddef0af3d7730bb79bb) [#1594](https://github.com/davidkpiano/xstate/pull/1594) Thanks [@Andarist](https://github.com/Andarist)! - Fixed an issue with internal `setState` in `useService` being called with 2 arguments instead of 1.

* [`72b0880e`](https://github.com/davidkpiano/xstate/commit/72b0880e6444ae009adca72088872bb5c0760ce3) [#1504](https://github.com/davidkpiano/xstate/pull/1504) Thanks [@Andarist](https://github.com/Andarist)! - Fixed issue with `useService` returning an initial state for services in their final states.

## 1.0.1

### Patch Changes
@@ -25,7 +49,7 @@ All notable changes to this project will be documented in this file.
- The `useActor` hook now takes a second argument: `getSnapshot` which is a function that should return the last emitted value:

```js
const [state, send] = useActor(someActor, (actor) => actor.current);
const [state, send] = useActor(someActor, actor => actor.current);
```

## [1.0.0-rc.6]
2 changes: 1 addition & 1 deletion packages/xstate-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xstate/react",
"version": "1.0.1",
"version": "1.0.2",
"description": "XState tools for React",
"keywords": [
"state",
2 changes: 1 addition & 1 deletion packages/xstate-scxml/package.json
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@
},
"dependencies": {
"xml-js": "^1.6.11",
"xstate": "^4.13.0"
"xstate": "^4.14.0"
},
"devDependencies": {
"@scion-scxml/test-framework": "^2.0.15",
2 changes: 1 addition & 1 deletion packages/xstate-viz/example/package.json
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@
"build": "parcel build index.html"
},
"dependencies": {
"@xstate/react": "^1.0.0",
"@xstate/react": "^1.0.2",
"react-app-polyfill": "^1.0.0"
},
"devDependencies": {

0 comments on commit b228ade

Please sign in to comment.