From 26925c96e465207771fc2628c253d9b41fe645b9 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Tue, 19 Mar 2024 07:34:32 +0000 Subject: [PATCH] chore: bump up happy-dom version to v14 (#6187) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![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) | [`^13.4.1` -> `^14.0.0`](https://renovatebot.com/diffs/npm/happy-dom/13.4.1/14.0.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/happy-dom/14.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/happy-dom/14.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/happy-dom/13.4.1/14.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/happy-dom/13.4.1/14.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
capricorn86/happy-dom (happy-dom) ### [`v14.0.0`](https://togithub.com/capricorn86/happy-dom/releases/tag/v14.0.0) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.10.1...v14.0.0) ##### :bomb: Breaking Changes - Removes interfaces for Node's, as they are no longer needed as newer versions of Typescript can handle circular dependencies - By **[@​capricorn86](https://togithub.com/capricorn86)** in task [#​1330](https://togithub.com/capricorn86/happy-dom/issues/1330) ### [`v13.10.1`](https://togithub.com/capricorn86/happy-dom/compare/v13.10.0...a6debf50e909766e0e5442b9e4c5ebe8dadb1cd1) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.10.0...v13.10.1) ### [`v13.10.0`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.10.0) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.9.0...v13.10.0) ##### :art: Features - Adds support for the Headers.getSetCookie - By **[@​betterqualityassuranceuser](https://togithub.com/betterqualityassuranceuser)** in task [#​1315](https://togithub.com/capricorn86/happy-dom/issues/1315) ### [`v13.9.0`](https://togithub.com/capricorn86/happy-dom/compare/v13.8.6...9d6d1f39aeb2cbfce914277ce22264ee88290582) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.8.6...v13.9.0) ### [`v13.8.6`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.8.6) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.8.5...v13.8.6) ##### :construction_worker_man: Patch fixes - Fixes bug related to multiple fallbacks to CSS variables being set incorrectly - By **[@​odanado](https://togithub.com/odanado)** in task [#​1308](https://togithub.com/capricorn86/happy-dom/issues/1308) ### [`v13.8.5`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.8.5) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.8.4...v13.8.5) ##### :construction_worker_man: 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](https://togithub.com/capricorn86)** in task [#​1122](https://togithub.com/capricorn86/happy-dom/issues/1122) - Adds support for using multiple pseudo query selectors (e.g. ":first-of-type:last-of-type") - By **[@​capricorn86](https://togithub.com/capricorn86)** in task [#​1122](https://togithub.com/capricorn86/happy-dom/issues/1122) - Fixes minor typo in `HTMLElementConfig` - By **[@​danbentley](https://togithub.com/danbentley)** in task [#​1306](https://togithub.com/capricorn86/happy-dom/issues/1306) ### [`v13.8.4`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.8.4) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.8.3...v13.8.4) ##### :construction_worker_man: Patch fixes - Adds support for returning URL relative to window location in `HTMLLinkElement.href`, `HTMLImageElement.src` and `HTMLScriptElement.src` - By **[@​capricorn86](https://togithub.com/capricorn86)** in task [#​1135](https://togithub.com/capricorn86/happy-dom/issues/1135) ### [`v13.8.3`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.8.3) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.8.2...v13.8.3) ##### :construction_worker_man: Patch fixes - Fixes problem where some elements (e.g. `
  • `, `

    ` or ``) 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](https://togithub.com/capricorn86)** in task [#​1039](https://togithub.com/capricorn86/happy-dom/issues/1039) ### [`v13.8.2`](https://togithub.com/capricorn86/happy-dom/compare/v13.8.1...4970c699d07d97c4a9839e25c831eef230445abf) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.8.1...v13.8.2) ### [`v13.8.1`](https://togithub.com/capricorn86/happy-dom/compare/v13.8.0...08cd42601d62f39d42d01d902a56d2441f7128e0) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.8.0...v13.8.1) ### [`v13.8.0`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.8.0) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.7.8...v13.8.0) ##### :art: Features - Adds support for Element.scrollIntoView - By **[@​capricorn86](https://togithub.com/capricorn86)** in task [#​1051](https://togithub.com/capricorn86/happy-dom/issues/1051) ### [`v13.7.8`](https://togithub.com/capricorn86/happy-dom/compare/v13.7.7...0dfe51d6006c09b2f12ec2ec4f15858ae6450060) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.7.7...v13.7.8) ### [`v13.7.7`](https://togithub.com/capricorn86/happy-dom/compare/v13.7.6...v13.7.7) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.7.6...v13.7.7) ### [`v13.7.6`](https://togithub.com/capricorn86/happy-dom/compare/v13.7.5...54d1ae080f4e91ae09bb586ad01f82050cf5db15) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.7.5...v13.7.6) ### [`v13.7.5`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.7.5) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.7.4...v13.7.5) ##### :construction_worker_man: Patch fixes - Modify option node to return empty string even if the value is empty string - In task [#​1138](https://togithub.com/capricorn86/happy-dom/issues/1138) ### [`v13.7.4`](https://togithub.com/capricorn86/happy-dom/compare/v13.7.3...16396f9d1f114ad70c926f56da40a31382aeabcb) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.7.3...v13.7.4) ### [`v13.7.3`](https://togithub.com/capricorn86/happy-dom/compare/v13.7.2...1bd90205d67aa78de52ea5d1ebb3c8f8db2364af) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.7.2...v13.7.3) ### [`v13.7.2`](https://togithub.com/capricorn86/happy-dom/compare/v13.7.1...3b4339d709bb9b097a8302996dc4af356f496e1a) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.7.1...v13.7.2) ### [`v13.7.1`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.7.1) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.7.0...v13.7.1) ##### :construction_worker_man: Patch fixes - Adds support for cloning body in `Response.clone()` - By **[@​cprecioso](https://togithub.com/cprecioso)** in task [#​1216](https://togithub.com/capricorn86/happy-dom/issues/1216) ### [`v13.7.0`](https://togithub.com/capricorn86/happy-dom/compare/v13.6.2...4c808b62f8dcfb5c85d4ac4e94b8e2ba58195e86) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.6.2...v13.7.0) ### [`v13.6.2`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.6.2) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.6.1...v13.6.2) ##### :art: Features - Add support for the ":target" pseudo query selector - By **[@​Schleuse](https://togithub.com/Schleuse)** in task [#​1221](https://togithub.com/capricorn86/happy-dom/issues/1221) ##### :construction_worker_man: Patch fixes - The Event listener method `handleEvent()` should be called within the listener scope - By **[@​titouanmathis](https://togithub.com/titouanmathis)** in task [#​1182](https://togithub.com/capricorn86/happy-dom/issues/1182) ### [`v13.6.1`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.6.1) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.6.0...v13.6.1) ##### :construction_worker_man: Patch fixes - Improves validation for the options argument in `MutationsObserver.observe()` - By **[@​romansp](https://togithub.com/romansp)** in task [#​1223](https://togithub.com/capricorn86/happy-dom/issues/1223) ### [`v13.6.0`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.6.0) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.5.3...v13.6.0) ##### :art: Features - Adds support for `Node.isEqualNode()` - By **[@​aralroca](https://togithub.com/aralroca)** in task [#​1263](https://togithub.com/capricorn86/happy-dom/issues/1263) ##### :construction_worker_man: Patch fixes - Adds support for the property `Document.forms` - By **[@​juandiegombr](https://togithub.com/juandiegombr)** in task [#​1260](https://togithub.com/capricorn86/happy-dom/issues/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](https://togithub.com/zachlankton)** in task [#​1217](https://togithub.com/capricorn86/happy-dom/issues/1217) ### [`v13.5.3`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.5.3) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.5.2...v13.5.3) ##### :construction_worker_man: Patch fixes - Improves check for invalid query selectors - By **[@​btea](https://togithub.com/btea)** in task #​0 ### [`v13.5.2`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.5.2) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.5.1...v13.5.2) ##### :construction_worker_man: Patch fixes - Adds unit test for Vue component with SVG - By **[@​capricorn86](https://togithub.com/capricorn86)** in task [#​1271](https://togithub.com/capricorn86/happy-dom/issues/1271) ### [`v13.5.1`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.5.1) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.5.0...v13.5.1) ##### :construction_worker_man: Patch fixes - Fixes problem with query selectors not finding SVG elements after the v13.4.0 release - By **[@​capricorn86](https://togithub.com/capricorn86)** in task [#​1274](https://togithub.com/capricorn86/happy-dom/issues/1274) ### [`v13.5.0`](https://togithub.com/capricorn86/happy-dom/releases/tag/v13.5.0) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v13.4.1...v13.5.0) ##### :art: Features - Use the Node.js `ReadableStream` class for the properties `Response.body` and `Request.body` - By **[@​diego-toro](https://togithub.com/diego-toro)** and **[@​capricorn86](https://togithub.com/capricorn86)** in task [#​1180](https://togithub.com/capricorn86/happy-dom/issues/1180) - The previous implementation used the Node.js `Stream.Readable` class, which is not fully spec compliant --- ### 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](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/toeverything/AFFiNE). --- package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 9c8d8902e7..5cf48ea747 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ "eslint-plugin-unused-imports": "^3.1.0", "eslint-plugin-vue": "^9.22.0", "fake-indexeddb": "5.0.2", - "happy-dom": "^13.4.1", + "happy-dom": "^14.0.0", "husky": "^9.0.11", "lint-staged": "^15.2.2", "msw": "^2.2.1", diff --git a/yarn.lock b/yarn.lock index 8e4f41fcf9..84ed689d63 100644 --- a/yarn.lock +++ b/yarn.lock @@ -575,7 +575,7 @@ __metadata: eslint-plugin-unused-imports: "npm:^3.1.0" eslint-plugin-vue: "npm:^9.22.0" fake-indexeddb: "npm:5.0.2" - happy-dom: "npm:^13.4.1" + happy-dom: "npm:^14.0.0" husky: "npm:^9.0.11" lint-staged: "npm:^15.2.2" msw: "npm:^2.2.1" @@ -22573,14 +22573,14 @@ __metadata: languageName: node linkType: hard -"happy-dom@npm:^13.4.1": - version: 13.4.1 - resolution: "happy-dom@npm:13.4.1" +"happy-dom@npm:^14.0.0": + version: 14.0.0 + resolution: "happy-dom@npm:14.0.0" dependencies: entities: "npm:^4.5.0" webidl-conversions: "npm:^7.0.0" whatwg-mimetype: "npm:^3.0.0" - checksum: 10/d5b16fc4908656fb73b284065a3c248fd9b5e45661d67afd3056a0ca36d515961c1c6db3089ab43104a41a609a0103e5eea8a154a1743ff5aaf28487e6e4fb32 + checksum: 10/5e618ec7ab64123c4b1118da756fec7d281d70da460d38e713be5a9064cc676d82da66f9adf109753413bf8659d8c204cb116a9d9e5d11748449c9f0383ad980 languageName: node linkType: hard