Comparing version 6.7.0 to 7.0.0
115
package.json
{ | ||
"name": "d3", | ||
"version": "6.7.0", | ||
"version": "7.0.0", | ||
"description": "Data-Driven Documents", | ||
"homepage": "https://d3js.org", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/d3/d3.git" | ||
}, | ||
"keywords": [ | ||
"d3", | ||
"dom", | ||
@@ -12,4 +18,3 @@ "visualization", | ||
], | ||
"homepage": "https://d3js.org", | ||
"license": "BSD-3-Clause", | ||
"license": "ISC", | ||
"author": { | ||
@@ -19,62 +24,64 @@ "name": "Mike Bostock", | ||
}, | ||
"main": "dist/d3.node.js", | ||
"unpkg": "dist/d3.min.js", | ||
"jsdelivr": "dist/d3.min.js", | ||
"module": "index.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/d3/d3.git" | ||
}, | ||
"type": "module", | ||
"files": [ | ||
"dist/**/*.js", | ||
"index.js" | ||
"src/**/*.js" | ||
], | ||
"scripts": { | ||
"pretest": "rimraf dist && mkdir dist && json2module package.json > dist/package.js && rollup -c", | ||
"test": "tape 'test/**/*-test.js'", | ||
"prepublishOnly": "yarn test", | ||
"postpublish": "git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3/dist/d3.js d3.v${npm_package_version%%.*}.js && cp ../d3/dist/d3.min.js d3.v${npm_package_version%%.*}.min.js && git add d3.v${npm_package_version%%.*}.js d3.v${npm_package_version%%.*}.min.js && git commit -m \"d3 ${npm_package_version}\" && git push && cd - && zip -j dist/d3.zip -- LICENSE README.md API.md CHANGES.md dist/d3.js dist/d3.min.js" | ||
"module": "src/index.js", | ||
"main": "src/index.js", | ||
"jsdelivr": "dist/d3.min.js", | ||
"unpkg": "dist/d3.min.js", | ||
"exports": { | ||
"umd": "./dist/d3.min.js", | ||
"default": "./src/index.js" | ||
}, | ||
"dependencies": { | ||
"d3-array": "3", | ||
"d3-axis": "3", | ||
"d3-brush": "3", | ||
"d3-chord": "3", | ||
"d3-color": "3", | ||
"d3-contour": "3", | ||
"d3-delaunay": "6", | ||
"d3-dispatch": "3", | ||
"d3-drag": "3", | ||
"d3-dsv": "3", | ||
"d3-ease": "3", | ||
"d3-fetch": "3", | ||
"d3-force": "3", | ||
"d3-format": "3", | ||
"d3-geo": "3", | ||
"d3-hierarchy": "3", | ||
"d3-interpolate": "3", | ||
"d3-path": "3", | ||
"d3-polygon": "3", | ||
"d3-quadtree": "3", | ||
"d3-random": "3", | ||
"d3-scale": "4", | ||
"d3-scale-chromatic": "3", | ||
"d3-selection": "3", | ||
"d3-shape": "3", | ||
"d3-time": "3", | ||
"d3-time-format": "4", | ||
"d3-timer": "3", | ||
"d3-transition": "3", | ||
"d3-zoom": "3" | ||
}, | ||
"devDependencies": { | ||
"json2module": "0.0", | ||
"rimraf": "3", | ||
"@rollup/plugin-json": "4", | ||
"@rollup/plugin-node-resolve": "13", | ||
"eslint": "7", | ||
"mocha": "9", | ||
"rollup": "2", | ||
"rollup-plugin-ascii": "0.0", | ||
"rollup-plugin-node-resolve": "5", | ||
"rollup-plugin-terser": "7", | ||
"tape": "4", | ||
"tape-await": "0.1" | ||
"rollup-plugin-terser": "7" | ||
}, | ||
"dependencies": { | ||
"d3-array": "2", | ||
"d3-axis": "2", | ||
"d3-brush": "2", | ||
"d3-chord": "2", | ||
"d3-color": "2", | ||
"d3-contour": "2", | ||
"d3-delaunay": "5", | ||
"d3-dispatch": "2", | ||
"d3-drag": "2", | ||
"d3-dsv": "2", | ||
"d3-ease": "2", | ||
"d3-fetch": "2", | ||
"d3-force": "2", | ||
"d3-format": "2", | ||
"d3-geo": "2", | ||
"d3-hierarchy": "2", | ||
"d3-interpolate": "2", | ||
"d3-path": "2", | ||
"d3-polygon": "2", | ||
"d3-quadtree": "2", | ||
"d3-random": "2", | ||
"d3-scale": "3", | ||
"d3-scale-chromatic": "2", | ||
"d3-selection": "2", | ||
"d3-shape": "2", | ||
"d3-time": "2", | ||
"d3-time-format": "3", | ||
"d3-timer": "2", | ||
"d3-transition": "2", | ||
"d3-zoom": "2" | ||
"scripts": { | ||
"test": "mocha 'test/**/*-test.js' && eslint src test", | ||
"prepublishOnly": "rm -rf dist && yarn test && rollup -c && git push", | ||
"postpublish": "git push --tags && cd ../d3.github.com && git pull && cp ../d3/dist/d3.js d3.v${npm_package_version%%.*}.js && cp ../d3/dist/d3.min.js d3.v${npm_package_version%%.*}.min.js && git add d3.v${npm_package_version%%.*}.js d3.v${npm_package_version%%.*}.min.js && git commit -m \"d3 ${npm_package_version}\" && git push && cd -" | ||
}, | ||
"engines": { | ||
"node": ">=12" | ||
} | ||
} |
@@ -17,12 +17,23 @@ # D3: Data-Driven Documents | ||
If you use npm, `npm install d3`. Otherwise, download the [latest release](https://github.com/d3/d3/releases/latest). The released bundle supports anonymous AMD, CommonJS, and vanilla environments. You can load directly from [d3js.org](https://d3js.org), [CDNJS](https://cdnjs.com/libraries/d3), or [unpkg](https://unpkg.com/d3/). For example: | ||
If you use npm, `npm install d3`. You can also download the [latest release on GitHub](https://github.com/d3/d3/releases/latest). For vanilla HTML in modern browsers, import D3 from Skypack: | ||
```html | ||
<script src="https://d3js.org/d3.v6.js"></script> | ||
<script type="module"> | ||
import * as d3 from "https://cdn.skypack.dev/d3@7"; | ||
const div = d3.selectAll("div"); | ||
</script> | ||
``` | ||
For the minified version: | ||
For legacy environments, you can load D3’s UMD bundle from an npm-based CDN such as jsDelivr; a `d3` global is exported: | ||
```html | ||
<script src="https://d3js.org/d3.v6.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/d3@7"></script> | ||
<script> | ||
const div = d3.selectAll("div"); | ||
</script> | ||
``` | ||
@@ -33,6 +44,12 @@ | ||
```html | ||
<script src="https://d3js.org/d3-selection.v2.js"></script> | ||
<script type="module"> | ||
import {selectAll} from "https://cdn.skypack.dev/d3-selection@3"; | ||
const div = selectAll("div"); | ||
</script> | ||
``` | ||
D3 is written using [ES2015 modules](http://www.2ality.com/2014/09/es6-modules-final.html). Create a [custom bundle using Rollup](https://bl.ocks.org/mbostock/bb09af4c39c79cffcde4), Webpack, or your preferred bundler. To import D3 into an ES2015 application, either import specific symbols from specific D3 modules: | ||
D3 is written using [ES2015 modules](http://www.2ality.com/2014/09/es6-modules-final.html). Create a custom bundle using Rollup, Webpack, or your preferred bundler. To import D3 into an ES2015 application, either import specific symbols from specific D3 modules: | ||
@@ -39,0 +56,0 @@ ```js |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1012294
7
18347
75
Yes
7
+ Addedcommander@7.2.0(transitive)
+ Addedd3-array@3.2.4(transitive)
+ Addedd3-axis@3.0.0(transitive)
+ Addedd3-brush@3.0.0(transitive)
+ Addedd3-chord@3.0.1(transitive)
+ Addedd3-color@3.1.0(transitive)
+ Addedd3-contour@3.1.0(transitive)
+ Addedd3-delaunay@6.0.4(transitive)
+ Addedd3-dispatch@3.0.1(transitive)
+ Addedd3-drag@3.0.0(transitive)
+ Addedd3-dsv@3.0.1(transitive)
+ Addedd3-ease@3.0.1(transitive)
+ Addedd3-fetch@3.0.1(transitive)
+ Addedd3-force@3.0.0(transitive)
+ Addedd3-format@3.1.0(transitive)
+ Addedd3-geo@3.1.1(transitive)
+ Addedd3-hierarchy@3.1.2(transitive)
+ Addedd3-interpolate@3.0.1(transitive)
+ Addedd3-path@3.1.0(transitive)
+ Addedd3-polygon@3.0.1(transitive)
+ Addedd3-quadtree@3.0.1(transitive)
+ Addedd3-random@3.0.1(transitive)
+ Addedd3-scale@4.0.2(transitive)
+ Addedd3-scale-chromatic@3.1.0(transitive)
+ Addedd3-selection@3.0.0(transitive)
+ Addedd3-shape@3.2.0(transitive)
+ Addedd3-time@3.1.0(transitive)
+ Addedd3-time-format@4.1.0(transitive)
+ Addedd3-timer@3.0.1(transitive)
+ Addedd3-transition@3.0.1(transitive)
+ Addedd3-zoom@3.0.0(transitive)
+ Addeddelaunator@5.0.1(transitive)
+ Addediconv-lite@0.6.3(transitive)
+ Addedinternmap@2.0.3(transitive)
+ Addedrobust-predicates@3.0.2(transitive)
- Removedcommander@2.20.3(transitive)
- Removedd3-array@2.12.1(transitive)
- Removedd3-axis@2.1.0(transitive)
- Removedd3-brush@2.1.0(transitive)
- Removedd3-chord@2.0.0(transitive)
- Removedd3-color@2.0.0(transitive)
- Removedd3-contour@2.0.0(transitive)
- Removedd3-delaunay@5.3.0(transitive)
- Removedd3-dispatch@2.0.0(transitive)
- Removedd3-drag@2.0.0(transitive)
- Removedd3-dsv@2.0.0(transitive)
- Removedd3-ease@2.0.0(transitive)
- Removedd3-fetch@2.0.0(transitive)
- Removedd3-force@2.1.1(transitive)
- Removedd3-format@2.0.0(transitive)
- Removedd3-geo@2.0.2(transitive)
- Removedd3-hierarchy@2.0.0(transitive)
- Removedd3-interpolate@2.0.1(transitive)
- Removedd3-path@2.0.0(transitive)
- Removedd3-polygon@2.0.0(transitive)
- Removedd3-quadtree@2.0.0(transitive)
- Removedd3-random@2.2.2(transitive)
- Removedd3-scale@3.3.0(transitive)
- Removedd3-scale-chromatic@2.0.0(transitive)
- Removedd3-selection@2.0.0(transitive)
- Removedd3-shape@2.1.0(transitive)
- Removedd3-time@2.1.1(transitive)
- Removedd3-time-format@3.0.0(transitive)
- Removedd3-timer@2.0.0(transitive)
- Removedd3-transition@2.0.0(transitive)
- Removedd3-zoom@2.0.0(transitive)
- Removeddelaunator@4.0.1(transitive)
- Removediconv-lite@0.4.24(transitive)
- Removedinternmap@1.0.1(transitive)
Updatedd3-array@3
Updatedd3-axis@3
Updatedd3-brush@3
Updatedd3-chord@3
Updatedd3-color@3
Updatedd3-contour@3
Updatedd3-delaunay@6
Updatedd3-dispatch@3
Updatedd3-drag@3
Updatedd3-dsv@3
Updatedd3-ease@3
Updatedd3-fetch@3
Updatedd3-force@3
Updatedd3-format@3
Updatedd3-geo@3
Updatedd3-hierarchy@3
Updatedd3-interpolate@3
Updatedd3-path@3
Updatedd3-polygon@3
Updatedd3-quadtree@3
Updatedd3-random@3
Updatedd3-scale@4
Updatedd3-scale-chromatic@3
Updatedd3-selection@3
Updatedd3-shape@3
Updatedd3-time@3
Updatedd3-time-format@4
Updatedd3-timer@3
Updatedd3-transition@3
Updatedd3-zoom@3