Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: bump react-router from 7.2.0 to 7.3.0 #2080

Merged
merged 1 commit into from
Mar 7, 2025

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 7, 2025

Bumps react-router from 7.2.0 to 7.3.0.

Release notes

Sourced from react-router's releases.

v7.3.0

See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v730

Changelog

Sourced from react-router's changelog.

7.3.0

Minor Changes

  • Add fetcherKey as a parameter to patchRoutesOnNavigation (#13061)

    • In framework mode, Lazy Route Discovery will now detect manifest version mismatches after a new deploy
    • On navigations to undiscovered routes, this mismatch will trigger a document reload of the destination path
    • On fetcher calls to undiscovered routes, this mismatch will trigger a document reload of the current path

Patch Changes

  • Skip resource route flow in dev server in SPA mode (#13113)

  • Support middleware on routes (unstable) (#12941)

    Middleware is implemented behind a future.unstable_middleware flag. To enable, you must enable the flag and the types in your react-router-config.ts file:

    import type { Config } from "@react-router/dev/config";
    import type { Future } from "react-router";
    declare module "react-router" {
    interface Future {
    unstable_middleware: true; // 👈 Enable middleware types
    }
    }
    export default {
    future: {
    unstable_middleware: true, // 👈 Enable middleware
    },
    } satisfies Config;

    ⚠️ Middleware is unstable and should not be adopted in production. There is at least one known de-optimization in route module loading for clientMiddleware that we will be addressing this before a stable release.

    ⚠️ Enabling middleware contains a breaking change to the context parameter passed to your loader/action functions - see below for more information.

    Once enabled, routes can define an array of middleware functions that will run sequentially before route handlers run. These functions accept the same parameters as loader/action plus an additional next parameter to run the remaining data pipeline. This allows middlewares to perform logic before and after handlers execute.

    // Framework mode
    export const unstable_middleware = [serverLogger, serverAuth]; // server
    export const unstable_clientMiddleware = [clientLogger]; // client
    // Library mode
    const routes = [
    {
    path: "/",

... (truncated)

Commits
  • d3bed18 chore: Update version for release (#13175)
  • c24bc42 chore: Update version for release (pre) (#13174)
  • 180d99a Fix JSDoc types for context (#13170)
  • fb014ce Remove middleware depth restrictions (#13172)
  • 754c304 chore: Update version for release (pre) (#13157)
  • 5f6b341 Add support for client context and middleware (unstable) (#12941)
  • 57b9ff4 Fix types for loaderData and actionData that contain Records (#13139)
  • 2c5d54d Skip resource route flow in dev mode when SPA mode is enabled (#13113)
  • 05f812b Detect lazy route discovery manifest version mismatches and trigger reloads (...
  • 54147a3 Fix critical CSS with custom Vite.DevEnvironment (#13066)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot requested review from bajtos and juliangruber March 7, 2025 02:47
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Mar 7, 2025
@github-actions github-actions bot enabled auto-merge (squash) March 7, 2025 02:47
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/react-router-7.3.0 branch from 37a89d9 to 95e4607 Compare March 7, 2025 03:05
Bumps [react-router](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router) from 7.2.0 to 7.3.0.
- [Release notes](https://github.com/remix-run/react-router/releases)
- [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router/CHANGELOG.md)
- [Commits](https://github.com/remix-run/react-router/commits/react-router@7.3.0/packages/react-router)

---
updated-dependencies:
- dependency-name: react-router
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/react-router-7.3.0 branch from 95e4607 to 1d30012 Compare March 7, 2025 03:24
@github-actions github-actions bot merged commit 5f93afa into main Mar 7, 2025
48 checks passed
@github-actions github-actions bot deleted the dependabot/npm_and_yarn/react-router-7.3.0 branch March 7, 2025 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants