Skip to content

v11.0.0

Choose a tag to compare

@domenic domenic released this 22 Nov 01:18

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 an interface constructor.
  • The create() and createImpl() 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 the install() export.
  • [WebIDL2JSFactory] was removed, as it is no longer necessary: all interfaces are now per-global object.