All Versions
224
Latest Version
Avg Release Cycle
36 days
Latest Release
-

Changelog History
Page 3

  • v16.1.0 Changes

    February 01, 2020
    • โž• Added console.timeLog().
    • ๐Ÿ”„ Changed Attr to extend Node, to align with specifications. (ExE-Boss)
    • ๐Ÿ”„ Changed <noscript> children to be parsed as nodes, instead of as text, when runScripts is left as the default of undefined. (ACHP)
    • ๐Ÿ’… Upgraded cssstyle to v2.1.0, which brings along fixes to handling of rgba() and hsl() colors. (kraynel)
    • ๐Ÿ›  Fixed some selection-related issues when manipulating the value of <input>s and <textarea>s. (Matthew-Goldberg)
    • ๐Ÿ›  Fixed various issues with setTimeout(), setInterval(), and requestAnimationFrame(), particularly around window closing and recursive calls.
  • v16.0.1 Changes

    January 20, 2020
    • ๐Ÿ›  Fixed Node v10 and v11 support when runScripts was set.
    • ๐Ÿ›  Fixed the behavior when changing an <input>'s type="" attribute.
    • ๐Ÿ›  Fixed input validation behavior for <input type="range"> when max="" is less than min="".
  • v16.0.0 Changes

    January 11, 2020

    ๐Ÿš€ For this release we'd like to welcome @pmdartus to the core team. Among other work, he's driven the heroic effort of constructor prototype and reform in jsdom and its dependencies over the last few months, to allow us to move away from shared constructors and prototypes, and set the groundwork for custom elements support (coming soon!).

    ๐Ÿ’ฅ Breaking changes:

    • ๐Ÿ‘ Node v10 is now the minimum supported version.
    • The dom.runVMScript() API has been replaced with the more general dom.getInternalVMContext() API.
    • ๐ŸŒ Each jsdom Window now creates new instances of all the web platform globals. That is, our old shared constructor and prototypes caveat is no longer in play.
    • Each jsdom Window now exposes all JavaScript-spec-defined globals uniformly. When runScripts is disabled, it exposes them as aliases of the ones from the outer Node.js environment. Whereas when runScripts is enabled, it exposes fresh copies of each global from the new scripting environment. (Previously, a few typed array classes would always be aliased, and with runScripts disabled, the other classes would not be exposed at all.)

    Other changes:

    • โž• Added the AbstractRange, Range, StaticRange, Selection, and window.getSelection() APIs.
    • โž• Added working constructors for Comment, Text, and DocumentFragment.
    • โž• Added valueAsDate, valueAsNumber, stepUp() and stepDown() to <input> elements. (kraynel)
    • โž• Added window.origin.
    • โœ‚ Removed document.origin.
    • ๐Ÿ›  Fixed <template> to work correctly inside XML documents.
    • ๐Ÿ›  Fixed some bugs which would cause jsdom to choose the wrong character encoding because it was failing to detect <meta charset> or <meta http-equiv="charset"> elements.
    • ๐Ÿ›  Fixed input.type to default to "text". (connormeredith)
    • ๐Ÿ›  Fixed incorrect validation errors for <input> with fractional values for their step="" attribute. (kontomondo)
    • ๐Ÿ›  Fixed incorrect validation errors on readonly <input> elements.
    • ๐Ÿ›  Fixed <input type="email" multiple pattern="..."> validation.
    • ๐Ÿ›  Fixed fileReader.readAsDataURL() to always base64-encode the result. (ytetsuro)
    • ๐Ÿ›  Fixed inserting <img> elements into documents without a browsing context to no longer crash when the canvas package is installed.
    • ๐Ÿ›  Fixed a memory leak when using window.setTimeout() or window.setInterval().
    • ๐Ÿ‘Œ Improved the performance of getComputedStyle(). (eps1lon)
  • v15.2.1 Changes

    November 04, 2019
    • ๐Ÿ›  Fixed JSDOM.fromURL() handling of URLs with hashes in them, to no longer send the hash to the server and append an extra copy of it when constructing the Document. (rchl)
    • ๐Ÿ›  Fixed focusing an already-focused element to correctly do nothing, instead of firing additional focus events. (eps1lon)
    • ๐Ÿ›  Fixed typo in the not-implemented message for mediaElement.addTextTrack(). (mtsmfm)
    • โฌ†๏ธ Upgraded nwsapi minimum version to 2.2.0, which fixes issues with ::-webkit- prefixed pseudo-elements and namespaced attribute selectors.
  • v15.2.0 Changes

    October 14, 2019
    • โž• Added basic style inheritance in getComputedStyle() for the 'visibility' property. This sets the foundation for further work on inheritance, cascading, and specificity. (eps1lon)
    • โž• Added shadowRoot.activeElement.
    • โž• Added readystatechange events during document loading.
    • โž• Added a stub for form.requestSubmit(), to match our existing stub for form.submit().
    • โšก๏ธ Changed el.tabIndex's default value, when no tabindex="" attribute was set, to reflect the updated specification.
    • โšก๏ธ Changed the exception thrown by el.attachShadow() on something that's already a shadow host, to reflect the updated specification.
    • ๐Ÿ›  Fixed the validation logic for <input type="range">.
    • ๐Ÿ›  Fixed selectEl.value when no <option> is selected to return the empty string, instead of the value of the first option. (tgohn)
    • ๐Ÿ›  Fixed various correctness issues with new FormData(formElement). (brendo)
    • ๐Ÿ›  Fixed error messages when parsing XML to include the filename, instead of using "undefined". (papandreou)
    • ๐Ÿ›  Fixed the logic for reflected properties to not be affected by overwriting of el.getAttributeNS() or el.setAttributeNS().
    • ๐Ÿ‘ Set canvas as an optional `peerDependency, which apparently helps with Yarn PnP support.
  • v15.1.1 Changes

    May 28, 2019
    • ๐Ÿ’… Moved the nonce property from HTMLScriptElement and HTMLStyleElement to HTMLElement. Note that it is still just a simple reflection of the attribute, and has not been updated for the rest of the changes in whatwg/html#2373.
    • ๐Ÿ›  Fixed the style and on<event> properties to properly track their related attributes for SVG elements. (kbruneel)
    • ๐Ÿ›  Fixed XMLHttpRequest merging preflight and response headers. (thiagohirata)
    • ๐Ÿ›  Fixed XMLHttpRequest reserializing content-type request headers unnecessarily. See whatwg/mimesniff#84 for more details. (thiagohirata)
    • ๐Ÿ›  Fixed element.tagName to be the ASCII uppercase of the element's qualified name, instead of the Unicode uppercase.
  • v15.1.0 Changes

    May 12, 2019
    • โž• Added the Headers class from the Fetch standard.
    • โž• Added the element.translate getter and setter.
    • ๐Ÿ›  Fixed synchronous XMLHttpRequest on the newly-released Node.js v12.
    • ๐Ÿ›  Fixed form.elements to exclude <input type="image"> elements.
    • ๐Ÿ›  Fixed event path iteration in shadow DOM cases, following spec fixes at whatwg/dom#686 and whatwg/dom#750.
    • ๐Ÿ›  Fixed pattern="" form control validation to apply the given regular expression to the whole string. (kontomondo)
  • v15.0.0 Changes

    April 21, 2019

    Several potentially-breaking changes, each of them fairly unlikely to actually break anything:

    • JSDOM.fromFile() now treats .xht files as application/xhtml+xml, the same as it does for .xhtml and .xml. Previously, it would treat them as text/html.
    • ๐Ÿ’ป If the JSDOM constructor's contentType option has a charset parameter, and the first argument to the constructor is a binary data type (e.g. Buffer or ArrayBuffer), then the charset will override any sniffed encoding in the same way as a Content-Type header would in browser scenarios. Previously, the charset parameter was ignored.
    • ๐Ÿ When using the Blob or File constructor with the endings: "native" option, jsdom will now convert line endings to \n on all operating systems, for consistency. Previously, on Windows, it would convert line endings to \r\n.
  • v14.1.0 Changes

    April 21, 2019
    • โž• Added activation behavior for <a> and <area> elements whose href="" points to a javascript: URL or fragment.
    • โž• Added the <datalist> element's options property.
    • โž• Added the <input> element's list property.
    • โž• Added PageTransitionEvent, and the firing of pageshow events during loading.
    • ๐Ÿ”ฆ Exposed the External class as a property of window.
    • ๐Ÿ›  Fixed HTML fragment parsing (via innerHTML and outerHTML) to be spec-compliant. (pmdartus)
    • ๐Ÿ›  Fixed HTML serialization (e.g. via innerHTML) breaking after setting certain properties to non-string values.
    • ๐Ÿ›  Fixed how disabling an element would cause its activation behavior to forever be null, even if it were re-enabled.
    • ๐Ÿ›  Fixed all access to attributes to ignore attributes with namespaces, per the spec.
    • ๐Ÿ›  Fixed <style>s to no longer apply to documents without a browsing context. This includes fixing a crash that would occur with such styles if they had an @import rule.
    • ๐Ÿ›  Fixed <option>'s label and value properties to return correct values in various edge cases.
    • ๐Ÿ›  Fixed the load event during document loading to target the Document, not the Window.
    • ๐Ÿ›  Fixed the pretendToBeVisual option to propagate to child subframes, as well as the main Window. (pyrho)
    • โšก๏ธ Updated the minimum nwsapi version from v2.1.1 to v2.1.3, bringing along a few fixes in our selector engine.
  • v14.0.0 Changes

    March 10, 2019

    ๐Ÿ’ฅ Breaking changes:

    • 0๏ธโƒฃ JSDOM.fragment() now creates fragments whose document has no browsing context, i.e. no associated Window. This means the defaultView property will be null, resources will not load, etc.
    • JSDOM.fragment(), called with no arguments, now creates a DocumentFragment with no children, instead of with a single child text node whose data was "undefined".

    Other changes:

    • ๐Ÿ›  Fixed a regression in v13.2.0 when calling element.blur() on a focused element.
    • ๐Ÿ›  Fixed inserting <link> elements into documents with no browsing context to no longer crash if the originating JSDOM was configured to fetch the resource. Now, per spec, <link> elements only attempt to fetch if they are browsing-context connected.
    • ๐Ÿ›  Fixed <template> elements to have the correct semantics, of using a separate browsing-context-less document to store its contents. In particular this means resources will not be fetched for elements inside the <template>, as per spec.