Skip to content

route-pattern v0.22.1

Choose a tag to compare

@github-actions github-actions released this 05 Jun 18:28
· 12 commits to main since this release
8bace0a

Patch Changes

  • Fixed createHref() so optional route params set to null are omitted instead of serialized as "null", and empty pathname variables throw instead of generating hrefs that cannot match their pattern.

  • Fixed route matching so malformed percent-encoded pathnames return no match instead of throwing a URIError.

  • Fixed route matching for full URL patterns that include explicit default ports such as http://example.com:80/path and https://example.com:443/path (see #11510).