Repository navigation
v0.62.0
RFC 3986 URI normalization for document IDs
HTTP/HTTPS URIs are now canonicalized before storage and lookup, applying five safe normalizations from RFC 3986 §6.2.2:
- Scheme + host lowercasing (
HTTPS://Example.COM→https://example.com) - Unreserved percent-decoding (
%41→A) - Default port removal (
:443on https,:80on http) - Dot segment resolution (
/a/../b→/b) - Empty path normalization (
https://example.com→https://example.com/)
This prevents phantom duplicate items when the same URL is indexed with different casing or encoding. Non-URI IDs are unaffected.
Also fixes a gap where find(similar_to=...) was not validating the ID parameter.