@andyreagan/hedotools 4.5.0 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -343,12 +343,12 @@ hedotools.sankey = function() {
343
343
  console.log(compfile);
344
344
  var refF;
345
345
  var compF;
346
- d3.text(reffile,function(text) {
346
+ d3.text(reffile).then(function(text) {
347
347
  refF = text.split(",");
348
348
  console.log(refF);
349
349
  if (!--csvLoadsRemaining) drawShift();
350
350
  });
351
- d3.text(compfile,function(text) {
351
+ d3.text(compfile).then(function(text) {
352
352
  compF = text.split(",");
353
353
  console.log(compF);
354
354
  if (!--csvLoadsRemaining) drawShift();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@andyreagan/hedotools",
3
- "version": "4.5.0",
4
- "description": "A collection of D3.js tools in use at hedonometer.org: word shifts (via @andyreagan/d3-shifterator), choropleth maps, sankey diagrams, a frequency lens, and bar charts. Version tracks the supported D3 major version (4.x = D3 v4).",
3
+ "version": "5.0.0",
4
+ "description": "A collection of D3.js tools in use at hedonometer.org: word shifts (via @andyreagan/d3-shifterator), choropleth maps, sankey diagrams, a frequency lens, and bar charts. Version tracks the supported D3 major version (5.x = D3 v5).",
5
5
  "author": "Andy Reagan",
6
6
  "license": "BSD-2-Clause",
7
7
  "scripts": {
@@ -32,8 +32,8 @@
32
32
  "vitest": "3.2.6"
33
33
  },
34
34
  "dependencies": {
35
- "@andyreagan/d3-shifterator": "^4.1.0",
36
- "d3": "^4.13.0",
35
+ "@andyreagan/d3-shifterator": "^5.0.0",
36
+ "d3": "^5.16.0",
37
37
  "jquery": "^3.5.1",
38
38
  "topojson-client": "^3.1.0"
39
39
  }