Skip to content

Commit 4e76bf0

Browse files
Version Packages (#5252)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 86e6b58 commit 4e76bf0

File tree

3 files changed

+23
-22
lines changed

3 files changed

+23
-22
lines changed

.changeset/wild-shoes-eat.md

-21
This file was deleted.

packages/xstate-store/CHANGELOG.md

+22
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
# @xstate/store
22

3+
## 3.4.3
4+
5+
### Patch Changes
6+
7+
- [#5230](https://github.com/statelyai/xstate/pull/5230) [`86e6b58dd18337202df8e319a42f85523d5d0d30`](https://github.com/statelyai/xstate/commit/86e6b58dd18337202df8e319a42f85523d5d0d30) Thanks [@davidkpiano](https://github.com/davidkpiano)! - The types for emitting events with no payload have been fixed so that the following code works:
8+
9+
```ts
10+
const store = createStore({
11+
emits: {
12+
incremented: () => {}
13+
},
14+
on: {
15+
inc: (ctx, ev, enq) => {
16+
// No payload is expected
17+
enq.emit.incremented();
18+
}
19+
}
20+
});
21+
```
22+
23+
Previously, this would have been an error because the `incremented` event was expected to have a payload.
24+
325
## 3.4.2
426

527
### Patch Changes

packages/xstate-store/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@xstate/store",
3-
"version": "3.4.2",
3+
"version": "3.4.3",
44
"description": "Simple stores",
55
"keywords": [
66
"store",

0 commit comments

Comments
 (0)