Releases: jsdom/whatwg-url
6.2.0
Fixed URLSearchParams to remove the "?" from its parent URL if the query becomes empty, per whatwg/url@4315826.
6.1.0
Made the scheme setter properly reset the port as appropriate, per whatwg/url@0f53958.
6.0.1
6.0.0
Node.js v6 is now required, as we have started using JavaScript language features not present in earlier versions.
Added spec-compliant URLSearchParams support, both as an export and through the searchParams property of URL instances. (@TimothyGu)
Added the percentDecode function to the public API.
Added the cannotHaveAUsernamePasswordPort function to the public API. It was previously documented in the README, but accidentally not exported.
Changed the return value representing failure from the string "failure" to null.
Upgraded our webidl2js and webidl-conversions dependencies, bringing along various edge-case features and fixes, such as a proper Symbol.toStringTag on URL instances and better error messages.
5.0.0
Changed origin serialization to be the ASCII serialization of the origin, instead of the now-no-longer-a-thing Unicode serialization, per whatwg/url@20c3257.
This changed the public API by removing serializeURLToUnicodeOrigin and instead exporting serializeURLOrigin.
4.8.0
Fixed Windows drive letter handling with a file: base URL, per whatwg/url@fe6b251.
4.7.1
4.7.0
Changed file URLs to trim leading slashes from their paths, per whatwg/url@6103e0a.
4.6.0
Changed the protocol setter to do nothing when a URL has username, password, or port components, per whatwg/url@462fdc1.
Changed the URL record representation to sometimes have an empty string host, instead of a null host, per whatwg/url@5807b28. (This does not impact the URL API, or parsing or serialization, but instead only the low-level URL record structure.)