diff --git a/examples/hoc/package.json b/examples/hoc/package.json index f3c915009..d54d059d5 100644 --- a/examples/hoc/package.json +++ b/examples/hoc/package.json @@ -10,10 +10,10 @@ "@tanem/react-nprogress": "latest", "@types/jest": "29.5.14", "@types/node": "22.10.1", - "@types/react": "18.3.14", - "@types/react-dom": "18.3.2", - "react": "18.3.1", - "react-dom": "18.3.1", + "@types/react": "19.0.0", + "@types/react-dom": "19.0.0", + "react": "19.0.0", + "react-dom": "19.0.0", "react-scripts": "5.0.1", "typescript": "4.9.5" }, diff --git a/examples/material-ui/package.json b/examples/material-ui/package.json index 8d160d32e..efcf82523 100644 --- a/examples/material-ui/package.json +++ b/examples/material-ui/package.json @@ -14,10 +14,10 @@ "@tanem/react-nprogress": "latest", "@types/jest": "29.5.14", "@types/node": "22.10.1", - "@types/react": "18.3.14", - "@types/react-dom": "18.3.2", - "react": "18.3.1", - "react-dom": "18.3.1", + "@types/react": "19.0.0", + "@types/react-dom": "19.0.0", + "react": "19.0.0", + "react-dom": "19.0.0", "react-scripts": "5.0.1", "typescript": "4.9.5" }, diff --git a/examples/multiple-instances/package.json b/examples/multiple-instances/package.json index e6119e51d..7df0837f8 100644 --- a/examples/multiple-instances/package.json +++ b/examples/multiple-instances/package.json @@ -10,10 +10,10 @@ "@tanem/react-nprogress": "latest", "@types/jest": "29.5.14", "@types/node": "22.10.1", - "@types/react": "18.3.14", - "@types/react-dom": "18.3.2", - "react": "18.3.1", - "react-dom": "18.3.1", + "@types/react": "19.0.0", + "@types/react-dom": "19.0.0", + "react": "19.0.0", + "react-dom": "19.0.0", "react-scripts": "5.0.1", "typescript": "4.9.5" }, diff --git a/examples/next-pages-router/package.json b/examples/next-pages-router/package.json index 1419b20b8..d7b6521f9 100644 --- a/examples/next-pages-router/package.json +++ b/examples/next-pages-router/package.json @@ -15,12 +15,12 @@ "dependencies": { "@tanem/react-nprogress": "latest", "next": "latest", - "react": "18.3.1", - "react-dom": "18.3.1" + "react": "19.0.0", + "react-dom": "19.0.0" }, "devDependencies": { "@types/node": "22.10.1", - "@types/react": "18.3.14", + "@types/react": "19.0.0", "typescript": "4.9.5" } } diff --git a/examples/original-design/package.json b/examples/original-design/package.json index 2314bebe2..4786a145f 100644 --- a/examples/original-design/package.json +++ b/examples/original-design/package.json @@ -10,10 +10,10 @@ "@tanem/react-nprogress": "latest", "@types/jest": "29.5.14", "@types/node": "22.10.1", - "@types/react": "18.3.14", - "@types/react-dom": "18.3.2", - "react": "18.3.1", - "react-dom": "18.3.1", + "@types/react": "19.0.0", + "@types/react-dom": "19.0.0", + "react": "19.0.0", + "react-dom": "19.0.0", "react-scripts": "5.0.1", "typescript": "4.9.5" }, diff --git a/examples/plain-js/package.json b/examples/plain-js/package.json index 32cae8a05..c23fc0177 100644 --- a/examples/plain-js/package.json +++ b/examples/plain-js/package.json @@ -8,8 +8,8 @@ "private": true, "dependencies": { "@tanem/react-nprogress": "latest", - "react": "18.3.1", - "react-dom": "18.3.1", + "react": "19.0.0", + "react-dom": "19.0.0", "react-scripts": "5.0.1" }, "scripts": { diff --git a/examples/reach-router/package.json b/examples/reach-router/package.json index b80f94c4a..671e437e9 100644 --- a/examples/reach-router/package.json +++ b/examples/reach-router/package.json @@ -12,11 +12,11 @@ "@types/jest": "29.5.14", "@types/node": "22.10.1", "@types/reach__router": "1.3.15", - "@types/react": "18.3.14", - "@types/react-dom": "18.3.2", + "@types/react": "19.0.0", + "@types/react-dom": "19.0.0", "@types/react-transition-group": "4.4.11", - "react": "18.3.1", - "react-dom": "18.3.1", + "react": "19.0.0", + "react-dom": "19.0.0", "react-scripts": "5.0.1", "react-transition-group": "4.4.5", "typescript": "4.9.5" diff --git a/examples/react-router-v5/package.json b/examples/react-router-v5/package.json index 662759cec..f0d8786b6 100644 --- a/examples/react-router-v5/package.json +++ b/examples/react-router-v5/package.json @@ -10,12 +10,12 @@ "@tanem/react-nprogress": "latest", "@types/jest": "29.5.14", "@types/node": "22.10.1", - "@types/react": "18.3.14", - "@types/react-dom": "18.3.2", + "@types/react": "19.0.0", + "@types/react-dom": "19.0.0", "@types/react-router-dom": "5.3.3", "@types/react-transition-group": "4.4.11", - "react": "18.3.1", - "react-dom": "18.3.1", + "react": "19.0.0", + "react-dom": "19.0.0", "react-router-dom": "5.3.4", "react-scripts": "5.0.1", "react-transition-group": "4.4.5", diff --git a/examples/react-router-v6/package.json b/examples/react-router-v6/package.json index ed18c5015..72ff9838a 100644 --- a/examples/react-router-v6/package.json +++ b/examples/react-router-v6/package.json @@ -10,12 +10,12 @@ "@tanem/react-nprogress": "latest", "@types/jest": "29.5.14", "@types/node": "22.10.1", - "@types/react": "18.3.14", - "@types/react-dom": "18.3.2", + "@types/react": "19.0.0", + "@types/react-dom": "19.0.0", "@types/react-router-dom": "5.3.3", "@types/react-transition-group": "4.4.11", - "react": "18.3.1", - "react-dom": "18.3.1", + "react": "19.0.0", + "react-dom": "19.0.0", "react-router-dom": "6.2.1", "react-scripts": "5.0.1", "react-transition-group": "4.4.5", diff --git a/examples/render-props/package.json b/examples/render-props/package.json index fab15f20b..3501e4dd5 100644 --- a/examples/render-props/package.json +++ b/examples/render-props/package.json @@ -10,10 +10,10 @@ "@tanem/react-nprogress": "latest", "@types/jest": "29.5.14", "@types/node": "22.10.1", - "@types/react": "18.3.14", - "@types/react-dom": "18.3.2", - "react": "18.3.1", - "react-dom": "18.3.1", + "@types/react": "19.0.0", + "@types/react-dom": "19.0.0", + "react": "19.0.0", + "react-dom": "19.0.0", "react-scripts": "5.0.1", "typescript": "4.9.5" }, diff --git a/package-lock.json b/package-lock.json index b6408ce14..8e266762d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31,8 +31,8 @@ "@types/jest": "29.5.14", "@types/mock-raf": "1.0.6", "@types/node": "22.10.1", - "@types/react": "18.3.14", - "@types/react-dom": "18.3.2", + "@types/react": "19.0.0", + "@types/react-dom": "19.0.0", "@typescript-eslint/eslint-plugin": "8.17.0", "@typescript-eslint/parser": "8.17.0", "babel-core": "6.26.3", @@ -46,9 +46,9 @@ "mock-raf": "1.0.1", "npm-run-all2": "7.0.1", "prettier": "3.4.2", - "react": "18.3.1", - "react-dom": "18.3.1", - "react-test-renderer": "18.3.1", + "react": "19.0.0", + "react-dom": "19.0.0", + "react-test-renderer": "19.0.0", "regenerator-runtime": "0.14.1", "rollup": "4.28.0", "shx": "0.3.4", @@ -57,8 +57,8 @@ "typescript": "5.7.2" }, "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0", - "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "node_modules/@ampproject/remapping": { @@ -3646,32 +3646,24 @@ "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==", - "dev": true, - "license": "MIT" - }, "node_modules/@types/react": { - "version": "18.3.14", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.14.tgz", - "integrity": "sha512-NzahNKvjNhVjuPBQ+2G7WlxstQ+47kXZNHlUvFakDViuIEfGY926GqhMueQFZ7woG+sPiQKlF36XfrIUVSUfFg==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.0.0.tgz", + "integrity": "sha512-MY3oPudxvMYyesqs/kW1Bh8y9VqSmf+tzqw3ae8a9DZW68pUe3zAdHeI1jc6iAysuRdACnVknHP8AhwD4/dxtg==", "dev": true, "license": "MIT", "dependencies": { - "@types/prop-types": "*", "csstype": "^3.0.2" } }, "node_modules/@types/react-dom": { - "version": "18.3.2", - "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.2.tgz", - "integrity": "sha512-Fqp+rcvem9wEnGr3RY8dYNvSQ8PoLqjZ9HLgaPUOjJJD120uDyOxOjc/39M4Kddp9JQCxpGQbnhVQF0C0ncYVg==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.0.0.tgz", + "integrity": "sha512-1KfiQKsH1o00p9m5ag12axHQSb3FOU9H20UTrujVSkNhuCrRHiQWFqgEnTNK5ZNfnzZv8UWrnXVqCmCF9fgY3w==", "dev": true, "license": "MIT", "dependencies": { - "@types/react": "^18" + "@types/react": "*" } }, "node_modules/@types/resolve": { @@ -9839,30 +9831,26 @@ } }, "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==", "dev": true, "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==", "dev": true, "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": { @@ -9871,49 +9859,24 @@ "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", "license": "MIT" }, - "node_modules/react-shallow-renderer": { - "version": "16.15.0", - "resolved": "https://registry.npmjs.org/react-shallow-renderer/-/react-shallow-renderer-16.15.0.tgz", - "integrity": "sha512-oScf2FqQ9LFVQgA73vr86xl2NaOIX73rh+YFqcOp68CWj56tSfgtGKrEbyhCj0rSijyG9M1CYprTh39fBi5hzA==", - "dev": true, - "license": "MIT", - "dependencies": { - "object-assign": "^4.1.1", - "react-is": "^16.12.0 || ^17.0.0 || ^18.0.0" - }, - "peerDependencies": { - "react": "^16.0.0 || ^17.0.0 || ^18.0.0" - } - }, - "node_modules/react-shallow-renderer/node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/react-test-renderer": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react-test-renderer/-/react-test-renderer-18.3.1.tgz", - "integrity": "sha512-KkAgygexHUkQqtvvx/otwxtuFu5cVjfzTCtjXLH9boS19/Nbtg84zS7wIQn39G8IlrhThBpQsMKkq5ZHZIYFXA==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/react-test-renderer/-/react-test-renderer-19.0.0.tgz", + "integrity": "sha512-oX5u9rOQlHzqrE/64CNr0HB0uWxkCQmZNSfozlYvwE71TLVgeZxVf0IjouGEr1v7r1kcDifdAJBeOhdhxsG/DA==", "dev": true, "license": "MIT", "dependencies": { - "react-is": "^18.3.1", - "react-shallow-renderer": "^16.15.0", - "scheduler": "^0.23.2" + "react-is": "^19.0.0", + "scheduler": "^0.25.0" }, "peerDependencies": { - "react": "^18.3.1" + "react": "^19.0.0" } }, "node_modules/react-test-renderer/node_modules/react-is": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", - "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-19.0.0.tgz", + "integrity": "sha512-H91OHcwjZsbq3ClIDHMzBShc1rotbfACdWENsmEf0IFvZ3FgGPtdHMcsv45bQ1hAbgdfiA8SnxTKfDS+x/8m2g==", "dev": true, "license": "MIT" }, @@ -10311,14 +10274,11 @@ } }, "node_modules/scheduler": { - "version": "0.23.2", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", - "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==", + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.25.0.tgz", + "integrity": "sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA==", "dev": true, - "license": "MIT", - "dependencies": { - "loose-envify": "^1.1.0" - } + "license": "MIT" }, "node_modules/semver": { "version": "6.3.1", diff --git a/package.json b/package.json index 4dcb108ca..5c1d89220 100644 --- a/package.json +++ b/package.json @@ -62,8 +62,8 @@ }, "homepage": "github:tanem/react-nprogress", "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0", - "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" }, "dependencies": { "@babel/runtime": "^7.26.0", @@ -88,8 +88,8 @@ "@types/jest": "29.5.14", "@types/mock-raf": "1.0.6", "@types/node": "22.10.1", - "@types/react": "18.3.14", - "@types/react-dom": "18.3.2", + "@types/react": "19.0.0", + "@types/react-dom": "19.0.0", "@typescript-eslint/eslint-plugin": "8.17.0", "@typescript-eslint/parser": "8.17.0", "babel-core": "6.26.3", @@ -103,9 +103,9 @@ "mock-raf": "1.0.1", "npm-run-all2": "7.0.1", "prettier": "3.4.2", - "react": "18.3.1", - "react-dom": "18.3.1", - "react-test-renderer": "18.3.1", + "react": "19.0.0", + "react-dom": "19.0.0", + "react-test-renderer": "19.0.0", "regenerator-runtime": "0.14.1", "rollup": "4.28.0", "shx": "0.3.4",