Change8

route-pattern@0.13.0

Breaking Changes
📦 remixView on GitHub →
2 breaking3 features🔧 7 symbols

Summary

This release introduces breaking changes by removing route creation utilities and types in favor of a future dedicated router package, while also exposing new public types and optimizing pattern compilation.

⚠️ Breaking Changes

  • Removed `createRoutes` function and its associated types (`RouteMap`, `RouteDefs`, and `RouteDef`).
  • Removed `RouteMap` from the `createHrefBuilder` generic type definition.

Migration Steps

  1. Remove usage of `createRoutes`, `RouteMap`, `RouteDefs`, and `RouteDef` as they are no longer available in this package.
  2. Update `createHrefBuilder` calls to remove the `RouteMap` generic argument.
  3. Wait for the upcoming 'router' package if `createRoutes` functionality is still required.

✨ New Features

  • Exposed `Join` type as part of the public API.
  • Exposed `HrefBuilderArgs` type as part of the public API.
  • Optimized performance by compiling patterns lazily (as needed) instead of on instantiation.

🔧 Affected Symbols

createRoutesRouteMapRouteDefsRouteDefcreateHrefBuilderJoinHrefBuilderArgs