Skip to content

Commit 5279ce6

Browse files
Version Packages (#5229)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 1327916 commit 5279ce6

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

.changeset/dry-walls-poke.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

packages/xstate-store/CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# @xstate/store
22

3+
## 3.3.0
4+
5+
### Minor Changes
6+
7+
- [#5215](https://github.com/statelyai/xstate/pull/5215) [`13279166ed9fa3d3626a2129bd257f6cd663fd0e`](https://github.com/statelyai/xstate/commit/13279166ed9fa3d3626a2129bd257f6cd663fd0e) Thanks [@davidkpiano](https://github.com/davidkpiano)! - Added `store.transition(state, event)` method that returns the next state and effects for a given state and event as a tuple, without actually updating the store. This is useful for computing state changes before committing them, or controlling the execution of effects.
8+
9+
Example:
10+
11+
```ts
12+
const [nextState, effects] = store.transition(store.getSnapshot(), {
13+
type: 'increment',
14+
by: 1
15+
});
16+
```
17+
318
## 3.2.1
419

520
### Patch Changes

packages/xstate-store/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@xstate/store",
3-
"version": "3.2.1",
3+
"version": "3.3.0",
44
"description": "Simple stores",
55
"keywords": [
66
"store",

0 commit comments

Comments
 (0)