yarn @happy-dom/jest-environment 3.0.0
v3.0.0

latest releases: 14.11.0, 14.10.3, 14.10.2...
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 jest-environment release

NewReleases is sending notifications on new releases.