Skip to content

Comments

Update dependency xstate to v5.28.0#2081

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/xstate-monorepo
Open

Update dependency xstate to v5.28.0#2081
renovate[bot] wants to merge 1 commit intomainfrom
renovate/xstate-monorepo

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Feb 15, 2026

This PR contains the following updates:

Package Change Age Confidence
xstate (source) 5.25.05.28.0 age confidence

Release Notes

statelyai/xstate (xstate)

v5.28.0

Compare Source

Minor Changes
  • #​4184 a741fe7 Thanks @​davidkpiano! - Added routable states. States with route: {} and an explicit id can be navigated to from anywhere via a single { type: 'xstate.route', to: '#id' } event.

    const machine = setup({}).createMachine({
      id: 'app',
      initial: 'home',
      states: {
        home: { id: 'home', route: {} },
        dashboard: {
          initial: 'overview',
          states: {
            overview: { id: 'overview', route: {} },
            settings: { id: 'settings', route: {} }
          }
        }
      }
    });
    
    const actor = createActor(machine).start();
    
    // Route directly to deeply nested state from anywhere
    actor.send({ type: 'xstate.route', to: '#settings' });

    Routes support guards for conditional navigation:

    settings: {
      id: 'settings',
      route: {
        guard: ({ context }) => context.role === 'admin'
      }
    }
Patch Changes

v5.27.0

Compare Source

Minor Changes
  • #​5457 287b51e Thanks @​davidkpiano! - Add getInitialMicrosteps(…) and getMicrosteps(…) functions that return an array of [snapshot, actions] tuples for each microstep in a transition.

    import { createMachine, getInitialMicrosteps, getMicrosteps } from 'xstate';
    
    const machine = createMachine({
      initial: 'a',
      states: {
        a: {
          entry: () => console.log('enter a'),
          on: {
            NEXT: 'b'
          }
        },
        b: {
          entry: () => console.log('enter b'),
          always: 'c'
        },
        c: {}
      }
    });
    
    // Get microsteps from initial transition
    const initialMicrosteps = getInitialMicrosteps(machine);
    // Returns: [
    //  [snapshotA, [entryActionA]]
    // ]
    
    // Get microsteps from a transition
    const microsteps = getMicrosteps(machine, initialMicrosteps[0][0], {
      type: 'NEXT'
    });
    // Returns: [
    //  [snapshotB, [entryActionB]],
    //  [snapshotC, []]
    // ]
    
    // Each microstep is a tuple of [snapshot, actions]
    for (const [snapshot, actions] of microsteps) {
      console.log('State:', snapshot.value);
      console.log('Actions:', actions.length);
    }

v5.26.0

Compare Source

Minor Changes
  • #​5406 703c3a1 Thanks @​davidkpiano! - Add getNextTransitions(state) utility to get all transitions available from current state.

    import { getNextTransitions } from 'xstate';
    
    // ...
    
    const state = actor.getSnapshot();
    const transitions = getNextTransitions(state);
    
    transitions.forEach((t) => {
      console.log(`Event: ${t.eventType}, Source: ${t.source.key}`);
    });

v5.25.1

Compare Source

Patch Changes

Configuration

📅 Schedule: Branch creation - "after 9pm on sunday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@bolt-new-by-stackblitz
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@socket-security
Copy link

socket-security bot commented Feb 15, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedxstate@​5.25.0 ⏵ 5.28.09810010096 +7100

View full report

@github-actions
Copy link
Contributor

github-actions bot commented Feb 15, 2026

Project Preview URL1 Manage
Limber https://renovate-xstate-monorepo.limber-glimdown.pages.dev on Cloudflare
Tutorial https://renovate-xstate-monorepo.limber-glimmer-tutorial.pages.dev on Cloudflare

Logs

Footnotes

  1. if these branch preview links are not working, please check the logs for the commit-based preview link. There is a character limit of 28 for the branch subdomain, as well as some other heuristics, described here for the sake of implementation ease in deploy-preview.yml, that algo has been omitted. The URLs are logged in the wrangler output, but it's hard to get outputs from a matrix job.

@renovate renovate bot force-pushed the renovate/xstate-monorepo branch from 5b4bc99 to 15aee04 Compare February 15, 2026 23:30
@renovate renovate bot force-pushed the renovate/xstate-monorepo branch from 15aee04 to 6079ef6 Compare February 15, 2026 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants