Skip to content

Commit 1fabebd

Browse files
authored
Merge pull request #1147 from plotly/topojson-client
Use topojson-client
2 parents 5f517cf + 3584de3 commit 1fabebd

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

circle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dependencies:
1717
- npm run cibuild
1818
- npm run pretest
1919
- eval $(node tasks/docker.js setup)
20-
- npm ls
20+
- npm prune && npm ls
2121

2222
test:
2323
override:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
"sane-topojson": "^2.0.0",
8989
"superscript-text": "^1.0.0",
9090
"tinycolor2": "^1.3.0",
91-
"topojson": "^1.6.20",
91+
"topojson-client": "^2.1.0",
9292
"webgl-context": "^2.2.0"
9393
},
9494
"devDependencies": {

src/lib/topojson_utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
var topojsonUtils = module.exports = {};
1313

14-
var locationmodeToLayer = require('../plots/geo/constants').locationmodeToLayer,
15-
topojsonFeature = require('topojson').feature;
14+
var locationmodeToLayer = require('../plots/geo/constants').locationmodeToLayer;
15+
var topojsonFeature = require('topojson-client').feature;
1616

1717

1818
topojsonUtils.getTopojsonName = function(geoLayout) {

src/plots/geo/geo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var constants = require('./constants');
2626

2727
var xmlnsNamespaces = require('../../constants/xmlns_namespaces');
2828
var topojsonUtils = require('../../lib/topojson_utils');
29-
var topojsonFeature = require('topojson').feature;
29+
var topojsonFeature = require('topojson-client').feature;
3030

3131
// add a few projection types to d3.geo
3232
addProjectionsToD3(d3);

0 commit comments

Comments
 (0)