posva / vue-router-mock

๐Ÿงช Easily mock routing interactions in your Vue apps
MIT License
201 stars 7 forks source link

chore(deps): update dependency happy-dom to v12 #214

Closed renovate[bot] closed 1 year ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
happy-dom ^10.11.2 -> ^12.1.2 age adoption passing confidence

Release Notes

capricorn86/happy-dom (happy-dom) ### [`v12.1.2`](https://togithub.com/capricorn86/happy-dom/releases/tag/v12.1.2) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v12.1.1...v12.1.2) ##### :construction_worker_man: Patch fixes - Adds support for `Document.referrer`. ([#​653](https://togithub.com/capricorn86/happy-dom/issues/653)) ### [`v12.1.1`](https://togithub.com/capricorn86/happy-dom/releases/tag/v12.1.1) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v12.1.0...v12.1.1) ##### :construction_worker_man: 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](https://togithub.com/capricorn86/happy-dom/issues/802)) ### [`v12.1.0`](https://togithub.com/capricorn86/happy-dom/releases/tag/v12.1.0) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v12.0.1...v12.1.0) ##### :art: Features - Adds support for a new setting called [disableErrorCapturing](https://togithub.com/capricorn86/happy-dom/wiki/Settings#available-settings). 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](https://togithub.com/capricorn86/happy-dom/issues/1073)) ### [`v12.0.1`](https://togithub.com/capricorn86/happy-dom/releases/tag/v12.0.1) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v12.0.0...v12.0.1) ##### :construction_worker_man: Patch fixes - Fixes "\__dirname not defined" error when using ESM. The error was introduced in [v12.0.0](https://togithub.com/capricorn86/happy-dom/releases/tag/v12.0.0). ([#​1069](https://togithub.com/capricorn86/happy-dom/issues/1069)) *** Thank you [@​ekwoka](https://togithub.com/ekwoka) for collaborating on a fix! ### [`v12.0.0`](https://togithub.com/capricorn86/happy-dom/releases/tag/v12.0.0) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v11.2.0...v12.0.0) ##### :bomb: 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](https://togithub.com/capricorn86/happy-dom/issues/1067)) ##### :art: 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](https://togithub.com/capricorn86/happy-dom/issues/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. ([#​1067](https://togithub.com/capricorn86/happy-dom/issues/1067)) ### [`v11.2.0`](https://togithub.com/capricorn86/happy-dom/releases/tag/v11.2.0) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v11.1.2...v11.2.0) ##### :art: Features - Adds support for `Window.crypto`. ([#​1050](https://togithub.com/capricorn86/happy-dom/issues/1050)) *** Thank you [@​Ayc0](https://togithub.com/Ayc0) for your contribution! ### [`v11.1.2`](https://togithub.com/capricorn86/happy-dom/releases/tag/v11.1.2) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v11.1.1...v11.1.2) ##### :construction_worker_man: Patch fixes - Only dispatch "close" event in `HTMLDialogElement.close()` when dialog was open. ([#​1064](https://togithub.com/capricorn86/happy-dom/issues/1064)) *** Thank you [@​Schleuse](https://togithub.com/Schleuse) for your contribution! ### [`v11.1.1`](https://togithub.com/capricorn86/happy-dom/releases/tag/v11.1.1) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v11.1.0...v11.1.1) ##### :construction_worker_man: Patch fixes - Adds support for the mime type "image/svg+xml" to `DOMParser.parseFromString()`. It will no longer add HTML tags when parsing SVGs. ([#​1040](https://togithub.com/capricorn86/happy-dom/issues/1040)) *** Thank you [@​drtimwright](https://togithub.com/drtimwright) for your contribution! ### [`v11.1.0`](https://togithub.com/capricorn86/happy-dom/releases/tag/v11.1.0) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v11.0.6...v11.1.0) ##### :art: Features - Add support for handling the `` element as a an SVG element. ([#​1034](https://togithub.com/capricorn86/happy-dom/issues/1034)) *** Thank you [@​ottoszika](https://togithub.com/ottoszika) for your contribution! ### [`v11.0.6`](https://togithub.com/capricorn86/happy-dom/releases/tag/v11.0.6) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v11.0.5...v11.0.6) ##### :construction_worker_man: Patch fixes - Fixes issue related to Jest module mocker in "[@​happy-dom/jest-environment](https://togithub.com/happy-dom/jest-environment)". ([#​1062](https://togithub.com/capricorn86/happy-dom/issues/1062)) ### [`v11.0.5`](https://togithub.com/capricorn86/happy-dom/releases/tag/v11.0.5) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v11.0.4...v11.0.5) ##### :construction_worker_man: Patch fixes - Increases timeout in `Window.happyDOM.whenAsyncComplete()`. ([#​1059](https://togithub.com/capricorn86/happy-dom/issues/1059)) ### [`v11.0.4`](https://togithub.com/capricorn86/happy-dom/releases/tag/v11.0.4) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v11.0.3...v11.0.4) ##### :construction_worker_man: Patch fixes - Jest was using `setTimeout` from Happy DOM internally for detecting when a test times out. This caused `Window.happyDOM.whenAsyncComplete()` and `Window.happyDOM.cancelAsync()` to not work as expected inside Jest. This is a bug in Jest, but this release adds a temporary fix to "[@​happy-dom/jest-environment](https://togithub.com/happy-dom/jest-environment)" until Jest has solved it. ([#​1057](https://togithub.com/capricorn86/happy-dom/issues/1057)) ### [`v11.0.3`](https://togithub.com/capricorn86/happy-dom/releases/tag/v11.0.3) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v11.0.2...v11.0.3) ##### :construction_worker_man: Patch fixes - Fixes an issue where the Promise returned by `Window.happyDOM.whenAsyncComplete()` was resolved to early in some scenarios. ([#​1053](https://togithub.com/capricorn86/happy-dom/issues/1053)) ### [`v11.0.2`](https://togithub.com/capricorn86/happy-dom/releases/tag/v11.0.2) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v11.0.1...v11.0.2) ##### :construction_worker_man: Patch fixes - Fixes documentation for packages in README.md. ([#​1047](https://togithub.com/capricorn86/happy-dom/issues/1047)) ### [`v11.0.1`](https://togithub.com/capricorn86/happy-dom/releases/tag/v11.0.1) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v11.0.0...v11.0.1) ##### :construction_worker_man: Patch fixes - Adds Virtual Console to Happy DOM index file. ([#​1045](https://togithub.com/capricorn86/happy-dom/issues/1045)) ### [`v11.0.0`](https://togithub.com/capricorn86/happy-dom/releases/tag/v11.0.0) [Compare Source](https://togithub.com/capricorn86/happy-dom/compare/v10.11.2...v11.0.0) ##### :bomb: Breaking Changes - Adds a new [Virtual Console](https://togithub.com/capricorn86/happy-dom/wiki/Virtual-Console) that by default will output all log entries to a Virtual Console Printer instead of using the global Node.js console. ([#​1030](https://togithub.com/capricorn86/happy-dom/issues/1030)) - Improves logic for catching errors in scripts, event listeners and timers. ([#​1030](https://togithub.com/capricorn86/happy-dom/issues/1030)) ##### :art: Features - Adds a new NPM package called [@​happy-dom/uncaught-exception-observer](https://togithub.com/capricorn86/happy-dom/tree/master/packages/uncaught-exception-observer) that can be used for catching uncaught errors that are not possible to catch on a local level. ([#​1030](https://togithub.com/capricorn86/happy-dom/issues/1030)) ##### :construction_worker_man: Patch fixes - Uses the default `eval()` for evaluating code instead of custom logic. This will make it possible to read context variables. [#​1025](https://togithub.com/capricorn86/happy-dom/issues/1025) *** Thank you [@​joeframbach](https://togithub.com/joeframbach) for contributing with logic related to the `eval()` functionality!

Configuration

๐Ÿ“… Schedule: Branch creation - "before 4am on Monday" (UTC), 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.



This PR has been generated by Mend Renovate. View repository job log here.

codecov[bot] commented 1 year ago

Codecov Report

Merging #214 (6374f49) into main (f7902dc) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #214   +/-   ##
=======================================
  Coverage   92.89%   92.89%           
=======================================
  Files           9        9           
  Lines         591      591           
  Branches       44       44           
=======================================
  Hits          549      549           
  Misses         42       42