From 09663c0e86074a34825754d0d443e108e35448b1 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 24 Jan 2025 15:58:22 +0100 Subject: [PATCH] Bump react-router-dom to ^7.1.3 (#1337) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: MichaƂ Dudak --- docs/package.json | 2 +- packages/react/package.json | 2 +- pnpm-lock.yaml | 70 +++++++++++++++++++++++-------------- test/package.json | 2 +- test/regressions/main.tsx | 9 +---- 5 files changed, 48 insertions(+), 37 deletions(-) diff --git a/docs/package.json b/docs/package.json index e527420eb8..b77f0224be 100644 --- a/docs/package.json +++ b/docs/package.json @@ -54,7 +54,7 @@ "react-dom": "^19.0.0", "react-error-boundary": "^4.1.2", "react-is": "^19.0.0", - "react-router-dom": "^6.28.1", + "react-router-dom": "^7.1.3", "react-runner": "^1.0.5", "rehype-pretty-code": "^0.14.0", "remark": "^15.0.1", diff --git a/packages/react/package.json b/packages/react/package.json index 9d76575950..618e69746c 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -101,7 +101,7 @@ "publint": "^0.3.2", "react": "^19.0.0", "react-dom": "^19.0.0", - "react-router-dom": "^6.28.2", + "react-router-dom": "^7.1.3", "sinon": "^19.0.2", "typescript": "^5.7.3" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2d8f9c3671..67a62b695b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -447,8 +447,8 @@ importers: specifier: ^19.0.0 version: 19.0.0 react-router-dom: - specifier: ^6.28.1 - version: 6.28.2(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + specifier: ^7.1.3 + version: 7.1.3(react-dom@19.0.0(react@19.0.0))(react@19.0.0) react-runner: specifier: ^1.0.5 version: 1.0.5(react-dom@19.0.0(react@19.0.0))(react@19.0.0) @@ -656,8 +656,8 @@ importers: specifier: ^19.0.0 version: 19.0.0(react@19.0.0) react-router-dom: - specifier: ^6.28.2 - version: 6.28.2(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + specifier: ^7.1.3 + version: 7.1.3(react-dom@19.0.0(react@19.0.0))(react@19.0.0) sinon: specifier: ^19.0.2 version: 19.0.2 @@ -726,8 +726,8 @@ importers: specifier: ^19.0.0 version: 19.0.0(react@19.0.0) react-router-dom: - specifier: ^6.28.1 - version: 6.28.2(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + specifier: ^7.1.3 + version: 7.1.3(react-dom@19.0.0(react@19.0.0))(react@19.0.0) sinon: specifier: ^17.0.1 version: 17.0.1 @@ -2856,10 +2856,6 @@ packages: peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 - '@remix-run/router@1.21.1': - resolution: {integrity: sha512-KeBYSwohb8g4/wCcnksvKTYlg69O62sQeLynn2YE+5z7JWEj95if27kclW9QqbrlsQ2DINI8fjbV3zyuKfwjKg==} - engines: {node: '>=14.0.0'} - '@rollup/rollup-android-arm-eabi@4.31.0': resolution: {integrity: sha512-9NrR4033uCbUBRgvLcBrJofa2KY9DzxL2UKZ1/4xA/mnTNyhZCWBuD8X3tPm1n4KxcgaraOYgrFKSgwjASfmlA==} cpu: [arm] @@ -4345,6 +4341,10 @@ packages: resolution: {integrity: sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==} engines: {node: '>= 0.6'} + cookie@1.0.2: + resolution: {integrity: sha512-9Kr/j4O16ISv8zBBhJoi4bXOYNTkFLOqSL3UDB0njXxCXNezjeyVrJyGOWtgfs/q2km1gwBcfH8q1yEGoMYunA==} + engines: {node: '>=18'} + core-js-compat@3.38.1: resolution: {integrity: sha512-JRH6gfXxGmrzF3tZ57lFx97YARxCXPaMzPo6jELZhv88pBH5VXpQ+y0znKGlFnzuaihqhLbefxSJxWJMPtfDzw==} @@ -7687,18 +7687,22 @@ packages: resolution: {integrity: sha512-jCvmsr+1IUSMUyzOkRcvnVbX3ZYC6g9TDrDbFuFmRDq7PD4yaGbLKNQL6k2jnArV8hjYxh7hVhAZB6s9HDGpZA==} engines: {node: '>=0.10.0'} - react-router-dom@6.28.2: - resolution: {integrity: sha512-O81EWqNJWqvlN/a7eTudAdQm0TbI7hw+WIi7OwwMcTn5JMyZ0ibTFNGz+t+Lju0df4LcqowCegcrK22lB1q9Kw==} - engines: {node: '>=14.0.0'} + react-router-dom@7.1.3: + resolution: {integrity: sha512-qQGTE+77hleBzv9SIUIkGRvuFBQGagW+TQKy53UTZAO/3+YFNBYvRsNIZ1GT17yHbc63FylMOdS+m3oUriF1GA==} + engines: {node: '>=20.0.0'} peerDependencies: - react: '>=16.8' - react-dom: '>=16.8' + react: '>=18' + react-dom: '>=18' - react-router@6.28.2: - resolution: {integrity: sha512-BgFY7+wEGVjHCiqaj2XiUBQ1kkzfg6UoKYwEe0wv+FF+HNPCxtS/MVPvLAPH++EsuCMReZl9RYVGqcHLk5ms3A==} - engines: {node: '>=14.0.0'} + react-router@7.1.3: + resolution: {integrity: sha512-EezYymLY6Guk/zLQ2vRA8WvdUhWFEj5fcE3RfWihhxXBW7+cd1LsIiA3lmx+KCmneAGQuyBv820o44L2+TtkSA==} + engines: {node: '>=20.0.0'} peerDependencies: - react: '>=16.8' + react: '>=18' + react-dom: '>=18' + peerDependenciesMeta: + react-dom: + optional: true react-runner@1.0.5: resolution: {integrity: sha512-eCIybRpssp6ffjqXqId024esO9UP2lV838Lvm3fC7VgMQ/dQHhR0jJwOY2IPrYD3AaM/bcvMikmASIRZqNUHsw==} @@ -8039,6 +8043,9 @@ packages: set-blocking@2.0.0: resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==} + set-cookie-parser@2.7.1: + resolution: {integrity: sha512-IOc8uWeOZgnb3ptbCURJWNjWUPcO3ZnTTdzsurqERrP6nPyv+paC55vJM0LpOlT2ne+Ix+9+CRG1MNLlyZ4GjQ==} + set-function-length@1.2.2: resolution: {integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==} engines: {node: '>= 0.4'} @@ -8608,6 +8615,9 @@ packages: resolution: {integrity: sha512-ZSDngmP1z6zw+FIkIBjvOp/II/mIub/O7Pp12j1WNsiCpg5R5wAc//i555bBQsE44O94btLt0xM/Zr2LQjwdCg==} engines: {node: ^16.14.0 || >=18.0.0} + turbo-stream@2.4.0: + resolution: {integrity: sha512-FHncC10WpBd2eOmGwpmQsWLDoK4cqsA/UT/GqNoaKOQnT8uzhtCbg3EoUDMvqpOSAI0S26mr0rkjzbOO6S3v1g==} + type-check@0.4.0: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} engines: {node: '>= 0.8.0'} @@ -11610,8 +11620,6 @@ snapshots: dependencies: react: 19.0.0 - '@remix-run/router@1.21.1': {} - '@rollup/rollup-android-arm-eabi@4.31.0': optional: true @@ -13298,6 +13306,8 @@ snapshots: cookie@0.7.2: {} + cookie@1.0.2: {} + core-js-compat@3.38.1: dependencies: browserslist: 4.24.0 @@ -17421,17 +17431,21 @@ snapshots: react-refresh@0.14.2: {} - react-router-dom@6.28.2(react-dom@19.0.0(react@19.0.0))(react@19.0.0): + react-router-dom@7.1.3(react-dom@19.0.0(react@19.0.0))(react@19.0.0): dependencies: - '@remix-run/router': 1.21.1 react: 19.0.0 react-dom: 19.0.0(react@19.0.0) - react-router: 6.28.2(react@19.0.0) + react-router: 7.1.3(react-dom@19.0.0(react@19.0.0))(react@19.0.0) - react-router@6.28.2(react@19.0.0): + react-router@7.1.3(react-dom@19.0.0(react@19.0.0))(react@19.0.0): dependencies: - '@remix-run/router': 1.21.1 + '@types/cookie': 0.6.0 + cookie: 1.0.2 react: 19.0.0 + set-cookie-parser: 2.7.1 + turbo-stream: 2.4.0 + optionalDependencies: + react-dom: 19.0.0(react@19.0.0) react-runner@1.0.5(react-dom@19.0.0(react@19.0.0))(react@19.0.0): dependencies: @@ -17934,6 +17948,8 @@ snapshots: set-blocking@2.0.0: {} + set-cookie-parser@2.7.1: {} + set-function-length@1.2.2: dependencies: define-data-property: 1.1.4 @@ -18600,6 +18616,8 @@ snapshots: transitivePeerDependencies: - supports-color + turbo-stream@2.4.0: {} + type-check@0.4.0: dependencies: prelude-ls: 1.2.1 diff --git a/test/package.json b/test/package.json index 20f111a2a6..bb930a8d95 100644 --- a/test/package.json +++ b/test/package.json @@ -25,7 +25,7 @@ "playwright": "^1.49.1", "react": "^19.0.0", "react-dom": "^19.0.0", - "react-router-dom": "^6.28.1", + "react-router-dom": "^7.1.3", "sinon": "^17.0.1", "util": "^0.12.5", "webpack": "^5.97.1", diff --git a/test/regressions/main.tsx b/test/regressions/main.tsx index abc2480d27..00830c4c27 100644 --- a/test/regressions/main.tsx +++ b/test/regressions/main.tsx @@ -170,14 +170,7 @@ function App(props: { fixtures: Fixture[] }) { } return ( - + {fixtures.map((fixture) => { const path = computePath(fixture);