diff --git a/examples/benchmark/package.json b/examples/benchmark/package.json index 2faa5037e344..7dea68ece984 100644 --- a/examples/benchmark/package.json +++ b/examples/benchmark/package.json @@ -22,7 +22,7 @@ "@data-client/normalizr": "workspace:^", "benchmark": "^2.1.4", "normalizr": "^3.6.2", - "react": "^19.0.0-rc.1" + "react": "^19.0.0" }, "devDependencies": { "@anansi/webpack-config": "^20.0.0", @@ -30,7 +30,7 @@ "@babel/node": "7.26.0", "@types/babel__core": "^7", "@types/benchmark": "2.1.5", - "@types/react": "npm:types-react@19.0.0-rc.1", + "@types/react": "19.0.0", "webpack": "^5.76.2", "webpack-cli": "^5.1.4" } diff --git a/examples/coin-app/package.json b/examples/coin-app/package.json index 9552ee5087e5..e22851e98fb0 100644 --- a/examples/coin-app/package.json +++ b/examples/coin-app/package.json @@ -47,8 +47,8 @@ "@data-client/rest": "^0.14.0", "d3": "^7.9.0", "history": "*", - "react": "^19.0.0-rc.1", - "react-dom": "^19.0.0-rc.1" + "react": "^19.0.0", + "react-dom": "^19.0.0" }, "main": "src/index.ts", "types": "src/index.ts", diff --git a/examples/github-app/package-lock.json b/examples/github-app/package-lock.json index 902706959e16..79d3e189b829 100644 --- a/examples/github-app/package-lock.json +++ b/examples/github-app/package-lock.json @@ -37,8 +37,8 @@ "@linaria/shaker": "5.0.3", "@types/lodash": "4.14.192", "@types/parse-link-header": "^2.0.0", - "@types/react": "npm:types-react@19.0.0-rc.1", - "@types/react-dom": "npm:types-react-dom@19.0.0", + "@types/react": "19.0.0", + "@types/react-dom": "19.0.0", "@types/uuid": "^10.0.0", "react-refresh": "0.16.0", "serve": "14.2.4", @@ -4769,10 +4769,9 @@ "license": "MIT" }, "node_modules/@types/react": { - "name": "types-react", - "version": "19.0.0-rc.1", - "resolved": "https://registry.npmjs.org/types-react/-/types-react-19.0.0-rc.1.tgz", - "integrity": "sha512-RshndUfqTW6K3STLPis8BtAYCGOkMbtvYsi90gmVNDZBXUyUc5juf2PE9LfS/JmOlUIRO8cWTS/1MTnmhjDqyQ==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.0.0.tgz", + "integrity": "sha512-MY3oPudxvMYyesqs/kW1Bh8y9VqSmf+tzqw3ae8a9DZW68pUe3zAdHeI1jc6iAysuRdACnVknHP8AhwD4/dxtg==", "dev": true, "dependencies": { "csstype": "^3.0.2" @@ -7104,9 +7103,9 @@ "dev": true }, "node_modules/cookie": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.6.0.tgz", - "integrity": "sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==", + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz", + "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==", "dev": true, "engines": { "node": ">= 0.6" @@ -7240,11 +7239,10 @@ } }, "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, - "license": "MIT", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -8426,11 +8424,10 @@ "license": "ISC" }, "node_modules/elliptic": { - "version": "6.5.7", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.7.tgz", - "integrity": "sha512-ESVCtTwiA+XhY3wyh24QqRGBoP3rEdDUl3EDUUo9tft074fi19IrdpH7hLCMMP3CIj7jb3W96rn8lt/BqIlt5Q==", + "version": "6.6.1", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.6.1.tgz", + "integrity": "sha512-RaddvvMatK2LJHqFJ+YA4WysVN5Ita9E35botqIYspQ4TkRAlCicdzKOjlyv/1Za5RyTNn7di//eEV0uTAfe3g==", "dev": true, - "license": "MIT", "dependencies": { "bn.js": "^4.11.9", "brorand": "^1.1.0", @@ -8725,9 +8722,9 @@ } }, "node_modules/express": { - "version": "4.21.0", - "resolved": "https://registry.npmjs.org/express/-/express-4.21.0.tgz", - "integrity": "sha512-VqcNGcj/Id5ZT1LZ/cfihi3ttTn+NJmkli2eZADigjq29qTlWi/hAQ43t/VLPq8+UX06FCEx3ByOYet6ZFblng==", + "version": "4.21.1", + "resolved": "https://registry.npmjs.org/express/-/express-4.21.1.tgz", + "integrity": "sha512-YSFlK1Ee0/GC8QaO91tHcDxJiE/X4FbpAyQWkxAvG6AXCuR65YzK8ua6D9hvi/TzUfZMpc+BwuM1IPw8fmQBiQ==", "dev": true, "dependencies": { "accepts": "~1.3.8", @@ -8735,7 +8732,7 @@ "body-parser": "1.20.3", "content-disposition": "0.5.4", "content-type": "~1.0.4", - "cookie": "0.6.0", + "cookie": "0.7.1", "cookie-signature": "1.0.6", "debug": "2.6.9", "depd": "2.0.0", @@ -9935,11 +9932,10 @@ } }, "node_modules/http-proxy-middleware": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz", - "integrity": "sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw==", + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.7.tgz", + "integrity": "sha512-fgVY8AV7qU7z/MmXJ/rxwbrtQH4jBQ9m7kp3llF0liB7glmFeVZFBepQb32T3y8n8k2+AEYuMPCpinYW+/CuRA==", "dev": true, - "license": "MIT", "dependencies": { "@types/http-proxy": "^1.17.8", "http-proxy": "^1.18.1", @@ -11667,13 +11663,12 @@ ] }, "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "dev": true, - "license": "MIT", "dependencies": { - "braces": "^3.0.2", + "braces": "^3.0.3", "picomatch": "^2.3.1" }, "engines": { diff --git a/examples/github-app/package.json b/examples/github-app/package.json index b19bf53af4ef..a397a86a162f 100644 --- a/examples/github-app/package.json +++ b/examples/github-app/package.json @@ -35,8 +35,8 @@ "@linaria/shaker": "5.0.3", "@types/lodash": "4.14.192", "@types/parse-link-header": "^2.0.0", - "@types/react": "npm:types-react@19.0.0-rc.1", - "@types/react-dom": "npm:types-react-dom@19.0.0", + "@types/react": "19.0.0", + "@types/react-dom": "19.0.0", "@types/uuid": "^10.0.0", "react-refresh": "0.16.0", "serve": "14.2.4", diff --git a/examples/nextjs/package-lock.json b/examples/nextjs/package-lock.json index 9cf29c0c7905..f7c8de10a935 100644 --- a/examples/nextjs/package-lock.json +++ b/examples/nextjs/package-lock.json @@ -14,8 +14,8 @@ "@data-client/rest": "^0.14.0", "@number-flow/react": "^0.4.0", "@types/node": "22.10.1", - "@types/react": "npm:types-react@19.0.0-rc.1", - "@types/react-dom": "npm:types-react-dom@19.0.0", + "@types/react": "19.0.0", + "@types/react-dom": "19.0.0", "clsx": "^2.1.1", "next": "15.0.3", "react": "19.0.0", @@ -2543,10 +2543,9 @@ "integrity": "sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==" }, "node_modules/@types/react": { - "name": "types-react", - "version": "19.0.0-rc.1", - "resolved": "https://registry.npmjs.org/types-react/-/types-react-19.0.0-rc.1.tgz", - "integrity": "sha512-RshndUfqTW6K3STLPis8BtAYCGOkMbtvYsi90gmVNDZBXUyUc5juf2PE9LfS/JmOlUIRO8cWTS/1MTnmhjDqyQ==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.0.0.tgz", + "integrity": "sha512-MY3oPudxvMYyesqs/kW1Bh8y9VqSmf+tzqw3ae8a9DZW68pUe3zAdHeI1jc6iAysuRdACnVknHP8AhwD4/dxtg==", "dependencies": { "csstype": "^3.0.2" } diff --git a/examples/nextjs/package.json b/examples/nextjs/package.json index 0ecd5ff87816..a4d9aa7958c3 100644 --- a/examples/nextjs/package.json +++ b/examples/nextjs/package.json @@ -16,8 +16,8 @@ "@data-client/rest": "^0.14.0", "@number-flow/react": "^0.4.0", "@types/node": "22.10.1", - "@types/react": "npm:types-react@19.0.0-rc.1", - "@types/react-dom": "npm:types-react-dom@19.0.0", + "@types/react": "19.0.0", + "@types/react-dom": "19.0.0", "clsx": "^2.1.1", "next": "15.0.3", "react": "19.0.0", @@ -27,7 +27,7 @@ "typescript": "^5.4.5" }, "overrides": { - "@types/react": "npm:types-react@19.0.0-rc.1", - "@types/react-dom": "npm:types-react-dom@19.0.0" + "@types/react": "19.0.0", + "@types/react-dom": "19.0.0" } } diff --git a/examples/todo-app/package-lock.json b/examples/todo-app/package-lock.json index a5ec0a343d84..d2f80f794caa 100644 --- a/examples/todo-app/package-lock.json +++ b/examples/todo-app/package-lock.json @@ -25,8 +25,8 @@ "@linaria/core": "6.2.0", "@linaria/react": "6.2.1", "@linaria/shaker": "5.0.3", - "@types/react": "npm:types-react@19.0.0-rc.1", - "@types/react-dom": "npm:types-react-dom@19.0.0", + "@types/react": "19.0.0", + "@types/react-dom": "19.0.0", "@types/uuid": "^10.0.0", "react-refresh": "0.16.0", "webpack": "5.96.1", @@ -4514,10 +4514,9 @@ "license": "MIT" }, "node_modules/@types/react": { - "name": "types-react", - "version": "19.0.0-rc.1", - "resolved": "https://registry.npmjs.org/types-react/-/types-react-19.0.0-rc.1.tgz", - "integrity": "sha512-RshndUfqTW6K3STLPis8BtAYCGOkMbtvYsi90gmVNDZBXUyUc5juf2PE9LfS/JmOlUIRO8cWTS/1MTnmhjDqyQ==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.0.0.tgz", + "integrity": "sha512-MY3oPudxvMYyesqs/kW1Bh8y9VqSmf+tzqw3ae8a9DZW68pUe3zAdHeI1jc6iAysuRdACnVknHP8AhwD4/dxtg==", "dev": true, "dependencies": { "csstype": "^3.0.2" @@ -6589,9 +6588,9 @@ "dev": true }, "node_modules/cookie": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.6.0.tgz", - "integrity": "sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==", + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz", + "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==", "dev": true, "engines": { "node": ">= 0.6" @@ -6716,11 +6715,10 @@ } }, "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, - "license": "MIT", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -7838,11 +7836,10 @@ "license": "ISC" }, "node_modules/elliptic": { - "version": "6.5.7", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.7.tgz", - "integrity": "sha512-ESVCtTwiA+XhY3wyh24QqRGBoP3rEdDUl3EDUUo9tft074fi19IrdpH7hLCMMP3CIj7jb3W96rn8lt/BqIlt5Q==", + "version": "6.6.1", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.6.1.tgz", + "integrity": "sha512-RaddvvMatK2LJHqFJ+YA4WysVN5Ita9E35botqIYspQ4TkRAlCicdzKOjlyv/1Za5RyTNn7di//eEV0uTAfe3g==", "dev": true, - "license": "MIT", "dependencies": { "bn.js": "^4.11.9", "brorand": "^1.1.0", @@ -8105,9 +8102,9 @@ } }, "node_modules/express": { - "version": "4.21.0", - "resolved": "https://registry.npmjs.org/express/-/express-4.21.0.tgz", - "integrity": "sha512-VqcNGcj/Id5ZT1LZ/cfihi3ttTn+NJmkli2eZADigjq29qTlWi/hAQ43t/VLPq8+UX06FCEx3ByOYet6ZFblng==", + "version": "4.21.1", + "resolved": "https://registry.npmjs.org/express/-/express-4.21.1.tgz", + "integrity": "sha512-YSFlK1Ee0/GC8QaO91tHcDxJiE/X4FbpAyQWkxAvG6AXCuR65YzK8ua6D9hvi/TzUfZMpc+BwuM1IPw8fmQBiQ==", "dev": true, "dependencies": { "accepts": "~1.3.8", @@ -8115,7 +8112,7 @@ "body-parser": "1.20.3", "content-disposition": "0.5.4", "content-type": "~1.0.4", - "cookie": "0.6.0", + "cookie": "0.7.1", "cookie-signature": "1.0.6", "debug": "2.6.9", "depd": "2.0.0", @@ -9161,11 +9158,10 @@ } }, "node_modules/http-proxy-middleware": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz", - "integrity": "sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw==", + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.7.tgz", + "integrity": "sha512-fgVY8AV7qU7z/MmXJ/rxwbrtQH4jBQ9m7kp3llF0liB7glmFeVZFBepQb32T3y8n8k2+AEYuMPCpinYW+/CuRA==", "dev": true, - "license": "MIT", "dependencies": { "@types/http-proxy": "^1.17.8", "http-proxy": "^1.18.1", @@ -10054,13 +10050,12 @@ } }, "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "dev": true, - "license": "MIT", "dependencies": { - "braces": "^3.0.2", + "braces": "^3.0.3", "picomatch": "^2.3.1" }, "engines": { diff --git a/examples/todo-app/package.json b/examples/todo-app/package.json index 84486c5c48f1..9a4a124807e8 100644 --- a/examples/todo-app/package.json +++ b/examples/todo-app/package.json @@ -33,8 +33,8 @@ "@linaria/core": "6.2.0", "@linaria/react": "6.2.1", "@linaria/shaker": "5.0.3", - "@types/react": "npm:types-react@19.0.0-rc.1", - "@types/react-dom": "npm:types-react-dom@19.0.0", + "@types/react": "19.0.0", + "@types/react-dom": "19.0.0", "@types/uuid": "^10.0.0", "react-refresh": "0.16.0", "webpack": "5.96.1", diff --git a/package.json b/package.json index e3f805a3274c..cb0cd9e343ad 100644 --- a/package.json +++ b/package.json @@ -65,8 +65,8 @@ "@testing-library/react-native": "12.9.0", "@types/jest": "29.5.14", "@types/node": "22.10.1", - "@types/react": "npm:types-react@19.0.0-rc.1", - "@types/react-dom": "npm:types-react-dom@19.0.0", + "@types/react": "19.0.0", + "@types/react-dom": "19.0.0", "babel-plugin-module-resolver": "5.0.2", "babel-plugin-syntax-hermes-parser": "^0.25.0", "benchmark": "^2.1.4", @@ -87,12 +87,12 @@ "node-fetch": "^3.3.0", "npm-run-all": "^4.1.5", "prettier": "3.4.1", - "react": "^19.0.0-rc.1", - "react-dom": "^19.0.0-rc.1", + "react": "^19.0.0", + "react-dom": "^19.0.0", "react-native": "0.76.3", "react-native-safe-area-context": "^4.14.0", "react-native-screens": "^4.1.0", - "react-test-renderer": "^19.0.0-rc.1", + "react-test-renderer": "^19.0.0", "rimraf": "^6.0.0", "rollup": "2.79.2", "rollup-plugin-babel": "^4.4.0", @@ -109,8 +109,6 @@ "whatwg-fetch": "3.0.0" }, "resolutions": { - "@types/react": "npm:types-react@19.0.0-rc.1", - "@types/react-dom": "npm:types-react-dom@19.0.0", "whatwg-fetch": "3.0.0", "downlevel-dts/typescript": "4.9.0-dev.20220903" }, diff --git a/packages/img/package.json b/packages/img/package.json index a5b73d8dd20c..e50a21a8e97a 100644 --- a/packages/img/package.json +++ b/packages/img/package.json @@ -86,6 +86,6 @@ "@anansi/browserslist-config": "^1.4.2", "@data-client/react": "workspace:*", "@types/node": "^22.0.0", - "@types/react": "^18.0.30" + "@types/react": "19.0.0" } } diff --git a/packages/react/package.json b/packages/react/package.json index bb521526d674..77c1547f5538 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -190,7 +190,7 @@ "@react-navigation/native": "^7.0.0", "@types/node": "^22.0.0", "@types/qs": "^6", - "@types/react": "^18.0.30", + "@types/react": "19.0.0", "qs": "^6.13.1", "react-native": "^0.76.0" } diff --git a/packages/ssr/package.json b/packages/ssr/package.json index ad51750f9586..739d320453cf 100644 --- a/packages/ssr/package.json +++ b/packages/ssr/package.json @@ -136,10 +136,10 @@ "@data-client/react": "workspace:*", "@data-client/redux": "^0.13.0", "@types/node": "^22.0.0", - "@types/react": "^18.0.30", - "@types/react-dom": "^18.0.11", + "@types/react": "19.0.0", + "@types/react-dom": "19.0.0", "next": "^15.0.0", - "react-dom": "^19.0.0-rc.1", + "react-dom": "^19.0.0", "redux": "^5.0.0" } } diff --git a/packages/test/package.json b/packages/test/package.json index bb241a349fdb..a27e0140ef1d 100644 --- a/packages/test/package.json +++ b/packages/test/package.json @@ -155,9 +155,9 @@ "@data-client/react": "workspace:*", "@types/jest": "^29.5.0", "@types/node": "^22.0.0", - "@types/react": "^18.0.30", - "@types/react-dom": "^18.0.11", - "@types/react-test-renderer": "^18", + "@types/react": "19.0.0", + "@types/react-dom": "19.0.0", + "@types/react-test-renderer": "19.0.0", "jest": "^29.5.0" } } diff --git a/packages/use-enhanced-reducer/package.json b/packages/use-enhanced-reducer/package.json index ac6d25d68361..e6a1eb2b1da2 100644 --- a/packages/use-enhanced-reducer/package.json +++ b/packages/use-enhanced-reducer/package.json @@ -88,6 +88,6 @@ "devDependencies": { "@anansi/browserslist-config": "^1.4.2", "@types/node": "^22.0.0", - "@types/react": "^18.0.30" + "@types/react": "19.0.0" } } diff --git a/website/package.json b/website/package.json index 80a939bf1688..fbff09f968dd 100644 --- a/website/package.json +++ b/website/package.json @@ -21,8 +21,8 @@ "devDependencies": { "@docusaurus/module-type-aliases": "^3.0.1", "@tsconfig/docusaurus": "^2.0.0", - "@types/react": "18.3.14", - "@types/react-dom": "^18.2.7", + "@types/react": "19.0.0", + "@types/react-dom": "19.0.0", "@types/react-helmet": "^6.1.5", "@types/react-router-dom": "^5.3.3", "@types/uuid": "^10.0.0", @@ -51,8 +51,8 @@ "clsx": "2.1.1", "monaco-editor": "^0.52.0", "parse-numeric-range": "^1.3.0", - "react": "^19.0.0-rc.1", - "react-dom": "^19.0.0-rc.1", + "react": "^19.0.0", + "react-dom": "^19.0.0", "react-json-tree": "0.19.0", "react-live": "^4.0.0", "typescript": "^5.5.2", diff --git a/website/src/components/Playground/editor-types/react.d.ts b/website/src/components/Playground/editor-types/react.d.ts index 00d260578fdb..69e0feaab379 100755 --- a/website/src/components/Playground/editor-types/react.d.ts +++ b/website/src/components/Playground/editor-types/react.d.ts @@ -137,8 +137,6 @@ declare namespace React { | (new(props: P) => Component); /** - * A readonly ref container where {@link current} cannot be mutated. - * * Created by {@link createRef}, or {@link useRef} when passed `null`. * * @template T The type of the ref's value. @@ -779,6 +777,12 @@ declare namespace React { /** A fallback react tree to show when a Suspense child (like React.lazy) suspends */ fallback?: ReactNode; + + /** + * A name for this Suspense boundary for instrumentation purposes. + * The name will help identify this boundary in React DevTools. + */ + name?: string | undefined; } /** @@ -914,7 +918,7 @@ declare namespace React { /** * Ignored by React. - * @deprecated Only kept in types for backwards compatibility. Will be removed in a futre major release. + * @deprecated Only kept in types for backwards compatibility. Will be removed in a future major release. */ static propTypes?: any; @@ -1035,7 +1039,7 @@ declare namespace React { (props: P): ReactNode; /** * Ignored by React. - * @deprecated Only kept in types for backwards compatibility. Will be removed in a futre major release. + * @deprecated Only kept in types for backwards compatibility. Will be removed in a future major release. */ propTypes?: any; /** @@ -1096,7 +1100,7 @@ declare namespace React { displayName?: string | undefined; /** * Ignored by React. - * @deprecated Only kept in types for backwards compatibility. Will be removed in a futre major release. + * @deprecated Only kept in types for backwards compatibility. Will be removed in a future major release. */ propTypes?: any; } @@ -1112,7 +1116,7 @@ declare namespace React { new(props: P): Component; /** * Ignored by React. - * @deprecated Only kept in types for backwards compatibility. Will be removed in a futre major release. + * @deprecated Only kept in types for backwards compatibility. Will be removed in a future major release. */ propTypes?: any; contextType?: Context | undefined; @@ -1335,7 +1339,7 @@ declare namespace React { interface ForwardRefExoticComponent

