From 9a9ef54d2d73fb728bf10b781c7257c2aca0bf7b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 24 Feb 2025 14:09:46 -0500 Subject: [PATCH] chore(deps): update dependency happy-dom to v17 (#1165) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [happy-dom](https://redirect.github.com/capricorn86/happy-dom) | [`^12.0.0` -> `^17.0.0`](https://renovatebot.com/diffs/npm/happy-dom/12.10.3/17.1.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/happy-dom/17.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/happy-dom/17.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/happy-dom/12.10.3/17.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/happy-dom/12.10.3/17.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
capricorn86/happy-dom (happy-dom) ### [`v17.1.1`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v17.1.1) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v17.1.0...v17.1.1) ##### :art: Features - Adds support for the `@media` selector "forced-colors" - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1727](https://redirect.github.com/capricorn86/happy-dom/issues/1727) - Read more about how to set the value in the [Wiki for IBrowserSettings](https://redirect.github.com/capricorn86/happy-dom/wiki/IBrowserSettings) under "device.forcedColors" ##### :construction_worker_man: Patch fixes - Fixes issue where it was not possible to nest `@media`, `@supports` and `@container` rules - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1727](https://redirect.github.com/capricorn86/happy-dom/issues/1727) - Fixes issue where `CSSStyleSheet` was instantiated internally without a Window context, causing errors to not be thrown correctly in `CSSStyleSheet` methods - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1727](https://redirect.github.com/capricorn86/happy-dom/issues/1727) - Changes errors thrown in `CSSStyleSheet` methods, so that they work according to spec - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1727](https://redirect.github.com/capricorn86/happy-dom/issues/1727) ### [`v17.1.0`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v17.1.0) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v17.0.4...v17.1.0) ##### :art: Features - Add support for CSS media query rule "prefers-reduced-motion" - By **[@​mwdiaz](https://redirect.github.com/mwdiaz)** in task [#​1724](https://redirect.github.com/capricorn86/happy-dom/issues/1724) - Read more about how to set this value under [IBrowserSettings](https://redirect.github.com/capricorn86/happy-dom/wiki/IBrowserSettings) in the Wiki. ### [`v17.0.4`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v17.0.4) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v17.0.3...v17.0.4) ##### :construction_worker_man: Patch fixes - The "slotchange" event should be fired after the element has been connected to the DOM - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1722](https://redirect.github.com/capricorn86/happy-dom/issues/1722) ### [`v17.0.3`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v17.0.3) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v17.0.2...v17.0.3) ##### :construction_worker_man: Patch fixes - Fix bug where nested query selector is not returning the correct result when there are multiple matching selectorGroups - By \*\*[@​christiango](https://redirect.github.com/christiango) \*\* in task [#​1720](https://redirect.github.com/capricorn86/happy-dom/issues/1720) ### [`v17.0.2`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v17.0.2) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v17.0.1...v17.0.2) ##### :construction_worker_man: Patch fixes - The property "tabIndex" should return "0" by default in `HTMLAnchorElement`, `HTMLAreaElement`, `HTMLButtonElement`, `HTMLIFrameElement`, `HTMLInputElement`, `HTMLMediaElement`, `HTMLObjectElement`, `HTMLSelectElement` and `HTMLTextAreaElement` - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1714](https://redirect.github.com/capricorn86/happy-dom/issues/1714) ### [`v17.0.1`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v17.0.1) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v17.0.0...v17.0.1) ##### :construction_worker_man: Patch fixes - Ensure `querySelector()` returns the first item that appears in the DOM for grouped selectors - By **[@​christiango](https://redirect.github.com/christiango)** in task [#​1710](https://redirect.github.com/capricorn86/happy-dom/issues/1710) ### [`v17.0.0`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v17.0.0) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v16.8.1...v17.0.0) ##### :bomb: Breaking Changes - Adds support for ECMAScript modules - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​320](https://redirect.github.com/capricorn86/happy-dom/issues/320) - This change allows the use of `import` and `export` statements in JavaScript files ##### :art: Features - Adds support for tracing never ending tasks when using `waitUntilComplete()` - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1567](https://redirect.github.com/capricorn86/happy-dom/issues/1567) - Read more about how to enable this feature under `debug.traceWaitUntilComplete` in the Wiki for [IBrowserSettings](https://redirect.github.com/capricorn86/happy-dom/wiki/IBrowserSettings) - Adds support for preloading fetch, stylesheet, script and modules in `HTMLLinkElement` - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​320](https://redirect.github.com/capricorn86/happy-dom/issues/320) - Adds support for `HTMLLinkElement.relList.supports()` - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​320](https://redirect.github.com/capricorn86/happy-dom/issues/320) - Adds support for `Request.mode` - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​320](https://redirect.github.com/capricorn86/happy-dom/issues/320) - Output failed requests to the console - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​320](https://redirect.github.com/capricorn86/happy-dom/issues/320) - Adds support for `HTMLScriptElement.blocking`, `HTMLScriptElement.crossOrigin`, `HTMLScriptElement.fetchPriority`, `HTMLScriptElement.noModule`, `HTMLScriptElement.integrity`, `HTMLScriptElement.referrerPolicy` - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​320](https://redirect.github.com/capricorn86/happy-dom/issues/320) - Use cache in virtual server requests - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​320](https://redirect.github.com/capricorn86/happy-dom/issues/320) - Adds support for `credentials` and `referrerPolicy` when fetching styles and scripts - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​320](https://redirect.github.com/capricorn86/happy-dom/issues/320) - Disallow invalid attributes from being set in `Element.setAttribute()` - By **[@​OlaviSau](https://redirect.github.com/OlaviSau)** in task [#​1706](https://redirect.github.com/capricorn86/happy-dom/issues/1706) ##### :construction_worker_man: Patch fixes - Call `afterAsyncResponse` fetch interceptor in virtual server requests - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​320](https://redirect.github.com/capricorn86/happy-dom/issues/320) - Fixes bug where children in a `ShadowRoot` of a custom element that was upgraded from a `HTMLElement` wasn't considered connected to the DOM - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​320](https://redirect.github.com/capricorn86/happy-dom/issues/320) ### [`v16.8.1`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v16.8.1) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v16.8.0...v16.8.1) ##### :construction_worker_man: Patch fixes - Handle non-string values gracefully when removing an attribute - By **[@​OlaviSau](https://redirect.github.com/OlaviSau)** in task [#​1706](https://redirect.github.com/capricorn86/happy-dom/issues/1706) ### [`v16.8.0`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v16.8.0) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v16.7.3...v16.8.0) ##### :art: Features - Add support for `insertRow()` and `deleteRow()` to `HTMLTableSectionElement` - By **[@​christiango](https://redirect.github.com/christiango)** in task [#​1708](https://redirect.github.com/capricorn86/happy-dom/issues/1708) ### [`v16.7.3`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v16.7.3) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v16.7.2...v16.7.3) ##### :construction_worker_man: Patch fixes - Removes space from directory name that prevents the repo to be cloned on MS Windows - By **[@​kleinfreund](https://redirect.github.com/kleinfreund)** in task [#​1703](https://redirect.github.com/capricorn86/happy-dom/issues/1703) ### [`v16.7.2`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v16.7.2) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v16.7.1...v16.7.2) ##### :construction_worker_man: Patch fixes - Ignore invalid cookies in CookieContainer - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1693](https://redirect.github.com/capricorn86/happy-dom/issues/1693) ### [`v16.7.1`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v16.7.1) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v16.7.0...v16.7.1) ##### :construction_worker_man: Patch fixes - Adds `ICookie`, `IOptionalCookie`, `CookieSameSiteEnum` and `IVirtualServer` as exports to the index file - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1693](https://redirect.github.com/capricorn86/happy-dom/issues/1693) - Makes non-mandatory cookie properties optional in `CookieContainer.addCookies()` - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1693](https://redirect.github.com/capricorn86/happy-dom/issues/1693) ### [`v16.7.0`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v16.7.0) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v16.6.0...v16.7.0) ##### :art: Features - Adds support for simulating local HTTP servers that serves files from the local file system - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1688](https://redirect.github.com/capricorn86/happy-dom/issues/1688) - Read more about virtual servers in the [Wiki](https://redirect.github.com/capricorn86/happy-dom/wiki/IVirtualServer) ### [`v16.6.0`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v16.6.0) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v16.5.3...v16.6.0) ##### :art: Features - Adds support for subsequent sibling combinator to `querySelector()`, `querySelectorAll()` and `matches()` (e.g. ".a ~ .b") - By **[@​karpiuMG](https://redirect.github.com/karpiuMG)** in task [#​1683](https://redirect.github.com/capricorn86/happy-dom/issues/1683) ### [`v16.5.3`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v16.5.3) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v16.5.2...v16.5.3) ##### :construction_worker_man: Patch fixes - Fixes problem with encoding and decoding attribute values in HTML - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1678](https://redirect.github.com/capricorn86/happy-dom/issues/1678) - Fixes issue where it was not possible to query selector by class when the attribute value had line breaks in it - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1678](https://redirect.github.com/capricorn86/happy-dom/issues/1678) ### [`v16.5.2`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v16.5.2) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v16.5.1...v16.5.2) ##### :construction_worker_man: Patch fixes - `Event.target` should be the target element after an event has been dispatched - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1529](https://redirect.github.com/capricorn86/happy-dom/issues/1529) ### [`v16.5.1`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v16.5.1) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v16.5.0...v16.5.1) ##### :construction_worker_man: Patch fixes - Fixes issue where `Comment`, `Text` and `DocumentFragment` are not instances of their corresponding property on `Window` - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1577](https://redirect.github.com/capricorn86/happy-dom/issues/1577) ### [`v16.5.0`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v16.5.0) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v16.4.3...v16.5.0) ##### :art: Features - Adds property `GlobalRegistrator.isRegistered` - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1670](https://redirect.github.com/capricorn86/happy-dom/issues/1670) ### [`v16.4.3`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v16.4.3) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v16.4.2...v16.4.3) ##### :construction_worker_man: Patch fixes - Adds null check for if browser frame is available in `Response` during tear down of the `Window` - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1669](https://redirect.github.com/capricorn86/happy-dom/issues/1669) ### [`v16.4.2`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v16.4.2) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v16.4.1...v16.4.2) ##### :construction_worker_man: Patch fixes - Support using URL as an object for URL:s when using the Browser API - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1664](https://redirect.github.com/capricorn86/happy-dom/issues/1664) ### [`v16.4.1`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v16.4.1) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v16.4.0...v16.4.1) ##### :construction_worker_man: Patch fixes - Fixes issue where HTML assigned to `document.documentElement.innerHTML` isnt parsed correctly since v16 - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1663](https://redirect.github.com/capricorn86/happy-dom/issues/1663) ### [`v16.4.0`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v16.4.0) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v16.3.0...v16.4.0) ##### :art: Features - Allow fetch to be intercepted and modified by sending in an interceptor as a setting - By **[@​OlaviSau](https://redirect.github.com/OlaviSau)** in task [#​1502](https://redirect.github.com/capricorn86/happy-dom/issues/1502) - Read more about this in the Wiki at [IFetchInterceptor](https://redirect.github.com/capricorn86/happy-dom/wiki/IFetchInterceptor) ### [`v16.3.0`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v16.3.0) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v16.2.9...v16.3.0) ##### :art: Features - Adds support for child combinator to ":has()" pseudo selector (e.g. "span:has(> video)") - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1642](https://redirect.github.com/capricorn86/happy-dom/issues/1642) ### [`v16.2.9`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v16.2.9) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v16.2.8...v16.2.9) ##### :construction_worker_man: Patch fixes - Fixes the `HTMLInputElement.defaultChecked` property - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1587](https://redirect.github.com/capricorn86/happy-dom/issues/1587) - This issue caused React not to serialize the "checked" attribute correctly ### [`v16.2.8`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v16.2.8) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v16.2.7...v16.2.8) ##### :construction_worker_man: Patch fixes - Fixes issue where the wrong event target was used when dispatching events on `HTMLFormElement` or `HTMLSelectElement` - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1628](https://redirect.github.com/capricorn86/happy-dom/issues/1628) ### [`v16.2.7`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v16.2.7) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v16.2.6...v16.2.7) ##### :construction_worker_man: Patch fixes - Fixes issue where text in `