Skip to content

Releases: jsdom/whatwg-url

14.0.0

05 Nov 14:19
Compare
Choose a tag to compare

Breaking change: removed Node.js v16 support.

13.0.0

28 May 08:36
Compare
Choose a tag to compare

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

08 Mar 07:22
Compare
Choose a tag to compare

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

03 Jan 02:13
Compare
Choose a tag to compare

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

19 Oct 20:04
Compare
Choose a tag to compare

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 for stateOverride) to "opaque path".
  • Added the serializePath(urlRecord) export.
  • Added the hasAnOpaquePath(urlRecord) export.

10.0.0

06 Oct 16:51
Compare
Choose a tag to compare

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

09 Aug 17:39
Compare
Choose a tag to compare

Made the host parser reject non-IPv4 domains that end in numbers, per whatwg/url@ab0e820.

9.0.0

26 Jun 21:22
Compare
Choose a tag to compare

Breaking changes:

  • Removed Node.js v10 support.

  • The percentDecode() export was renamed percentDecodeBytes(), and now returns a Uint8Array instead of a Node.js Buffer.

Other changes:

  • The package's main module now exports the percentDecodeString() helper.

  • The punycode and lodash dependencies were removed.

8.7.0

25 Jun 21:03
Compare
Choose a tag to compare

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

08 Jun 16:56
Compare
Choose a tag to compare

Made the hostname setter do nothing if the given string contains a colon, per whatwg/url@ec96993.

Updated punycode processing to support Unicode v13.