Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

build(deps): bump d3 from 3.5.17 to 5.16.0 #385

Closed
wants to merge 1 commit into from

Conversation

dependabot-preview[bot]
Copy link
Contributor

@dependabot-preview dependabot-preview bot commented Apr 21, 2020

Bumps d3 from 3.5.17 to 5.16.0.

Release notes

Sourced from d3's releases.

v5.16.0

v5.15.1

  • Fix sign of near-zero negative values when using the + sign directive.

v5.15.0

v5.14.2

v5.14.1

  • Propagate the this context to interpolators in transition.styleTween, transition.attrTween and transition.textTween.

v5.14.0

v5.13.1

  • Fix crash initializing d3.brush.

v5.13.0

  • Add d3.csvFormatRow.
  • Add d3.csvFormatValue.
  • Add d3.tsvFormatRow.
  • Add d3.tsvFormatValue.
  • Add dsv.formatRow.
  • Add dsv.formatValue.
  • Add support for parsing 4- and 8-digit hexadecimal colors in d3.color. Thanks, @zerovox!
  • Allow shorthand for current time intervals (e.g., d3.timeDay() returns today’s midnight).
  • Disallow whitespace and periods in type names passed to d3.dispatch.
  • Add fa-IR d3-time-format locale. Thanks, @mohsentaleb!
  • Add %q directive for quarter of the year as a decimal number. Thanks, @jheer!
  • Fix off-by-one error formatting %U when the year starts with Sunday.
  • Fix off-by-one error formatting %W when the year starts with Monday.
  • Fix off-by-one error parsing week and weekday numbers with d3.utcParse.
  • Fix string coercion of specifier passed to d3.utcParse.
  • Fix parsing of %L or %f in conjunction with %s.

v5.12.0

... (truncated)
Changelog

Sourced from d3's changelog.

Changes in D3 5.0

Released March 22, 2018.

This document covers only major changes. For minor and patch changes, please see the release notes.

D3 5.0 introduces only a few non-backwards-compatible changes.

D3 now uses Promises instead of asynchronous callbacks to load data. Promises simplify the structure of asynchronous code, especially in modern browsers that support async and await. (See this introduction to promises on Observable.) For example, to load a CSV file in v4, you might say:

d3.csv("file.csv", function(error, data) {
  if (error) throw error;
  console.log(data);
});

In v5, using promises:

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:

const data = await d3.csv("file.csv");
console.log(data);

With the adoption of promises, D3 now uses the Fetch API instead of XMLHttpRequest: the d3-request module has been replaced by d3-fetch. Fetch supports many powerful new features, such as streaming responses. D3 5.0 also deprecates and removes the d3-queue module. Use Promise.all to run a batch of asynchronous tasks in parallel, or a helper library such as p-queue to control concurrency.

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, which implements excellent schemes from ColorBrewer, including categorical, diverging, sequential single-hue and sequential multi-hue schemes. These schemes are available in both discrete and continuous variants.

D3 now provides implementations of marching squares and density estimation via d3-contour! There are two new d3-selection methods: selection.clone for inserting clones of the selected nodes, and d3.create for creating detached elements. Geographic projections now support projection.angle, which has enabled several fantastic new polyhedral projections by Philippe Rivière.

Lastly, D3’s package.json no longer pins exact versions of the dependent D3 modules. This fixes an issue with duplicate installs of D3 modules.

Changes in D3 4.0

Released June 28, 2016.

D3 4.0 is modular. Instead of one library, D3 is now many small libraries 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.

<script src="https://d3js.org/d3.v4.js"></script>
... (truncated)
Commits

Dependabot compatibility score

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 close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor 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:

  • 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)

@vercel
Copy link

vercel bot commented Apr 21, 2020

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/superset/superset-ui/6o5vff1nv
✅ Preview: https://superset-ui-git-dependabot-npmandyarnd3-5160.superset.now.sh

@codecov
Copy link

codecov bot commented Apr 21, 2020

Codecov Report

Merging #385 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #385   +/-   ##
=======================================
  Coverage   26.30%   26.30%           
=======================================
  Files         192      192           
  Lines        5291     5291           
  Branches      474      474           
=======================================
  Hits         1392     1392           
  Misses       3864     3864           
  Partials       35       35           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f4fdeb0...0de74b7. Read the comment docs.

Bumps [d3](https://github.com/d3/d3) from 3.5.17 to 5.16.0.
- [Release notes](https://github.com/d3/d3/releases)
- [Changelog](https://github.com/d3/d3/blob/master/CHANGES.md)
- [Commits](d3/d3@v3.5.17...v5.16.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
@rusackas
Copy link
Member

I have a hard time believing it's just that easy ;)

ktmud pushed a commit to ktmud/superset-ui that referenced this pull request Apr 22, 2020
* feat: faster legacy table chart

This commit tries to optimize the performance of the legacy data table.

1. Converting everything to Typescript.
2. Create a native React component instead of `reactify` (although all
   DOM operaions still happen in the jQuery.DataTables plugin.
3. Remove dependency on d3, optimize how bars are rendered.

Plus some minor changes to fix linting and building.

Also added a script to build only specific plugin for faster
development.

* feat(legacy-table-chart): use React to render DOM

Unfortunately jquery.datatables uses innerHTML to create cell content,
and all rows are created even with pagination.

https://github.com/DataTables/DataTables/blob/83657a29e33ce93ee940ce25684940eb3acb2913/media/js/jquery.dataTables.js#L3113-L3117

This is slow and insecure. We are reverting to DOM data source as in
previous implementation, but instead of using D3 to create the table rows,
we use React. This also renders `dompurify.sanitize` unnecessary since
React will take care of it.

* feat(legacy-table-chart): support html in data cells

Also

1. improve height adjustment
2. add page size control to storybook
3. hide rows from later pages at initial rendering

* fix(legacy-data-table): minor formatting fixes

* chore(legacy-table): add xss dependency

Plus minor variable name and comment update

* fix(legacy-table): linting errors

* refactor(legacy-table): more predictable metric labels

* feat(legacy-table): also display title for percent metric

* fix(legacy-table): typos, var names, etc

* docs: update notes for metric.label

* refactor(legacy-table): upgrade number-format

* fix(legacy-table): upgrade dependency for storybook and yarn
@kristw kristw closed this Apr 27, 2020
@dependabot-preview
Copy link
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot-preview dependabot-preview bot deleted the dependabot/npm_and_yarn/d3-5.16.0 branch April 27, 2020 16:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants