Releases: jsdom/webidl2js
14.0.0
- (Breaking) Raised minimum Node.js version to v10.
- Added
processCEReactions
andprocessHTMLConstructor
options to the API. See the documentation for more. - Improved the performance of generated wrappers that used legacy platform object features (i.e. named/indexed getters/setters). (#156, @ExE-Boss)
13.0.0
- (Breaking) Removed support for
[Constructor]
in favor of supporting constructor operations, per the Web IDL spec update. - Made it possible to have dependency cycles involving the generated files, as long as their exports are referenced after module startup.
12.0.0
11.0.0
This version dramatically changes the code generated by webidl2js. It now is designed for installing new constructors and prototypes on a given global object, instead of exporting constructors directly.
See the updated README for more usage details, but a quick summary of the changes:
- The generated files for interfaces now export an
install(globalObject)
function, instead of aninterface
constructor. - The
create()
andcreateImpl()
exports now take a global object as their new first parameter, making their signature(globalObject, constructorArgs, privateData)
. - Similarly, impl class constructors now also take a global object as their first argument, given them the same signature.
- The
expose
export was removed, as it was not generally used. We may introduce better support for exposure in the future, probably as an option to theinstall()
export. [WebIDL2JSFactory]
was removed, as it is no longer necessary: all interfaces are now per-global object.
10.0.0
Breaking changes:
- Raised Node.js minimum version to v8. This allowed us to remove the
getOwnPropertyDescriptors
polyfill in the generated utilities file, as well as the dependency on co. (#132, #134, @pmdartus) - Removed support for old-style mixins. (#135, @pmdartus)
- Changed the
[Reflect]
implementation to use thesetAttributeNS
andgetAttributeNS
methods on the impl classes, instead of the wrapper classes. (#136, @pmdartus)
Other fixes:
- Fixed warning in the output about the "babylon" parser.
- Fixed the prototype of the
[Symbol.unscopables]
value to benull
instead ofObject.prototype
, following the spec.
9.2.2
9.2.1
9.2.0
9.1.2
9.1.1
Reverted support for interface mixins. The accompanying upgrade to a newer version of our webidl2
dependency brought along some other subtle breaking change, which is being investigated in jsdom/jsdom#2443. Until we have that sorted out, this release reverts interface mixin support in order to avoid regressions.
This release was broken upon release and cannot be used, as more code needed to be reverted. Use v9.1.2 (or v9.0.1) instead.