Zum Inhalt springen

Remix Release Notes

Einträge
59
Quellen
1
Zuletzt aktualisiert

Folge Remix, um die Release Notes in deinen Feed zu holen.

React Router von Remix

React Router 7.13.1

Führt die instabile URL-Masking-API für Links ein, behebt Timeout-Probleme in turbo-stream und verbessert Fehlermeldungen bei ungültigen Origin-Headern.

Date: 2026-02-23

What's Changed

URL Masking (unstable)

This release includes a new <Link unstable_mask> API which brings first-class support for URL masking to Framework/Data Mode (RFC). This allows the same type of UI you could achieve in Declarative Mode via manual backgroundLocation management. That example has been converted to Data Mode using the new API here.

Patch Changes

  • react-router - Clear timeout when turbo-stream encoding completes (#14810)
  • react-router - Improve error message when Origin header is invalid (#14743)
  • react-router - Fix matchPath optional params matching without a "/" separator. (#14689)
    • matchPath("/users/:id?", "/usersblah") now returns null
    • matchPath("/test_route/:part?", "/test_route_more") now returns null.
  • react-router - Fix HydrateFallback rendering during initial lazy route discovery with matching splat route (#14740) …

Originalquelle(öffnet in neuem Tab)Problem melden

React Router von Remix

React Router 7.13.0

Fügt die crossOrigin-Eigenschaft zur Links-Komponente hinzu, behebt Probleme mit doppelten Schrägstrichen und fehlendem nonce bei criticalCss.

Date: 2026-01-23

Minor Changes

  • react-router - Add crossOrigin prop to Links component (#14687)

Patch Changes

  • react-router - Fix double slash normalization for useNavigate paths with a colon (#14718)
  • react-router - Fix missing nonce on inline criticalCss (#14691)
  • react-router - Update failed origin checks to return a 400 status instead of a 500 (#14737)
  • react-router - Loosen allowedActionOrigins glob check so ** matches all domains (#14722)
  • @react-router/dev - Bump @remix-run/node-fetch-server dep (#14704)
  • @react-router/fs-routes - Fix route file paths when routes directory is outside of the app directory (#13937)

Full Changelog: v7.12.0...v7.13.0

Originalquelle(öffnet in neuem Tab)Problem melden

React Router von Remix

React Router 7.12.0

Behebt drei Sicherheitslücken (CSRF, XSS, Open Redirects), fügt zusätzlichen CSRF-Schutz hinzu und korrigiert generatePath und Scroll-Restoration.

Date: 2026-01-07

Security Notice

This release addresses 3 security vulnerabilities:

Minor Changes

  • react-router - Add additional layer of CSRF protection by rejecting submissions to UI routes from external origins (#14708)
    • If you need to permit access to specific external origins, there is a new allowedActionOrigins config field in react-router.config.ts where you can specify external origins

Patch Changes

  • react-router - Fix generatePath when used with suffixed params (i.e., /books/:id.json) (#14269)
  • react-router - Escape HTML in scroll restoration keys (#14705)
  • react-router - Validate redirect locations (#14706)
  • @react-router/dev - Fix Maximum call stack size exceeded errors when HMR is triggered against code with cyclic imports (#14522) …

Originalquelle(öffnet in neuem Tab)Problem melden

React Router von Remix

React Router 7.11.0

Fügt vite-preview-Support hinzu, stabilisiert die clientseitige onError-API und führt ein instabiles Opt-out für Revalidierung ein.

Date: 2025-12-17

What's Changed

We've added vite preview support and stabilized the client-side onError API - please make the appropriate changes if you've adopted the unstable_onError API already in a prior release.

vite preview Support

We've added support for vite preview when using Framework mode to make it easy to preview your production build.

Stabilized Client-side onError

The existing <RouterProvider unstable_onError>/<HydratedRouter unstable_onError> APIs have been stabilized as <RouterProvider onError>/<HydratedRouter onError>. Please see the Error Reporting docs for more information.

Call-site Revalidation Opt-out (unstable)

We've added initial unstable support for call-site revalidation opt-out via a new unstable_defaultShouldRevalidate flag (RFC). This flag is available on all navigation/fetcher submission APIs to alter standard revalidation behavior. If any routes include a shouldRevalidate function, then the flag value will be passed to that function so the route has the final say on revalidation behavior.

<Form method="post" unstable_defaultShouldRevalidate={false} />
submit(data, { method: "post", unstable_defaultShouldRevalidate: false })
<fetcher.Form method="post" unstable_defaultShouldRevalidate={false} /> …

Originalquelle(öffnet in neuem Tab)Problem melden

React Router von Remix

React Router 7.10.1

Behebt useEffect-Schleifen bei useOptimistic, importiert pkg-types dynamisch für Node-20.18-Kompatibilität und aktualisiert die valibot-Abhängigkeit.

Date: 2025-12-04

Patch Changes

  • react-router - Update the useOptimistic stub we provide for React 18 users to use a stable setter function to avoid potential useEffect loops - specifically when using <Link viewTransition> (#14628)
  • @react-router/dev - Import ESM package pkg-types with a dynamic import() to fix issues on Node 20.18 (#14624)
  • @react-router/dev - Update valibot dependency to ^1.2.0 to address GHSA-vqpr-j7v3-hqw9 (#14608)

Full Changelog: v7.10.0...v7.10.1

Originalquelle(öffnet in neuem Tab)Problem melden

React Router von Remix

React Router 7.10.0

Stabilisiert mehrere APIs und Flags, darunter v8_splitRouteModules, v8_viteEnvironmentApi, fetcher.reset() und DataStrategyMatch.shouldCallHandler().

Date: 2025-12-02

What's Changed

We've stabilized a handful of existing APIs and future flags in this release, please make the appropriate changes if you'd adopted any of these APIs in their unstable state!

Stabilized future.v8_splitRouteModules

The existing future.unstable_splitRouteModules flag has been stabilized as future.v8_splitRouteModules in react-router.config.ts. Please see the docs for more information on adopting this flag.

Stabilized future.v8_viteEnvironmentApi

The existing future.unstable_viteEnvironmentApi flag has been stabilized as future.v8_viteEnvironmentApi in react-router.config.ts. Please see the docs for more information on adopting this flag.

Stabilized fetcher.reset()

The existing fetcher.unstable_reset() API has been stabilized as fetcher.reset().

Stabilized DataStrategyMatch.shouldCallHandler() …

Originalquelle(öffnet in neuem Tab)Problem melden

React Router von Remix

React Router 7.9.6

Behebt eine Sicherheitslücke bei externen Redirects, korrigiert Middleware-Fehler und Splat-Routen und optimiert HEAD-Anfragen im Dev-Tool.

Date: 2025-11-13

Security Notice

This release addresses 1 security vulnerability:

Patch Changes

  • react-router - Properly handle ancestor thrown middleware errors before next() on fetcher submissions (#14517)
  • react-router - Fix issue with splat routes interfering with multiple calls to patchRoutesOnNavigation (#14487)
  • react-router - Normalize double-slashes in resolvePath (#14529)
  • @react-router/dev - Use a dynamic import() to load ESM-only p-map dependency to avoid issues on Node 20.18 and below (#14492)
  • @react-router/dev - Short circuit HEAD document requests before calling renderToPipeableStream in the default entry.server.tsx to more closely align with the spec (#14488)

Unstable Changes

⚠️ Unstable features are not recommended for production use …

Originalquelle(öffnet in neuem Tab)Problem melden

React Router von Remix

React Router 7.9.5 mit Instrumentierungs-APIs

Diese Version führt neue instabile Instrumentierungs-APIs ein, die Laufzeit-Instrumentierung für Server-Handler, Client-Navigationen, Loader, Aktionen, Middleware und route.lazy ermöglichen, und enthält mehrere Fehlerbehebungen.

Date: 2025-10-29

What's Changed

Instrumentation (unstable)

This release adds new unstable_instrumentation APIs that will allow you to add runtime instrumentation logic to various aspects of your application (server handler, client navigations/fetches, loaders, actions, middleware, route.lazy). For more information, please see the docs.

Patch Changes

  • react-router - Ensure action handlers run for routes with middleware even if no loader is present (#14443)
  • @react-router/dev - Ensure route navigation doesn't remove CSS link elements used by dynamic imports (#14463)
  • @react-router/dev - Typegen: only register route module types for routes within the app directory (#14439)

Unstable Changes

⚠️ Unstable features are not recommended for production use

  • react-router - Move unstable_RSCHydratedRouter and utils to react-router/dom export (#14457)

  • react-router - Add a type-safe handle field to unstable_useRoute() (#14462)

    For example:

    // app/routes/admin.tsx
    const handle = { hello: "world" };
    

Originalquelle(öffnet in neuem Tab)Problem melden

React Router von Remix

React Router 7.9.4 behebt Sicherheitslücke

Diese Version behebt eine Sicherheitslücke bei unsignierten Cookies in createFileSessionStorage und führt einen neuen instabilen useRoute-Hook für typsicheren Zugriff auf Routendaten ein.

Date: 2025-10-08

Security Notice

This release addresses 1 security vulnerability:

What's Changed

useRoute() (unstable)

This release includes a new unstable_useRoute() hook that provides a type-safe way to access route loaderData/actionData from a specific route in Framework Mode. Think if it like a better version of useRouteLoaderData that works with the typegen system and also supports actionData. Check out the changelog entry below for more information.

Patch Changes

  • @react-router/dev - Update valibot dependency to ^1.1.0 (#14379)
  • @react-router/node - Validate format of incoming session ids in createFileSessionStorage (#14426)

Unstable Changes

⚠️ Unstable features are not recommended for production use

  • react-router - handle external redirects in from server actions (#14400)
  • react-router - New (unstable) useRoute hook for accessing data from specific routes (#14407) …

Originalquelle(öffnet in neuem Tab)Problem melden

React Router von Remix

React Router 7.9.3 mit Fehlerbehebungen

Diese Version behebt einen Data-Mode-Regressionsfehler, der bei vorhandener Middleware ohne Loader einen 404-Fehler verursachte, und verbessert die Fehlerbehandlung für CDN-Fehler.

Date: 2025-09-26

Patch Changes

  • react-router - Fix Data Mode regression causing a 404 during initial load in when middleware exists without any loader functions (#14393)
  • react-router - Do not try to use turbo-stream to decode CDN errors that never reached the server (#14385)
    • This was logic we used to have in Remix v2 that got lost in the adoption of Single Fetch
    • This permits the actual CDN error to bubble to the ErrorBoundary instead of a generic "Unable to decode turbo-stream response" error

Full Changelog: v7.9.2...v7.9.3

Originalquelle(öffnet in neuem Tab)Problem melden

React Router von Remix

React Router 7.9.2 mit RSC-Support und Fetcher-Reset

Diese Version bringt instabile Unterstützung für React Server Components im Framework-Modus, eine neue instabile fetcher.unstable_reset()-API sowie mehrere Fehlerbehebungen im Middleware-Bereich.

Date: 2025-09-24

What's Changed

This release contains a handful of bug fixes, but we think you'll be most excited about the new unstable stuff 😉.

RSC Framework Mode (unstable)

This release includes our first release of unstable support for RSC in Framework Mode! You can read more about it in our blog post and the docs.

Fetcher Reset (unstable)

This release also includes a new (long-requested) fetcher.unstable_reset() API to reset fetchers back to their initial idle state.

Patch Changes

  • react-router - Ensure client-side router runs client middleware during initialization data load (if required) even if no loaders exist (#14348)
  • react-router - Fix middleware prop not being supported on <Route> when used with a data router via createRoutesFromElements (#14357)
  • react-router - Update createRoutesStub to work with middleware (#14348)
    • You will need to set the <RoutesStub future={{ v8_middleware: true }} /> flag to enable the proper context type …

Originalquelle(öffnet in neuem Tab)Problem melden

React Router von Remix

React Router 7.9.0 mit stabilen Middleware-APIs

Diese Version entfernt das unstable_-Präfix von Middleware- und Kontext-APIs, macht sie produktionsreif und behebt eine Sicherheitslücke (XSS) in der Meta-Komponente.

Date: 2025-09-12

Security Notice

This release addresses 1 security vulnerability:

What's Changed

Stable Middleware and Context APIs

We have removed the unstable_ prefix from the following APIs and they are now considered stable and ready for production use:

Please see the Middleware Docs, the Middleware RFC, and the Client-side Context RFC for more information.

Minor Changes

  • Stabilize middleware and context APIs (#14215)

Patch Changes

  • react-router - Update href() to correctly process routes that have an extension after the parameter or are a single optional parameter (#13797) …

Originalquelle(öffnet in neuem Tab)Problem melden

React Router von Remix

React Router 7.8.2 mit Fehlerbehebungen und instabilen Optionen

Diese Version behebt mehrere Fehler, darunter Probleme mit Basename, generatePath und Server-Daten, und fügt instabile onError-Props für die Client-Fehlerberichterstattung hinzu.

Date: 2025-08-22

Patch Changes

  • react-router - Maintain ReadonlyMap and ReadonlySet types in server response data. (#13092)
  • react-router - Fix basename usage without a leading slash in data routers (#11671)
  • react-router - Fix TypeError if you throw from patchRoutesOnNavigation when no partial matches exist (#14198)
  • react-router - Properly escape interpolated param values in generatePath() (#13530)
  • @react-router/dev - Fix potential memory leak in default entry.server (#14200)

Unstable Changes

⚠️ Unstable features are not recommended for production use

Client-side onError

  • react-router - Add <RouterProvider unstable_onError>/<HydratedRouter unstable_onError> prop for client side error reporting (#14162)

Middleware

  • react-router - Delay serialization of .data redirects to 202 responses until after middleware chain (#14205) …

Originalquelle(öffnet in neuem Tab)Problem melden

React Router von Remix

React Router 7.8.1 mit Routing-Fixes

Diese Version behebt Probleme mit optionalen Pfadsegmenten, Basename beim Pre-Rendering und der Konvertierung von data()-Werten sowie Verbesserungen im Middleware-Fehlerhandling.

Date: 2025-08-15

Patch Changes

  • react-router - Fix usage of optional path segments in nested routes defined using absolute paths (#14135)
  • react-router - Fix optional static segment matching in matchPath (#11813)
  • react-router - Fix pre-rendering when a basename is set with ssr:false (#13791)
  • react-router - Properly convert returned/thrown data() values to Response instances via Response.json() in resource routes and middleware (#14159, #14181)
  • @react-router/dev - Update generated Route.MetaArgs type so loaderData is only potentially undefined when an ErrorBoundary export is present (#14173)

Unstable Changes

⚠️ Unstable features are not recommended for production use

Middleware

  • react-router - Bubble client pre-next middleware errors to the shallowest ancestor that needs to load, not strictly the shallowest ancestor with a loader (#14150) …

Originalquelle(öffnet in neuem Tab)Problem melden

React Router von Remix

React Router 7.8.0 mit konsistenten loaderData-Namen

Diese Version vereinheitlicht die Benennung von loaderData-Feldern, verbessert die instabilen Middleware-APIs und fügt neue Props wie nonce für Links hinzu.

Date: 2025-08-07

What's Changed

Consistently named loaderData values

Ever noticed the discrepancies in loader data values handed to you by the framework? Like, we call it loaderData in your component props, but then match.data in your matches? Yeah, us too - as well as some keen-eyed React Router users who raised this in a proposal. We've added new loaderData fields alongside existing data fields in a few lingering spots to align with the loaderData naming used in the new Route.* APIs.

Improvements/fixes to the middleware APIs (unstable)

The biggest set of changes in 7.8.0 are to the unstable_middleware API's as we move closer to stabilizing them. If you've adopted the middleware APIs for early testing, please read the middleware changes below carefully. We hope to stabilize these soon so please let us know of any feedback you have on the API's in their current state!

Minor Changes

  • react-router - Add nonce prop to Links & PrefetchPageLinks (#14048)
  • react-router - Add loaderData arguments/properties alongside existing data arguments/properties to provide consistency and clarity between loaderData and actionData across the board (#14047)
    • Updated types: Route.MetaArgs, Route.MetaMatch, MetaArgs, MetaMatch, Route.ComponentProps.matches, UIMatch …

Originalquelle(öffnet in neuem Tab)Problem melden

React Router von Remix

React Router 7.7.1: Prettier-Update und RSC-Fixes

Diese Version aktualisiert auf Prettier v3 beim Generieren von Code ohne TypeScript und behebt mehrere Fehler im RSC-Datenmodus.

Date: 2025-07-24

Patch Changes

  • @react-router/dev - Update to Prettier v3 for formatting when running react-router reveal --no-typescript (#14049)

Unstable Changes

⚠️ Unstable features are not recommended for production use

  • react-router - RSC Data Mode: fix bug where routes with errors weren't forced to revalidate when shouldRevalidate returned false (#14026)
  • react-router - RSC Data Mode: fix Matched leaf route at location "/..." does not have an element or Component warnings when error boundaries are rendered (#14021)

Full Changelog: v7.7.0...v7.7.1

Originalquelle(öffnet in neuem Tab)Problem melden

React Router von Remix

Version 7.7.0 mit experimenteller RSC-Unterstützung

React Router 7.7.0 führt experimentelle APIs für React Server Components im Data Mode ein und erweitert create-react-router um die Erkennung von Deno als Paketmanager.

Date: 2025-07-16

What's Changed

Unstable RSC APIs

We're excited to introduce experimental support for RSC in Data Mode via the following new APIs:

For more information, check out the blog post and the RSC Docs.

Minor Changes

  • create-react-router - Add Deno as a supported and detectable package manager. Note that this detection will only work with Deno versions 2.0.5 and above. If you are using an older version version of Deno then you must specify the --package-manager CLI flag set to deno. (#12327)
  • @react-router/remix-config-routes-adapter - Export DefineRouteFunction type alongside DefineRoutesFunction (#13945)

Patch Changes …

Originalquelle(öffnet in neuem Tab)Problem melden

React Router von Remix

Version 7.6.3 behebt Typ- und Vite-Probleme

React Router 7.6.3 optimiert die Serialisierung von Loader-Typen, unterstützt Vite 7 und fügt Validierungen für Routen-IDs hinzu.

Date: 2025-06-27

Patch Changes

  • react-router - Do not serialize types for useRouteLoaderData<typeof clientLoader> (#13752)

    • For types to distinguish a clientLoader from a serverLoader, you MUST annotate clientLoader args:

      //                                   👇 annotation required to skip serializing types
      export function clientLoader({}: Route.ClientLoaderArgs) {
        return { fn: () => "earth" };
      }
      
      function SomeComponent() {
        const data = useRouteLoaderData<typeof clientLoader>("routes/this-route");
        const planet = data?.fn() ?? "world";
        return <h1>Hello, {planet}!</h1>;
      }
      
  • @react-router/cloudflare - Remove tsup from peerDependencies (#13757)

  • @react-router/dev - Add Vite 7 support (#13748)

  • @react-router/dev - Skip package.json resolution checks when a custom entry.server.(j|t)sx file is provided (#13744)

  • @react-router/dev - Add validation for a route's id not being 'root' (#13792)

  • @react-router/fs-routes @react-router/remix-config-routes-adapter - Use replaceAll for normalizing windows file system slashes (#13738) …

Originalquelle(öffnet in neuem Tab)Problem melden

React Router von Remix

Version 7.6.2 mit internen Verbesserungen

Version 7.6.2 aktualisiert Abhängigkeiten wie tar-fs und vite-node, behebt Typfehler für MDX-Routen und optimiert die Verarbeitung von CSS im Entwicklungsmodus.

Date: 2025-06-03

Patch Changes

  • create-react-router - Update tar-fs (#13675)

  • react-router - (INTERNAL) Slight refactor of internal headers() function processing for use with RSC (#13639)

  • react-router @react-router/dev - Avoid additional with-props chunk in Framework Mode by moving route module component prop logic from the Vite plugin to react-router (#13650)

  • @react-router/dev - When future.unstable_viteEnvironmentApi is enabled and an absolute Vite base has been configured, ensure critical CSS is handled correctly during development (#13598)

  • @react-router/dev - Update vite-node (#13673)

  • @react-router/dev - Fix typegen for non-{.js,.jsx,.ts,.tsx} routes like .mdx (#12453)

  • @react-router/dev - Fix href types for optional dynamic params (#13725)

    7.6.1 introduced fixes for href when using optional static segments, but those fixes caused regressions with how optional dynamic params worked in 7.6.0:

    // 7.6.0
    href("/users/:id?"); // ✅
    href("/users/:id?", { id: 1 }); // ✅
    
    // 7.6.1
    href("/users/:id?"); // ❌ …
    

Originalquelle(öffnet in neuem Tab)Problem melden