[Snyk] Upgrade jsdom from 16.7.0 to 19.0.0 #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade jsdom from 16.7.0 to 19.0.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
Warning: This is a major version upgrade, and may be a breaking change.
Release notes
Package name: jsdom
jsdom.nodeLocation()
to returnundefined
when used on nodes that originate via fragment parsing (e.g., viainnerHTML
). Previously it would return based on the node location of the fragment string, which made node locations unreliable with respect to the original document source. This restores the behavior that was present in v14.0.0, and was accidentally broken in v14.1.0. (bakkot)window.close()
inside theWindow
'sload
event to no longer crash. (MattiasBuelens)connectedCallback
to fire in situations involving document fragments, which was broken in v18.0.1. (GrantGryczan)headers.append()
andheaders.set()
to normalize values. (MattiasBuelens)pageshow
events to havebubbles: true
andcancelable: true
. (MattiasBuelens)reason
property onAbortSignal
s, along with the correspondingreason
argument toabortSignal.abort()
andAbortSignal.abort()
. (MattiasBuelens)Range
s to update correctly after callingnode.normalize()
. (hgiesel)Range
s to update correctly after removing child nodes. (hgiesel)inputEl.valueAsDate = null
to no longer throw an exception, but instead set the value to the empty string. (simon-weimann)node.contains()
. (GrantGryczan)Potentially-breaking bug fixes:
ResourceLoader
'sstrictSSL
option (which defaults totrue
).Promise
andTypeError
instances are created to be the jsdom global, not the Node.js global. This could affect any code that usesinstanceof
.Other changes:
tagName
cache, allowing it to return a lowercase value once it's in the XML document. (LucasLefevre)Breaking change: Node v12 is now the minimum supported version.
AbortSignal.abort()
. (ninevra)x
andy
properties to the return value ofgetBoundingClientRect()
. (eiko)textareaEl.value
if thewrap=""
attribute is specified. (ninevra)<textarea>
s according to recent HTML Standard updates. (ninevra)getComputedStyle()
. (romain-trotard)Commit messages
Package name: jsdom
Compare
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:

🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs