zombie v4.0.7 Release Notes
Release Date: 2015-04-10 // about 9 years ago-
๐ Version 4.0 requires io.js, see: https://github.com/tmpvar/jsdom/blob/master/Changelog.md#400
โ ADDED preliminary support for the Fetch API (https://fetch.spec.whatwg.org/)
โ ADDED you can use the
browser.fetch
to retrieve any resources, using the ๐ป cookies, pipeline and all other browser settingsโฌ๏ธ CHANGED upgraded to JSDOM 4.1
๐ CHANGED use
browser.status
instead ofbrowser.statusCode
(HTML APIs usestatus
andstatusText
)๐ CHANGED
browser.resources
is now just an array of all resources requested when ๐จ processing the currently open window. Resources no longer shared by all ๐ windows, and other features (pipeline configuration, fetch resources) moved elsewhere.๐ CHANGED separated pipeline from resources. Use
browser.pipeline.addHandler
to โ add request/response handler to the browser instance, orPipeline.addHandler
to add handler to all new instances.๐ CHANGED pipeline API changed as well. Request handler called with browser instance and Fetch
Request
object, can return null or a FetchResponse
๐ป object. Response handler called with browser instance, request and response object, should return same or new response object. Handlers no longer using callbacks, if you need asynchronous behavior, return a promise.๐ FIXED empty
cookie
andreferer
header no longer sent #881๐ FIXED added
navigator.appVersion
#885โ REMOVED
document.window
, usedocument.defaultView
insteadโ REMOVED
browser.close
confusing method name, usebrowser.window.close
if you really need to close the window.694 passing (21s) 12 pending