FRONTEND
Remix v0.20.0
RESUMEN
Minor Changes - BREAKING CHANGE: Middleware must now explicitly continue the request chain by calling `next()` or return a `Response`. The router no longer calls `next()` automatically when middleware returns `undefined`; instead, it throws an error to catch missing continuation bugs early.
Descripción Detallada
Minor Changes - BREAKING CHANGE: Middleware must now explicitly continue the request chain by calling `next()` or return a `Response`. The router no longer calls `next()` automatically when middleware returns `undefined`; instead, it throws an error to catch missing continuation bugs early. Middleware that only mutates context should return the downstream response: ```ts // Before function loadUser(): Middleware { return (context) => { context.set(CurrentUser, user) } } // After function loadUser(): Middleware { return (context, next) => { context.set(CurrentUser, user) return next() } } ``` Middleware that needs to inspect or modify the downstream response should `await next()` and return a `Response`: ```ts function logger(): Middleware { return async (context, next) => { let response = await next() console.log(context.request.url, response.status) return response } } ``` - Add `router.mount()` and the `RouteBuilder`/`RouteInstaller` types so route groups can be written as local, reusable pieces of an app instead of hard-coding the full URL where they happen to live today. A route installer receives a prefixed route builder that can register routes with the same `route()`, `map()`, and method helpers as a router, while the parent router remains responsible for dispatch, matching, middleware, and default 404 handling. Before `router.mount()`, route groups that lived in separ
Remix v0.20.0 introduce un cambio que rompe compatibilidad en el manejo de parámetros de búsqueda.
- Cambio que rompe compatibilidad: la decodificación y serialización de patrones de parámetros de búsqueda ahora es consistente con `URLSearchParams`.
- Antes, `?q` y `?q=` se trataban como restricciones diferentes.
- Ahora, ambos patrones se manejan de manera uniforme, lo que puede afectar el comportamiento de coincidencia.
A quién le importa
Solo si usas `RoutePattern` para manejar parámetros de búsqueda.
Generado por IA · puede contener errores
Releases Relacionados
FRONTEND
Remix v0.4.12
### Patch Changes - Bumped `@remix-run/*` dependencies: - [`fetch-router@0.20.0`](https://github.com/remix-run/remix/releases/tag/fetch-router@0.20.0)
FRONTEND
Remix v0.1.11
### Patch Changes - Bumped `@remix-run/*` dependencies: - [`fetch-router@0.20.0`](https://github.com/remix-run/remix/releases/tag/fetch-router@0.20.0)
FRONTEND