Skip to content

Commit a7caf93

Browse files
committed
Prepare for major release.
1 parent 675f86d commit a7caf93

File tree

3 files changed

+13
-16
lines changed

3 files changed

+13
-16
lines changed

CHANGES.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33
D3 4.0 is modular. Instead of one library, D3 is now [many small libraries](#table-of-contents) that are designed to work together. You can pick and choose which parts to use as you see fit. Each library is maintained in its own repository, allowing decentralized ownership and independent release cycles. The default bundle combines about thirty of these microlibraries.
44

55
```html
6-
<script src="https://d3js.org/d3.v4.0.0-rc.2.min.js"></script>
6+
<script src="https://d3js.org/d3.v4.js"></script>
77
```
88

99
As before, you can load optional plugins on top of the default bundle, such as [ColorBrewer scales](https://github.com/d3/d3-scale-chromatic):
1010

1111
```html
12-
<script src="https://d3js.org/d3.v4.0.0-rc.2.min.js"></script>
13-
<script src="https://d3js.org/d3-scale-chromatic.v0.3.min.js"></script>
12+
<script src="https://d3js.org/d3.v4.js"></script>
13+
<script src="https://d3js.org/d3-scale-chromatic.v0.3.js"></script>
1414
```
1515

1616
You are not required to use the default bundle! If you’re just using [d3-selection](https://github.com/d3/d3-selection), use it as a standalone library. Like the default bundle, you can load D3 microlibraries using vanilla script tags or RequireJS (great for HTTP/2!):
1717

1818
```html
19-
<script src="https://d3js.org/d3-selection.v1.min.js"></script>
19+
<script src="https://d3js.org/d3-selection.v1.js"></script>
2020
```
2121

2222
You can also `cat` D3 microlibraries into a custom bundle, or use tools such as [Webpack](https://webpack.github.io/) and [Rollup](http://rollupjs.org/) to create [optimized bundles](https://bl.ocks.org/mbostock/bb09af4c39c79cffcde4). Custom bundles are great for applications that use a subset of D3’s features; for example, a React chart library might use D3 for scales and shapes, and React to manipulate the DOM. The D3 microlibraries are written as [ES6 modules](http://www.2ality.com/2014/09/es6-modules-final.html), and Rollup lets you pick at the symbol level to produce smaller bundles.

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,29 @@
77
## Resources
88

99
* [API Reference](https://github.com/d3/d3/blob/master/API.md)
10-
* [Release Notes](https://github.com/d3/d3/blob/master/CHANGES.md)
10+
* [Release Notes](https://github.com/d3/d3/releases)
1111
* [Gallery](https://github.com/d3/d3/wiki/Gallery)
1212
* [Examples](http://bl.ocks.org/mbostock)
1313
* [Wiki](https://github.com/d3/d3/wiki)
1414

1515
## Installing
1616

17-
If you use NPM, `npm install d3@next`. Otherwise, download the [latest release](https://npmcdn.com/d3@next/build/). The released bundle supports AMD, CommonJS, and vanilla environments. Create a [custom bundle using Rollup](http://bl.ocks.org/mbostock/bb09af4c39c79cffcde4) or your preferred bundler. You can also load directly from [d3js.org](https://d3js.org):
17+
If you use NPM, `npm install d3`. Otherwise, download the [latest release](https://github.com/d3/d3/releases/latest). The released bundle supports AMD, CommonJS, and vanilla environments. Create a [custom bundle using Rollup](http://bl.ocks.org/mbostock/bb09af4c39c79cffcde4) or your preferred bundler. You can also load directly from [d3js.org](https://d3js.org):
1818

1919
```html
20-
<script src="https://d3js.org/d3.v4.0.0-rc.2.js"></script>
20+
<script src="https://d3js.org/d3.v4.js"></script>
2121
```
2222

2323
For the minified version:
2424

2525
```html
26-
<script src="https://d3js.org/d3.v4.0.0-rc.2.min.js"></script>
26+
<script src="https://d3js.org/d3.v4.min.js"></script>
2727
```
2828

29-
You can also use the standalone D3 microlibraries. For example, [d3-color](https://github.com/d3/d3-color):
29+
You can also use the standalone D3 microlibraries. For example, [d3-selection](https://github.com/d3/d3-selection):
3030

3131
```html
32-
<script src="https://d3js.org/d3-color.v1.min.js"></script>
32+
<script src="https://d3js.org/d3-selection.v1.js"></script>
3333
```
3434

35-
If you prefer to pin to a specific release, try [CDNJS](https://cdnjs.com/libraries/d3) or [npmcdn](https://npmcdn.com/d3@next/).
35+
If you prefer to pin to a specific release, try [CDNJS](https://cdnjs.com/libraries/d3) or [npmcdn](https://npmcdn.com/d3/).

package.json

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
{
22
"name": "d3",
3-
"version": "4.0.0-rc.2",
4-
"publishConfig": {
5-
"tag": "next"
6-
},
3+
"version": "3.5.17",
74
"description": "Data-Driven Documents",
85
"keywords": [
96
"dom",
@@ -29,7 +26,7 @@
2926
"pretest": "rm -rf build && mkdir build && json2module package.json > build/package.js && bin/rollup-node",
3027
"test": "tape 'test/**/*-test.js'",
3128
"prepublish": "npm run test && bin/rollup \"$(preamble)\" && uglifyjs --preamble \"$(preamble)\" build/d3.js -c -m -o build/d3.min.js",
32-
"postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && cp -v build/d3.js ../d3.github.com/d3.v${VERSION}.js && cp -v build/d3.min.js ../d3.github.com/d3.v${VERSION}.min.js && cd ../d3.github.com && git add d3.v${VERSION}.js d3.v${VERSION}.min.js && git commit -m \"d3 ${VERSION}\" && git push && cd - && zip -j build/d3.zip -- LICENSE README.md API.md CHANGES.md build/d3.js build/d3.min.js"
29+
"postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && cp -v build/d3.js ../d3.github.com/d3.v4.js && cp -v build/d3.min.js ../d3.github.com/d3.v4.min.js && cd ../d3.github.com && git add d3.v4.js d3.v4.min.js && git commit -m \"d3 ${VERSION}\" && git push && cd - && zip -j build/d3.zip -- LICENSE README.md API.md CHANGES.md build/d3.js build/d3.min.js"
3330
},
3431
"devDependencies": {
3532
"json2module": "0.0",

0 commit comments

Comments
 (0)