billmcchesney1 / page.js

Micro client-side router inspired by the Express router
http://visionmedia.github.com/page.js
0 stars 0 forks source link

Update dependency jsdom to v12 - autoclosed #52

Closed mend-for-github-com[bot] closed 1 year ago

mend-for-github-com[bot] commented 1 year ago

This PR contains the following updates:

Package Type Update Change
jsdom devDependencies major ^11.5.1 -> ^12.0.0

By merging this PR, the below issues will be automatically resolved and closed:

Severity CVSS Score CVE GitHub Issue
High 7.5 CVE-2022-24999 #45

Release Notes

jsdom/jsdom ### [`v12.0.0`](https://togithub.com/jsdom/jsdom/blob/HEAD/Changelog.md#​1200) [Compare Source](https://togithub.com/jsdom/jsdom/compare/11.12.0...12.0.0) This major release brings along our [new resource loader API](https://togithub.com/jsdom/jsdom#loading-subresources), finally bringing all the capabilities from jsdom v9 to the new (jsdom v10+) API. Thanks very much to [@​sarvaje](https://togithub.com/sarvaje) for his work to make this possible! Breaking changes: - jsdom now requires Node.js v8. - Removed the old jsdom API, as the new API now has all the capabilities you need. - Updated our [`parse5`](https://togithub.com/inikulin/parse5/) dependency to v5, which changes the format of the node locations returned by `dom.nodeLocation()`. - Updated our [`whatwg-url`](https://togithub.com/jsdom/whatwg-url) dependency to v7, which changes the origin of `file:` URLs to be an opaque origin (and thus `file:` URLs are no longer same origin to each other). Other changes: - Added `countReset()`, `dir()` and `dirxml()` methods to `console`. - Added the `InputEvent` class. - Added `window.status`. - Added `htmlElement.draggable`. - Fixed `window.frameElement` to correctly return an actual `HTMLElement` instance, instead of a jsdom internal class. - Fixed cloning of `textarea` elements to preserve their values. - Fixed `select.selectedOptions` sometimes returning outdated results. - Fixed CSS selection APIs sometimes returning outdated results, especially for state pseudo-class selectors like `:checked`. - Fixed CSS selection APIs to throw an error for invalid selectors even when used on empty nodes. - Fixed `window.name` to default to the empty string, per spec, instead of `"nodejs"`. - Fixed the default User-Agent to say "unknown OS" instead of "undefined" when jsdom is used in web browsers. ### [`v11.12.0`](https://togithub.com/jsdom/jsdom/blob/HEAD/Changelog.md#​11120) [Compare Source](https://togithub.com/jsdom/jsdom/compare/11.11.0...11.12.0) - Added `window.localStorage`, `window.sessionStorage`, and `StorageEvent` support. These are currently only stored in-memory; file an issue if you need persistent (on-disk) storage capability so we can discuss adding that. This feature includes the new `storageQuota` option for controlling how much can be stored. - Added `element.closest()`. (caub) - Changed `hashchange` and `popstate` events to no longer bubble, per a specification update. - Fixed the old API in Node.js v10 to not throw, when given input that is not a valid file path (such as a typical HTML string). - Upgraded `cssstyle` to v1.0.0, bringing along various fixes to our CSS parser and object model. (eddies) - Upgraded `nwsapi` to v2.0.7, bringing along various fixes to our selector engine. ### [`v11.11.0`](https://togithub.com/jsdom/jsdom/blob/HEAD/Changelog.md#​11110) [Compare Source](https://togithub.com/jsdom/jsdom/compare/11.10.0...11.11.0) - Added `node.getRootNode()`. (FrecksterGIT) - Added `label.control`. (FrecksterGIT) - Added `el.labels` for form control elements. (FrecksterGIT) - Fixed the `contentType` of `Document`s created through `