v11.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 aninterfaceconstructor. - 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
exposeexport 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.