Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): update dependency happy-dom to v14 #95

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 19, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
happy-dom 2.55.0 -> 14.12.0 age adoption passing confidence

Release Notes

capricorn86/happy-dom (happy-dom)

v14.12.0

Compare Source

v14.11.4

Compare Source

v14.11.3

Compare Source

v14.11.2

Compare Source

v14.11.1

Compare Source

v14.11.0

Compare Source

🎨 Features

v14.10.3

Compare Source

👷‍♂️ Patch fixes
  • Adds check for if Window and MutationObserver has been destroyed when triggering listeners - By @​capricorn86 in task #​1436

v14.10.2

Compare Source

👷‍♂️ Patch fixes
  • HTMLAnchorElement, HTMLButtonElement, HTMLInputElement and HTMLLabelElement checked that click events triggering native behavior was of type PointerEvent, but should check that they are of type MouseEvent - By @​capricorn86 in task #​1397

v14.10.1

Compare Source

v14.10.0

Compare Source

🎨 Features
  • Adds support for Document.elementFromPoint() - By @​TreyVigus in task #​1400
    • The method will always return null as Happy DOM doesn't support rendering and can't calculate an element's position based on where it is rendered

v14.9.0

Compare Source

v14.8.3

Compare Source

👷‍♂️ Patch fixes
  • Fixes issue related to Element.insertBefore() not removing comment node from previous ancestor - By @​mdafanasev in task #​1406

v14.8.2

Compare Source

v14.8.1

Compare Source

v14.8.0

Compare Source

🎨 Features

v14.7.1

Compare Source

👷‍♂️ Patch fixes

v14.7.0

Compare Source

v14.6.2

Compare Source

👷‍♂️ Patch fixes

v14.6.1

Compare Source

👷‍♂️ Patch fixes
  • Fixes bug where Document.createTextNode() didn't handle conversion of non-string values to string - By @​odanado in task #​1380
  • Adds support for throwing an exception when no argument is submitted to Document.createTextNode() - By @​odanado in task #​1380

v14.6.0

Compare Source

v14.5.2

Compare Source

v14.5.1

Compare Source

👷‍♂️ Patch fixes
  • Fixes problem with Document.defaultView not referring to the global object when using GlobalRegistrator - By @​capricorn86 in task #​1367

v14.5.0

Compare Source

🎨 Features
  • Adds support for handling "application/x-www-form-urlencoded" in Request.formData() - By @​tt-public in #​1379

v14.4.0

Compare Source

v14.3.10

Compare Source

👷‍♂️ Patch fixes
  • Fixes problem related to CSS properties not being used when defined after the CSS value - By @​capricorn86 in task #​1364

v14.3.9

Compare Source

👷‍♂️ Patch fixes

v14.3.8

Compare Source

👷‍♂️ 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

v14.3.7

Compare Source

👷‍♂️ Patch fixes

v14.3.6

Compare Source

👷‍♂️ Patch fixes

v14.3.5

Compare Source

v14.3.4

Compare Source

v14.3.3

Compare Source

v14.3.2

Compare Source

👷‍♂️ Patch fixes

v14.3.1

Compare Source

v14.3.0

Compare Source

v14.2.1

Compare Source

v14.2.0

Compare Source

🎨 Features

v14.1.2

Compare Source

👷‍♂️ 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

Compare Source

v14.1.0

Compare Source

🎨 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

Compare Source

💣 Breaking Changes
  • Removes interfaces for Node's, as they are no longer needed as newer versions of Typescript can handle circular dependencies - By @​capricorn86 in task #​1330

v13.10.1

Compare Source

v13.10.0

Compare Source

🎨 Features

v13.9.0

Compare Source

v13.8.6

Compare Source

👷‍♂️ Patch fixes
  • Fixes bug related to multiple fallbacks to CSS variables being set incorrectly - By @​odanado in task #​1308

v13.8.5

Compare Source

