Skip to content

Releases: jsdom/webidl-conversions

7.0.0

12 Sep 01:05
Compare
Choose a tag to compare

Bumped Node.js version requirement to ≥12.

Removed Function and VoidFunction exports. These are better handled by webidl2js.

Renamed the void export to undefined, per Web IDL spec updates.

Added support for environments without SharedArrayBuffer.

Fixed a typo in one of the exception messages for BufferSource. (@ExE-Boss)

6.1.0

17 Apr 15:59
Compare
Choose a tag to compare

Fixed buffer source type conversions to throw on detached ArrayBuffers.

Fixed buffer source type conversions to throw on SharedArrayBuffers.

Added { allowShared: true } to buffer source type conversions, to permit SharedArrayBuffers.

Version 6.0.0

23 Mar 20:08
976f15d
Compare
Choose a tag to compare

Bumped Node.js version requirement to ≥10.4.

Added support for throwing exception objects that belong to a different realm than the current.

Improved the accuracy of unsigned long long and long long conversions by using BigInt.

Made TypedArray conversions unforgeable. (@ExE-Boss)

Fixed object conversion so that it throws on BigInt values.

5.0.0

07 Dec 20:25
Compare
Choose a tag to compare

Removed the Error export, as the type was removed from Web IDL.

Raised the minimum supported version to Node v8.

Fixed all buffer source type conversions to be realm-independent, i.e. they will no longer throw if given buffer source objects from other realms.

4.0.2

14 Aug 03:32
Compare
Choose a tag to compare

Tweaked float and unrestricted float conversion code to be simpler.

4.0.1

20 Feb 21:22
Compare
Choose a tag to compare

(This release should have been 4.1.0; oops.)

  • Added the ability to pass context information in to be used in error messages.
  • Fixed ByteString and USVString to not accept Symbol values
  • Fixed integer types to never return -0.
  • Fixed integer types to round correctly for negative numbers.

4.0.0

11 Feb 22:52
Compare
Choose a tag to compare

This release welcomes @TimothyGu, who implemented all of the remaining basic Web IDL types and some bonus ones.

  • Added: any, object, Error, buffer source types, and "common definitions"
  • Removed (because they were removed from the Web IDL spec): Date, RegExp
  • Fixed:
    • unrestricted double to properly allow NaN
    • float and unrestricted float to properly truncate into 32-bit floating points
    • DOMString, to throw an error for Symbols
    • integer types, in various ways

This release also adds test coverage for all conversions! This should help especially with the pesky integer types and the continual bugs we've seen around them.

3.0.1

11 Feb 22:48
Compare
Choose a tag to compare

Fixed unsigned integer type conversions again.

3.0.0

11 Feb 22:47
Compare
Choose a tag to compare

Changed the USVString conversion to return a JavaScript string, instead of an array of single-character JavaScript strings.

2.0.1

11 Feb 22:46
Compare
Choose a tag to compare

Fixed the conversions of unsigned integer types.