From 29826e1c1ea210a45dfc3e4f192695e7287d3f5b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 17 Jun 2025 22:52:01 +0800 Subject: [PATCH] chore: bump up happy-dom version to v18 (#12799) 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) | [`^17.0.0` -> `^18.0.0`](https://renovatebot.com/diffs/npm/happy-dom/17.4.7/18.0.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/happy-dom/18.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/happy-dom/18.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/happy-dom/17.4.7/18.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/happy-dom/17.4.7/18.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
capricorn86/happy-dom (happy-dom) ### [`v18.0.1`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v18.0.1) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v18.0.0...v18.0.1) ##### :construction_worker_man: Patch fixes - Addresses an issue where an error occurred if the Element ID was set to the same name as a Window property with a null value - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1841](https://redirect.github.com/capricorn86/happy-dom/issues/1841) ### [`v18.0.0`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v18.0.0) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v17.6.3...v18.0.0) ##### :bomb: Breaking Changes - Makes the types for Happy DOM strict - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1154](https://redirect.github.com/capricorn86/happy-dom/issues/1154) - This makes it possible to use the option `skipLibCheck` set to "false" in the typescript configuration for projects with a strict configuration - This change has resulted in that some types has changed and is therefore considered as a breaking change - `BrowserContext.close()` now throws an error when trying to close the default context of a browser - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1154](https://redirect.github.com/capricorn86/happy-dom/issues/1154) ##### :art: Features - Adds support for `Browser.closed`, `BrowserContext.closed`, `BrowserPage.closed` and `BrowserFrame.closed` - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1154](https://redirect.github.com/capricorn86/happy-dom/issues/1154) - Adds support for `VirtualConsolePrinter.close()` and `VirtualConsolePrinter.closed` - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1154](https://redirect.github.com/capricorn86/happy-dom/issues/1154) - Adds support for `CookieContainer.clearCookies()` - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1154](https://redirect.github.com/capricorn86/happy-dom/issues/1154) ### [`v17.6.3`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v17.6.3) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v17.6.2...v17.6.3) ##### :construction_worker_man: Patch fixes - Removes global typescript definition that was used for custom elements - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1154](https://redirect.github.com/capricorn86/happy-dom/issues/1154) ### [`v17.6.2`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v17.6.2) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v17.6.1...v17.6.2) ##### :construction_worker_man: Patch fixes - Updates Typescript to the latest version - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1154](https://redirect.github.com/capricorn86/happy-dom/issues/1154) ### [`v17.6.1`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v17.6.1) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v17.6.0...v17.6.1) ##### :art: Features - Adds support for disabling validation of certificates, to allow for self-signed certificates to be used - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1763](https://redirect.github.com/capricorn86/happy-dom/issues/1763) - Read more about the new setting `fetch.disableStrictSSL` under [IBrowserSettings](https://redirect.github.com/capricorn86/happy-dom/wiki/IBrowserSettings) in the Wiki ### [`v17.6.0`](https://redirect.github.com/capricorn86/happy-dom/compare/v17.5.9...v17.6.0) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v17.5.9...v17.6.0) ### [`v17.5.9`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v17.5.9) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v17.5.8...v17.5.9) ##### :construction_worker_man: Patch fixes - Adds missing null check in `HTMLLinkElement` for a browser frame property that becomes null during teardown of a `Window` - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1800](https://redirect.github.com/capricorn86/happy-dom/issues/1800) ### [`v17.5.8`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v17.5.8) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v17.5.7...v17.5.8) ##### :construction_worker_man: Patch fixes - Incorrect cache matching caused `Element.classList` to return the wrong items - By **[@​capricorn86](https://redirect.github.com/capricorn86)** in task [#​1812](https://redirect.github.com/capricorn86/happy-dom/issues/1812) ### [`v17.5.7`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v17.5.7) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v17.5.6...v17.5.7) ##### :construction_worker_man: Patch fixes - Handle wider range of valid characters in unquoted attribute value parsing - By **[@​AudunWA](https://redirect.github.com/AudunWA)** in task [#​1817](https://redirect.github.com/capricorn86/happy-dom/issues/1817) ### [`v17.5.6`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v17.5.6) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v17.5.5...v17.5.6) ##### :construction_worker_man: Patch fixes - Removes the min and max boundary check when setting the value of an input field of type "date" - By **[@​zgrybus](https://redirect.github.com/zgrybus)** in task [#​1815](https://redirect.github.com/capricorn86/happy-dom/issues/1815) ### [`v17.5.5`](https://redirect.github.com/capricorn86/happy-dom/compare/v17.5.4...v17.5.5) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v17.5.4...v17.5.5) ### [`v17.5.4`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v17.5.4) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v17.5.3...v17.5.4) ##### :construction_worker_man: Patch fixes - Fixes issue where the body of a `ReadableStream` was locked after being cloned - By **[@​MarcMcIntosh](https://redirect.github.com/MarcMcIntosh)** in task [#​1493](https://redirect.github.com/capricorn86/happy-dom/issues/1493) ### [`v17.5.3`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v17.5.3) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v17.5.2...v17.5.3) ##### :construction_worker_man: Patch fixes - Adds `previousSibling` and `nextSibling` to `MutationObserver` records when a child is removed - By **[@​uxuip](https://redirect.github.com/uxuip)** in task [#​1803](https://redirect.github.com/capricorn86/happy-dom/issues/1803) ### [`v17.5.2`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v17.5.2) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v17.5.1...v17.5.2) ##### :construction_worker_man: Patch fixes - Adds support for the unicode characters `ยซ` and `ยป` in query selectors used by the React 19.1 "useId" hook - By **[@​terrymun](https://redirect.github.com/terrymun)** in task [#​1785](https://redirect.github.com/capricorn86/happy-dom/issues/1785) ### [`v17.5.1`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v17.5.1) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v17.5.0...v17.5.1) ##### :construction_worker_man: Patch fixes - Existing URL query string should be overwritten on form submit when method is "GET" - By **[@​rslabbert](https://redirect.github.com/rslabbert)** in task [#​1786](https://redirect.github.com/capricorn86/happy-dom/issues/1786) ### [`v17.5.0`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v17.5.0) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v17.4.9...v17.5.0) ##### :art: Features - Adds support for `XMLHttpRequest.overrideMimeType()` - By **[@​maxmil](https://redirect.github.com/maxmil)** in task [#​1782](https://redirect.github.com/capricorn86/happy-dom/issues/1782) ### [`v17.4.9`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v17.4.9) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v17.4.8...v17.4.9) ##### :construction_worker_man: Patch fixes - A disabled input element should not be parsed in `FormData` - By **[@​juandiegombr](https://redirect.github.com/juandiegombr)** in task [#​1790](https://redirect.github.com/capricorn86/happy-dom/issues/1790) ### [`v17.4.8`](https://redirect.github.com/capricorn86/happy-dom/releases/tag/v17.4.8) [Compare Source](https://redirect.github.com/capricorn86/happy-dom/compare/v17.4.7...v17.4.8) ##### :construction_worker_man: Patch fixes - Fixes issue where CSS variables where not being parsed in color functions - By **[@​hampustagerud](https://redirect.github.com/hampustagerud)** in task [#​1822](https://redirect.github.com/capricorn86/happy-dom/issues/1822)
--- ### 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 was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/toeverything/AFFiNE). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: fengmk2 --- package.json | 2 +- yarn.lock | 36 +++++++++++++++++++++++------------- 2 files changed, 24 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index e9bfd1341..4bdfed371 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ "eslint-plugin-simple-import-sort": "^12.1.1", "eslint-plugin-sonarjs": "^3.0.1", "eslint-plugin-unicorn": "^59.0.0", - "happy-dom": "^17.0.0", + "happy-dom": "^18.0.0", "husky": "^9.1.7", "lint-staged": "^16.0.0", "msw": "^2.6.8", diff --git a/yarn.lock b/yarn.lock index eea41617a..3ead49eb7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -782,7 +782,7 @@ __metadata: eslint-plugin-simple-import-sort: "npm:^12.1.1" eslint-plugin-sonarjs: "npm:^3.0.1" eslint-plugin-unicorn: "npm:^59.0.0" - happy-dom: "npm:^17.0.0" + happy-dom: "npm:^18.0.0" husky: "npm:^9.1.7" lint-staged: "npm:^16.0.0" msw: "npm:^2.6.8" @@ -15121,6 +15121,15 @@ __metadata: languageName: node linkType: hard +"@types/node@npm:^20.0.0": + version: 20.19.1 + resolution: "@types/node@npm:20.19.1" + dependencies: + undici-types: "npm:~6.21.0" + checksum: 10/2369a96a832a6e8111d2b996c56fb1b78b27fad0879de3e344ae2835697464e001d6fe813a11902348fc7dc63b9510000f3d2cd4bedadf2d3fce7b7bb7903444 + languageName: node + linkType: hard + "@types/nodemailer@npm:^6.4.17": version: 6.4.17 resolution: "@types/nodemailer@npm:6.4.17" @@ -15435,6 +15444,13 @@ __metadata: languageName: node linkType: hard +"@types/whatwg-mimetype@npm:^3.0.2": + version: 3.0.2 + resolution: "@types/whatwg-mimetype@npm:3.0.2" + checksum: 10/609607beeaa8b50b9e00541d8f571880d651b26b6b006103370099aba00784037de54433627c9fe775a5558e3d1fc09c2a48f54c8af91988e9bebeaf6a698eeb + languageName: node + linkType: hard + "@types/wicg-file-system-access@npm:^2020.9.5": version: 2020.9.8 resolution: "@types/wicg-file-system-access@npm:2020.9.8" @@ -22659,13 +22675,14 @@ __metadata: languageName: node linkType: hard -"happy-dom@npm:^17.0.0": - version: 17.4.7 - resolution: "happy-dom@npm:17.4.7" +"happy-dom@npm:^18.0.0": + version: 18.0.1 + resolution: "happy-dom@npm:18.0.1" dependencies: - webidl-conversions: "npm:^7.0.0" + "@types/node": "npm:^20.0.0" + "@types/whatwg-mimetype": "npm:^3.0.2" whatwg-mimetype: "npm:^3.0.0" - checksum: 10/8f6af6b3cfea459805fc2db7329ecdf9c7760d29cae20dde85983896de02f7bfcf265533850848a501c9813d94211c0737534c54d28b6c5b2c1bb13daa344211 + checksum: 10/27f6638d7b8bc67f97ddde7f004e47785ae1487e14065d7c6119adbb9ba7d8a53935d5714d37d9f60efef7f9b180a41c2b7fbbdffcea57b6d04060360a1a1d03 languageName: node linkType: hard @@ -34015,13 +34032,6 @@ __metadata: languageName: node linkType: hard -"webidl-conversions@npm:^7.0.0": - version: 7.0.0 - resolution: "webidl-conversions@npm:7.0.0" - checksum: 10/4c4f65472c010eddbe648c11b977d048dd96956a625f7f8b9d64e1b30c3c1f23ea1acfd654648426ce5c743c2108a5a757c0592f02902cf7367adb7d14e67721 - languageName: node - linkType: hard - "webm-muxer@npm:^5.0.3": version: 5.1.2 resolution: "webm-muxer@npm:5.1.2"