FRONTEND
Remix v0.22.0
RESUMEN
Minor Changes - Matchers now normalize percent-encoded pathname during matching Pathname matching now uses the URL parser's normalized pathname, splits it into segments, and canonicalizes each segment as percent-encoded text before matching. This allows equivalent path text like `a` and `%61
Descripción Detallada
Minor Changes - Matchers now normalize percent-encoded pathname during matching Pathname matching now uses the URL parser's normalized pathname, splits it into segments, and canonicalizes each segment as percent-encoded text before matching. This allows equivalent path text like `a` and `%61`, or `café` and `caf%C3%A9`, to match consistently: ```ts let matcher = createMatcher('/a') matcher.match(' // before: null // after: { params: {} } ``` ```ts let matcher = createMatcher('/café') matcher.match(' // before: null // after: { params: {} } ``` Also keeps encoded path separators like `%2F` inside the segment where they appear instead of treating them as `/` separators during matching: ```ts let matcher = createMatcher('/files/:dir/:name') matcher.match(' // before: { params: { dir: 'docs', name: 'readme.md' } } // after: { params: { dir: 'docs', name: 'readme.md' } } matcher.match(' // before: { params: { dir: 'docs', name: 'readme.md' } } // after: null ``` Matched pathname params are still returned decoded. ```ts let matcher = createMatcher('/posts/:slug') let href = createHref('/posts/:slug', { slug: 'hello/world?draft=true#preview' }) matcher.match(` // before: null // after: { params: { slug: 'hello/world?draft=true#preview'
Explicación con IA
Genera un resumen en lenguaje claro de los cambios de este release.
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