diff --git a/examples/react/apollo-client-defer/package.json b/examples/react/apollo-client-defer/package.json index 6cd1c87827e..edd3a13f4cb 100644 --- a/examples/react/apollo-client-defer/package.json +++ b/examples/react/apollo-client-defer/package.json @@ -6,16 +6,16 @@ "@apollo/client": "^3.7.10", "@graphql-yoga/plugin-defer-stream": "^3.0.0", "graphql": "^16.6.0", - "react": "^18.2.0", - "react-dom": "^18.2.0", + "react": "^19.0.0", + "react-dom": "^19.0.0", "graphql-yoga": "5.7.0" }, "devDependencies": { "@graphql-codegen/cli": "^5.0.4", "@types/jest": "^27.5.2", "@types/node": "^22.0.0", - "@types/react": "^18.0.15", - "@types/react-dom": "^18.0.10", + "@types/react": "^19.0.0", + "@types/react-dom": "^19.0.0", "@vitejs/plugin-react": "^4.0.0", "cypress": "14.0.0", "serve": "14.2.3", diff --git a/examples/react/apollo-client-swc-plugin/package.json b/examples/react/apollo-client-swc-plugin/package.json index b8b723410c0..91f65865d4a 100644 --- a/examples/react/apollo-client-swc-plugin/package.json +++ b/examples/react/apollo-client-swc-plugin/package.json @@ -4,15 +4,15 @@ "private": true, "dependencies": { "@apollo/client": "^3.7.10", - "react": "18.3.1", - "react-dom": "18.3.1" + "react": "19.0.0", + "react-dom": "19.0.0" }, "devDependencies": { "@graphql-codegen/client-preset-swc-plugin": "0.2.0", "@graphql-codegen/cli": "^5.0.4", "@vitejs/plugin-react-swc": "^3.3.0", - "@types/react": "18.3.3", - "@types/react-dom": "18.3.0", + "@types/react": "19.0.8", + "@types/react-dom": "19.0.3", "typescript": "5.5.4", "vite": "^6.0.0" }, diff --git a/examples/react/apollo-client/package.json b/examples/react/apollo-client/package.json index 579372ad31e..89dcef0e834 100644 --- a/examples/react/apollo-client/package.json +++ b/examples/react/apollo-client/package.json @@ -5,16 +5,16 @@ "dependencies": { "@apollo/client": "^3.7.10", "graphql": "^16.6.0", - "react": "^18.2.0", - "react-dom": "^18.2.0" + "react": "^19.0.0", + "react-dom": "^19.0.0" }, "devDependencies": { "@graphql-codegen/cli": "^5.0.4", "@vitejs/plugin-react": "^4.0.0", "@types/jest": "^27.5.2", "@types/node": "^22.0.0", - "@types/react": "^18.0.15", - "@types/react-dom": "^18.0.10", + "@types/react": "^19.0.0", + "@types/react-dom": "^19.0.0", "typescript": "5.5.4", "serve": "14.2.3", "cypress": "14.0.0", diff --git a/examples/react/http-executor/package.json b/examples/react/http-executor/package.json index fbcd98edfba..623fbaa62b8 100644 --- a/examples/react/http-executor/package.json +++ b/examples/react/http-executor/package.json @@ -4,16 +4,16 @@ "private": true, "dependencies": { "@graphql-tools/executor-http": "^1.0.0", - "react": "^18.2.0", - "react-dom": "^18.2.0" + "react": "^19.0.0", + "react-dom": "^19.0.0" }, "devDependencies": { "@graphql-codegen/cli": "^5.0.4", "@vitejs/plugin-react": "^4.0.0", "@types/jest": "^27.5.2", "@types/node": "^22.0.0", - "@types/react": "^18.0.17", - "@types/react-dom": "^18.0.10", + "@types/react": "^19.0.0", + "@types/react-dom": "^19.0.0", "typescript": "5.5.4", "serve": "14.2.3", "cypress": "14.0.0", diff --git a/examples/react/nextjs-swr/package.json b/examples/react/nextjs-swr/package.json index 7efaa5c2ff0..feda7e53abd 100644 --- a/examples/react/nextjs-swr/package.json +++ b/examples/react/nextjs-swr/package.json @@ -14,8 +14,8 @@ "dependencies": { "@graphql-tools/executor-http": "^1.0.0", "next": "13.3.1", - "react": "^18.2.0", - "react-dom": "^18.2.0", + "react": "^19.0.0", + "react-dom": "^19.0.0", "swr": "^2.0.0" }, "devDependencies": { @@ -23,8 +23,8 @@ "@graphql-codegen/schema-ast": "4.1.0", "@graphql-codegen/client-preset-swc-plugin": "0.2.0", "@types/node": "^22.0.0", - "@types/react": "^18.0.17", - "@types/react-dom": "^18.0.10", + "@types/react": "^19.0.0", + "@types/react-dom": "^19.0.0", "eslint": "^9.0.0", "eslint-config-next": "^13.0.0", "typescript": "5.5.4" diff --git a/examples/react/tanstack-react-query/package.json b/examples/react/tanstack-react-query/package.json index 4a84ab8cb3e..af9913107d9 100644 --- a/examples/react/tanstack-react-query/package.json +++ b/examples/react/tanstack-react-query/package.json @@ -4,16 +4,16 @@ "private": true, "dependencies": { "@tanstack/react-query": "4.36.1", - "react": "^18.2.0", - "react-dom": "^18.2.0" + "react": "^19.0.0", + "react-dom": "^19.0.0" }, "devDependencies": { "@graphql-codegen/cli": "^5.0.4", "@vitejs/plugin-react": "^4.0.0", "@types/jest": "^27.5.2", "@types/node": "^22.0.0", - "@types/react": "^18.0.17", - "@types/react-dom": "^18.0.10", + "@types/react": "^19.0.0", + "@types/react-dom": "^19.0.0", "typescript": "5.5.4", "serve": "14.2.3", "cypress": "14.0.0", diff --git a/examples/react/urql/package.json b/examples/react/urql/package.json index d97d5855162..11f3dd82ee7 100644 --- a/examples/react/urql/package.json +++ b/examples/react/urql/package.json @@ -3,13 +3,13 @@ "version": "0.1.0", "private": true, "dependencies": { - "react": "^18.2.0", - "react-dom": "^18.2.0", + "react": "^19.0.0", + "react-dom": "^19.0.0", "urql": "^3.0.0" }, "devDependencies": { - "@types/react": "^18.0.17", - "@types/react-dom": "^18.0.10", + "@types/react": "^19.0.0", + "@types/react-dom": "^19.0.0", "@graphql-codegen/cli": "^5.0.4", "@vitejs/plugin-react": "^4.0.0", "typescript": "5.5.4", diff --git a/examples/vite/vite-react-cts/package.json b/examples/vite/vite-react-cts/package.json index 5d22abf8b0e..5612bc086c8 100644 --- a/examples/vite/vite-react-cts/package.json +++ b/examples/vite/vite-react-cts/package.json @@ -16,14 +16,14 @@ "@graphql-typed-document-node/core": "3.2.0", "@vitejs/plugin-react-swc": "^3.0.0", "graphql": "16.9.0", - "react": "^18.2.0", - "react-dom": "^18.2.0", + "react": "^19.0.0", + "react-dom": "^19.0.0", "vite": "^6.0.0" }, "devDependencies": { "@graphql-codegen/cli": "5.0.4", - "@types/react": "^18.0.27", - "@types/react-dom": "^18.0.10", + "@types/react": "^19.0.0", + "@types/react-dom": "^19.0.0", "cypress": "14.0.0", "start-server-and-test": "2.0.5", "typescript": "^5.0.0" diff --git a/examples/vite/vite-react-mts/package.json b/examples/vite/vite-react-mts/package.json index f6216f9e80d..e57f910be05 100644 --- a/examples/vite/vite-react-mts/package.json +++ b/examples/vite/vite-react-mts/package.json @@ -16,14 +16,14 @@ "@graphql-typed-document-node/core": "3.2.0", "@vitejs/plugin-react-swc": "^3.0.0", "graphql": "16.9.0", - "react": "^18.2.0", - "react-dom": "^18.2.0", + "react": "^19.0.0", + "react-dom": "^19.0.0", "vite": "^6.0.0" }, "devDependencies": { "@graphql-codegen/cli": "5.0.4", - "@types/react": "^18.0.27", - "@types/react-dom": "^18.0.10", + "@types/react": "^19.0.0", + "@types/react-dom": "^19.0.0", "cypress": "14.0.0", "start-server-and-test": "2.0.5", "typescript": "^5.0.0" diff --git a/examples/vite/vite-react-ts/package.json b/examples/vite/vite-react-ts/package.json index 9c9c64f5df7..c385dd22ff2 100644 --- a/examples/vite/vite-react-ts/package.json +++ b/examples/vite/vite-react-ts/package.json @@ -16,14 +16,14 @@ "@graphql-typed-document-node/core": "3.2.0", "@vitejs/plugin-react-swc": "^3.0.0", "graphql": "16.9.0", - "react": "^18.2.0", - "react-dom": "^18.2.0", + "react": "^19.0.0", + "react-dom": "^19.0.0", "vite": "^6.0.0" }, "devDependencies": { "@graphql-codegen/cli": "5.0.4", - "@types/react": "^18.0.27", - "@types/react-dom": "^18.0.10", + "@types/react": "^19.0.0", + "@types/react-dom": "^19.0.0", "cypress": "14.0.0", "start-server-and-test": "2.0.5", "typescript": "^5.0.0" diff --git a/website/package.json b/website/package.json index be4ca1dd29d..a44eb391f9d 100644 --- a/website/package.json +++ b/website/package.json @@ -14,7 +14,7 @@ "@types/dedent": "0.7.2", "@types/jsonpath": "0.2.4", "@types/node": "22.10.7", - "@types/react": "18.3.3", + "@types/react": "19.0.8", "fast-xml-parser": "4.4.1", "jsonpath": "1.1.1", "postcss-import": "^16.1.0", @@ -82,8 +82,8 @@ "next-mdx-remote": "4.4.1", "next-sitemap": "4.2.3", "postcss-nesting": "^13.0.1", - "react": "^18.2.0", - "react-dom": "^18.2.0", + "react": "^19.0.0", + "react-dom": "^19.0.0", "react-markdown": "9.0.3", "react-select": "5.8.0", "typescript-json-schema": "0.56.0" diff --git a/yarn.lock b/yarn.lock index 8d50efa589a..30c5bb95262 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4791,17 +4791,10 @@ resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.7.2.tgz#6c2324641cc4ba050a8c710b2b251b377581fbf0" integrity sha512-KufADq8uQqo1pYKVIYzfKbJfBAc0sOeXqGbFaSpv8MRmC/zXgowNZmFcbngndGk922QDmOASEXUZCaY48gs4cg== -"@types/prop-types@*": - version "15.7.5" - resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.5.tgz#5f19d2b85a98e9558036f6a3cacc8819420f05cf" - integrity sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w== - -"@types/react-dom@18.3.0", "@types/react-dom@^18.0.10": - version "18.3.0" - resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.3.0.tgz#0cbc818755d87066ab6ca74fbedb2547d74a82b0" - integrity sha512-EhwApuTmMBmXuFOikhQLIBUn6uFg81SwLMOAUgodJF14SOBOCMdU04gDoYi0WOJJHD144TL32z4yDqCW3dnkQg== - dependencies: - "@types/react" "*" +"@types/react-dom@19.0.3", "@types/react-dom@^19.0.0": + version "19.0.3" + resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-19.0.3.tgz#0804dfd279a165d5a0ad8b53a5b9e65f338050a4" + integrity sha512-0Knk+HJiMP/qOZgMyNFamlIjw9OFCsyC2ZbigmEEyXXixgre6IQpm/4V+r3qH4GC1JPvRJKInw+on2rV6YZLeA== "@types/react-transition-group@^4.4.0": version "4.4.5" @@ -4810,12 +4803,11 @@ dependencies: "@types/react" "*" -"@types/react@*", "@types/react@18.3.3", "@types/react@>=16", "@types/react@^18.0.15", "@types/react@^18.0.17", "@types/react@^18.0.27": - version "18.3.3" - resolved "https://registry.yarnpkg.com/@types/react/-/react-18.3.3.tgz#9679020895318b0915d7a3ab004d92d33375c45f" - integrity sha512-hti/R0pS0q1/xx+TsI73XIqk26eBsISZ2R0wUijXIngRK9R/e7Xw/cXVxQK7R5JjW+SV4zGcn5hXjudkN/pLIw== +"@types/react@*", "@types/react@19.0.8", "@types/react@>=16", "@types/react@^19.0.0": + version "19.0.8" + resolved "https://registry.yarnpkg.com/@types/react/-/react-19.0.8.tgz#7098e6159f2a61e4f4cef2c1223c044a9bec590e" + integrity sha512-9P/o1IGdfmQxrujGbIMDyYaaCykhLKc0NGCtYcECNUr9UAaDe4gwvV9bR6tvd5Br1SG0j+PBpbKr2UYY8CwqSw== dependencies: - "@types/prop-types" "*" csstype "^3.0.2" "@types/shell-quote@1.7.5": @@ -10990,7 +10982,7 @@ longest-streak@^3.0.0: resolved "https://registry.yarnpkg.com/longest-streak/-/longest-streak-3.1.0.tgz#62fa67cd958742a1574af9f39866364102d90cd4" integrity sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g== -loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.4.0: +loose-envify@^1.0.0, loose-envify@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q== @@ -13496,13 +13488,12 @@ rc@^1.0.1, rc@^1.1.6: minimist "^1.2.0" strip-json-comments "~2.0.1" -react-dom@18.3.1, react-dom@^18.2.0: - version "18.3.1" - resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-18.3.1.tgz#c2265d79511b57d479b3dd3fdfa51536494c5cb4" - integrity sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw== +react-dom@19.0.0, react-dom@^19.0.0: + version "19.0.0" + resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-19.0.0.tgz#43446f1f01c65a4cd7f7588083e686a6726cfb57" + integrity sha512-4GV5sHFG0e/0AD4X+ySy6UJd3jVl1iNsNHdpad0qhABJ11twS3TTBnseqsKurKcsNqCEFeGL3uLpVChpIO3QfQ== dependencies: - loose-envify "^1.1.0" - scheduler "^0.23.2" + scheduler "^0.25.0" react-fast-compare@^3.0.1: version "3.2.0" @@ -13588,12 +13579,10 @@ react-transition-group@^4.3.0: loose-envify "^1.4.0" prop-types "^15.6.2" -react@18.3.1, react@^18.2.0: - version "18.3.1" - resolved "https://registry.yarnpkg.com/react/-/react-18.3.1.tgz#49ab892009c53933625bd16b2533fc754cab2891" - integrity sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ== - dependencies: - loose-envify "^1.1.0" +react@19.0.0, react@^19.0.0: + version "19.0.0" + resolved "https://registry.yarnpkg.com/react/-/react-19.0.0.tgz#6e1969251b9f108870aa4bff37a0ce9ddfaaabdd" + integrity sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ== read-cache@^1.0.0: version "1.0.0" @@ -14241,12 +14230,10 @@ safe-stable-stringify@^2.2.0: resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== -scheduler@^0.23.2: - version "0.23.2" - resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.23.2.tgz#414ba64a3b282892e944cf2108ecc078d115cdc3" - integrity sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ== - dependencies: - loose-envify "^1.1.0" +scheduler@^0.25.0: + version "0.25.0" + resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.25.0.tgz#336cd9768e8cceebf52d3c80e3dcf5de23e7e015" + integrity sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA== schema-utils@^2.5.0: version "2.7.0"