Releases: jsdom/whatwg-url
15.1.0
15.0.0
Breaking change: now requires Node.js v20 or later.
Made minor updates to failure cases for "host"/"hostname" and "port" state override parsing, following URL Standard changes whatwg/url@c23aec1 and whatwg/url@cc8b776. These have no impact on usage of the high-level APIs.
14.2.0
Updated our tr46 dependency, which updates our international domain name support to reflect Unicode 16.0.0. Also includes the related changes to the URL Standard:
Added U+005E (^) to the path percent-encode set, per whatwg/url@9bc33c3.
Ensured opaque paths always roundtrip, per whatwg/url@6c78200.
14.1.1
14.1.0
Added URL.parse(), per whatwg/url@58acb06.
14.0.0
13.0.0
Breaking change: removed Node.js v14 support.
Added URL.canParse(), per whatwg/url@ae3c28b.
Added URLSearchParams's size getter, per whatwg/url@12b6f0c.
Added optional second value argument to URLSearchParams's has() and delete() methods, per whatwg/url@bfb9157.
Changed the serialization of the origin of blob: URLs whose inner URLs were not http: or https: to be "null", per whatwg/url@eee49fd.
12.0.1
Updated our tr46 dependency, which brings along several fixes related to international domain names. Such as:
- Empty domain name labels, as in
https://xn--4-0bd15808a.../, no longer cause URL parsing to fail. - Invalid punycode-encoded domain name labels, as in
http://xn--ls8h=/, now correctly cause URL parsing to fail. - Includes support for Unicode 15.0.0.
As part of this, we are now running against the newly-introduced test data derived from the Unicode Consortium-maintained IdnaTestV2.txt file, and passing them all.
12.0.0
Breaking change: removed Node.js v12 support.
Changed the characters allowed in domains vs. generic hosts, per whatwg/url@35e195a.
Changed the URL API's search and hash setters, as well as the URLSearchParams API, to always ensure the URL is serialize-parse roundtrippable, per whatwg/url@fdaa0e5.
11.0.0
The breaking changes in this release are only to the Low-level URL Standard API. No actual URL parsing or serialization behavior has changed, and users of the URL and URLSearchParams exports are not affected.
These changes follow whatwg/url@fbaa03c.
- Removed the URL record type's
cannotBeABaseURLproperty. - Changed the URL record type's
pathfrom always being an array of strings, to being either a single string or an array of strings. - Renamed the
"cannot-be-a-base-URL path"parser state (i.e. value forstateOverride) to"opaque path". - Added the
serializePath(urlRecord)export. - Added the
hasAnOpaquePath(urlRecord)export.