💣 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.