Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

chore(deps): update dependency happy-dom to v12 #407

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 15, 2023

Mend Renovate logo banner

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
happy-dom 9.20.3 -> 12.10.3 age adoption passing confidence

Release Notes

capricorn86/happy-dom (happy-dom)

v12.10.3

Compare Source

👷‍♂️ Patch fixes
  • Fix for week being wrong sometimes as it is not calculated as UTC in HTMLInputElement.valueAsDate(). (#​1144)

Thank you @​IGx89 for your contribution!

v12.10.2

Compare Source

👷‍♂️ Patch fixes
  • Element.cloneNode() should not clone scroll properties. (#​1148)

v12.10.1

Compare Source

👷‍♂️ Patch fixes
  • Fixes wrong callback parameter order of "key" and "value" in FormData.forEach(). (#​1136)

Thank you @​armandabric for your contribution!

v12.10.0

Compare Source

🎨 Features
  • Adds support for Navigator.sendBeacon(). (#​309)
  • Adds support for the property Window.CSSStyleDeclaration. (#​309)

v12.9.2

Compare Source

👷‍♂️ Patch fixes
  • Fixes Node 18.18.2+ support in @happy-dom/global-registrator by not binding classes to the global object. (#​1140)

Thank you @​IGx89 for your contribution!

v12.9.1

Compare Source

👷‍♂️ Patch fixes
  • Fixes typo in documentation. (#​1123)

Thank you @​goring for your contribution!

v12.9.0

Compare Source

🎨 Features
  • Improves performance of the async task manager. This will improve performance of timers in general as they have less logic executed related to the async task manager. (#​1114)

v12.8.1

Compare Source

👷‍♂️ Patch fixes
  • Adds missing second parameter in callbacks from MutationObserver. (#​1113)

Thank you @​wojtekmaj for your contribution!

v12.8.0

Compare Source

🎨 Features
  • Adds support for Clipboard, ClipboardItem, Permissions and PermissionStatus, which are used by the Window.navigator.clipboard and Window.navigator.permissions properties. (#​833)
  • Adds support for ClipboardEvent. (#​833)
  • Improves support for DataTransfer, DataTransferItemList and DataTransferItem. (#​833)
  • Adds MutationRecord class to Window as a property. (#​1112)
👷‍♂️ Patch fixes
  • Restores HTMLInputElement.checked state when Event.preventDefault() is called on a dispatched "click" event.

v12.7.0

Compare Source

🎨 Features
  • Adds support for Element.scrollWidth. (#​1109)

v12.6.0

Compare Source

🎨 Features
  • Adds support for dispatching a click event on the control element when clicking on a label. (#​1023)

v12.5.1

Compare Source

🎨 Features
  • Adds support for DocumentFragment as a constructor (e.g. new DocumentFragment()). (#​940)
👷‍♂️ Patch fixes
  • Fixes issue related to ownerDocument being null when executing ownerDocument.createElement() in React 18. The error occurred when rendering a Radix UI component. The root cause was that React 18 uses DocumentFragment as a constructor which was not supported. (#​940)

v12.5.0

Compare Source

🎨 Features
  • Add FocusEvent.relatedTarget to blur and focus events. (#​1094)

Thank you @​artursvonda for your contribution!

v12.4.0

Compare Source

🎨 Features
  • Add support for Document.currentScript. (#​1099)

Thank you @​ckhampus for your contribution!

v12.3.0

Compare Source

🎨 Features
  • Uses vm.Script for setting globals instead of a string to improve performance. (#​1102)
👷‍♂️ Patch fixes
  • Improves logic in Window.happyDOM.whenAsyncComplete(). (#​1102)

v12.2.2

Compare Source

👷‍♂️ Patch fixes
  • Makes PointerEvent implementation more specification compliant. (#​1092)

Thank you @​tkrotoff for your contribution!

v12.2.1

Compare Source

👷‍♂️ Patch fixes
  • Adds support for Symbol.toStringTag to EventTarget and AbortSignal. (#​1097)

Thank you @​Afsoon for your contribution!

v12.2.0

Compare Source

🎨 Features
  • Adds support for HTMLElement.clientLeft and HTMLElement.clientTop. (#​1089)

Thank you @​konomae for your contribution!

v12.1.7

Compare Source

👷‍♂️ Patch fixes
  • Makes NamedNodeMap.removeNamedItem() throw an exception on missing item. (#​652)
  • Allow deletion of nonexistent keys from HTMLElement.dataset. Deleting a nonexistent key in a dataset will not throw an exception, even though it indirectly is using NamedNodeMap.removeNamedItem(). (#​652)

Thank you @​RussianCow for your contribution!

v12.1.6

Compare Source

👷‍♂️ Patch fixes
  • Fixes bug in URL.createObjectURL() where it did not support the Happy DOM Blob object. (#​847)
  • Makes sure that HTMLUnknownElement is disconnected from its parent when replaced by a custom element. (#​1087)

v12.1.5

Compare Source

👷‍♂️ Patch fixes

v12.1.4

Compare Source

👷‍♂️ Patch fixes

v12.1.3

Compare Source

👷‍♂️ Patch fixes
  • Allows global properties to be overwritten when using GlobalRegistrator from @​happy-dom/global-registrator, as some global properties may behave different from the Happy DOM implementation. The properties will be restored when unregistering. (#​1049)

v12.1.2

Compare Source

👷‍♂️ Patch fixes
  • Adds support for Document.referrer. (#​653)

v12.1.1

Compare Source

👷‍♂️ Patch fixes
  • Fixes issue related to wrong computed style for "display" being return for HTMLDialogElement when it is open. It returned display: none, but should return display: block. This caused testing-library to not return the element when using getByRole('dialog'). (#​802)

v12.1.0

Compare Source

🎨 Features
  • Adds support for a new setting called disableErrorCapturing. Happy DOM will by default try to catch errors in functionality such as scripts, timers and event listeners. This setting makes it possible it to disable this behavior. (#​1073)

v12.0.1

Compare Source

👷‍♂️ Patch fixes
  • Fixes "__dirname not defined" error when using ESM. The error was introduced in v12.0.0. (#​1069)

Thank you @​ekwoka for collaborating on a fix!

v12.0.0

Compare Source

💣 Breaking Changes
  • Changes the default user agent. The default user agent will now be Mozilla/5.0 (X11; {process.platform} {process.arch}) AppleWebKit/537.36 (KHTML, like Gecko) HappyDOM/{packageVersion}. (#​1067)
🎨 Features
  • It is now possible to pass user agent as an option to the Window constructor or by setting Window.happyDOM.settings.navigator.userAgent. (#​1067)
  • React will no longer output the message Download the React DevTools for a better development experience to the console when using the default user agent. It was previously detected as a supported browser. (#​1067)

v11.2.0

Compare Source

🎨 Features
  • Adds support for Window.crypto. (#​1050)

Thank you @​Ayc0 for your contribution!

v11.1.2

Compare Source

👷‍♂️ Patch fixes
  • Only dispatch "close" event in HTMLDialogElement.close() when dialog was open. (#​1064)

Thank you @​Schleuse for your contribution!

v11.1.1

Compare Source

👷‍♂️ Patch fixes
  • Adds support for the mime type "image/svg+xml" to DOMParser.parseFromString(). It will no longer add HTML tags when parsing SVGs. (#​1040)

Thank you @​drtimwright for your contribution!

v11.1.0

Compare Source

🎨 Features
  • Add support for handling the <g> element as a an SVG element. (#​1034)

Thank you @​ottoszika for your contribution!

v11.0.6

Compare Source

👷‍♂️ Patch fixes

v11.0.5

Compare Source

👷‍♂️ Patch fixes
  • Increases timeout in Window.happyDOM.whenAsyncComplete(). (#​1059)

v11.0.4

Compare Source

👷‍♂️ Patch fixes
  • Jest was using setTimeout from Happy DOM internally for detecting when a test times out. This caused Window.happyDOM.whenAsyncComplete() and Window.happyDOM.cancelAsync() to not work as expected inside Jest. This is a bug in Jest, but this release adds a temporary fix to "@​happy-dom/jest-environment" until Jest has solved it. (#​1057)

v11.0.3

Compare Source

👷‍♂️ Patch fixes
  • Fixes an issue where the Promise returned by Window.happyDOM.whenAsyncComplete() was resolved to early in some scenarios. (#​1053)

v11.0.2

Compare Source

👷‍♂️ Patch fixes
  • Fixes documentation for packages in README.md. (#​1047)

v11.0.1

Compare Source

👷‍♂️ Patch fixes
  • Adds Virtual Console to Happy DOM index file. (#​1045)

v11.0.0

Compare Source

💣 Breaking Changes
  • Adds a new Virtual Console that by default will output all log entries to a Virtual Console Printer instead of using the global Node.js console. (#​1030)
  • Improves logic for catching errors in scripts, event listeners and timers. (#​1030)
🎨 Features
👷‍♂️ Patch fixes
  • Uses the default eval() for evaluating code instead of custom logic. This will make it possible to read context variables. #​1025

Thank you @​joeframbach for contributing with logic related to the eval() functionality!

v10.11.2

Compare Source

👷‍♂️ Patch fixes
  • Adds a check for if the selector text for a CSSStyleRule is valid when parsing a Stylesheet. Invalid selectors will be ignored (this is also how the spec is defined). (#​1036)

v10.11.1

Compare Source

v10.11.0

Compare Source

🎨 Features
  • Implements the properties childNodes and children as getters. (#​960)

Thank you @​edoardocavazza for your contribution!

v10.10.4

Compare Source

👷‍♂️ Patch fixes
  • Adds support for "calc()" in CSS values in CSSStyleDeclaration. (#​1014)

v10.10.3

Compare Source

👷‍♂️ Patch fixes
  • Adds support for URLs in attributes that doesn't use apostrophs in XMLParser. (#​999)

v10.10.2

Compare Source

👷‍♂️ Patch fixes

v10.10.1

Compare Source

👷‍♂️ Patch fixes
  • Fixes wrong return type in CSS.escape(). (#​1018)

Thank you @​zuisong for your contribution!

v10.10.0

Compare Source

🎨 Features
  • Add "Content-Type" header when constructing Request. (#​1016)

Thank you @​orionmiz for your contribution!

v10.9.0

Compare Source

🎨 Features
  • Adds support for Node.isSameNode(). (#​757)

v10.8.1

Compare Source

👷‍♂️ Patch fixes
  • Fixes an issue where an exception was thrown when loading an iframe using a relative URL. The URL is now relative to the main document URL instead. (#​1003)

v10.8.0

Compare Source

👷‍♂️ Patch fixes
  • Fixes bug related to item being null in HTMLButtonElement.attributes.removeNamedItem(). (#​1010)

Thank you @​maxmilton for your contribution!

v10.7.0

Compare Source

🎨 Features
  • Add support for Element.scrollHeight. The property will just return "0" for now. (#​991)

Thank you @​lukaselmer for your contribution!

v10.6.3

Compare Source

👷‍♂️ Patch fixes
  • Adds missing named CSS colors to CSSStyleDeclaration. (#​1004)

Thank you @​AlexisTessier for your contribution!

v10.6.2

Compare Source

v10.6.1

Compare Source

👷‍♂️ Patch fixes
  • Fixes issue where only labels associated using ID where found in HTMLButtonElement.labels, HTMLInputElement.labels, HTMLSelectElement.labels and HTMLTextAreaElement.labels. It will now also return labels associated by being a parent. (#​988)

Thank you @​joshkel for your contribution!

v10.6.0

Compare Source

🎨 Features
  • Improves support for support for HTMLLabelElement.control. It will now find child control elements that are deeper than one level. (#​530)

Thank you @​joshkel for your contribution!

v10.5.3

Compare Source

👷‍♂️ Patch fixes
  • Improves support for NamedNodeMap, which is used by the Element.attributes property. It will now reflect any changes done to it on the Element itself. (#​728)

v10.5.2

Compare Source

👷‍♂️ Patch fixes
  • Adds support for using an escape character in attribute query selectors (e.g. [ab="a\\:b"]). (#​632)

v10.5.1

Compare Source

👷‍♂️ Patch fixes
  • Fixes problem where HTMLIFrameElement fails to load page. The problem was most likely that some libraries overrides the Document.defaultView property somehow, making Document.defaultView.constructor not being the Window constructor. (#​992)

v10.5.0

Compare Source

🎨 Features
  • Fixes issue where CSS values with parentheses wasn't correctly parsed if the values also contained a comma. (#​976)
  • This fix should also fix a problem related to parsing a CSS string that ends with a variable setter. (#​670)

Thank you @​malko for your contribution!

v10.4.0

Compare Source

🎨 Features
  • Adds support for MouseEvent.movementX and MouseEvent.movementY. (#​953)

Thank you @​mertcan for your contribution!

v10.3.2

Compare Source

👷‍♂️ Patch fixes
  • Fixes problem with "?" in attribute names, not being parsed correctly in XMLParser. (#​984)
  • Fixes problem with single quoted attributes (') not being parsed correctly in XMLParser. (#​984)

v10.3.1

Compare Source

👷‍♂️ Patch fixes
  • Fixes problem where lit-html is using special characters in attributes, causing the XMLParser not to be able to parse the attribute correctly. (#​982)

v10.3.0

Compare Source

🎨 Features
  • Adds support for HTMLInputElement.valueAsDate. (#​977)

Thank you @​malko for your contribution!

v10.2.0

Compare Source

🎨 Features
  • Adds support for Window.queueMicrotask(). (#​959)

v10.1.1

Compare Source

👷‍♂️ Patch fixes
  • Fixes bug where Document.getRootNode() returned null, but should return the document. (#​950)

@​Schleuse thank you for your contribution!

v10.1.0

Compare Source

🎨 Features
  • Adds support for HTMLInputElement.valueAsNumber. (#​945)
  • Adds support for sanitizing values in input fields of type date, month, time and week in HTMLInputElement.value. (#​945)

Thank you @​malko for your contribution!

v10.0.7

Compare Source

v10.0.6

Compare Source

👷‍♂️ Patch fixes
  • Adds a timeout before dispatching the event in Window.postMessage() to better simulate the browser behavior. (#​948)

Thank you for your contribution @​DylanPiercey!

v10.0.5

Compare Source

👷‍♂️ Patch fixes
  • Fixes parsing of pseudo elements in CSS query selectors (e.g. "::-webkit-inner-spin-button"). (#​939)

Thank you @​btea for your contribution!

v10.0.4

Compare Source

v10.0.3

Compare Source

👷‍♂️ Patch fixes
  • Fixes issue with importing CJS modules directly. (#​968)

v10.0.2

Compare Source

v10.0.1

Compare Source

v10.0.0

Compare Source

🎨 Features
  • Adds support for ESM. Happy DOM will still have support for CommonJS. (#​873)
  • Migrates to Vitest for unit tests internally. (#​963)
👷‍♂️ Patch fixes
  • Adds support for capturing errors when executing Javascript in HTMLScriptElement. It will log the errors in the console and trigger an error event instead of failing the entire execution. (#​816)
💣 Breaking Changes
  • Adding support for ESM may be a breaking change as it can potentially exist build environments that doesn't support this configuration. (#​873)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/happy-dom-12.x branch 5 times, most recently from 61ba0af to 3996533 Compare September 22, 2023 12:25
@renovate renovate bot force-pushed the renovate/happy-dom-12.x branch 6 times, most recently from 1c18262 to c516da0 Compare October 2, 2023 16:40
@renovate renovate bot force-pushed the renovate/happy-dom-12.x branch 5 times, most recently from 563cdd8 to 241cf00 Compare October 9, 2023 17:03
@renovate renovate bot force-pushed the renovate/happy-dom-12.x branch 2 times, most recently from 60441f0 to 6cbca3d Compare October 27, 2023 16:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants