Skip to content

Releases: seamapi/url-search-params-serializer

v3.0.0

06 Nov 17:37
v3.0.0
dd94891

Choose a tag to compare

Features

  • Serialize the empty string to undefined (#22) (8a89294), closes #20

BREAKING CHANGES

  • Serialization of the empty string is now treated as undefined instead 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

05 Nov 23:09
v2.1.1
9dc0ea9

Choose a tag to compare

2.1.1

v2.1.0

23 Jul 22:45
v2.1.0
3a01cc9

Choose a tag to compare

2.1.0

v2.0.0

01 Jul 19:19
v2.0.0
8dba052

Choose a tag to compare

Features

  • Do not serialize NaN, Infinity, or -Infinity (d63f265)

BREAKING CHANGES

  • Any attempt to serialize NaN, Infinity, or
    -Infinity will now throw an UnserializableParamError.

v2.0.0-beta.2

28 Mar 03:14
v2.0.0-beta.2
e242d3e

Choose a tag to compare

v2.0.0-beta.2 Pre-release
Pre-release

Features

v2.0.0-beta.1

28 Mar 00:07
v2.0.0-beta.1
4aebab0

Choose a tag to compare

v2.0.0-beta.1 Pre-release
Pre-release

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='.

v1.3.0

27 Feb 23:40
v1.3.0
9f3cd14

Choose a tag to compare

Features

  • Serialize plain objects to dot path notation (fad04f2)

v1.2.0

24 Feb 20:50
v1.2.0
1f4dd04

Choose a tag to compare

Features

v1.1.2

27 Feb 20:59
v1.1.2
b6cdb26

Choose a tag to compare

1.1.2

v1.1.1

31 Jan 16:39
v1.1.1
d27c7e5

Choose a tag to compare

Bug Fixes

  • Error in some contexts when using Error.captureStackTrace() (#4) (76d311d)