# XState 5.30.0 - Product: XState (https://whatsnew.fyi/product/xstate) - Vendor: Stately - Date: 2026-03-28 - Version: 5.30.0 - Original notes: https://github.com/statelyai/xstate/releases/tag/xstate%405.30.0 - Permalink: https://whatsnew.fyi/product/xstate/releases/5.30.0 What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: the summaries, labels and curation here are © What's New. Quote freely with attribution and a link back; wholesale republication of the corpus is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. --- - **added** — Add a filterEvents option to xstate/graph traversal helpers and createTestModel(...) to control which events should be explored from each state ###### Minor Changes - [#5493](https://github.com/statelyai/xstate/pull/5493) [`871857d`](https://github.com/statelyai/xstate/commit/871857d730b7c333728da2b17bc36844697e8f88) Thanks [@davidkpiano](https://github.com/davidkpiano)! - Add a `filterEvents` option to `xstate/graph` traversal helpers and `createTestModel(...)` to control which events should be explored from each state. This makes it possible to opt into enabled-only traversal for machine snapshots, such as when you only want to explore events that currently pass guards: ```ts import { createTestModel } from 'xstate/graph'; const model = createTestModel(machine); const paths = model.getSimplePaths({ filterEvents: (state, event) => state.can(event) }); ```