Skip to content

Commit fda01a5

Browse files
committed
Prepare for release.
1 parent 3a4bd58 commit fda01a5

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

README.md

+6-8
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ d3.csv("/path/to/file.csv").then(function(data) {
1616
});
1717
```
1818

19-
This module has built-in support for parsing [JSON](#json), [CSV](#csv), and [TSV](#tsv). You can parse additional formats by using [text](#text) directly. This module is intended to replace [d3-request](https://github.com/d3/d3-request).
19+
This module has built-in support for parsing [JSON](#json), [CSV](#csv), and [TSV](#tsv). You can parse additional formats by using [text](#text) directly. (This module replaced [d3-request](https://github.com/d3/d3-request).)
2020

2121
## Installing
2222

23-
If you use NPM, `npm install d3-fetch`. Otherwise, download the [latest release](https://github.com/d3/d3-fetch/releases/latest). You can also load directly from [d3js.org](https://d3js.org) as a [standalone library](https://d3js.org/d3-fetch.v0.min.js). AMD, CommonJS, and vanilla environments are supported. In vanilla, a `d3` global is exported:
23+
If you use NPM, `npm install d3-fetch`. Otherwise, download the [latest release](https://github.com/d3/d3-fetch/releases/latest). You can also load directly from [d3js.org](https://d3js.org) as a [standalone library](https://d3js.org/d3-fetch.v1.min.js). AMD, CommonJS, and vanilla environments are supported. In vanilla, a `d3` global is exported:
2424

2525
```html
2626
<script src="https://d3js.org/d3-dsv.v1.min.js"></script>
27-
<script src="https://d3js.org/d3-fetch.v0.min.js"></script>
27+
<script src="https://d3js.org/d3-fetch.v1.min.js"></script>
2828
<script>
2929
3030
d3.csv("/path/to/file.csv").then(function(data) {
@@ -34,8 +34,6 @@ d3.csv("/path/to/file.csv").then(function(data) {
3434
</script>
3535
```
3636

37-
[Try d3-fetch in your browser.](https://runkit.com/npm/d3-fetch)
38-
3937
## API Reference
4038

4139
<a name="blob" href="#blob">#</a> d3.<b>blob</b>(<i>input</i>[, <i>init</i>]) [<>](https://github.com/d3/d3-fetch/blob/master/src/blob.js "Source")
@@ -48,7 +46,7 @@ Fetches the binary file at the specified *input* URL as an ArrayBuffer. If *init
4846

4947
<a name="csv" href="#csv">#</a> d3.<b>csv</b>(<i>input</i>[, <i>init</i>][, <i>row</i>]) [<>](https://github.com/d3/d3-fetch/blob/master/src/dsv.js "Source")
5048

51-
Equivalent to [dsv](#dsv) with the tab character as the delimiter.
49+
Equivalent to [d3.dsv](#dsv) with the tab character as the delimiter.
5250

5351
<a name="dsv" href="#dsv">#</a> d3.<b>dsv</b>(<i>delimiter</i>, <i>input</i>[, <i>init</i>][, <i>row</i>]) [<>](https://github.com/d3/d3-fetch/blob/master/src/dsv.js "Source")
5452

@@ -69,7 +67,7 @@ d3.dsv(",", "test.csv", function(d) {
6967

7068
If only one of *init* and *row* is specified, it is interpreted as the *row* conversion function if it is a function, and otherwise an *init* object.
7169

72-
See also [csv](#csv) and [tsv](#tsv).
70+
See also [d3.csv](#csv) and [d3.tsv](#tsv).
7371

7472
<a name="image" href="#image">#</a> d3.<b>image</b>(<i>input</i>[, <i>init</i>]) [<>](https://github.com/d3/d3-fetch/blob/master/src/image.js "Source")
7573

@@ -91,4 +89,4 @@ Fetches the text file at the specified *input* URL.
9189

9290
<a name="tsv" href="#tsv">#</a> d3.<b>tsv</b>(<i>input</i>[, <i>init</i>][, <i>row</i>]) [<>](https://github.com/d3/d3-fetch/blob/master/src/dsv.js "Source")
9391

94-
Equivalent to [dsv](#dsv) with the tab character as the delimiter.
92+
Equivalent to [d3.dsv](#dsv) with the tab character as the delimiter.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"pretest": "rm -rf dist && mkdir dist && rollup -c --banner \"$(preamble)\"",
2626
"test": "tape 'test/**/*-test.js'",
2727
"prepublishOnly": "npm run test && uglifyjs -b beautify=false,preamble=\"'$(preamble)'\" dist/d3-fetch.js -c -m -o dist/d3-fetch.min.js",
28-
"postpublish": "git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3-fetch/dist/d3-fetch.js d3-fetch.v0.js && cp ../d3-fetch/dist/d3-fetch.min.js d3-fetch.v0.min.js && git add d3-fetch.v0.js d3-fetch.v0.min.js && git commit -m \"d3-fetch ${npm_package_version}\" && git push && cd - && zip -j dist/d3-fetch.zip -- LICENSE README.md dist/d3-fetch.js dist/d3-fetch.min.js"
28+
"postpublish": "git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3-fetch/dist/d3-fetch.js d3-fetch.v1.js && cp ../d3-fetch/dist/d3-fetch.min.js d3-fetch.v1.min.js && git add d3-fetch.v1.js d3-fetch.v1.min.js && git commit -m \"d3-fetch ${npm_package_version}\" && git push && cd - && zip -j dist/d3-fetch.zip -- LICENSE README.md dist/d3-fetch.js dist/d3-fetch.min.js"
2929
},
3030
"dependencies": {
3131
"d3-dsv": "1"
@@ -35,6 +35,6 @@
3535
"package-preamble": "0.1",
3636
"rollup": "0.52",
3737
"tape": "4",
38-
"uglify-js": "3"
38+
"uglify-js": "3.2"
3939
}
4040
}

0 commit comments

Comments
 (0)