👷‍♂️ Patch fixes
  • Fixes problem related to invalid pseudo query selectors matching elements (e.g. ":before" should only match the pseudo element and not the actual element) - By @​capricorn86 in task #​1122
  • Adds support for using multiple pseudo query selectors (e.g. ":first-of-type:last-of-type") - By @​capricorn86 in task #​1122
  • Fixes minor typo in HTMLElementConfig - By @​danbentley in task #​1306

v13.8.4

Compare Source

👷‍♂️ Patch fixes
  • Adds support for returning URL relative to window location in HTMLLinkElement.href, HTMLImageElement.src and HTMLScriptElement.src - By @​capricorn86 in task #​1135

v13.8.3

Compare Source

👷‍♂️ Patch fixes
  • Fixes problem where some elements (e.g. <li>, <h1> or <table>) doesn't allow itself as direct descendant when parsing HTML, but should allow itself as descendant when it is not at first level - By @​capricorn86 in task #​1039

v13.8.2

Compare Source

v13.8.1

Compare Source

v13.8.0

Compare Source

🎨 Features

v13.7.8

Compare Source

v13.7.7

Compare Source

v13.7.6

Compare Source

v13.7.5

Compare Source

👷‍♂️ Patch fixes
  • Modify option node to return empty string even if the value is empty string - In task #​1138

v13.7.4

Compare Source

v13.7.3

Compare Source

v13.7.2

Compare Source

v13.7.1

Compare Source

👷‍♂️ Patch fixes

v13.7.0

Compare Source

v13.6.2

Compare Source

🎨 Features
👷‍♂️ Patch fixes

v13.6.1

Compare Source

👷‍♂️ Patch fixes
  • Improves validation for the options argument in MutationsObserver.observe() - By @​romansp in task #​1223

v13.6.0

Compare Source

🎨 Features
👷‍♂️ Patch fixes
  • Adds support for the property Document.forms - By @​juandiegombr in task #​1260
  • Adds check for if MutationObserver options are null, which most likely happens for code that is executed after the Window instance has been closed - By @​zachlankton in task #​1217

v13.5.3

Compare Source

👷‍♂️ Patch fixes
  • Improves check for invalid query selectors - By @​btea in task #​0

v13.5.2

Compare Source

👷‍♂️ Patch fixes

v13.5.1

Compare Source

👷‍♂️ Patch fixes
  • Fixes problem with query selectors not finding SVG elements after the v13.4.0 release - By @​capricorn86 in task #​1274

v13.5.0

Compare Source

🎨 Features
  • Use the Node.js ReadableStream class for the properties Response.body and Request.body - By @​diego-toro and @​capricorn86 in task #​1180
    • The previous implementation used the Node.js Stream.Readable class, which is not fully spec compliant

v13.4.1

Compare Source

👷‍♂️ Patch fixes

v13.4.0

Compare Source

🎨 Features
  • Adds support for CustomElementRegistry.getName() - By @​mash-graz in task #​1176
  • Adds support for await Window.happyDOM.close(), which makes it possible to wait for the teardown to be completed in a detached window - By @​capricorn86 in task #​1176
👷‍♂️ Patch fixes
  • Use Element.localName correctly in Document.createElement() and Document.createElementNS() - By @​capricorn86 in task #​1176
  • Set correct namespaceURI for "xmlns" attribute when parsing SVGs - By @​capricorn86 in task #​1176
  • Fixes problem related to window being "null" during teardown/close - By @​capricorn86 in task #​1176
  • Validate custom element name in CustomElementRegistry - By @​mash-graz in task #​1176
  • Prevent registration of the same HTMLElement class with different name in CustomElementRegistry - By @​mash-graz in task #​1176

v13.3.8

Compare Source

👷‍♂️ Patch fixes

v13.3.7

Compare Source

👷‍♂️ Patch fixes
  • Removes validation of PR commit messages from Github workflow as it will fallback to patch version anyway - By @​capricorn86 in task #​1249

v13.3.6

Compare Source

👷‍♂️ Patch fixes
  • Adds support for PR username in release notes if it is not possible to retrieve Github username based on commit email - By @​capricorn86 in task #​1247

