Skip to content

@datawheel/canon-cms@0.18.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@jhmullen jhmullen released this 04 Feb 23:00
· 697 commits to master since this release
  • Merge pull request #1159 from Datawheel/d3plus-update (6278453)
  • fixes deprecated use of d3-selection events (fb8955b)
  • updates d3 and d3plus package dependencies to next majors (7f7d7c2)

This release updates d3plus to v2, which does three potentially breaking things:

  1. changes some default visualization styles
  2. updates all d3plus and d3 packages to their next major releases
  3. updates popper.js from v1 to v2

The last two changes will theoretically only effect users who have piggybacked off of the nested d3 and popper dependencies, and even then, only if they are using one of the few modified methods described here: https://github.com/d3plus/d3plus/releases/tag/v2.0.0

Otherwise, this change should be viewed as a positive improvement to visualization styles, so users shouldn't hesitate to upgrade. The suggested steps are:

  1. update all canon packages used to @latest
  2. search your code for from "d3- to review if mouse or event are being used (and change them)
  3. search your code for from "popper.js to review if it is being used, and if so migrate to Popper 2
  4. review the visualizations on your site, and make adjustments to app/d3plus.js if needed (changelist)