Skip to content

Releases: d3/d3-request

v1.0.6

02 Sep 21:55
Compare
Choose a tag to compare
  • Replace the browser field in package.json with unpkg and jsdeliver. (d3/d3#3138)
  • Replace the prepublish script with prepublishOnly.
  • Update dependencies.

v1.0.5

10 Mar 17:51
Compare
Choose a tag to compare
  • Update dependencies.

v1.0.4

28 Feb 17:16
Compare
Choose a tag to compare
  • Update dependencies.

v1.0.3

23 Nov 00:46
Compare
Choose a tag to compare
  • Update dependencies.

v1.0.2

02 Aug 21:34
Compare
Choose a tag to compare
  • Add module entry point to package.json.

v1.0.1

11 Jul 02:33
Compare
Choose a tag to compare
  • Throw an error if the specified callback is invalid (#12).

v1.0.0

15 Jun 17:58
Compare
Choose a tag to compare
  • First stable release.

Changes since D3 3.x

The d3.xhr method has been renamed to d3.request. Basic authentication is now supported using request.user and request.password. You can now configure a timeout using request.timeout.

If an error occurs, the corresponding ProgressEvent of type “error” is now passed to the error listener, rather than the XMLHttpRequest. Likewise, the ProgressEvent is passed to progress event listeners, rather than using d3.event. If d3.xml encounters an error parsing XML, this error is now reported to error listeners rather than returning a null response.

The d3.request, d3.text and d3.xml methods no longer take an optional mime type as the second argument; use request.mimeType instead. For example:

d3.xml("file.svg").mimeType("image/svg+xml").get(function(error, svg) {
  
});

With the exception of d3.html and d3.xml, Node is now supported via node-XMLHttpRequest.

See CHANGES for all D3 changes since 3.x.

v0.5.0

08 Jun 01:03
Compare
Choose a tag to compare
  • Export to the global d3 in vanilla environments (d3/d3#2840).

v0.4.7

20 May 21:24
Compare
Choose a tag to compare

v0.4.6

03 May 18:28
Compare
Choose a tag to compare
  • Windows build compatibility.