Skip to content

Commit 1093f76

Browse files
chore(deps): update dependency happy-dom to v13 (#262)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [happy-dom](https://togithub.com/capricorn86/happy-dom) | [`12.10.1` -> `13.3.8`](https://renovatebot.com/diffs/npm/happy-dom/12.10.1/13.3.8) | [![age](https://developer.mend.io/api/mc/badges/age/npm/happy-dom/13.3.8?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/happy-dom/13.3.8?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/happy-dom/12.10.1/13.3.8?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/happy-dom/12.10.1/13.3.8?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>capricorn86/happy-dom (happy-dom)</summary> ### [`v13.3.8`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.3.8) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.3.7...v13.3.8) ##### 👷‍♂️ Patch fixes - Updates documentation - By **[@&#8203;capricorn86](https://togithub.com/capricorn86)** in task [#&#8203;1251](https://togithub.com/capricorn86/happy-dom/issues/1251) ### [`v13.3.7`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.3.7) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.3.6...v13.3.7) ##### 👷‍♂️ Patch fixes - Removes validation of PR commit messages from Github workflow as it will fallback to patch version anyway - By **[@&#8203;capricorn86](https://togithub.com/capricorn86)** in task [#&#8203;1249](https://togithub.com/capricorn86/happy-dom/issues/1249) ### [`v13.3.6`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.3.6) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.3.5...v13.3.6) ##### 👷‍♂️ Patch fixes - Adds support for PR username in release notes if it is not possible to retrieve Github username based on commit email - By **[@&#8203;capricorn86](https://togithub.com/capricorn86)** in task [#&#8203;1247](https://togithub.com/capricorn86/happy-dom/issues/1247) ### [`v13.3.5`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.3.5) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.3.4...v13.3.5) ##### 🎨 Features - Support for passing pseudo-selectors as argument of `:not` in query selectors - By **[@&#8203;gdorsi](https://togithub.com/gdorsi)** in task [#&#8203;1191](https://togithub.com/capricorn86/happy-dom/issues/1191) - Add support for `TouchEvent` and `Touch` - By **[@&#8203;visualjerk](https://togithub.com/visualjerk)** in task [#&#8203;1186](https://togithub.com/capricorn86/happy-dom/issues/1186) ##### 👷‍♂️ Patch fixes - Fixes problem with calculating next version by updating the package "happy-conventional-commit" - By **[@&#8203;capricorn86](https://togithub.com/capricorn86)** in task [#&#8203;1244](https://togithub.com/capricorn86/happy-dom/issues/1244) ### [`v13.3.4`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.3.4) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.3.3...v13.3.4) ##### 👷‍♂️ Patch fixes - Fixes automatic release notes in the Github Workflow - By **[@&#8203;capricorn86](https://togithub.com/capricorn86)** in task [#&#8203;1241](https://togithub.com/capricorn86/happy-dom/issues/1241) ### [`v13.3.3`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.3.3) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.3.2...v13.3.3) ##### 👷‍♂️ Patch fixes - Updates documentation. ([#&#8203;1240](https://togithub.com/capricorn86/happy-dom/issues/1240)) ### [`v13.3.2`](https://togithub.com/capricorn86/happy-dom/compare/v13.3.1...v13.3.2) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.3.1...v13.3.2) ### [`v13.3.1`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.3.1) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.3.0...v13.3.1) ##### 👷‍♂️ Patch fixes - Improves documentation for "[@&#8203;happy-dom/global-registrator](https://togithub.com/happy-dom/global-registrator)". ([#&#8203;1233](https://togithub.com/capricorn86/happy-dom/issues/1233)) ### [`v13.3.0`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.3.0) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.2.2...v13.3.0) ##### 🎨 Features - Adds support for sending in Window options to `GlobalRegistrator.register()` in "[@&#8203;happy-dom/global-registrator](https://togithub.com/happy-dom/global-registrator)". ([#&#8203;1105](https://togithub.com/capricorn86/happy-dom/issues/1105)) ##### 👷‍♂️ Patch fixes - Fixes problem with getters and setters not being added to the global object when using `GlobalRegistrator.register()` in "[@&#8203;happy-dom/global-registrator](https://togithub.com/happy-dom/global-registrator)". ([#&#8203;1105](https://togithub.com/capricorn86/happy-dom/issues/1105)) ### [`v13.2.2`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.2.2) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.2.1...v13.2.2) ##### 👷‍♂️ Patch fixes - Fixes issue where it is not possible to set `global.location.href` when using Happy DOM in the global scope (e.g. by using [@&#8203;happy-dom/global-registrator](https://togithub.com/happy-dom/global-registrator)). ([#&#8203;1230](https://togithub.com/capricorn86/happy-dom/issues/1230)) ### [`v13.2.1`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.2.1) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.2.0...v13.2.1) ##### 👷‍♂️ 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`. ([#&#8203;1227](https://togithub.com/capricorn86/happy-dom/issues/1227)) - Adds non-implemented element classes to the export in "index.js" by exporting `HTMLElement` as the non-implemented class name. ([#&#8203;1227](https://togithub.com/capricorn86/happy-dom/issues/1227)) ### [`v13.2.0`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.2.0) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.1.4...v13.2.0) ##### 🎨 Features - Removes unnecessary dependencies. ([#&#8203;1215](https://togithub.com/capricorn86/happy-dom/issues/1215)) ### [`v13.1.4`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.1.4) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.1.3...v13.1.4) ##### 👷‍♂️ Patch fixes - Adds submitter to `SubmitEvent` instances dispatched by `HTMLInputElement` and `HTMLButtonElement` . ([#&#8203;1173](https://togithub.com/capricorn86/happy-dom/issues/1173)) *** Thank you [@&#8203;aaltepet](https://togithub.com/aaltepet) for your contribution! ### [`v13.1.3`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.1.3) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.1.2...v13.1.3) ##### 👷‍♂️ Patch fixes - Throws an error when providing an invalid selector to `querySelector()` and `querySelectorAll()`. ([#&#8203;1170](https://togithub.com/capricorn86/happy-dom/issues/1170)) *** Thank you [@&#8203;btea](https://togithub.com/btea) for your contribution! ### [`v13.1.2`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.1.2) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.1.1...v13.1.2) ##### 👷‍♂️ Patch fixes - `Selection.anchorOffset`, `Selection.baseOffset`, `Selection.focusOffset` and `Selection.extendOffset` should return 0 when no range has been added. ([#&#8203;1163](https://togithub.com/capricorn86/happy-dom/issues/1163)) *** Thank you [@&#8203;seanogdev](https://togithub.com/seanogdev) for your contribution! ### [`v13.1.1`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.1.1) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.1.0...v13.1.1) ##### 👷‍♂️ Patch fixes - Support whitespace with multiple spaces, line breaks or tabs in `DOMTokenList` (e.g. `<div class=" class1 class2 ">`). ([#&#8203;1168](https://togithub.com/capricorn86/happy-dom/issues/1168)) *** Thank you [@&#8203;takenspc](https://togithub.com/takenspc) for your contribution! ### [`v13.1.0`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.1.0) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.0.7...v13.1.0) ##### 🎨 Features - Makes properties into getters and setters according to spec in all nodes. ([#&#8203;1188](https://togithub.com/capricorn86/happy-dom/issues/1188)) - Adds support for adopted stylesheets to `Window.getComputedStyle()`. ([#&#8203;1188](https://togithub.com/capricorn86/happy-dom/issues/1188)) ### [`v13.0.7`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.0.7) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.0.6...v13.0.7) ##### 👷‍♂️ Patch fixes - Fixes issue related to using fake timers in Vitest making the test get stuck. ([#&#8203;1210](https://togithub.com/capricorn86/happy-dom/issues/1210)) ### [`v13.0.6`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.0.6) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.0.5...v13.0.6) ##### 👷‍♂️ Patch fixes - Fixes problem related to exception thrown when creating a `Node` in the constructor of a custom element. ([#&#8203;1207](https://togithub.com/capricorn86/happy-dom/issues/1207)) ### [`v13.0.5`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.0.5) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.0.4...v13.0.5) ##### 👷‍♂️ Patch fixes - Fixes issue related to "[@&#8203;happy-dom/jest-environment](https://togithub.com/happy-dom/jest-environment)" not waiting for all operations to abort before closing. ([#&#8203;1205](https://togithub.com/capricorn86/happy-dom/issues/1205)) ### [`v13.0.4`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.0.4) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.0.3...v13.0.4) ##### 👷‍♂️ Patch fixes - Adds support for fallback values when declaring a CSS variable (e.g. "var(--my-var, #FFF)"). ([#&#8203;1192](https://togithub.com/capricorn86/happy-dom/issues/1192)) ### [`v13.0.3`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.0.3) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.0.2...v13.0.3) ##### 👷‍♂️ Patch fixes - Fixes problem with clearTimeout(), clearInterval() and cancelAnimationFrame() not supporting number values. ([#&#8203;1201](https://togithub.com/capricorn86/happy-dom/issues/1201)) ### [`v13.0.2`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.0.2) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.0.1...v13.0.2) ##### 👷‍♂️ Patch fixes - Removes unused browser setting. ([#&#8203;1199](https://togithub.com/capricorn86/happy-dom/issues/1199)) ### [`v13.0.1`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.0.1) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.0.0...v13.0.1) ##### 🎨 Features - Adds support for `BrowserFrame.viewport`. ([#&#8203;466](https://togithub.com/capricorn86/happy-dom/issues/466)) - Adds support for `Window.resizeTo()`. ([#&#8203;466](https://togithub.com/capricorn86/happy-dom/issues/466)) - Adds support for `Window.resizeBy()`. ([#&#8203;466](https://togithub.com/capricorn86/happy-dom/issues/466)) ##### 👷‍♂️ Patch fixes - Fixes issues related to viewport not being kept when navigating to new a URL. ([#&#8203;466](https://togithub.com/capricorn86/happy-dom/issues/466)) ### [`v13.0.0`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.0.0) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v12.10.3...v13.0.0) ##### 💣 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. ([#&#8203;466](https://togithub.com/capricorn86/happy-dom/issues/466)) ##### 🎨 Features - Adds support for a Browser API similar to [Puppeteer](https://pptr.dev/) and [Playwright](https://playwright.dev/). 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](https://togithub.com/capricorn86/happy-dom/wiki). ([#&#8203;466](https://togithub.com/capricorn86/happy-dom/issues/466)) - Improves security by not exposing sensitive internal logic to scripts running within the Happy DOM Browser. ([#&#8203;466](https://togithub.com/capricorn86/happy-dom/issues/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. ([#&#8203;466](https://togithub.com/capricorn86/happy-dom/issues/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. ([#&#8203;466](https://togithub.com/capricorn86/happy-dom/issues/466)) - Improves support for `XMLHttpRequest`. It now supports the GZip, Deflate and Brotli encodings. ([#&#8203;466](https://togithub.com/capricorn86/happy-dom/issues/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](https://jestjs.io/) and [Vitest](https://vitest.dev/), as it collides with their error listener. ([#&#8203;466](https://togithub.com/capricorn86/happy-dom/issues/466)) - Adds support for `Ẁindow.open()`. ([#&#8203;466](https://togithub.com/capricorn86/happy-dom/issues/466)) - Adds support for `Ẁindow.close()`. This function should now be used when tearing down the environment. ([#&#8203;466](https://togithub.com/capricorn86/happy-dom/issues/466)) - Improves support for cookies. ([#&#8203;466](https://togithub.com/capricorn86/happy-dom/issues/466)) - Improves support for `HTMLIFrameElement`. ([#&#8203;466](https://togithub.com/capricorn86/happy-dom/issues/466)) - Changes export of types to use "import type" and "export type" in "index.js". This will allow transpilers/compilers to optimize better. ([#&#8203;466](https://togithub.com/capricorn86/happy-dom/issues/466)) - Adds support for navigating when clicking on an anchor link. ([#&#8203;466](https://togithub.com/capricorn86/happy-dom/issues/466)) - Adds support for navigating when setting `Location.href`. ([#&#8203;466](https://togithub.com/capricorn86/happy-dom/issues/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. ([#&#8203;466](https://togithub.com/capricorn86/happy-dom/issues/466)) - Deprecates "[@&#8203;happy-dom/uncaught-exception-observer](https://togithub.com/happy-dom/uncaught-exception-observer)" as the functionality is supported by "happy-dom" out of the box now. ([#&#8203;466](https://togithub.com/capricorn86/happy-dom/issues/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. ([#&#8203;466](https://togithub.com/capricorn86/happy-dom/issues/466)) ##### 👷‍♂️ Patch fixes - Improves the check for if the property is a class to avoid that it gets bound in "[@&#8203;happy-dom/global-registrator](https://togithub.com/happy-dom/global-registrator)". We only want functions to get bound to the global context. ([#&#8203;466](https://togithub.com/capricorn86/happy-dom/issues/466)) - Fixes bug where `new Document()` did'nt work according to spec. ([#&#8203;466](https://togithub.com/capricorn86/happy-dom/issues/466)) - Fixes bug where several Element classes wheren't available as properties on `Window`. ([#&#8203;466](https://togithub.com/capricorn86/happy-dom/issues/466)) - Fixes bug in `Document.importNode()` where it didn't change `ownerDocument` on child nodes. ([#&#8203;466](https://togithub.com/capricorn86/happy-dom/issues/466)) - Resets static `ownerDocument` state used when creating Node instances, so that it can be garbage collected if not used anymore. ([#&#8203;466](https://togithub.com/capricorn86/happy-dom/issues/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`](https://togithub.com/capricorn86/happy-dom/releases/tag/v12.10.3) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v12.10.2...v12.10.3) ##### 👷‍♂️ Patch fixes - Fix for week being wrong sometimes as it is not calculated as UTC in `HTMLInputElement.valueAsDate()`. ([#&#8203;1144](https://togithub.com/capricorn86/happy-dom/issues/1144)) *** Thank you [@&#8203;IGx89](https://togithub.com/IGx89) for your contribution! ### [`v12.10.2`](https://togithub.com/capricorn86/happy-dom/releases/tag/v12.10.2) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v12.10.1...v12.10.2) ##### 👷‍♂️ Patch fixes - `Element.cloneNode()` should not clone scroll properties. ([#&#8203;1148](https://togithub.com/capricorn86/happy-dom/issues/1148)) </details> --- ### 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/andipaetzold/react-firehooks). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMjcuMCIsInVwZGF0ZWRJblZlciI6IjM3LjE1My4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent c44bafb commit 1093f76

File tree

2 files changed

+25
-28
lines changed

2 files changed

+25
-28
lines changed

package-lock.json

Lines changed: 24 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"eslint-plugin-react": "7.33.2",
6767
"eslint-plugin-react-hooks": "4.6.0",
6868
"firebase": "10.5.0",
69-
"happy-dom": "12.10.1",
69+
"happy-dom": "13.3.8",
7070
"husky": "9.0.2",
7171
"lint-staged": "15.0.2",
7272
"prettier": "3.0.3",

0 commit comments

Comments
 (0)