Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jul 6, 2025

This PR contains the following updates:

Package Change Age Confidence
xstate (source) 5.20.0 -> 5.24.0 age confidence

Release Notes

statelyai/xstate (xstate)

v5.24.0

Compare Source

Minor Changes
  • #​5371 b8ec3b1 Thanks @​davidkpiano! - Add setup.extend() method to incrementally extend machine setup configurations with additional actions, guards, and delays. This enables composable and reusable machine setups where extended actions, guards, and delays can reference base actions, guards, and delays and support chaining multiple extensions:

    import { setup, not, and } from 'xstate';
    
    const baseSetup = setup({
      guards: {
        isAuthenticated: () => true,
        hasPermission: () => false
      }
    });
    
    const extendedSetup = baseSetup.extend({
      guards: {
        // Type-safe guard references
        isUnauthenticated: not('isAuthenticated'),
        canAccess: and(['isAuthenticated', 'hasPermission'])
      }
    });
    
    // Both base and extended guards are available
    extendedSetup.createMachine({
      on: {
        LOGIN: {
          guard: 'isAuthenticated',
          target: 'authenticated'
        },
        LOGOUT: {
          guard: 'isUnauthenticated',
          target: 'unauthenticated'
        }
      }
    });

v5.23.0

Compare Source

Minor Changes
  • #​5387 53dd7f1 Thanks @​farskid! - Adds system.getAll that returns a record of running actors within the system by their system id

    const childMachine = createMachine({});
    const machine = createMachine({
      // ...
      invoke: [
        {
          src: childMachine,
          systemId: 'test'
        }
      ]
    });
    const system = createActor(machine);
    
    system.getAll(); // { test: ActorRefFrom<typeof childMachine> }

v5.22.1

Compare Source

Patch Changes

v5.22.0

Compare Source

Minor Changes
  • #​5367 76c857e Thanks @​davidkpiano! - Add type-bound action helpers to setup():

    • createAction(fn) – create type-safe custom actions
    • setup().assign(...), setup().sendTo(...), setup().raise(...), setup().log(...), setup().cancel(...), setup().stopChild(...), setup().enqueueActions(...), setup().emit(...), setup().spawnChild(...) – setup-scoped helpers that are fully typed to the setup's context/events/actors/guards/delays/emitted.

    These helpers return actions that are bound to the specific setup() they were created from and can be used directly in the machine produced by that setup.

    const machineSetup = setup({
      types: {} as {
        context: {
          count: number;
        };
        events: { type: 'inc'; value: number } | { type: 'TEST' };
        emitted: { type: 'PING' };
      }
    });
    
    // Custom action
    const action = machineSetup.createAction(({ context, event }) => {
      console.log(context.count, event.value);
    });
    
    // Type-bound built-ins (no wrapper needed)
    const increment = machineSetup.assign({
      count: ({ context }) => context.count + 1
    });
    const raiseTest = machineSetup.raise({ type: 'TEST' });
    const ping = machineSetup.emit({ type: 'PING' });
    const batch = machineSetup.enqueueActions(({ enqueue, check }) => {
      if (check(() => true)) {
        enqueue(increment);
      }
    });
    
    const machine = machineSetup.createMachine({
      context: { count: 0 },
      entry: [action, increment, raiseTest, ping, batch]
    });

v5.21.0

Compare Source

Minor Changes
  • #​5364 15e15b5 Thanks @​davidkpiano! - Added .createStateConfig(…) to the setup API. This makes it possible to create state configs that are strongly typed and modular.

    const lightMachineSetup = setup({
      // ...
    });
    
    const green = lightMachineSetup.createStateConfig({
      //...
    });
    
    const yellow = lightMachineSetup.createStateConfig({
      //...
    });
    
    const red = lightMachineSetup.createStateConfig({
      //...
    });
    
    const machine = lightMachineSetup.createMachine({
      initial: 'green',
      states: {
        green,
        yellow,
        red
      }
    });

v5.20.2

Compare Source

Patch Changes
  • #​5351 71387ff Thanks @​davidkpiano! - Fix: Emit callback errors no longer crash the actor

    actor.on('event', () => {
      // Will no longer crash the actor
      throw new Error('oops');
    });

v5.20.1

Compare Source

Patch Changes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, 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.

@vercel
Copy link

vercel bot commented Jul 6, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
react-deckbuilder Ready Ready Preview Comment Nov 3, 2025 8:16pm

@renovate renovate bot changed the title Update dependency xstate to v5.20.1 Update dependency xstate to v5.20.2 Aug 7, 2025
@renovate renovate bot force-pushed the renovate/xstate-monorepo branch from 42273b8 to 5dfadb7 Compare August 7, 2025 11:22
@renovate renovate bot changed the title Update dependency xstate to v5.20.2 Update dependency xstate to v5.21.0 Aug 31, 2025
@renovate renovate bot force-pushed the renovate/xstate-monorepo branch from 5dfadb7 to 48e9516 Compare August 31, 2025 09:06
@renovate renovate bot changed the title Update dependency xstate to v5.21.0 Update dependency xstate to v5.22.0 Sep 18, 2025
@renovate renovate bot force-pushed the renovate/xstate-monorepo branch from 48e9516 to 519207b Compare September 18, 2025 22:44
@renovate renovate bot force-pushed the renovate/xstate-monorepo branch from 519207b to 7975f6d Compare September 25, 2025 18:55
@renovate renovate bot force-pushed the renovate/xstate-monorepo branch from 7975f6d to 1b67e53 Compare October 2, 2025 18:11
@renovate renovate bot changed the title Update dependency xstate to v5.22.0 Update dependency xstate to v5.22.1 Oct 2, 2025
@renovate renovate bot force-pushed the renovate/xstate-monorepo branch from 1b67e53 to ea1872c Compare October 11, 2025 09:51
@renovate renovate bot changed the title Update dependency xstate to v5.22.1 Update dependency xstate to v5.23.0 Oct 11, 2025
@renovate renovate bot changed the title Update dependency xstate to v5.23.0 Update dependency xstate to v5.24.0 Nov 3, 2025
@renovate renovate bot force-pushed the renovate/xstate-monorepo branch from ea1872c to ce8f6c7 Compare November 3, 2025 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant