Releases: seamapi/url-search-params-serializer
Releases · seamapi/url-search-params-serializer
v3.0.0
Features
BREAKING CHANGES
- Serialization of the empty string is now treated as
undefinedinstead of an UnserializableParamError.
Otherwise, the serialization of { foo: null } would conflict with { foo: '' }.
This serializer chooses to support the more common and more useful case of sending null
as a meaningful value while treating the empty string as sending no value.
This aligns with common UX patterns where input fields are initialized to the empty string.
v2.1.1
v2.1.0
v2.0.0
v2.0.0-beta.2
Features
- Export Params type (494230f)
v2.0.0-beta.1
Features
- Do not serialize keys with dots (2cc32f4)
- Do not serialize the empty string (e63517e)
- Serialize null (9b70e9f)
BREAKING CHANGES
- Any attempt to serialize an object
with a dot in the key will now throw an UnserializableParamError. - Any attempts to serialize the empty string
will now throw an UnserializableParamError. - The primitive value null will now be serialized instead
of removed, e.g., { foo: null } will now be serialized to 'foo='.