From b73af2c7c4542130f5cc417c118ea4ff5b011bd6 Mon Sep 17 00:00:00 2001 From: Paul Sachs Date: Wed, 11 Dec 2024 10:22:09 -0500 Subject: [PATCH 1/2] Update dependencies to support react 19 Signed-off-by: Paul Sachs --- package-lock.json | 140 +++++++++------------ packages/connect-query/package.json | 16 +-- packages/examples/react/basic/package.json | 18 +-- packages/test-utils/package.json | 4 +- 4 files changed, 76 insertions(+), 102 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1318ad32..c6b038fa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2261,9 +2261,9 @@ } }, "node_modules/@tanstack/query-core": { - "version": "5.62.1", - "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.62.1.tgz", - "integrity": "sha512-thYv90GkMcfumgmtp6sptC18SqxWwXTCKUuk7jyeHHn7kYouh0VJrowuuBffAIBiR3Z8OnsccmPUnP1leKJBVQ==", + "version": "5.62.7", + "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.62.7.tgz", + "integrity": "sha512-fgpfmwatsrUal6V+8EC2cxZIQVl9xvL7qYa03gsdsCy985UTUlS4N+/3hCzwR0PclYDqisca2AqR1BVgJGpUDA==", "license": "MIT", "funding": { "type": "github", @@ -2281,12 +2281,12 @@ } }, "node_modules/@tanstack/react-query": { - "version": "5.62.1", - "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.62.1.tgz", - "integrity": "sha512-gb4eglrgW+yOeiNPkpqFyN8oLrFafHrHE+q2LzVl7TfyA4fuQluH92NTl6Jed7ae35v+BNtAQng9mykywWLzfA==", + "version": "5.62.7", + "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.62.7.tgz", + "integrity": "sha512-+xCtP4UAFDTlRTYyEjLx0sRtWyr5GIk7TZjZwBu4YaNahi3Rt2oMyRqfpfVrtwsqY2sayP4iXVCwmC+ZqqFmuw==", "license": "MIT", "dependencies": { - "@tanstack/query-core": "5.62.1" + "@tanstack/query-core": "5.62.7" }, "funding": { "type": "github", @@ -2297,9 +2297,9 @@ } }, "node_modules/@tanstack/react-query-devtools": { - "version": "5.62.1", - "resolved": "https://registry.npmjs.org/@tanstack/react-query-devtools/-/react-query-devtools-5.62.1.tgz", - "integrity": "sha512-fxf9m9nwWcP36wY5Vc2OQ9pLbCcTgHmsaBfjD4PQ+Aphze4cmsC8QF9UeAy7LpYHbOA4wycE7MFjD541BRm9+g==", + "version": "5.62.7", + "resolved": "https://registry.npmjs.org/@tanstack/react-query-devtools/-/react-query-devtools-5.62.7.tgz", + "integrity": "sha512-wxXsdTZJRs//hMtJMU5aNlUaTclRFPqLvDNeWbRj8YpGD3aoo4zyu53W55W2DY16+ycg3fti21uCW4N9oyj91w==", "license": "MIT", "dependencies": { "@tanstack/query-devtools": "5.61.4" @@ -2309,7 +2309,7 @@ "url": "https://github.com/sponsors/tannerlinsley" }, "peerDependencies": { - "@tanstack/react-query": "^5.62.1", + "@tanstack/react-query": "^5.62.7", "react": "^18 || ^19" } }, @@ -2390,9 +2390,9 @@ "license": "MIT" }, "node_modules/@testing-library/react": { - "version": "16.0.1", - "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-16.0.1.tgz", - "integrity": "sha512-dSmwJVtJXmku+iocRhWOUFbrERC76TX2Mnf0ATODz8brzAZrMBbzLwQixlBSanZxR6LddK3eiwpSFZgDET1URg==", + "version": "16.1.0", + "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-16.1.0.tgz", + "integrity": "sha512-Q2ToPvg0KsVL0ohND9A3zLJWcOXXcO8IDu3fj11KhNt0UlCWyFyvnCIBkd12tidB2lkiVRG8VFqdhcqhqnAQtg==", "license": "MIT", "dependencies": { "@babel/runtime": "^7.12.5" @@ -2402,10 +2402,10 @@ }, "peerDependencies": { "@testing-library/dom": "^10.0.0", - "@types/react": "^18.0.0", - "@types/react-dom": "^18.0.0", - "react": "^18.0.0", - "react-dom": "^18.0.0" + "@types/react": "^18.0.0 || ^19.0.0", + "@types/react-dom": "^18.0.0 || ^19.0.0", + "react": "^18.0.0 || ^19.0.0", + "react-dom": "^18.0.0 || ^19.0.0" }, "peerDependenciesMeta": { "@types/react": { @@ -2541,29 +2541,22 @@ "undici-types": "~6.20.0" } }, - "node_modules/@types/prop-types": { - "version": "15.7.13", - "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.13.tgz", - "integrity": "sha512-hCZTSvwbzWGvhqxp/RqVqwU999pBf2vp7hzIjiYOsl8wqOmUxkQ6ddw1cV3l8811+kdUFus/q4d1Y3E3SyEifA==", - "license": "MIT" - }, "node_modules/@types/react": { - "version": "18.3.12", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.12.tgz", - "integrity": "sha512-D2wOSq/d6Agt28q7rSI3jhU7G6aiuzljDGZ2hTZHIkrTLUI+AF3WMeKkEZ9nN2fkBAlcktT6vcZjDFiIhMYEQw==", + "version": "19.0.1", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.0.1.tgz", + "integrity": "sha512-YW6614BDhqbpR5KtUYzTA+zlA7nayzJRA9ljz9CQoxthR0sDisYZLuvSMsil36t4EH/uAt8T52Xb4sVw17G+SQ==", "license": "MIT", "dependencies": { - "@types/prop-types": "*", "csstype": "^3.0.2" } }, "node_modules/@types/react-dom": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.1.tgz", - "integrity": "sha512-qW1Mfv8taImTthu4KoXgDfLuk4bydU6Q/TkADnDWWHwi4NX4BR+LWfTp2sVmTqRrsHvyDDTelgelxJ+SsejKKQ==", + "version": "19.0.2", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.0.2.tgz", + "integrity": "sha512-c1s+7TKFaDRRxr1TxccIX2u7sfCnc3RxkVyBIUA2lCpyqCF+QoAwQ/CBg7bsMdVwP120HEH143VQezKtef5nCg==", "license": "MIT", - "dependencies": { - "@types/react": "*" + "peerDependencies": { + "@types/react": "^19.0.0" } }, "node_modules/@types/stack-utils": { @@ -6566,18 +6559,6 @@ "dev": true, "license": "MIT" }, - "node_modules/loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "license": "MIT", - "dependencies": { - "js-tokens": "^3.0.0 || ^4.0.0" - }, - "bin": { - "loose-envify": "cli.js" - } - }, "node_modules/loupe": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.1.2.tgz", @@ -7264,28 +7245,24 @@ "license": "MIT" }, "node_modules/react": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", - "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/react/-/react-19.0.0.tgz", + "integrity": "sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ==", "license": "MIT", - "dependencies": { - "loose-envify": "^1.1.0" - }, "engines": { "node": ">=0.10.0" } }, "node_modules/react-dom": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", - "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.0.0.tgz", + "integrity": "sha512-4GV5sHFG0e/0AD4X+ySy6UJd3jVl1iNsNHdpad0qhABJ11twS3TTBnseqsKurKcsNqCEFeGL3uLpVChpIO3QfQ==", "license": "MIT", "dependencies": { - "loose-envify": "^1.1.0", - "scheduler": "^0.23.2" + "scheduler": "^0.25.0" }, "peerDependencies": { - "react": "^18.3.1" + "react": "^19.0.0" } }, "node_modules/react-is": { @@ -7579,13 +7556,10 @@ } }, "node_modules/scheduler": { - "version": "0.23.2", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", - "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==", - "license": "MIT", - "dependencies": { - "loose-envify": "^1.1.0" - } + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.25.0.tgz", + "integrity": "sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA==", + "license": "MIT" }, "node_modules/semver": { "version": "7.6.3", @@ -9012,12 +8986,12 @@ "@bufbuild/protoc-gen-es": "^2.2.1", "@connectrpc/connect": "^2.0.0", "@connectrpc/connect-web": "^2.0.0", - "@tanstack/react-query": "^5.59.16", - "@testing-library/react": "^16.0.1", - "@types/react": "^18.3.12", - "@types/react-dom": "^18.3.1", - "react": "^18.3.1", - "react-dom": "^18.3.1", + "@tanstack/react-query": "^5.62.7", + "@testing-library/react": "^16.1.0", + "@types/react": "^19.0.1", + "@types/react-dom": "^19.0.2", + "react": "^19.0.0", + "react-dom": "^19.0.0", "test-utils": "*", "typescript": "^5.6.3" }, @@ -9025,8 +8999,8 @@ "@bufbuild/protobuf": "2.x", "@connectrpc/connect": "^2.0.0", "@tanstack/react-query": "5.x", - "react": "^18.3.1", - "react-dom": "^18.3.1" + "react": "^18 || ^19", + "react-dom": "^18 || ^19" } }, "packages/connect-query-core": { @@ -9062,17 +9036,17 @@ "@connectrpc/connect-query": "^2.0.0", "@connectrpc/connect-web": "^2.0.0", "@connectrpc/protoc-gen-connect-query": "^2.0.0", - "@tanstack/react-query": "^5.59.16", - "@tanstack/react-query-devtools": "^5.59.16", + "@tanstack/react-query": "^5.62.7", + "@tanstack/react-query-devtools": "^5.62.7", "@testing-library/jest-dom": "^6.6.3", - "@testing-library/react": "^16.0.1", - "@types/react": "^18.3.12", - "@types/react-dom": "^18.3.1", - "@vitejs/plugin-react": "^4.3.3", - "react": "^18.3.1", - "react-dom": "^18.3.1", + "@testing-library/react": "^16.1.0", + "@types/react": "^19.0.1", + "@types/react-dom": "^19.0.2", + "@vitejs/plugin-react": "^4.3.4", + "react": "^19.0.0", + "react-dom": "^19.0.0", "typescript": "^5.6.3", - "vite": "^5.4.10" + "vite": "^5.4.11" } }, "packages/protoc-gen-connect-query": { @@ -9114,8 +9088,8 @@ "@bufbuild/protoc-gen-es": "^2.2.1", "@connectrpc/connect": "^2.0.0", "@connectrpc/connect-web": "^2.0.0", - "@types/react": "18.3.12", - "react": "^18.3.1" + "@types/react": "^19.0.1", + "react": "^19.0.0" } } } diff --git a/packages/connect-query/package.json b/packages/connect-query/package.json index 30f28134..8f88969f 100644 --- a/packages/connect-query/package.json +++ b/packages/connect-query/package.json @@ -40,12 +40,12 @@ "@bufbuild/protoc-gen-es": "^2.2.1", "@connectrpc/connect": "^2.0.0", "@connectrpc/connect-web": "^2.0.0", - "@tanstack/react-query": "^5.59.16", - "@testing-library/react": "^16.0.1", - "@types/react": "^18.3.12", - "@types/react-dom": "^18.3.1", - "react": "^18.3.1", - "react-dom": "^18.3.1", + "@tanstack/react-query": "^5.62.7", + "@testing-library/react": "^16.1.0", + "@types/react": "^19.0.1", + "@types/react-dom": "^19.0.2", + "react": "^19.0.0", + "react-dom": "^19.0.0", "test-utils": "*", "typescript": "^5.6.3" }, @@ -53,8 +53,8 @@ "@bufbuild/protobuf": "2.x", "@connectrpc/connect": "^2.0.0", "@tanstack/react-query": "5.x", - "react": "^18.3.1", - "react-dom": "^18.3.1" + "react": "^18 || ^19", + "react-dom": "^18 || ^19" }, "files": [ "dist/**" diff --git a/packages/examples/react/basic/package.json b/packages/examples/react/basic/package.json index 494573a8..7c17e7f8 100644 --- a/packages/examples/react/basic/package.json +++ b/packages/examples/react/basic/package.json @@ -20,16 +20,16 @@ "@connectrpc/connect-query": "^2.0.0", "@connectrpc/connect-web": "^2.0.0", "@connectrpc/protoc-gen-connect-query": "^2.0.0", - "@tanstack/react-query": "^5.59.16", - "@tanstack/react-query-devtools": "^5.59.16", + "@tanstack/react-query": "^5.62.7", + "@tanstack/react-query-devtools": "^5.62.7", "@testing-library/jest-dom": "^6.6.3", - "@testing-library/react": "^16.0.1", - "@types/react": "^18.3.12", - "@types/react-dom": "^18.3.1", - "@vitejs/plugin-react": "^4.3.3", - "react": "^18.3.1", - "react-dom": "^18.3.1", + "@testing-library/react": "^16.1.0", + "@types/react": "^19.0.1", + "@types/react-dom": "^19.0.2", + "@vitejs/plugin-react": "^4.3.4", + "react": "^19.0.0", + "react-dom": "^19.0.0", "typescript": "^5.6.3", - "vite": "^5.4.10" + "vite": "^5.4.11" } } diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index 9ff50a6b..4178fb78 100644 --- a/packages/test-utils/package.json +++ b/packages/test-utils/package.json @@ -30,8 +30,8 @@ "@bufbuild/protoc-gen-es": "^2.2.1", "@connectrpc/connect": "^2.0.0", "@connectrpc/connect-web": "^2.0.0", - "@types/react": "18.3.12", - "react": "^18.3.1" + "@types/react": "^19.0.1", + "react": "^19.0.0" }, "files": [ "dist/**" From 35bbe9b8b0e5e98a2aac913672d9e54a7146d147 Mon Sep 17 00:00:00 2001 From: Paul Sachs Date: Wed, 11 Dec 2024 10:24:41 -0500 Subject: [PATCH 2/2] Add query-core to upgrades Signed-off-by: Paul Sachs --- package-lock.json | 2 +- packages/connect-query-core/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index c6b038fa..322b2ef0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9015,7 +9015,7 @@ "@bufbuild/protoc-gen-es": "^2.2.1", "@connectrpc/connect": "^2.0.0", "@connectrpc/connect-web": "^2.0.0", - "@tanstack/query-core": "^5.59.16", + "@tanstack/query-core": "^5.62.7", "test-utils": "*", "typescript": "^5.6.3" }, diff --git a/packages/connect-query-core/package.json b/packages/connect-query-core/package.json index e871ef15..264adbad 100644 --- a/packages/connect-query-core/package.json +++ b/packages/connect-query-core/package.json @@ -39,7 +39,7 @@ "@connectrpc/connect-web": "^2.0.0", "test-utils": "*", "typescript": "^5.6.3", - "@tanstack/query-core": "^5.59.16" + "@tanstack/query-core": "^5.62.7" }, "peerDependencies": { "@bufbuild/protobuf": "2.x",