github remix-run/remix route-pattern@0.9.1
route-pattern v0.9.1

latest release: route-pattern@0.10.0
one day ago
  • Fix handling of patterns with leading slash
  • Make variables not greedy
let pattern = new RoutePattern('/:id(.json)')
// Before :id was greedy and would consume ".json"
pattern.match('https://remix.run/123.json')
// { params: { id: '123.json' } }
// After
pattern.match('https://remix.run/123.json')
// { params: { id: '123' } }
  • Allow search params values to have type string | number | bigint | boolean and automatically stringify

Don't miss a new remix release

NewReleases is sending notifications on new releases.