Skip to content

Commit

Permalink
Version Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 20, 2022
1 parent 90fa970 commit 9f3141c
Show file tree
Hide file tree
Showing 13 changed files with 36 additions and 41 deletions.
5 changes: 0 additions & 5 deletions .changeset/breezy-onions-thank.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/orange-pans-study.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/ten-flies-smoke.md

This file was deleted.

44 changes: 27 additions & 17 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# xstate

## 4.28.1

### Patch Changes

- [#2943](https://github.com/statelyai/xstate/pull/2943) [`e9f3f07a1`](https://github.com/statelyai/xstate/commit/e9f3f07a1ee9fe97af7e8f532c5b3dd3c4f73cec) Thanks [@Andarist](https://github.com/Andarist)! - Fixed an infinite loop when initially spawned actor (in an initial context) responded synchronously to its parent.

* [#2953](https://github.com/statelyai/xstate/pull/2953) [`90fa97008`](https://github.com/statelyai/xstate/commit/90fa97008970283f17a3f2f6aa9b1b7071593e80) Thanks [@Andarist](https://github.com/Andarist)! - Bring back the global type declaration for the `Symbol.observable` to fix consuming projects that do not use `skipLibCheck`.

- [#2903](https://github.com/statelyai/xstate/pull/2903) [`b6dde9075`](https://github.com/statelyai/xstate/commit/b6dde9075adb3bb3522b4b8f8eeb804d3221a527) Thanks [@Andarist](https://github.com/Andarist)! - Fixed an issue with exit actions being called in random order when stopping a machine. They should always be called in the reversed document order (the ones defined on children should be called before the ones defined on ancestors and the ones defined on states appearing later in the code should be called before the ones defined on their sibling states).

## 4.28.0

### Minor Changes
Expand Down Expand Up @@ -175,10 +185,10 @@
model.createMachine({
// `ctx` was of type `any`
entry: (ctx) => {},
entry: ctx => {},
exit: assign({
// `ctx` was of type `unknown`
foo: (ctx) => 42
foo: ctx => 42
})
});
```
Expand Down Expand Up @@ -354,11 +364,11 @@
const machine = createMachine({
context: { count: 0 },
entry: [
(ctx) => console.log(ctx.count), // 0
assign({ count: (ctx) => ctx.count + 1 }),
(ctx) => console.log(ctx.count), // 1
assign({ count: (ctx) => ctx.count + 1 }),
(ctx) => console.log(ctx.count) // 2
ctx => console.log(ctx.count), // 0
assign({ count: ctx => ctx.count + 1 }),
ctx => console.log(ctx.count), // 1
assign({ count: ctx => ctx.count + 1 }),
ctx => console.log(ctx.count) // 2
],
preserveActionOrder: true
});
Expand All @@ -367,11 +377,11 @@
const machine = createMachine({
context: { count: 0 },
entry: [
(ctx) => console.log(ctx.count), // 2
assign({ count: (ctx) => ctx.count + 1 }),
(ctx) => console.log(ctx.count), // 2
assign({ count: (ctx) => ctx.count + 1 }),
(ctx) => console.log(ctx.count) // 2
ctx => console.log(ctx.count), // 2
assign({ count: ctx => ctx.count + 1 }),
ctx => console.log(ctx.count), // 2
assign({ count: ctx => ctx.count + 1 }),
ctx => console.log(ctx.count) // 2
]
// preserveActionOrder: false
});
Expand Down Expand Up @@ -570,7 +580,7 @@
});
const service = interpret(machine)
.onTransition((state) => {
.onTransition(state => {
// Read promise value synchronously
const resolvedValue = state.context.promiseRef?.getSnapshot();
// => undefined (if promise not resolved yet)
Expand Down Expand Up @@ -650,7 +660,7 @@
context: { value: 42 },
on: {
INC: {
actions: assign({ value: (ctx) => ctx.value + 1 })
actions: assign({ value: ctx => ctx.value + 1 })
}
}
});
Expand Down Expand Up @@ -910,7 +920,7 @@
```js
// ...
actions: stop((context) => context.someActor);
actions: stop(context => context.someActor);
```
### Patch Changes
Expand Down Expand Up @@ -1148,10 +1158,10 @@
```js
entry: [
choose([
{ cond: (ctx) => ctx > 100, actions: raise('TOGGLE') },
{ cond: ctx => ctx > 100, actions: raise('TOGGLE') },
{
cond: 'hasMagicBottle',
actions: [assign((ctx) => ({ counter: ctx.counter + 1 }))]
actions: [assign(ctx => ({ counter: ctx.counter + 1 }))]
},
{ actions: ['fallbackAction'] }
])
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.28.0",
"version": "4.28.1",
"description": "Finite State Machines and Statecharts for the Modern Web.",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/xstate-analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"url": "https://github.com/davidkpiano/xstate/issues"
},
"peerDependencies": {
"xstate": "^4.7.0-rc"
"xstate": "^4.28.1"
},
"devDependencies": {
"jest": "^26.6.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/xstate-graph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"url": "https://github.com/davidkpiano/xstate/issues"
},
"peerDependencies": {
"xstate": "^4.9.0"
"xstate": "^4.28.1"
},
"devDependencies": {
"jest": "^26.6.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/xstate-immer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"dependencies": {},
"peerDependencies": {
"immer": "^9.0.6",
"xstate": "^4.9.1"
"xstate": "^4.28.1"
},
"devDependencies": {
"immer": "^9.0.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/xstate-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"peerDependencies": {
"@xstate/fsm": "^1.0.0",
"react": "^16.8.0 || ^17.0.0",
"xstate": "^4.11.0"
"xstate": "^4.28.1"
},
"peerDependenciesMeta": {
"@xstate/fsm": {
Expand Down
2 changes: 1 addition & 1 deletion packages/xstate-scxml/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"dependencies": {
"xml-js": "^1.6.11",
"xstate": "^4.28.0"
"xstate": "^4.28.1"
},
"devDependencies": {
"@scion-scxml/test-framework": "^2.0.15",
Expand Down
2 changes: 1 addition & 1 deletion packages/xstate-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"peerDependencies": {
"@xstate/fsm": "^1.0.0",
"svelte": "^3.24.1",
"xstate": "^4.11.0"
"xstate": "^4.28.1"
},
"peerDependenciesMeta": {
"@xstate/fsm": {
Expand Down
2 changes: 1 addition & 1 deletion packages/xstate-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"url": "https://github.com/davidkpiano/xstate/issues"
},
"peerDependencies": {
"xstate": "^4.9.0"
"xstate": "^4.28.1"
},
"devDependencies": {
"jest": "^26.6.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/xstate-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"peerDependencies": {
"@xstate/fsm": "^1.0.0",
"vue": "^3.0.0",
"xstate": "^4.7.8"
"xstate": "^4.28.1"
},
"peerDependenciesMeta": {
"@xstate/fsm": {
Expand Down

0 comments on commit 9f3141c

Please sign in to comment.