extends NamedExoticComponent

{ /** * Ignored by React. - * @deprecated Only kept in types for backwards compatibility. Will be removed in a futre major release. + * @deprecated Only kept in types for backwards compatibility. Will be removed in a future major release. */ propTypes?: any; } @@ -1368,7 +1372,7 @@ declare namespace React { * ``` */ function forwardRef( - render: ForwardRefRenderFunction, + render: ForwardRefRenderFunction>, ): ForwardRefExoticComponent & RefAttributes>; /** @@ -1786,7 +1790,7 @@ declare namespace React { */ // A specific function type would not trigger implicit any. // See https://github.com/DefinitelyTyped/DefinitelyTyped/issues/52873#issuecomment-845806435 for a comparison between `Function` and more specific types. - // eslint-disable-next-line @typescript-eslint/ban-types + // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type function useCallback(callback: T, deps: DependencyList): T; /** * `useMemo` will only recompute the memoized value when one of the `deps` has changed. @@ -1927,6 +1931,9 @@ declare namespace React { permalink?: string, ): [state: Awaited, dispatch: (payload: Payload) => void, isPending: boolean]; + // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type + export function cache(fn: CachedFunction): CachedFunction; + // // Event System // ---------------------------------------------------------------------- @@ -2197,9 +2204,9 @@ declare namespace React { // Keyboard Events onKeyDown?: KeyboardEventHandler | undefined; onKeyDownCapture?: KeyboardEventHandler | undefined; - /** @deprecated */ + /** @deprecated Use `onKeyUp` or `onKeyDown` instead */ onKeyPress?: KeyboardEventHandler | undefined; - /** @deprecated */ + /** @deprecated Use `onKeyUpCapture` or `onKeyDownCapture` instead */ onKeyPressCapture?: KeyboardEventHandler | undefined; onKeyUp?: KeyboardEventHandler | undefined; onKeyUpCapture?: KeyboardEventHandler | undefined; @@ -2672,12 +2679,14 @@ declare namespace React { // Standard HTML Attributes accessKey?: string | undefined; + autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}); autoFocus?: boolean | undefined; className?: string | undefined; contentEditable?: Booleanish | "inherit" | "plaintext-only" | undefined; contextMenu?: string | undefined; dir?: string | undefined; draggable?: Booleanish | undefined; + enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined; hidden?: boolean | undefined; id?: string | undefined; lang?: string | undefined; @@ -2709,7 +2718,6 @@ declare namespace React { vocab?: string | undefined; // Non-standard Attributes - autoCapitalize?: string | undefined; autoCorrect?: string | undefined; autoSave?: string | undefined; color?: string | undefined; @@ -2758,7 +2766,7 @@ declare namespace React { action?: | string | undefined - | ((formData: FormData) => void) + | ((formData: FormData) => void | Promise) | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[ keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS ]; @@ -2793,7 +2801,7 @@ declare namespace React { formAction?: | string | undefined - | ((formData: FormData) => void) + | ((formData: FormData) => void | Promise) | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[ keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS ]; @@ -2926,7 +2934,7 @@ declare namespace React { form?: string | undefined; formAction?: | string - | ((formData: FormData) => void) + | ((formData: FormData) => void | Promise) | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[ keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS ] @@ -2992,7 +3000,7 @@ declare namespace React { action?: | string | undefined - | ((formData: FormData) => void) + | ((formData: FormData) => void | Promise) | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[ keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS ]; @@ -3145,11 +3153,10 @@ declare namespace React { capture?: boolean | "user" | "environment" | undefined; // https://www.w3.org/TR/html-media-capture/#the-capture-attribute checked?: boolean | undefined; disabled?: boolean | undefined; - enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined; form?: string | undefined; formAction?: | string - | ((formData: FormData) => void) + | ((formData: FormData) => void | Promise) | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[ keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS ] @@ -3212,6 +3219,9 @@ declare namespace React { sizes?: string | undefined; type?: string | undefined; charSet?: string | undefined; + + // React props + precedence?: string | undefined; } interface MapHTMLAttributes extends HTMLAttributes { @@ -3346,6 +3356,10 @@ declare namespace React { media?: string | undefined; scoped?: boolean | undefined; type?: string | undefined; + + // React props + href?: string | undefined; + precedence?: string | undefined; } interface TableHTMLAttributes extends HTMLAttributes { diff --git a/yarn.lock b/yarn.lock index 6d884388aeb1..3c423379a41e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3148,7 +3148,7 @@ __metadata: "@data-client/endpoint": "npm:^0.14.17" "@data-client/react": "workspace:*" "@types/node": "npm:^22.0.0" - "@types/react": "npm:^18.0.30" + "@types/react": "npm:19.0.0" peerDependencies: "@data-client/react": ^0.1.0 || ^0.2.0 || ^0.3.0 || ^0.4.0 || ^0.5.0 || ^0.7.0 || ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^0.14.0 "@types/react": ^16.14.0 || ^17.0.0 || ^18.0.0-0 || ^19.0.0 @@ -3190,7 +3190,7 @@ __metadata: "@react-navigation/native": "npm:^7.0.0" "@types/node": "npm:^22.0.0" "@types/qs": "npm:^6" - "@types/react": "npm:^18.0.30" + "@types/react": "npm:19.0.0" qs: "npm:^6.13.1" react-native: "npm:^0.76.0" peerDependencies: @@ -3244,10 +3244,10 @@ __metadata: "@data-client/react": "workspace:*" "@data-client/redux": "npm:^0.13.0" "@types/node": "npm:^22.0.0" - "@types/react": "npm:^18.0.30" - "@types/react-dom": "npm:^18.0.11" + "@types/react": "npm:19.0.0" + "@types/react-dom": "npm:19.0.0" next: "npm:^15.0.0" - react-dom: "npm:^19.0.0-rc.1" + react-dom: "npm:^19.0.0" redux: "npm:^5.0.0" peerDependencies: "@data-client/react": ^0.1.0 || ^0.2.0 || ^0.3.0 || ^0.4.0 || ^0.5.0 || ^0.7.0 || ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^0.14.0 @@ -3276,9 +3276,9 @@ __metadata: "@testing-library/react-native": "npm:^12.0.1" "@types/jest": "npm:^29.5.0" "@types/node": "npm:^22.0.0" - "@types/react": "npm:^18.0.30" - "@types/react-dom": "npm:^18.0.11" - "@types/react-test-renderer": "npm:^18" + "@types/react": "npm:19.0.0" + "@types/react-dom": "npm:19.0.0" + "@types/react-test-renderer": "npm:19.0.0" jest: "npm:^29.5.0" peerDependencies: "@data-client/react": ^0.12.15 || ^0.13.0 || ^0.14.0 @@ -3314,7 +3314,7 @@ __metadata: dependencies: "@anansi/browserslist-config": "npm:^1.4.2" "@types/node": "npm:^22.0.0" - "@types/react": "npm:^18.0.30" + "@types/react": "npm:19.0.0" peerDependencies: "@types/react": ^16.14.0 || ^17.0.0 || ^18.0.0-0 || ^18.0.0 || ^19.0.0-0 || ^19.0.0 react: ^16.14.0 || ^17.0.0 || ^18.0.0-0 || ^18.0.0 || ^19.0.0-0 || ^19.0.0 @@ -7494,12 +7494,12 @@ __metadata: languageName: node linkType: hard -"@types/react-dom@npm:types-react-dom@19.0.0": +"@types/react-dom@npm:*, @types/react-dom@npm:19.0.0": version: 19.0.0 - resolution: "types-react-dom@npm:19.0.0" + resolution: "@types/react-dom@npm:19.0.0" dependencies: "@types/react": "npm:*" - checksum: 10c0/5ea60f0a0a00a8f8b14a5dd0bf39c349bd2f1e9a1b4ce52777fdfc2d2fe03f791f7714b0ef3ab19d38be8ce52633ebd39d226d8f102344efe07d02e9931b62a3 + checksum: 10c0/bd480fc4a9c801fc6bbc7d26b37bb815fc382e76b5428511b1bdb2e8048f3dbd2ff9973bafc86b448e0593f9da4c02f7b39d47409e427daeed5a54f045de4596 languageName: node linkType: hard @@ -7544,21 +7544,21 @@ __metadata: languageName: node linkType: hard -"@types/react-test-renderer@npm:^18": - version: 18.3.1 - resolution: "@types/react-test-renderer@npm:18.3.1" +"@types/react-test-renderer@npm:19.0.0": + version: 19.0.0 + resolution: "@types/react-test-renderer@npm:19.0.0" dependencies: - "@types/react": "npm:^18" - checksum: 10c0/9fc8467ff1a3f14be6cc3498a75fc788d2c92c0fffa7bf21269ed5d9d82db9195bf2178ddc42ea16a0836995c1b77601c6be8abb27bd1864668c418c6d0e5a3b + "@types/react": "npm:*" + checksum: 10c0/4027e662028e4695eb1a395e54c0e430c35a323ef800fcb4d2726d9dafa1337f214f87e2487876e3cc51ecf7ac3b3d0903252524f194877d39ec4ebd0626b17d languageName: node linkType: hard -"@types/react@npm:types-react@19.0.0-rc.1": - version: 19.0.0-rc.1 - resolution: "types-react@npm:19.0.0-rc.1" +"@types/react@npm:*, @types/react@npm:19.0.0": + version: 19.0.0 + resolution: "@types/react@npm:19.0.0" dependencies: csstype: "npm:^3.0.2" - checksum: 10c0/408cd9f3f960e806d510f7a9a3569f92a7f1cff3c57f5465fab4c139f0020c88dc7a08e6f357d2a116bd2c76e641851ce84527cb765f36824a6e818e0d477bbc + checksum: 10c0/d7753ec27c5fa48f3aab97d7d4e9e33ad62bbff761a421bfc56c7b403fab9e3ed266d47793e44311ca2f0034e8ae428cea4aecbe1c542b418cfe72a520eab931 languageName: node linkType: hard @@ -10782,8 +10782,8 @@ __metadata: "@types/react-dom": "npm:*" d3: "npm:^7.9.0" history: "npm:*" - react: "npm:^19.0.0-rc.1" - react-dom: "npm:^19.0.0-rc.1" + react: "npm:^19.0.0" + react-dom: "npm:^19.0.0" react-refresh: "npm:*" typescript: "npm:^5.4.5" webpack: "npm:*" @@ -14123,10 +14123,10 @@ __metadata: "@data-client/normalizr": "workspace:^" "@types/babel__core": "npm:^7" "@types/benchmark": "npm:2.1.5" - "@types/react": "npm:types-react@19.0.0-rc.1" + "@types/react": "npm:19.0.0" benchmark: "npm:^2.1.4" normalizr: "npm:^3.6.2" - react: "npm:^19.0.0-rc.1" + react: "npm:^19.0.0" webpack: "npm:^5.76.2" webpack-cli: "npm:^5.1.4" languageName: unknown @@ -25160,8 +25160,8 @@ __metadata: "@monaco-editor/react": "npm:^4.4.6" "@number-flow/react": "npm:^0.4.0" "@tsconfig/docusaurus": "npm:^2.0.0" - "@types/react": "npm:18.3.14" - "@types/react-dom": "npm:^18.2.7" + "@types/react": "npm:19.0.0" + "@types/react-dom": "npm:19.0.0" "@types/react-helmet": "npm:^6.1.5" "@types/react-router-dom": "npm:^5.3.3" "@types/uuid": "npm:^10.0.0" @@ -25170,8 +25170,8 @@ __metadata: monaco-editor: "npm:^0.52.0" parse-numeric-range: "npm:^1.3.0" raw-loader: "npm:^4.0.2" - react: "npm:^19.0.0-rc.1" - react-dom: "npm:^19.0.0-rc.1" + react: "npm:^19.0.0" + react-dom: "npm:^19.0.0" react-json-tree: "npm:0.19.0" react-live: "npm:^4.0.0" serve: "npm:14.2.4" @@ -25235,7 +25235,7 @@ __metadata: languageName: node linkType: hard -"react-dom@npm:^19.0.0-rc.1": +"react-dom@npm:^19.0.0": version: 19.0.0 resolution: "react-dom@npm:19.0.0" dependencies: @@ -25538,7 +25538,7 @@ __metadata: languageName: node linkType: hard -"react-test-renderer@npm:^19.0.0-rc.1": +"react-test-renderer@npm:^19.0.0": version: 19.0.0 resolution: "react-test-renderer@npm:19.0.0" dependencies: @@ -25550,7 +25550,7 @@ __metadata: languageName: node linkType: hard -"react@npm:^19.0.0-rc.1": +"react@npm:^19.0.0": version: 19.0.0 resolution: "react@npm:19.0.0" checksum: 10c0/9cad8f103e8e3a16d15cb18a0d8115d8bd9f9e1ce3420310aea381eb42aa0a4f812cf047bb5441349257a05fba8a291515691e3cb51267279b2d2c3253f38471 @@ -26732,8 +26732,8 @@ __metadata: "@testing-library/react-native": "npm:12.9.0" "@types/jest": "npm:29.5.14" "@types/node": "npm:22.10.1" - "@types/react": "npm:types-react@19.0.0-rc.1" - "@types/react-dom": "npm:types-react-dom@19.0.0" + "@types/react": "npm:19.0.0" + "@types/react-dom": "npm:19.0.0" babel-plugin-module-resolver: "npm:5.0.2" babel-plugin-syntax-hermes-parser: "npm:^0.25.0" benchmark: "npm:^2.1.4" @@ -26754,12 +26754,12 @@ __metadata: node-fetch: "npm:^3.3.0" npm-run-all: "npm:^4.1.5" prettier: "npm:3.4.1" - react: "npm:^19.0.0-rc.1" - react-dom: "npm:^19.0.0-rc.1" + react: "npm:^19.0.0" + react-dom: "npm:^19.0.0" react-native: "npm:0.76.3" react-native-safe-area-context: "npm:^4.14.0" react-native-screens: "npm:^4.1.0" - react-test-renderer: "npm:^19.0.0-rc.1" + react-test-renderer: "npm:^19.0.0" rimraf: "npm:^6.0.0" rollup: "npm:2.79.2" rollup-plugin-babel: "npm:^4.4.0"