stipsan / react-spring-bottom-sheet

Accessible ♿️, Delightful ✨, & Fast 🚀
https://react-spring.bottom-sheet.dev/
MIT License
967 stars 133 forks source link

fix(deps): update dependency @xstate/react to v3 - autoclosed #265

Closed renovate[bot] closed 1 year ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

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

Release Notes

statelyai/xstate ### [`v3.2.2`](https://togithub.com/statelyai/xstate/releases/tag/%40xstate/react%403.2.2) [Compare Source](https://togithub.com/statelyai/xstate/compare/@xstate/react@3.2.1...@xstate/react@3.2.2) ##### Patch Changes - [#​3919](https://togithub.com/statelyai/xstate/pull/3919) [`6665f0a32`](https://togithub.com/statelyai/xstate/commit/6665f0a32327407e8fec12240383f211094d929c) Thanks [@​c-w](https://togithub.com/c-w)! - Updated the allowed range for the `use-isomorphic-layout-effect` dependency. ### [`v3.2.1`](https://togithub.com/statelyai/xstate/releases/tag/%40xstate/react%403.2.1) [Compare Source](https://togithub.com/statelyai/xstate/compare/@xstate/react@3.2.0...@xstate/react@3.2.1) ##### Patch Changes - [#​3829](https://togithub.com/statelyai/xstate/pull/3829) [`c110c429d`](https://togithub.com/statelyai/xstate/commit/c110c429d33cb724242ff65136de3ebe408eab97) Thanks [@​Andarist](https://togithub.com/Andarist)! - Fixed compatibility of the generated TS types for `createActorContext` with pre-4.7. ### [`v3.2.0`](https://togithub.com/statelyai/xstate/releases/tag/%40xstate/react%403.2.0) [Compare Source](https://togithub.com/statelyai/xstate/compare/@xstate/react@3.1.2...@xstate/react@3.2.0) ##### Minor Changes - [#​3814](https://togithub.com/statelyai/xstate/pull/3814) [`494203b3d`](https://togithub.com/statelyai/xstate/commit/494203b3dc358807e96cf1368f1347ff8e1d14e3) Thanks [@​Andarist](https://togithub.com/Andarist)! - The `Provider` from `createActorContext(...)` now accepts the `options={{...}}` prop that takes the same object as the second argument to the `useMachine(machine, options)` hook. These options are no longer passed as the second argument to the `createActorContext(machine)` function: ```diff -const SomeContext = createActorContext(someMachine, - { actions: { ... } }); +const SomeContext = createActorContext(someMachine); // ... - + // ... ``` ### [`v3.1.2`](https://togithub.com/statelyai/xstate/releases/tag/%40xstate/react%403.1.2) [Compare Source](https://togithub.com/statelyai/xstate/compare/@xstate/react@3.1.1...@xstate/react@3.1.2) ##### Patch Changes - [#​3804](https://togithub.com/statelyai/xstate/pull/3804) [`b53856d28`](https://togithub.com/statelyai/xstate/commit/b53856d28da4ecbba7d4393f72aa38894fd523d9) Thanks [@​farskid](https://togithub.com/farskid)! - Interpreter options can now be specified in the second argument of createActorContext(machine, options). ### [`v3.1.1`](https://togithub.com/statelyai/xstate/releases/tag/%40xstate/react%403.1.1) [Compare Source](https://togithub.com/statelyai/xstate/compare/@xstate/react@3.1.0...@xstate/react@3.1.1) ##### Patch Changes - [#​3799](https://togithub.com/statelyai/xstate/pull/3799) [`51d254692`](https://togithub.com/statelyai/xstate/commit/51d254692c2d267c24c65fc5802461540c012393) Thanks [@​Andarist](https://togithub.com/Andarist)! - Fixed an issue that caused the internally used `useSyncExternalStore` to warn about the computed snapshot not being cached when a not-started machine servive was passed to `useActor`. ### [`v3.1.0`](https://togithub.com/statelyai/xstate/releases/tag/%40xstate/react%403.1.0) [Compare Source](https://togithub.com/statelyai/xstate/compare/@xstate/react@3.0.2...@xstate/react@3.1.0) ##### Minor Changes - [#​3778](https://togithub.com/statelyai/xstate/pull/3778) [`f12248b23`](https://togithub.com/statelyai/xstate/commit/f12248b2379e4e554d69a238019216feea5211f6) Thanks [@​davidkpiano](https://togithub.com/davidkpiano)! - The `createActorContext(...)` helper has been introduced to make global actors easier to use with React. It outputs a React Context object with the following properties: - `.Provider` - The React Context provider - `.useActor(...)` - A hook that can be used to get the current state and send events to the actor - `.useSelector(...)` - A hook that can be used to select some derived state from the actor's state - `.useActorRef()` - A hook that can be used to get a reference to the actor that can be passed to other components Usage: ```jsx import { createActorContext } from '@​xstate/react'; import { someMachine } from './someMachine'; // Create a React Context object that will interpret the machine const SomeContext = createActorContext(someMachine); function SomeComponent() { // Get the current state and `send` function const [state, send] = SomeContext.useActor(); // Or select some derived state const someValue = SomeContext.useSelector((state) => state.context.someValue); // Or get a reference to the actor const actorRef = SomeContext.useActorRef(); return (/* ... */); } function App() { return ( ); } ``` ### [`v3.0.2`](https://togithub.com/statelyai/xstate/releases/tag/%40xstate/react%403.0.2) [Compare Source](https://togithub.com/statelyai/xstate/compare/@xstate/react@3.0.1...@xstate/react@3.0.2) ##### Patch Changes - [#​3752](https://togithub.com/statelyai/xstate/pull/3752) [`4190c3fd6`](https://togithub.com/statelyai/xstate/commit/4190c3fd6d9bb6e7fca5c01cc1722f40e7e63399) Thanks [@​davidkpiano](https://togithub.com/davidkpiano)! - Computing the initial state is now consistent with `useMachine` and `useActor`, avoiding stale initial state problems with nested machines ### [`v3.0.1`](https://togithub.com/statelyai/xstate/releases/tag/%40xstate/react%403.0.1) [Compare Source](https://togithub.com/statelyai/xstate/compare/@xstate/react@3.0.0...@xstate/react@3.0.1) ##### Patch Changes - [#​3456](https://togithub.com/statelyai/xstate/pull/3456) [`131d429ab`](https://togithub.com/statelyai/xstate/commit/131d429ab350aaca371c4c7974829c621a50c024) Thanks [@​davidkpiano](https://togithub.com/davidkpiano)! - Add `shallowEqual` helper comparator function. - [#​3500](https://togithub.com/statelyai/xstate/pull/3500) [`0dfc6d92f`](https://togithub.com/statelyai/xstate/commit/0dfc6d92f6950b3eb78e0693ae3b0abe5751bf42) Thanks [@​Andarist](https://togithub.com/Andarist)! - Fixed an issue with `useSelector` always computing fresh snapshots internally for uninitialized services. This avoids the internal `useSyncExternalStore` from warning about the snapshot value not being cached properly. ### [`v3.0.0`](https://togithub.com/statelyai/xstate/releases/tag/%40xstate/react%403.0.0) [Compare Source](https://togithub.com/statelyai/xstate/compare/@xstate/react@2.0.1...@xstate/react@3.0.0) ##### Major Changes - [#​2939](https://togithub.com/statelyai/xstate/pull/2939) [`360e85462`](https://togithub.com/statelyai/xstate/commit/360e8546298c4a06b6d51d8f12c0563672dd7acf) Thanks [@​Andarist](https://togithub.com/Andarist)! - This package now accepts React 18 as a peer dep and the implementation has been rewritten to use [`use-sync-external-store`](https://www.npmjs.com/package/use-sync-external-store) package. This doesn't break compatibility with older versions of React since we are using the shim to keep compatibility with those older versions. - [#​2939](https://togithub.com/statelyai/xstate/pull/2939) [`360e85462`](https://togithub.com/statelyai/xstate/commit/360e8546298c4a06b6d51d8f12c0563672dd7acf) Thanks [@​Andarist](https://togithub.com/Andarist)! - `asEffect` and `asLayoutEffect` action creators were removed. They were not fitting the React model that well and could lead to issues as their existence suggested that they are easy to use. To execute actions at those exact times you can always either just call your stuff directly from those effects or send events to the machine from those effects and execute explicit actions in response to said events. - [#​2939](https://togithub.com/statelyai/xstate/pull/2939) [`360e85462`](https://togithub.com/statelyai/xstate/commit/360e8546298c4a06b6d51d8f12c0563672dd7acf) Thanks [@​Andarist](https://togithub.com/Andarist)! - The signatures of `useMachine` and `useService` integrating with `@xstate/fsm` were changed. They now only accept a single generic each (`TMachine` and `TService` respectively). This has been done to match their signatures with the related hooks that integrate with `xstate` itself. ##### Patch Changes - [#​2939](https://togithub.com/statelyai/xstate/pull/2939) [`360e85462`](https://togithub.com/statelyai/xstate/commit/360e8546298c4a06b6d51d8f12c0563672dd7acf) Thanks [@​Andarist](https://togithub.com/Andarist)! - In v2 we have changed signatures of `useMachine` and `useInterpret`. Instead of accepting a list of generics they now only support a single generic: `TMachine`. This change, erroneously, was only introduced to types targeting TS@4.x but the types targeting previous TS releases were still using the older signatures. This has now been fixed and users of older TS versions should now be able to leverage typegen with `@xstate/react`. - [#​2939](https://togithub.com/statelyai/xstate/pull/2939) [`360e85462`](https://togithub.com/statelyai/xstate/commit/360e8546298c4a06b6d51d8f12c0563672dd7acf) Thanks [@​Andarist](https://togithub.com/Andarist)! - `useMachine` for `xstate` now correctly rerenders with the initial state when the internal service is being restarted. This might happen during Fast Refresh and now you shouldn't be able to observe this stale state that didn't match the actual state of the service. - [#​2939](https://togithub.com/statelyai/xstate/pull/2939) [`360e85462`](https://togithub.com/statelyai/xstate/commit/360e8546298c4a06b6d51d8f12c0563672dd7acf) Thanks [@​Andarist](https://togithub.com/Andarist)! - `useMachine` for `@xstate/fsm` now starts the service in an effect. This avoids side-effects in render and improves the compatibility with `StrictMode`. - [#​2939](https://togithub.com/statelyai/xstate/pull/2939) [`360e85462`](https://togithub.com/statelyai/xstate/commit/360e8546298c4a06b6d51d8f12c0563672dd7acf) Thanks [@​Andarist](https://togithub.com/Andarist)! - Implementations given to `useMachine` targeting `@xstate/fsm` are now updated in a layout effect. This avoid some stale closure problems for actions that are executed in response to events sent from layout effects. - Updated dependencies \[[`360e85462`](https://togithub.com/statelyai/xstate/commit/360e8546298c4a06b6d51d8f12c0563672dd7acf), [`360e85462`](https://togithub.com/statelyai/xstate/commit/360e8546298c4a06b6d51d8f12c0563672dd7acf)]: - [@​xstate/fsm](https://togithub.com/xstate/fsm)[@​2](https://togithub.com/2).0.0 ### [`v2.0.1`](https://togithub.com/statelyai/xstate/releases/tag/%40xstate/react%402.0.1) [Compare Source](https://togithub.com/statelyai/xstate/compare/@xstate/react@2.0.0...@xstate/react@2.0.1) ##### Patch Changes - [#​3089](https://togithub.com/statelyai/xstate/pull/3089) [`862697e29`](https://togithub.com/statelyai/xstate/commit/862697e2990934d46050580d7e09c749d09d8426) Thanks [@​Andarist](https://togithub.com/Andarist)! - Fixed compatibility with Skypack by exporting some shared utilities from root entry of XState and consuming them directly in other packages (this avoids accessing those things using deep imports and thus it avoids creating those compatibility problems). ### [`v2.0.0`](https://togithub.com/statelyai/xstate/releases/tag/%40xstate/react%402.0.0) [Compare Source](https://togithub.com/statelyai/xstate/compare/@xstate/react@1.6.3...@xstate/react@2.0.0) ##### Major Changes - [#​2674](https://togithub.com/statelyai/xstate/pull/2674) [`e5a8b8dff`](https://togithub.com/statelyai/xstate/commit/e5a8b8dffb88cffbdca26683099ffdf5f1b01c8d) Thanks [@​Andarist](https://togithub.com/Andarist), [@​mattpocock](https://togithub.com/mattpocock)! - To avoid breaking any consumers and to leverage the newly introduced typegen support, the major version of this package had to be bumped. While you can still use it with older versions of TS, the typegen support in this package requires TS version 4.0 or greater. When using hooks from `@xstate/react` it's recommended to skip providing explicit generics to them. Note that that generics list has changed since v1 and we now only accept a single generic, `TMachine`. - [#​2674](https://togithub.com/statelyai/xstate/pull/2674) [`ab919d300`](https://togithub.com/statelyai/xstate/commit/ab919d300f6d2b78871d3399ec58a697c4268d9b) Thanks [@​Andarist](https://togithub.com/Andarist)! - Removed already deprecated `useService` from `@xstate/react`. You can replace its usage with `useActor`. ##### Patch Changes - [#​2957](https://togithub.com/statelyai/xstate/pull/2957) [`8550ddda7`](https://togithub.com/statelyai/xstate/commit/8550ddda73e2ad291e19173d7fa8d13e3336fbb9) Thanks [@​davidkpiano](https://togithub.com/davidkpiano)! - The repository links have been updated from `github.com/davidkpiano` to `github.com/statelyai`.

Configuration

📅 Schedule: Branch creation - "before 3am on Monday" (UTC), 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.



This PR has been generated by Mend Renovate using a preset from Sanity. View repository job log here

socket-security[bot] commented 1 year ago

New dependency changes detected. Learn more about Socket for GitHub ↗︎


👍 No new dependency issues detected in pull request

Bot Commands

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of package-name@version specifiers. e.g. @SocketSecurity ignore foo@1.0.0 bar@* or ignore all packages with @SocketSecurity ignore-all

Pull request alert summary
Issue Status
Install scripts ✅ 0 issues
Native code ✅ 0 issues
Bin script shell injection ✅ 0 issues
Unresolved require ✅ 0 issues
Invalid package.json ✅ 0 issues
HTTP dependency ✅ 0 issues
Git dependency ✅ 0 issues
Potential typo squat ✅ 0 issues
Known Malware ✅ 0 issues
Telemetry ✅ 0 issues
Protestware/Troll package ✅ 0 issues

📊 Modified Dependency Overview:

⬆️ Updated Package Version Diff Added Capability Access +/- Transitive Count Publisher
@xstate/react@3.2.2 1.6.3...3.2.2 None +2/-1 xstate-release-bot