npm happy-dom 3.0.0
v3.0.0

latest releases: 15.8.3, 15.8.2, 15.8.1...
2 years ago

💣 Breaking Changes

  • Changes target language from ES5 to ES2020 (CommonJS will still be used as module system). (#454)

🎨 Features

  • Makes the Window instance a VM context. (#454)
  • Adds support for a new window called GlobalWindow, that will run in the global context. (#454)

👷‍♂️ Patch fixes

  • Solves general problems with globals (Array, Object etc.) inside a VM by contextifying the Window when it is created. (#454)

Migration from v2.x.x to v3.0.0

  • You may have to transpile Happy DOM to ES5 if the rest of your code is executed using ES5.
  • You no longer have to execute VM.createContext(window) as the default Window class is already a VM context. However, it is not necessary to do this change as the createContext() will just ignore already contextified objects.

Don't miss a new happy-dom release

NewReleases is sending notifications on new releases.