Skip to content

fix(deps): update xstate monorepo to v5 - #1922

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/major-xstate-monorepo
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/major-xstate-monorepo

Conversation

@renovate

@renovate renovate Bot commented May 13, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
@xstate/vue (source) ^2.0.0 → ^5.0.1 age confidence
xstate (source) ^4.38.3 → ^5.33.2 age confidence

Release Notes

statelyai/xstate (@​xstate/vue)

v5.0.1

Compare Source

Patch Changes

v5.0.0

Compare Source

Patch Changes

v4.0.4

Compare Source

Patch Changes

v4.0.3

Compare Source

Patch Changes

v4.0.2

Compare Source

Patch Changes

v4.0.1

Compare Source

Patch Changes

v4.0.0

Compare Source

Patch Changes

v3.1.4

Compare Source

Patch Changes

v3.1.3

Compare Source

Patch Changes
  • #​5055 ad38c35c37 Thanks @​SandroMaglione! - Updated types of useActor, useMachine, and useActorRef to require input when defined inside types/input.

    Previously even when input was defined inside types, useActor, useMachine, and useActorRef would not make the input required:

    const machine = setup({
      types: {
        input: {} as { value: number }
      }
    }).createMachine({});
    
    function App() {
      // Event if `input` is not defined, `useMachine` works at compile time, but risks crashing at runtime
      const _ = useMachine(machine);
      return <></>;
    }

    With this change the above code will show a type error, since input is now required:

    const machine = setup({
      types: {
        input: {} as { value: number }
      }
    }).createMachine({});
    
    function App() {
      const _ = useMachine(machine, {
        input: { value: 1 } // Now input is required at compile time!
      });
      return <></>;
    }

    This avoids runtime errors when forgetting to pass input when defined inside types.

v3.1.2

Compare Source

Patch Changes
  • #​4844 5aa6eb05c Thanks @​davidkpiano! - The useSelector(…) hook from @xstate/react is now compatible with stores from @xstate/store.

    import { createStore } from '@xstate/store';
    import { useSelector } from '@xstate/react';
    
    const store = createStore(
      {
        count: 0
      },
      {
        inc: {
          count: (context) => context.count + 1
        }
      }
    );
    
    function Counter() {
      // Note that this `useSelector` is from `@xstate/react`,
      // not `@xstate/store/react`
      const count = useSelector(store, (state) => state.context.count);
    
      return (
        <div>
          <button onClick={() => store.send({ type: 'inc' })}>{count}</button>
        </div>
      );
    }

v3.1.1

Compare Source

Patch Changes

v3.1.0

Compare Source

Minor Changes
  • #​4231 c2402e7bc Thanks @​davidkpiano! - The actor passed to useSelector(actor, selector) is now allowed to be undefined for an actor that may not exist yet. For actors that may be undefined, the snapshot provided to the selector function can also be undefined:

    const count = useSelector(maybeActor, (snapshot) => {
      // `snapshot` may be undefined
      return snapshot?.context.count;
    });
    
    count; // number | undefined

v3.0.3

Compare Source

Patch Changes

v3.0.2

Compare Source

Patch Changes

v3.0.1

Compare Source

Patch Changes

v3.0.0

Compare Source

Major Changes
  • #​4288 cfdf754f8 Thanks @​davidkpiano! - The useMachine(machine) hook now returns { snapshot, send, actorRef } instead of { state, send, service }:

    const {
    - state,
    + snapshot,
      send,
    - service
    + actorRef
    } = useMachine(machine);
  • #​3148 7a68cbb61 Thanks @​davidkpiano! - Removed getSnapshot parameter from composables. It is expected that the received actorRef has to have a getSnapshot method on it that can be used internally.

  • #​4265 1153b3f9a Thanks @​davidkpiano! - FSM-related functions have been removed.

Minor Changes
  • #​3727 5fb3c683d Thanks @​Andarist! - exports field has been added to the package.json manifest. It limits what files can be imported from a package - it's no longer possible to import from files that are not considered to be a part of the public API.
  • #​4288 cfdf754f8 Thanks @​davidkpiano! - The useInterpret(machine) and useSpawn(machine) hooks have been removed; use the useActorRef(machine) hook instead.

Configuration

📅 Schedule: (in timezone America/New_York)

  • Branch creation
    • Between 12:00 AM and 03:59 AM (* 0-3 * * *)
  • Automerge
    • Monday through Friday (* * * * 1-5)

🚦 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 these updates again.


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

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

@renovate renovate Bot added dependencies Pull requests that update a dependency file renovate-bot labels May 13, 2026
@renovate
renovate Bot requested review from a team and kongponents-bot as code owners May 13, 2026 06:25
@renovate renovate Bot added dependencies Pull requests that update a dependency file renovate-bot labels May 13, 2026
@renovate
renovate Bot force-pushed the renovate/major-xstate-monorepo branch 2 times, most recently from bdb40d7 to 339918f Compare May 27, 2026 07:49
@renovate
renovate Bot force-pushed the renovate/major-xstate-monorepo branch from 339918f to 7be893e Compare May 30, 2026 07:10
@renovate
renovate Bot force-pushed the renovate/major-xstate-monorepo branch 2 times, most recently from bcceb7d to 4a0ec87 Compare June 13, 2026 06:44
@renovate
renovate Bot force-pushed the renovate/major-xstate-monorepo branch 2 times, most recently from aa0d31d to 2329f40 Compare June 25, 2026 07:48
@renovate
renovate Bot force-pushed the renovate/major-xstate-monorepo branch from 2329f40 to 18dbf2b Compare July 6, 2026 04:29
@renovate
renovate Bot force-pushed the renovate/major-xstate-monorepo branch 3 times, most recently from 4692a1c to 985b2a2 Compare July 18, 2026 06:42
@renovate
renovate Bot force-pushed the renovate/major-xstate-monorepo branch 4 times, most recently from 2eb77bc to 6208ad6 Compare July 29, 2026 07:39
@renovate
renovate Bot force-pushed the renovate/major-xstate-monorepo branch 2 times, most recently from fcb26dc to dbb229b Compare August 2, 2026 07:17
@renovate
renovate Bot force-pushed the renovate/major-xstate-monorepo branch 2 times, most recently from f58018f to b0328ac Compare August 8, 2026 06:37
@renovate
renovate Bot force-pushed the renovate/major-xstate-monorepo branch 3 times, most recently from dd64b6e to b0f3735 Compare September 2, 2026 04:32
@renovate
renovate Bot force-pushed the renovate/major-xstate-monorepo branch 2 times, most recently from 794bd2b to fa9f0ad Compare September 7, 2026 04:01
@renovate
renovate Bot force-pushed the renovate/major-xstate-monorepo branch 2 times, most recently from 5181d84 to 5ad76c3 Compare September 16, 2026 07:27
@renovate
renovate Bot force-pushed the renovate/major-xstate-monorepo branch 3 times, most recently from 3cbef59 to b3bd79e Compare September 28, 2026 04:13
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@renovate
renovate Bot force-pushed the renovate/major-xstate-monorepo branch from b3bd79e to 30f952e Compare October 2, 2026 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file renovate-bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants