Skip to content

Commit 1710ace

Browse files
Version Packages (#5458)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 703c3a1 commit 1710ace

File tree

3 files changed

+20
-19
lines changed

3 files changed

+20
-19
lines changed

.changeset/slow-horses-stop.md

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

packages/core/CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# xstate
22

3+
## 5.26.0
4+
5+
### Minor Changes
6+
7+
- [#5406](https://github.com/statelyai/xstate/pull/5406) [`703c3a1`](https://github.com/statelyai/xstate/commit/703c3a109c824f2334ede31d8428e923d2727e6e) Thanks [@davidkpiano](https://github.com/davidkpiano)! - Add `getNextTransitions(state)` utility to get all transitions available from current `state`.
8+
9+
```ts
10+
import { getNextTransitions } from 'xstate';
11+
12+
// ...
13+
14+
const state = actor.getSnapshot();
15+
const transitions = getNextTransitions(state);
16+
17+
transitions.forEach((t) => {
18+
console.log(`Event: ${t.eventType}, Source: ${t.source.key}`);
19+
});
20+
```
21+
322
## 5.25.1
423

524
### Patch Changes

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "xstate",
3-
"version": "5.25.1",
3+
"version": "5.26.0",
44
"description": "Finite State Machines and Statecharts for the Modern Web.",
55
"main": "dist/xstate.cjs.js",
66
"module": "dist/xstate.esm.js",

0 commit comments

Comments
 (0)