diff --git a/.changeset/fresh-jeans-sit.md b/.changeset/fresh-jeans-sit.md new file mode 100644 index 0000000000..5b4035cbe9 --- /dev/null +++ b/.changeset/fresh-jeans-sit.md @@ -0,0 +1,5 @@ +--- +"@tanstack/react-query": patch +--- + +fix(react-query): update use-sync-external-store version to support React 19 as peerDep correctly diff --git a/packages/react-query/package.json b/packages/react-query/package.json index ed095654c9..163790d496 100644 --- a/packages/react-query/package.json +++ b/packages/react-query/package.json @@ -49,7 +49,7 @@ "@types/jscodeshift": "^0.11.3", "@types/react": "^19.1.9", "@types/react-dom": "^19.1.7", - "@types/use-sync-external-store": "^0.0.3", + "@types/use-sync-external-store": "^1.5.0", "react": "^19.1.1", "react-17": "npm:react@^17.0.2", "react-18": "npm:react@^18.2.0", @@ -61,7 +61,7 @@ }, "dependencies": { "@tanstack/query-core": "workspace:*", - "use-sync-external-store": "^1.2.0" + "use-sync-external-store": "^1.6.0" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ce5f079edd..4869590063 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1267,8 +1267,8 @@ importers: specifier: '*' version: 0.64.3(@babel/core@7.28.0)(@babel/preset-env@7.18.6(@babel/core@7.28.0))(encoding@0.1.13)(react@19.1.1) use-sync-external-store: - specifier: ^1.2.0 - version: 1.2.0(react@19.1.1) + specifier: ^1.6.0 + version: 1.6.0(react@19.1.1) devDependencies: '@types/jscodeshift': specifier: ^0.11.3 @@ -1280,8 +1280,8 @@ importers: specifier: ^19.1.7 version: 19.1.7(@types/react@19.1.9) '@types/use-sync-external-store': - specifier: ^0.0.3 - version: 0.0.3 + specifier: ^1.5.0 + version: 1.5.0 jscodeshift: specifier: ^0.13.1 version: 0.13.1(@babel/preset-env@7.18.6(@babel/core@7.28.0)) @@ -3155,24 +3155,28 @@ packages: engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [glibc] '@next/swc-linux-arm64-musl@12.2.2': resolution: {integrity: sha512-rIZRFxI9N/502auJT1i7coas0HTHUM+HaXMyJiCpnY8Rimbo0495ir24tzzHo3nQqJwcflcPTwEh/DV17sdv9A==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [musl] '@next/swc-linux-x64-gnu@12.2.2': resolution: {integrity: sha512-ir1vNadlUDj7eQk15AvfhG5BjVizuCHks9uZwBfUgT5jyeDCeRvaDCo1+Q6+0CLOAnYDR/nqSCvBgzG2UdFh9A==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [glibc] '@next/swc-linux-x64-musl@12.2.2': resolution: {integrity: sha512-bte5n2GzLN3O8JdSFYWZzMgEgDHZmRz5wiispiiDssj4ik3l8E7wq/czNi8RmIF+ioj2sYVokUNa/ekLzrESWw==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [musl] '@next/swc-win32-arm64-msvc@12.2.2': resolution: {integrity: sha512-ZUGCmcDmdPVSAlwJ/aD+1F9lYW8vttseiv4n2+VCDv5JloxiX9aY32kYZaJJO7hmTLNrprvXkb4OvNuHdN22Jg==} @@ -3231,21 +3235,25 @@ packages: resolution: {integrity: sha512-NmPeCexWIZHW9RM3lDdFENN9C3WtlQ5L4RSNFESIjreS921rgePhulsszYdGnHdcnKPYlBBJnX/NxVsfioBbnQ==} cpu: [arm64] os: [linux] + libc: [glibc] '@nx/nx-linux-arm64-musl@22.3.3': resolution: {integrity: sha512-K02U88Q0dpvCfmSXXvY7KbYQSa1m+mkYeqDBRHp11yHk1GoIqaHp8oEWda7FV4gsriNExPSS5tX1/QGVoLZrCw==} cpu: [arm64] os: [linux] + libc: [musl] '@nx/nx-linux-x64-gnu@22.3.3': resolution: {integrity: sha512-04TEbvgwRaB9ifr39YwJmWh3RuXb4Ry4m84SOJyjNXAfPrepcWgfIQn1VL2ul1Ybq+P023dLO9ME8uqFh6j1YQ==} cpu: [x64] os: [linux] + libc: [glibc] '@nx/nx-linux-x64-musl@22.3.3': resolution: {integrity: sha512-uxBXx5q+S5OGatbYDxnamsKXRKlYn+Eq1nrCAHaf8rIfRoHlDiRV2PqtWuF+O2pxR5FWKpvr+/sZtt9rAf7KMw==} cpu: [x64] os: [linux] + libc: [musl] '@nx/nx-win32-arm64-msvc@22.3.3': resolution: {integrity: sha512-aOwlfD6ZA1K6hjZtbhBSp7s1yi3sHbMpLCa4stXzfhCCpKUv46HU/EdiWdE1N8AsyNFemPZFq81k1VTowcACdg==} @@ -3703,6 +3711,9 @@ packages: '@types/use-sync-external-store@0.0.3': resolution: {integrity: sha512-EwmlvuaxPNej9+T4v5AuBPJa2x2UOJVdjCtDHgcDqitUeOtjnJKJ+apYjVcAoBEMjKW1VVFGZLUb5+qqa09XFA==} + '@types/use-sync-external-store@1.5.0': + resolution: {integrity: sha512-5dyB8nLC/qogMrlCizZnYWQTA4lnb/v+It+sqNl5YnSRAPMlIqY/X0Xn+gZw8vOL+TgTTr28VEbn3uf8fUtAkw==} + '@types/yargs-parser@21.0.0': resolution: {integrity: sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==} @@ -9233,6 +9244,11 @@ packages: peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 + use-sync-external-store@1.6.0: + resolution: {integrity: sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + use@3.1.1: resolution: {integrity: sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==} engines: {node: '>=0.10.0'} @@ -12198,7 +12214,7 @@ snapshots: '@babel/template@7.18.10': dependencies: - '@babel/code-frame': 7.18.6 + '@babel/code-frame': 7.27.1 '@babel/parser': 7.27.2 '@babel/types': 7.27.1 @@ -14005,6 +14021,8 @@ snapshots: '@types/use-sync-external-store@0.0.3': {} + '@types/use-sync-external-store@1.5.0': {} + '@types/yargs-parser@21.0.0': {} '@types/yargs@15.0.14': @@ -21235,6 +21253,10 @@ snapshots: dependencies: react: 19.1.1 + use-sync-external-store@1.6.0(react@19.1.1): + dependencies: + react: 19.1.1 + use@3.1.1: {} utif@2.0.1: