diff --git a/package.json b/package.json index 35304f1f..ea6afb80 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "@types/raf": "^3.4.0", "@types/react": "^18.0.9", "@types/react-dom": "^18.0.3", - "@xstate/react": "^1.6.3", + "@xstate/react": "^4.0.0", "babel-jest": "^29.6.4", "babel-loader": "^8.2.5", "husky": "^7.0.4", diff --git a/yarn.lock b/yarn.lock index 37d1a5b3..34f08e20 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1728,13 +1728,13 @@ semver "^7.3.2" tsutils "^3.17.1" -"@xstate/react@^1.6.3": - version "1.6.3" - resolved "https://registry.yarnpkg.com/@xstate/react/-/react-1.6.3.tgz#706f3beb7bc5879a78088985c8fd43b9dab7f725" - integrity sha512-NCUReRHPGvvCvj2yLZUTfR0qVp6+apc8G83oXSjN4rl89ZjyujiKrTff55bze/HrsvCsP/sUJASf2n0nzMF1KQ== +"@xstate/react@^4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@xstate/react/-/react-4.0.0.tgz#6c6096f9256df721774f89660d34a1f08106e641" + integrity sha512-+vINFFBX5JWed/xD2/kNZ0SYbWyeSHgwsJkdLBeHp+Rnbf7QSLWxs3zAXcWPBdPuAgF/suo4E0GaiGZzaxumMQ== dependencies: - use-isomorphic-layout-effect "^1.0.0" - use-subscription "^1.3.0" + use-isomorphic-layout-effect "^1.1.2" + use-sync-external-store "^1.0.0" abab@^2.0.0: version "2.0.5" @@ -7147,17 +7147,15 @@ use-context-selector@1.4.1: resolved "https://registry.yarnpkg.com/use-context-selector/-/use-context-selector-1.4.1.tgz#eb96279965846b72915d7f899b8e6ef1d768b0ae" integrity sha512-Io2ArvcRO+6MWIhkdfMFt+WKQX+Vb++W8DS2l03z/Vw/rz3BclKpM0ynr4LYGyU85Eke+Yx5oIhTY++QR0ZDoA== -use-isomorphic-layout-effect@^1.0.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/use-isomorphic-layout-effect/-/use-isomorphic-layout-effect-1.1.1.tgz#7bb6589170cd2987a152042f9084f9effb75c225" - integrity sha512-L7Evj8FGcwo/wpbv/qvSfrkHFtOpCzvM5yl2KVyDJoylVuSvzphiiasmjgQPttIGBAy2WKiBNR98q8w7PiNgKQ== +use-isomorphic-layout-effect@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/use-isomorphic-layout-effect/-/use-isomorphic-layout-effect-1.1.2.tgz#497cefb13d863d687b08477d9e5a164ad8c1a6fb" + integrity sha512-49L8yCO3iGT/ZF9QttjwLF/ZD9Iwto5LnH5LmEdk/6cFmXddqi2ulF0edxTwjj+7mqvpVVGQWvbXZdn32wRSHA== -use-subscription@^1.3.0: - version "1.5.1" - resolved "https://registry.yarnpkg.com/use-subscription/-/use-subscription-1.5.1.tgz#73501107f02fad84c6dd57965beb0b75c68c42d1" - integrity sha512-Xv2a1P/yReAjAbhylMfFplFKj9GssgTwN7RlcTxBujFQcloStWNDQdc4g4NRWH9xS4i/FDk04vQBptAXoF3VcA== - dependencies: - object-assign "^4.1.1" +use-sync-external-store@^1.0.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz#7dbefd6ef3fe4e767a0cf5d7287aacfb5846928a" + integrity sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA== use@^3.1.0: version "3.1.1"