FRONTEND
Remix v0.19.0
RESUMEN
Minor Changes - BREAKING CHANGE: Remove `RoutePatternOptions` type and rework `ignoreCase` `RoutePattern.ignoreCase` field has been removed and `ignoreCase` now only applies to `pathname` (no longer applies to `search`) Case sensitivity is now determined only when matching. - `RoutePat
Descripción Detallada
Minor Changes - BREAKING CHANGE: Remove `RoutePatternOptions` type and rework `ignoreCase` `RoutePattern.ignoreCase` field has been removed and `ignoreCase` now only applies to `pathname` (no longer applies to `search`) Case sensitivity is now determined only when matching. - `RoutePattern.match` now accept `ignoreCase` option - `Matcher` constructors now accept `ignoreCase` option ```ts // BEFORE let pattern = new RoutePattern('/Posts/:id', { ignoreCase: true }) pattern.match(url) pattern.join(other, { ignoreCase: true }) let matcher = new ArrayMatcher() // AFTER let pattern = new RoutePattern('/Posts/:id') pattern.match(url) // default: ignoreCase = false pattern.match(url, { ignoreCase: true }) pattern.join(other) let arrayMatcher = new ArrayMatcher() // default: ignoreCase = false // OR let arrayMatcher = new ArrayMatcher({ ignoreCase: true }) let trieMatcher = new TrieMatcher() // default: ignoreCase = false // OR let trieMatcher = new TrieMatcher({ ignoreCase: true }) ``` - BREAKING CHANGE: Change how params are represented within `RoutePattern.ast` Previously, `RoutePattern.ast.{hostname,pathname}.tokens` had param tokens like: ```ts type ParamToken = { type: ':'; ''; nameIndex: number } ``` where the `nameIndex` was used to access the param name from `paramNames`: ```ts let { pathname } = pattern.ast for (let token of pathname.tokens) { if (token.type === ':' || token.type === '') {
Remix v0.19.0 elimina `RoutePatternOptions` y cambia cómo se maneja `ignoreCase`.
- Se eliminó el tipo `RoutePatternOptions` y `ignoreCase` ahora solo se aplica a `pathname`.
- `RoutePattern.match` y constructores de `Matcher` ahora aceptan la opción `ignoreCase`.
- Cambio en la representación de parámetros en `RoutePattern.ast`.
A quién le importa
Solo si usas `RoutePattern` y dependes de `ignoreCase`.
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