Change8

route-pattern@0.22.1

📦 remixView on GitHub →
🐛 4 fixes🔧 2 symbols

Summary

This patch release focuses on fixing several bugs related to URL href creation and route matching, particularly concerning null parameters, empty pathname variables, malformed percent encoding, and explicit default ports in full URL patterns.

🐛 Bug Fixes

  • Fixed createHref() so optional route params set to null are omitted instead of serialized as "null".
  • Fixed createHref() so 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.

Affected Symbols