brunobesson / c2c-stats

https://brunobesson.github.io/c2c-stats/
GNU Affero General Public License v3.0
0 stars 0 forks source link

Update d3 requirement from ^4.9.1 to ^5.9.4 #72

Closed dependabot-preview[bot] closed 5 years ago

dependabot-preview[bot] commented 5 years ago

Updates the requirements on d3 to permit the latest version.

Release notes *Sourced from [d3's releases](https://github.com/d3/d3/releases).* > ## v5.9.4 > * Fix achromatic representation of black and white in [d3.hcl](https://github.com/d3/d3-color/blob/master/README.md#hcl).
Changelog *Sourced from [d3's changelog](https://github.com/d3/d3/blob/master/CHANGES.md).* > # Changes in D3 5.0 > > [Released March 22, 2018.](https://github.com/d3/d3/releases/tag/v5.0.0) > > D3 5.0 introduces only a few non-backwards-compatible changes. > > D3 now uses [Promises](https://developer.mozilla.org/docs/Web/JavaScript/Guide/Using_promises) instead of asynchronous callbacks to load data. Promises simplify the structure of asynchronous code, especially in modern browsers that support [async and await](https://javascript.info/async-await). (See this [introduction to promises](https://beta.observablehq.com/@mbostock/introduction-to-promises) on [Observable](https://beta.observablehq.com).) For example, to load a CSV file in v4, you might say: > > ```js > d3.csv("file.csv", function(error, data) { > if (error) throw error; > console.log(data); > }); > ``` > > In v5, using promises: > > ```js > d3.csv("file.csv").then(function(data) { > console.log(data); > }); > ``` > > Note that you don’t need to rethrow the error—the promise will reject automatically, and you can *promise*.catch if desired. Using await, the code is even simpler: > > ```js > const data = await d3.csv("file.csv"); > console.log(data); > ``` > > With the adoption of promises, D3 now uses the [Fetch API](https://fetch.spec.whatwg.org/) instead of [XMLHttpRequest](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest): the [d3-request](https://github.com/d3/d3-request) module has been replaced by [d3-fetch](https://github.com/d3/d3-fetch). Fetch supports many powerful new features, such as [streaming responses](https://beta.observablehq.com/@mbostock/streaming-shapefiles). D3 5.0 also deprecates and removes the [d3-queue](https://github.com/d3/d3-queue) module. Use [Promise.all](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise/all) to run a batch of asynchronous tasks in parallel, or a helper library such as [p-queue](https://github.com/sindresorhus/p-queue) to [control concurrency](https://beta.observablehq.com/@mbostock/hello-p-queue). > > D3 no longer provides the d3.schemeCategory20* categorical color schemes. These twenty-color schemes were flawed because their grouped design could falsely imply relationships in the data: a shared hue can imply that the encoded data are part of a group (a super-category), while relative lightness can imply order. Instead, D3 now includes [d3-scale-chromatic](https://github.com/d3/d3-scale-chromatic), which implements excellent schemes from ColorBrewer, including [categorical](https://github.com/d3/d3-scale-chromatic/blob/master/README.md#categorical), [diverging](https://github.com/d3/d3-scale-chromatic/blob/master/README.md#diverging), [sequential single-hue](https://github.com/d3/d3-scale-chromatic/blob/master/README.md#sequential-single-hue) and [sequential multi-hue](https://github.com/d3/d3-scale-chromatic/blob/master/README.md#sequential-multi-hue) schemes. These schemes are available in both discrete and continuous variants. > > D3 now provides implementations of [marching squares](https://beta.observablehq.com/@mbostock/d3-contour-plot) and [density estimation](https://beta.observablehq.com/@mbostock/d3-density-contours) via [d3-contour](https://github.com/d3/d3-contour)! There are two new [d3-selection](https://github.com/d3/d3-selection) methods: [*selection*.clone](https://github.com/d3/d3-selection/blob/master/README.md#selection_clone) for inserting clones of the selected nodes, and [d3.create](https://github.com/d3/d3-selection/blob/master/README.md#create) for creating detached elements. [Geographic projections](https://github.com/d3/d3-geo) now support [*projection*.angle](https://github.com/d3/d3-geo/blob/master/README.md#projection_angle), which has enabled several fantastic new [polyhedral projections](https://github.com/d3/d3-geo-polygon) by Philippe Rivière. > > Lastly, D3’s [package.json](https://github.com/d3/d3/blob/master/package.json) no longer pins exact versions of the dependent D3 modules. This fixes an issue with [duplicate installs](https://github-redirect.dependabot.com/d3/d3/issues/3256) of D3 modules. > > # Changes in D3 4.0 > > [Released June 28, 2016.](https://github.com/d3/d3/releases/tag/v4.0.0) > > D3 4.0 is modular. Instead of one library, D3 is now [many small libraries](https://github.com/d3/d3/blob/master/#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. > > ```html > > ``` > > As before, you can load optional plugins on top of the default bundle, such as [ColorBrewer scales](https://github.com/d3/d3-scale-chromatic): > > ... (truncated)
Commits - [`f923ef9`](https://github.com/d3/d3/commit/f923ef92f765de10bd66bbffe6dcd5dcf2f662f7) 5.9.4 - [`6983b24`](https://github.com/d3/d3/commit/6983b24f17de86907c7607fbcd82806308bac3c1) Update dependencies. - [`1e520f1`](https://github.com/d3/d3/commit/1e520f10a5439eb251dce3f668333fea4ad2426f) 5.9.3 - [`30a5278`](https://github.com/d3/d3/commit/30a52784b6c78fab2bb654daf13d02f8722089bc) Update dependencies. - [`7615be9`](https://github.com/d3/d3/commit/7615be9f86a872460e00b81c29e4066a321aa770) Version API links. - [`ec6507c`](https://github.com/d3/d3/commit/ec6507c89b6525aa81306539ad4890161b741344) 5.9.2 - [`fbae734`](https://github.com/d3/d3/commit/fbae734d8a9470f4826deca81b27069183cdfcba) Update d3-force. - [`6223dc3`](https://github.com/d3/d3/commit/6223dc3e344261a9f64cc02bda525a66a43ae2d4) 5.9.1 - [`328a3dc`](https://github.com/d3/d3/commit/328a3dc0195a8839d0adf26402abcb9c72e1df8a) Update d3-dsv, d3-quadtree. - [`f025ca4`](https://github.com/d3/d3/commit/f025ca4ed8e66184b0ca3308eda5d91c5ba66834) 5.9.0 - Additional commits viewable in [compare view](https://github.com/d3/d3/compare/v4.9.1...v5.9.4)


Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) Finally, you can contact us by mentioning @dependabot.
dependabot-preview[bot] commented 5 years ago

Superseded by #74.