Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency happy-dom to v7 #251

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 5, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
happy-dom 6.0.4 -> 7.7.0 age adoption passing confidence

Release Notes

capricorn86/happy-dom

v7.7.0

Compare Source

🎨 Features
  • Adds support for HTMLAnchorElement. (#​204)

v7.6.7

Compare Source

👷‍♂️ Patch fixes
  • OptionElement.value should return Element.textContent as fallback. (#​648)

v7.6.6

Compare Source

👷‍♂️ Patch fixes
  • Element.innerHTML should be able to handle other types than string. (#​639)

v7.6.5

Compare Source

👷‍♂️ Patch fixes
  • Fixes problem with HTMLSelectElement.selectedIndex not reflecting the select attribute set on options. (#​637)

v7.6.4

Compare Source

👷‍♂️ Patch fixes
  • Makes it possible to set a CSS string to HTMLElement.style (e.g. HTMLElement.style = 'color: red'). (#​628)

v7.6.3

Compare Source

👷‍♂️ Patch fixes
  • Multiples fixes related to how HTMLSelectElement.selectedIndex and HTMLOptionElement.selected are handled. (#​635)
  • Setting HTMLSelectElement.selectedIndex to an invalid value will no longer cause an exception to be thrown. (#​635)

v7.6.2

Compare Source

👷‍♂️ Patch fixes
  • Adds support for wildcard searches to Element.getElementsByTagName() and Document.getElementsByTagName() (improves jQuery support). (#​633)

v7.6.1

Compare Source

👷‍♂️ Patch fixes
  • Fixes problem with sending in URL to the Window contructor (e.g. new Window({ url })). (#​627)

v7.6.0

Compare Source

🎨 Features
  • Adds support for NamedNodeMap which is used by Element.attributes. (#​308)

v7.5.14

Compare Source

👷‍♂️ Patch fixes
  • Fixes problem with Element.matches() failing when using non-matching descendant selector on element detached from document. (#​622)

v7.5.13

Compare Source

👷‍♂️ Patch fixes
  • Fixes problem related to Element.matches() failing when using a non-matching descendant selector on an element attached to document. (#​622)

v7.5.12

Compare Source

👷‍♂️ Patch fixes
  • HTMLOptionElement.value should not sanitize the value by removing new lines and trimming it. This caused a crash when the value was set to another type than "string". (#​620)

v7.5.11

Compare Source

👷‍♂️ Patch fixes
  • HTMLSelectElement.options.add() and HTMLSelectElement.options.remove() has to update the actual DOM
  • HTMLSelectElement.appendChild(), HTMLSelectElement.beforeChild() and HTMLSelectElement.removeChild() has to update the option elements in HTMLSelectElement.options
  • HTMLSelectElement.options.selectedIndex was not updated correctly after removing a selected option
  • Adds support for HTMLSelectElement.length
  • HTMLSelectElement now supports to do get options by index (e.g. select[1])

v7.5.10

Compare Source

👷‍♂️ Patch fixes
  • Adds check for if the active element is of type Element before handling custom elements by calling Element.getRootNode(). (#​467)

v7.5.9

Compare Source

👷‍♂️ Patch fixes
  • Fixes problem with Document.activeElement still pointing to an Element that has been disconnected from the DOM. (#​456)

v7.5.8

Compare Source

👷‍♂️ Patch fixes
  • Element.matches() not working properly with descendant combinators. (#​614)

v7.5.7

Compare Source

👷‍♂️ Patch fixes
  • Fixes issue related to sending in other types of values than string to CSSStyleDeclaration properties, causing the property parser to throw an error. (#​612)

v7.5.6

Compare Source

👷‍♂️ Patch fixes
  • Does not set Event.target and Event.currrentTarget directly to solve a problem with Vitest typechecking the internals of Happy DOM. (#​544)

v7.5.5

Compare Source

v7.5.4

Compare Source

v7.5.3

Compare Source

v7.5.2

Compare Source

👷‍♂️ Patch fixes
  • Fixes problem in the "global-registrator" package where unregister only deletes/pops half the registered keys. (#​603)

v7.5.1

Compare Source

👷‍♂️ Patch fixes
  • Add toStringTag in Element class to handle Object.prototype.toString.call on implemented element classes. (#​540)

v7.5.0

Compare Source

🎨 Features
  • Improves performance of window.getComputedStyle() by adding a cache that gets updated whenever something happens to the DOM tree (appendChild, removeChild etc.). (#​599)
  • Adds support for CSS selector priority to window.getComputedStyle(). (#​599)
  • Adds support for selectors with parent elements to Element.matches(). (#​599)

v7.4.0

Compare Source

🎨 Features
  • Adds support for the "on{event}" properties on all Node types. This will solve the problem of React believing that Happy DOM is a legacy browser, which caused an error where it could not find the method detachEvent(). (#​534)

v7.3.0

Compare Source

v7.2.0

Compare Source

🎨 Features
  • Adds support for HTMLMediaElement. (#​475)

v7.1.1

Compare Source

👷‍♂️ Patch fixes
  • Fixes problem in the "global-registrator" package that makes it impossible to register Happy DOM globally again after unregistering it. (#​584)

v7.1.0

Compare Source

🎨 Features
  • Adds support for HTMLButtonElement. (#​581)

v7.0.6

Compare Source

👷‍♂️ Patch fixes
  • Updates the documentation for how to set window.innerWidth and window.innerHeight. (#​592)

v7.0.5

Compare Source

👷‍♂️ Patch fixes
  • Fixes issue related to querySelector() and querySelectorAll() not supporting queries combined with IDs (e.g. "tag-name#id"). (#​576)

v7.0.4

Compare Source

👷‍♂️ Patch fixes
  • Fixes problem with parsing of childless elements whose tag names are in different case. (#​566)

v7.0.3

Compare Source

👷‍♂️ Patch fixes
  • Fixes bug related to parentNode being null in TreeWalker. (#​558)

v7.0.2

Compare Source

👷‍♂️ Patch fixes
  • Use current timestamp in window.requestAnimationFrame() callback. (#​554)

v7.0.1

Compare Source

👷‍♂️ Patch fixes
  • Github action stuck in pull requests. (#​586)

v7.0.0

Compare Source

💣 Breaking Changes
  • Changes how CSS properties in CSSStyleDeclaration are parsed, which potentially can break applications (#​344)
  • Window.innerWidth and Window.innerHeight is now set to 0 as it is possible to send in the values to the constructor (#​344)
🎨 Features
  • Improves support for CSSStyleDeclaration (#​344)
    • Parsing and validating of shorthand CSS properties (border, font, background etc.)
    • Parsing and validating of the most common CSS properties (width, height, visibility etc.)
    • Adds support for CSSStyleDeclaration.getPropertyPriority()
    • Adds a cache to improve performance
    • Adds typescript typing for all CSS properties
  • Improves support for Window.getComputedStyle() (#​344)
    • Applies styles from <style> and <link> elements
    • Handles inherited properties
    • Handles default values for "display" and "direction"
    • Resolves CSS variables
    • Handles media queries
  • Improves support for CSSStyleSheet (#​344)
    • Adds a cache to prevent re-parsing new CSS strings
    • Adds support for CSSContainerRule
    • Only create instances of CSSStyleDeclaration in CSS rules when accesing the "style" property
    • Makes CSSRule, CSSContainerRule, CSSFontFaceRule, CSSKeyframeRule, CSSKeyframesRule, CSSMediaRule and CSSStyleRule available on the Window instance
  • Improves support for Attr (#​344)
    • It now extends Node
  • Improves support for HTMLElement.innerText (#​344)
    • It will now render the text based on the computed style of the elements
  • Improves support for window.matchMedia() (#​344)
    • It will now listen to the window resize event
    • Adds support for matching against "min-width", "max-width", "min-height" and "max-height"
  • Adds support for sending "innerWidth", "innerHeight" and "url" to the Window constructor. (#​344)
  • Adds support for setting "innerWidth" and "innerHeight". (#​344)
    • Example: window.happyDOM.setInnerWidth(1024)
👷‍♂️ Patch fixes
  • HTMLStyleElement.style no longer returns new instances of CSSStyleSheet (#​344)
  • CSSStyleSheet.insertRule() did not insert the rule on the correct position when sending in an index (#​344)
  • ChildNode.replaceWith() did not throw an exception when there was no parent, allowing the code to continue (#​344)

Hello everyone! 👋

I'm sorry it's taken so long for this release. A lot has happened in my private and work life and I haven't been able to spend as much time on Happy DOM as I would have liked.

I will have more time to put on Happy DOM now again, so stay tuned for many more releases 😉


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. View repository job log here.

@renovate renovate bot force-pushed the renovate/happy-dom-7.x branch 14 times, most recently from 65e6c92 to 1726594 Compare October 12, 2022 18:37
@renovate renovate bot force-pushed the renovate/happy-dom-7.x branch 5 times, most recently from ba55e0c to 2241303 Compare October 20, 2022 14:32
@renovate renovate bot force-pushed the renovate/happy-dom-7.x branch 4 times, most recently from c9bd299 to 9c48329 Compare October 26, 2022 01:28
@renovate renovate bot force-pushed the renovate/happy-dom-7.x branch 2 times, most recently from e3d4b68 to f134e11 Compare November 9, 2022 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants