Open renovate[bot] opened 7 months ago
Name | Link |
---|---|
Latest commit | b06be3a7106e7ed4067b68ed10ddb0443e9985e4 |
Latest deploy log | https://app.netlify.com/sites/superstore-redwood-stripe/deploys/673372f58d16920008d14e45 |
Deploy Preview | https://deploy-preview-476--superstore-redwood-stripe.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
This PR contains the following updates:
3.2.2
->5.0.0
4.38.0
->5.19.0
Release Notes
statelyai/xstate (@xstate/react)
### [`v5.0.0`](https://redirect.github.com/statelyai/xstate/releases/tag/xstate%405.0.0) [Compare Source](https://redirect.github.com/statelyai/xstate/compare/@xstate/react@4.1.3...@xstate/react@5.0.0) ##### Major Changes - [`d3d6149`](https://redirect.github.com/statelyai/xstate/commit/d3d6149c7): If context types are specified in the machine config, the `context` property will now be required: ```ts // ❌ TS error createMachine({ types: {} as { context: { count: number }; } // Missing context property }); // ✅ OK createMachine({ types: {} as { context: { count: number }; }, context: { count: 0 } }); ``` - [`d3d6149`](https://redirect.github.com/statelyai/xstate/commit/d3d6149c7): - The third argument of `machine.transition(state, event)` has been removed. The `context` should always be given as part of the `state`. - There is a new method: `machine.microstep(snapshot, event)` which returns the resulting intermediate `MachineSnapshot` object that represents a single microstep being taken when transitioning from `snapshot` via the `event`. This is the `MachineSnapshot` that does not take into account transient transitions nor raised events, and is useful for debugging. - The `state.events` property has been removed from the `State` object - The `state.historyValue` property now more closely represents the original SCXML algorithm, and is a mapping of state node IDs to their historic descendent state nodes. This is used for resolving history states, and should be considered internal. - The `stateNode.isTransient` property is removed from `StateNode`. - The `.initial` property of a state node config object can now contain executable content (i.e., actions): ```js // ... initial: { target: 'someTarget', actions: [/* initial actions */] } ``` - Assign actions (via `assign()`) will now be executed "in order", rather than automatically prioritized. They will be evaluated after previously defined actions are evaluated, and actions that read from `context` will have those intermediate values applied, rather than the final resolved value of all `assign()` actions taken, which was the previous behavior. This shouldn't change the behavior for most state machines. To maintain the previous behavior, ensure that `assign()` actions are defined before any other actions. - [`d3d6149`](https://redirect.github.com/statelyai/xstate/commit/d3d6149c7): An error will be thrown if an `initial` state key is not specified for compound state nodes. For example: ```js const lightMachine = createMachine({ id: 'light', initial: 'green', states: { green: {}, yellow: {}, red: { // Forgotten initial state: // initial: 'walk', states: { walk: {}, wait: {} } } } }); ``` You will get the error: No initial state specified for state node "#light.red". Try adding { initial: "walk" } to the state config. - [`d3d6149`](https://redirect.github.com/statelyai/xstate/commit/d3d6149c7): IDs for delayed events are no longer derived from event types so this won't work automatically: ```ts entry: raise({ type: 'TIMER' }, { delay: 200 }); exit: cancel('TIMER'); ``` Please use explicit IDs: ```ts entry: raise({ type: 'TIMER' }, { delay: 200, id: 'myTimer' }); exit: cancel('myTimer'); ``` - [`d3d6149`](https://redirect.github.com/statelyai/xstate/commit/d3d6149c7): Removed `State#toStrings` method. - [`d3d6149`](https://redirect.github.com/statelyai/xstate/commit/d3d6149c7): The machine's `context` is now restricted to an `RecordConfiguration
📅 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 is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.