FRONTEND
Remix v0.18.0
RESUMEN
Minor Changes - BREAKING CHANGE: Action objects now use `handler` instead of `action`. This applies to the object form accepted by `router.get(...)`, `router.post(...)`, and `router.map(...)`, and to `BuildAction` object definitions. - BREAKING CHANGE: Remove `context.storage`, `context.ses
Descripción Detallada
Minor Changes - BREAKING CHANGE: Action objects now use `handler` instead of `action`. This applies to the object form accepted by `router.get(...)`, `router.post(...)`, and `router.map(...)`, and to `BuildAction` object definitions. - BREAKING CHANGE: Remove `context.storage`, `context.session`, `context.sessionStarted`, `context.formData`, and `context.files` from `@remix-run/fetch-router`, and rename `createStorageKey(...)` to `createContextKey(...)`. `RequestContext` now provides request-scoped context methods directly (`context.get(key)`, `context.set(key, value)`, and `context.has(key)`), using keys created with `createContextKey(...)` or constructors like `Session` and `FormData`. Session middleware now stores the request session with `context.set(Session, session)`, and form-data middleware now stores parsed form data with `context.set(FormData, formData)`. Uploaded files are read from `context.get(FormData)` using `get(...)`/`getAll(...)`. `RequestContext` is now generic over route params and typed context entries (`RequestContext`), and no longer accepts a request-method generic (`RequestContext`). - BREAKING CHANGE: `router.map()` controllers for route maps now require a single shape: an object with an `actions` property and optional `middleware`. Migration: Wrap existing controller objects in `actions`. Nested route maps must also use nested controllers with `{ actions, middleware? }`. - `fetch-router` no
Remix v0.18.0 introduce cambios que rompen compatibilidad en objetos de acción y contexto.
- Los objetos de acción ahora usan `handler` en lugar de `action` en `router.get(...)`, `router.post(...)`, y `router.map(...)`.
- Se eliminan `context.storage`, `context.session`, y otros del `@remix-run/fetch-router`.
- `router.map()` ahora requiere un objeto con una propiedad `actions` y opcionalmente `middleware`.
A quién le importa
Solo si usas objetos de acción o contexto en Remix.
Generado por IA · puede contener errores
Releases Relacionados
FRONTEND
Remix v0.4.8
### Patch Changes - Bumped `@remix-run/*` dependencies: - [`fetch-router@0.18.2`](https://github.com/remix-run/remix/releases/tag/fetch-router@0.18.2)
FRONTEND
Remix v0.1.7
### Patch Changes - Bumped `@remix-run/*` dependencies: - [`fetch-router@0.18.2`](https://github.com/remix-run/remix/releases/tag/fetch-router@0.18.2)
FRONTEND