Skip to content

Releases: capricorn86/happy-dom

v14.2.1

21 Mar 14:59
2ce84c0
Compare
Choose a tag to compare

👷‍♂️ Patch fixes

  • Binds getters and setters on all Window classes (not only GlobalWindow), so that they will be available when calling Object.getOwnPropertyDescriptors() - By @capricorn86 in task #1343
    • The reason for this change is that JSDOM and browsers has these properties as part of the Window instance and not the prototype
    • Happy DOM will now behave correctly when overriding a property on Window with spyOn(window, 'property') or Object.defineProperty(window, 'property')

v14.2.0

20 Mar 22:00
f42adfa
Compare
Choose a tag to compare

🎨 Features

  • Adds support for the pseudo selectors :is() and :where() - By @capricorn86 in task #1333

v14.1.2

20 Mar 20:53
ad3234d
Compare
Choose a tag to compare

👷‍♂️ Patch fixes

  • Fixes problem with properties defined as getters and setters not being registered globally by Vitest - By @capricorn86 in task #1339
    • The problem occurred as Vitest is using Object.getOwnPropertyDescriptors(window) to read which properties to register globally, but getters and setters are defined on the prototype
    • To solve the problem, GlobalWindow now defines the properties on the instance when it is constructed

v14.1.1

20 Mar 16:35
7e006f5
Compare
Choose a tag to compare

👷‍♂️ Patch fixes

  • Changes location, history, navigator, screen, sessionStorage and localStorage to be getters instead of properties on Window - By @capricorn86 in task #1336
  • Adds setter for Window.location - By @capricorn86 in task #1336

v14.1.0

20 Mar 12:55
8dbebfd
Compare
Choose a tag to compare

🎨 Features

  • Adds support for the setting handleDisabledFileLoadingAsSuccess, that can be used for triggering a "load" event instead of an "error" event when file loading is disabled - By @capricorn86 in task #1334

v14.0.0

19 Mar 00:27
8fc9edc
Compare
Choose a tag to compare

💣 Breaking Changes

  • Removes unnecessary interfaces implemented by Window, Node and Element classes and by classes with a dependency to them - By @capricorn86 in task #1330
    • Interfaces was used to solve problems with circular dependencies (e.g. Window => Document => Window)
    • Newer versions of Typescript has solved this problem
    • This release is only breaking if you are using the interfaces. Then you can import and use the class as type instead (e.g. use HTMLElement instead of IHTMLElement)

v13.10.1

18 Mar 16:00
a6debf5
Compare
Choose a tag to compare

👷‍♂️ Patch fixes

  • Fixes bug where cloning a response without a body caused the error TypeError: Cannot read properties of null (reading 'Symbol(nodeStream)') to be thrown - By @capricorn86 in task #1325

v13.10.0

18 Mar 14:04
06a558f
Compare
Choose a tag to compare

🎨 Features

v13.9.0

17 Mar 15:00
9d6d1f3
Compare
Choose a tag to compare

🎨 Features

v13.8.6

14 Mar 20:48
8b2eb74
Compare
Choose a tag to compare

👷‍♂️ Patch fixes

  • Fixes bug related to multiple fallbacks to CSS variables being set incorrectly - By @odanado in task #1308