Fixes
updateLocation
returns an empty string forhref
when the originallocation.href
is not defined. This allowsupdateLocation
to be recursively recalled without crashing when creating anew URL()
(#244)
Fixes
- type for urlName is now string (#227)
Breaking
- Drop dependency for query-string. You now must pass your stringify/parse functions directly to
updateLocation
andupdateInLocation
.
New Features
objectToSearchString
- small wrapper around URLSearchParams that handles undefined, null, and array values. A lesser version of query-string’s “stringify”searchStringToObject
- small wrapper around URLSearchParams that handles array values. A lesser version of query-string’s “parse”- Adds new
createEnumArrayParam
andcreateEnumDelimitedArrayParam
helpers - Adds
default
andurlName
as optional attributes of a Parameter, mostly for other tooling to introspect on. Note thatwithDefault
now populates thedefault
attribute.