Releases: jsdom/whatwg-url
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
cannotBeABaseURL
property. - Changed the URL record type's
path
from 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.
10.0.0
The breaking changes in this release are to the API exported by the whatwg-url/webidl2js-wrapper
module. In particular it now is based on webidl2js
v17, which changes some of the exported function signatures, and changes the realms of any errors thrown on misuse.
9.1.0
Made the host parser reject non-IPv4 domains that end in numbers, per whatwg/url@ab0e820.
9.0.0
Breaking changes:
-
Removed Node.js v10 support.
-
The
percentDecode()
export was renamedpercentDecodeBytes()
, and now returns aUint8Array
instead of a Node.jsBuffer
.
Other changes:
-
The package's main module now exports the
percentDecodeString()
helper. -
The
punycode
andlodash
dependencies were removed.
8.7.0
Make the pathname
setter not mess up the URL's path state tracking when given the empty string, per whatwg/url@0672f2e.
8.6.0
Made the hostname
setter do nothing if the given string contains a colon, per whatwg/url@ec96993.
Updated punycode processing to support Unicode v13.