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@1571
npm i https://pkg.pr.new/apollographql/apollo-client-devtools/@apollo/client-devtools-vscode@1571

commit: 2d2a14d

Copy link

relativeci bot commented Nov 16, 2024

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

2d2a14d(current) vs 31394f0 main#1051(baseline)

Warning

Bundle contains 13 duplicate packages – View duplicate packages

Bundle metrics  Change 3 changes Regression 1 regression
                 Current
#1056
     Baseline
#1051
Regression  Initial JS 1.49MiB(+0.01%) 1.49MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 87.76% 0%
No change  Chunks 5 5
No change  Assets 147 147
No change  Modules 1224 1224
No change  Duplicate Modules 45 45
Change  Duplicate Code 3.11%(-0.32%) 3.12%
No change  Packages 183 183
No change  Duplicate Packages 10 10
Bundle size by type  Change 2 changes Regression 2 regressions
                 Current
#1056
     Baseline
#1051
Regression  JS 1.49MiB (+0.01%) 1.49MiB
Regression  Other 93.5KiB (+1.27%) 92.32KiB
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 2 times, most recently from 99d89e3 to 9e6603a Compare November 30, 2024 10:54
@renovate renovate bot force-pushed the renovate/xstate-react-5.x branch 2 times, most recently from 2d2a14d to d9a8be2 Compare December 14, 2024 09:49
@renovate renovate bot force-pushed the renovate/xstate-react-5.x branch 2 times, most recently from d80bb70 to 42b184b Compare December 21, 2024 15:34
@renovate renovate bot force-pushed the renovate/xstate-react-5.x branch from 42b184b to e0c8592 Compare December 21, 2024 18:29
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