v13.3.5

Compare Source

🎨 Features
👷‍♂️ Patch fixes
  • Fixes problem with calculating next version by updating the package "happy-conventional-commit" - By @​capricorn86 in task #​1244

v13.3.4

Compare Source

👷‍♂️ Patch fixes

v13.3.3

Compare Source

👷‍♂️ Patch fixes

v13.3.2

Compare Source

👷‍♂️ Patch fixes

v13.3.1

Compare Source

👷‍♂️ Patch fixes

v13.3.0

Compare Source

🎨 Features
👷‍♂️ Patch fixes

v13.2.2

Compare Source

👷‍♂️ Patch fixes

v13.2.1

Compare Source

👷‍♂️ Patch fixes
  • Adds missing element classes and types to the export in "index.js", so that they are easier to import. The missing elements was HTMLAnchorElement, HTMLButtonElement, HTMLOptGroupElement, HTMLOptionElement, HTMLUnknownElement and HTMLSelectElement. (#​1227)
  • Adds non-implemented element classes to the export in "index.js" by exporting HTMLElement as the non-implemented class name. (#​1227)

v13.2.0

Compare Source

🎨 Features
  • Removes unnecessary dependencies. (#​1215)

v13.1.4

Compare Source

👷‍♂️ Patch fixes
  • Adds submitter to SubmitEvent instances dispatched by HTMLInputElement and HTMLButtonElement . (#​1173)

Thank you @​aaltepet for your contribution!

v13.1.3

Compare Source

👷‍♂️ Patch fixes
  • Throws an error when providing an invalid selector to querySelector() and querySelectorAll(). (#​1170)

Thank you @​btea for your contribution!

v13.1.2

Compare Source

👷‍♂️ Patch fixes
  • Selection.anchorOffset, Selection.baseOffset, Selection.focusOffset and Selection.extendOffset should return 0 when no range has been added. (#​1163)

Thank you @​seanogdev for your contribution!

v13.1.1

Compare Source

👷‍♂️ Patch fixes
  • Support whitespace with multiple spaces, line breaks or tabs in DOMTokenList (e.g. <div class=" class1 class2 ">). (#​1168)

Thank you @​takenspc for your contribution!

v13.1.0

Compare Source

🎨 Features
  • Makes properties into getters and setters according to spec in all nodes. (#​1188)
  • Adds support for adopted stylesheets to Window.getComputedStyle(). (#​1188)

v13.0.7

Compare Source

👷‍♂️ Patch fixes
  • Fixes issue related to using fake timers in Vitest making the test get stuck. (#​1210)

v13.0.6

Compare Source

👷‍♂️ Patch fixes
  • Fixes problem related to exception thrown when creating a Node in the constructor of a custom element. (#​1207)

v13.0.5

Compare Source

👷‍♂️ Patch fixes

v13.0.4

Compare Source

👷‍♂️ Patch fixes
  • Adds support for fallback values when declaring a CSS variable (e.g. "var(--my-var, #FFF)"). (#​1192)

v13.0.3

Compare Source

👷‍♂️ Patch fixes
  • Fixes problem with clearTimeout(), clearInterval() and cancelAnimationFrame() not supporting number values. (#​1201)

v13.0.2

Compare Source

👷‍♂️ Patch fixes
  • Removes unused browser setting. (#​1199)

v13.0.1

Compare Source

🎨 Features
  • Adds support for BrowserFrame.viewport. (#​466)
  • Adds support for Window.resizeTo(). (#​466)
  • Adds support for Window.resizeBy(). (#​466)
👷‍♂️ Patch fixes
  • Fixes issues related to viewport not being kept when navigating to new a URL. (#​466)

v13.0.0

Compare Source

💣 Breaking Changes
  • This is a big release where a lot of the code has been refactored to improve security and to be able to support the new Browser API. A big release is always a potential risk for bugs and therefore it make sense to make this a major release to avoid that consumers automatically updates to it. (#​466)
🎨 Features
  • Adds support for a Browser API similar to Puppeteer and Playwright. With the Browser API, it is for example possible to create new pages and navigate in them. You can read more about it in the Happy DOM Wiki. (#​466)
  • Improves security by not exposing sensitive internal logic to scripts running within the Happy DOM Browser. (#​466)
  • Improves support for CORS management. It now supports "OPTIONS" requests to detect if the client is allowed to proceed with a cross origin request. (#​466)
  • Adds support for HTTP response cache. The cache is in memory, but the plan is to add support for storing it on disk in the future. (#​466)
  • Improves support for XMLHttpRequest. It now supports the GZip, Deflate and Brotli encodings. (#​466)
  • Adds support for adding a process level error event listener for capturing errors. This is useful when using the Browser API, but will not work in environments such as Jest and Vitest, as it collides with their error listener. (#​466)
  • Adds support for Ẁindow.open(). (#​466)
  • Adds support for Ẁindow.close(). This function should now be used when tearing down the environment. (#​466)
  • Improves support for cookies. (#​466)
  • Improves support for HTMLIFrameElement. (#​466)
  • Changes export of types to use "import type" and "export type" in "index.js". This will allow transpilers/compilers to optimize better. (#​466)
  • Adds support for navigating when clicking on an anchor link. (#​466)
  • Adds support for navigating when setting Location.href. (#​466)
  • Improves support for MutationObserver. It will not collect multiple records with a microtask. It now also supports MutationObserver.takeRecords() for records that has not yet been published. (#​466)
  • Deprecates "@​happy-dom/uncaught-exception-observer" as the functionality is supported by "happy-dom" out of the box now. (#​466)
  • Uses Symbol for public internal properties instead of using "_" as a prefix, so that internal properties won't be enumerable. This will also make sure that these properties won't clash with properties defined by the consumer. (#​466)
👷‍♂️ Patch fixes
  • Improves the check for if the property is a class to avoid that it gets bound in "@​happy-dom/global-registrator". We only want functions to get bound to the global context. (#​466)
  • Fixes bug where new Document() did'nt work according to spec. (#​466)
  • Fixes bug where several Element classes wheren't available as properties on Window. (#​466)
  • Fixes bug in Document.importNode() where it didn't change ownerDocument on child nodes. (#​466)
  • Resets static ownerDocument state used when creating Node instances, so that it can be garbage collected if not used anymore. (#​466)

Merry Christmas and a Happy New Year! 🎅 ✨

This release took some time as I didn't want to release the Browser API without applying security fixes. I've also stumbled across a few other issues along the way that I felt I needed to address.

I hope you will enjoy the release!

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. ([#&#

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-14.x branch 12 times, most recently from a9c82c5 to 79bb4ab Compare March 26, 2024 01:50
@renovate renovate bot force-pushed the renovate/happy-dom-14.x branch 2 times, most recently from 7e7c18a to 8fae0e1 Compare April 2, 2024 01:46
@renovate renovate bot force-pushed the renovate/happy-dom-14.x branch 7 times, most recently from e1f3035 to 1d17b3b Compare April 7, 2024 17:35
@renovate renovate bot force-pushed the renovate/happy-dom-14.x branch from 1d17b3b to 01c9f6e Compare April 16, 2024 14:59
@renovate renovate bot force-pushed the renovate/happy-dom-14.x branch 3 times, most recently from 207961c to 2808dd7 Compare May 11, 2024 12:58
@renovate renovate bot force-pushed the renovate/happy-dom-14.x branch 3 times, most recently from 4dc7653 to 701b49a Compare May 15, 2024 04:48
@renovate renovate bot force-pushed the renovate/happy-dom-14.x branch from 701b49a to ec64a80 Compare May 27, 2024 16:26
@renovate renovate bot force-pushed the renovate/happy-dom-14.x branch 2 times, most recently from 35a95b9 to 7d74b56 Compare May 29, 2024 13:02
@renovate renovate bot force-pushed the renovate/happy-dom-14.x branch from 7d74b56 to 0fcc55a Compare May 30, 2024 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants