Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency @xstate/react to v5 #1571

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 16, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@xstate/react (source) ^4.1.1 -> ^5.0.0 age adoption passing confidence

Release Notes

statelyai/xstate (@​xstate/react)

v5.0.0

Compare Source

Patch Changes

v4.1.3

Compare Source

Patch Changes

v4.1.2

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.


Configuration

📅 Schedule: Branch creation - "every weekend" in timezone America/Los_Angeles, Automerge - At any time (no schedule defined).

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

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.

@renovate renovate bot requested a review from a team as a code owner November 16, 2024 13:54
Copy link

pkg-pr-new bot commented Nov 16, 2024

npm i https://pkg.pr.new/apollographql/apollo-client-devtools/@apollo/client-devtools-vscode@1571

commit: 99d89e3

Copy link

relativeci bot commented Nov 16, 2024

#1005 Bundle Size — 1.62MiB (+0.08%).

99d89e3(current) vs f4be772 main#1002(baseline)

Warning

Bundle contains 13 duplicate packages – View duplicate packages

Bundle metrics  Change 2 changes Regression 1 regression
                 Current
#1005
     Baseline
#1002
Regression  Initial JS 1.49MiB(+0.01%) 1.49MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 87.85% 0%
No change  Chunks 5 5
No change  Assets 145 145
No change  Modules 1224 1224
No change  Duplicate Modules 45 45
No change  Duplicate Code 3.12% 3.12%
No change  Packages 183 183
No change  Duplicate Packages 10 10
Bundle size by type  Change 2 changes Regression 2 regressions
                 Current
#1005
     Baseline
#1002
Regression  JS 1.49MiB (+0.01%) 1.49MiB
Regression  Other 92.39KiB (+1.29%) 91.22KiB
No change  IMG 35.85KiB 35.85KiB
No change  HTML 857B 857B

Bundle analysis reportBranch renovate/xstate-react-5.xProject dashboard


Generated by RelativeCIDocumentationReport issue

@renovate renovate bot force-pushed the renovate/xstate-react-5.x branch 3 times, most recently from c154dd3 to 1a5f6ef Compare November 23, 2024 15:55
@renovate renovate bot force-pushed the renovate/xstate-react-5.x branch from 1a5f6ef to 99d89e3 Compare November 23, 2024 19:32
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