happy-dom

A JavaScript implementation of a web browser without its graphical user interface

MIT License

Downloads
4.1M
Stars
3K
Committers
123

Bot releases are visible (Hide)

happy-dom - v14.3.9

Published by github-actions[bot] 7 months ago

👷‍♂️ Patch fixes

  • Fixes problem with spying on properties in Storage - By @capricorn86 in task #1368
happy-dom - v14.3.8

Published by github-actions[bot] 7 months ago

👷‍♂️ Patch fixes

  • Fixes problem when the error for the invalid selectors :is and :where (without argument) was not handled correctly - By @capricorn86 in task #1352
happy-dom - v14.3.7

Published by github-actions[bot] 7 months ago

👷‍♂️ Patch fixes

  • Makes DOMTokenList iterable - By @silverwind in task #1342
happy-dom - v14.3.6

Published by github-actions[bot] 7 months ago

👷‍♂️ Patch fixes

  • Adds support for parsing the shorthand comment <!> - By @capricorn86 in task #1288
happy-dom - v14.3.5

Published by github-actions[bot] 7 months ago

👷‍♂️ Patch fixes

  • Fixes bug where the tag name for custom elements constructed using the "new" keyword rendered as <null> - By @capricorn86 in task #1354
happy-dom - v14.3.4

Published by github-actions[bot] 7 months ago

👷‍♂️ Patch fixes

  • Ignores invalid selectors when parsing CSS in Window.getComputedStyle() - By @capricorn86 in task #1352
happy-dom - v14.3.3

Published by github-actions[bot] 7 months ago

👷‍♂️ Patch fixes

  • Fixes bug where calling Storage.getItem() with a key that has the same name as one of its methods or properties, returned the method/property (e.g. Storage.getItem('key') returned Storage.key() which is a function) - By @capricorn86 in task #1351
    • The solution has been changed to use a Proxy instead to safeguard against this
happy-dom - v14.3.2

Published by github-actions[bot] 7 months ago

👷‍♂️ Patch fixes

  • Converts the value parameter to string in Storage.setItem() - By @dr2009 in task #1347
happy-dom - v14.3.1

Published by github-actions[bot] 7 months ago

👷‍♂️ Patch fixes

  • Adds support for defining keys to the Storage class used by the properties Window.localStorage and Window.sessionStorage - By @frankdiw in task #1181
happy-dom - v14.3.0

Published by github-actions[bot] 7 months ago

🎨 Features

  • Adds support for Select.selectedOptions - By @otaviosoares in task #1282
happy-dom - v14.2.1

Published by github-actions[bot] 7 months ago

👷‍♂️ 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')
happy-dom - v14.2.0

Published by github-actions[bot] 7 months ago

🎨 Features

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

Published by github-actions[bot] 7 months ago

👷‍♂️ 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
happy-dom - v14.1.1

Published by github-actions[bot] 7 months ago

👷‍♂️ 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
happy-dom - v14.1.0

Published by github-actions[bot] 7 months ago

🎨 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
happy-dom - v14.0.0

Published by github-actions[bot] 7 months ago

💣 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)
happy-dom - v13.10.1

Published by github-actions[bot] 7 months ago

👷‍♂️ 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
happy-dom - v13.10.0

Published by github-actions[bot] 7 months ago

🎨 Features

  • Adds support for the Headers.getSetCookie() - By @ushiboy and @capricorn86 in task #1315
happy-dom - v13.9.0

Published by github-actions[bot] 7 months ago

🎨 Features

  • Adds support for AbortSignal.throwIfAborted() - By @capricorn86 in task #1255
happy-dom - v13.8.6

Published by github-actions[bot] 7 months ago

👷‍♂️ Patch fixes

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