FRONTEND
Remix v0.21.0
RESUMEN
Minor Changes - BREAKING CHANGE: Remove the `compareFn` parameter from `match` and `matchAll` methods Matches always sort by specificity (most specific first). If you need a different order, sort the result of `matchAll` yourself. ```ts import * as Specificity from 'remix/route-pattern/
Descripción Detallada
Minor Changes - BREAKING CHANGE: Remove the `compareFn` parameter from `match` and `matchAll` methods Matches always sort by specificity (most specific first). If you need a different order, sort the result of `matchAll` yourself. ```ts import * as Specificity from 'remix/route-pattern/specificity' // before matcher.matchAll(url, Specificity.ascending) // after matcher.matchAll(url).sort(Specificity.ascending) ``` - BREAKING CHANGE: New modular APIs and subpath exports Previously, this package shipped the default export and a `/specificity` export. A typical Remix app does not do any client-side matching but all the matching logic would ship to the browser anyway causing JS bloat. Now, features are organized into separate subpath exports, so even without a bundler, only the code you need ends up in the browser. For example, this reduced JS from `route-pattern` in `demos/bookstore` from 25kB (14.9kB compressed) to 8.8kb (7kB compressed) which amounts to ~65% reduction (~53% reduction compressed). To achieve this, we've reworked our core APIs to be simpler and more independently useful. So instead of a single `RoutePattern` class that does it all (`.href`, `.match`, ...), the new `RoutePattern` class is a thin layer around the parsed pattern that includes `RoutePattern.parse` static method for parsing and `.source`, `.toString()` and `.toJSON()` for serialization. The rest of the functionality comes from dedicated subpath exports:
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