Skip to content

Commit 948f57e

Browse files
Upgrading all project dependencies (except monorepolint - troublesome) to latest versions. Some code changes required though only to utility and test scripts, and then only function name changes e.g. load.sync() is now loadJsonFileSync() in the latest version. Removing chroma-js as a turf-isobands devDependency as it doesn't seem to be used. (#2532)
1 parent ef8b904 commit 948f57e

File tree

289 files changed

+3502
-5222
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

289 files changed

+3502
-5222
lines changed

.monorepolint.config.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const path = require("path");
2-
const glob = require("glob");
2+
const { glob } = require("glob");
33
const fs = require("fs");
44

55
const TS_PACKAGES: string[] = []; // projects that use typescript to build
@@ -249,28 +249,30 @@ module.exports = {
249249
{
250250
options: {
251251
devDependencies: {
252-
"npm-run-all": "*",
252+
benchmark: "^2.1.4",
253+
"npm-run-all": "^4.1.5",
254+
tape: "^5.7.2",
255+
tsx: "^3.14.0",
253256
},
254257
},
255258
includePackages: [...TS_PACKAGES, ...JS_PACKAGES],
256259
},
257260
{
258261
options: {
259262
dependencies: {
260-
tslib: "^2.3.0",
263+
tslib: "^2.6.2",
261264
},
262265
devDependencies: {
263-
tsx: "*",
264-
typescript: "*",
266+
"@types/tape": "^4.2.32",
267+
typescript: "^5.2.2",
265268
},
266269
},
267270
includePackages: TS_PACKAGES,
268271
},
269272
{
270273
options: {
271274
devDependencies: {
272-
rollup: "*",
273-
tsx: "*",
275+
rollup: "^2.79.1",
274276
},
275277
},
276278
includePackages: JS_PACKAGES,

package.json

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -40,34 +40,33 @@
4040
"devDependencies": {
4141
"@types/geojson": "7946.0.8",
4242
"@types/node": "18.11.9",
43-
"@typescript-eslint/eslint-plugin": "^6.8.0",
44-
"@typescript-eslint/parser": "^6.8.0",
43+
"@typescript-eslint/eslint-plugin": "^6.10.0",
44+
"@typescript-eslint/parser": "^6.10.0",
4545
"acorn": "^7.4.1",
46-
"camelcase": "*",
46+
"camelcase": "^8.0.0",
4747
"d3-queue": "*",
48-
"decamelize": "*",
48+
"decamelize": "^6.0.0",
4949
"dependency-tree": "^8.1.2",
50-
"documentation": "^14.0.2",
50+
"documentation": "^13.2.5",
5151
"es-check": "^7.1.1",
52-
"eslint": "^8.51.0",
52+
"eslint": "^8.53.0",
5353
"eslint-config-prettier": "^9.0.0",
5454
"eslint-plugin-prettier": "^5.0.1",
5555
"esm": "^3.2.25",
56-
"fs-extra": "*",
57-
"husky": "^4.2.3",
58-
"lerna": "^7.3.0",
59-
"lint-staged": "^10.0.8",
60-
"load-json-file": "*",
61-
"meow": "*",
56+
"fs-extra": "^11.1.1",
57+
"husky": "^4.3.8",
58+
"lerna": "^7.4.2",
59+
"lint-staged": "^10.5.4",
60+
"load-json-file": "^7.0.1",
61+
"meow": "^12.1.1",
6262
"monorepolint": "^0.5.0-alpha.20",
6363
"npm-run-all": "^4.1.5",
6464
"prettier": "^3.0.3",
65-
"progress": "*",
66-
"rollup": "^2.34.2",
67-
"tape": "^5.7.0",
65+
"progress": "^2.0.3",
66+
"rollup": "^2.79.1",
6867
"ts-node": "^9.0.0",
69-
"tsx": "^3.12.8",
68+
"tsx": "^3.14.0",
7069
"typescript": "^5.2.2",
71-
"yamljs": "*"
70+
"yamljs": "^0.3.0"
7271
}
7372
}

packages/turf-along/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,20 @@
4848
"test:tape": "tsx test.js"
4949
},
5050
"devDependencies": {
51-
"@types/tape": "*",
52-
"benchmark": "*",
53-
"load-json-file": "*",
54-
"npm-run-all": "*",
55-
"tape": "*",
56-
"tsx": "*",
57-
"typescript": "*"
51+
"@types/tape": "^4.2.32",
52+
"benchmark": "^2.1.4",
53+
"load-json-file": "^7.0.1",
54+
"npm-run-all": "^4.1.5",
55+
"tape": "^5.7.2",
56+
"tsx": "^3.14.0",
57+
"typescript": "^5.2.2"
5858
},
5959
"dependencies": {
6060
"@turf/bearing": "^7.0.0-alpha.2",
6161
"@turf/destination": "^7.0.0-alpha.2",
6262
"@turf/distance": "^7.0.0-alpha.2",
6363
"@turf/helpers": "^7.0.0-alpha.2",
6464
"@turf/invariant": "^7.0.0-alpha.2",
65-
"tslib": "^2.3.0"
65+
"tslib": "^2.6.2"
6666
}
6767
}

packages/turf-along/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
const path = require("path");
22
const test = require("tape");
3-
const load = require("load-json-file");
3+
const { loadJsonFileSync } = require("load-json-file");
44
const { featureCollection } = require("@turf/helpers");
55
const along = require("./index").default;
66

7-
const line = load.sync(
7+
const line = loadJsonFileSync(
88
path.join(__dirname, "test", "fixtures", "dc-line.geojson")
99
);
1010

packages/turf-angle/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,21 +51,21 @@
5151
"@turf/distance": "^7.0.0-alpha.2",
5252
"@turf/sector": "^7.0.0-alpha.2",
5353
"@turf/truncate": "^7.0.0-alpha.2",
54-
"@types/tape": "*",
55-
"benchmark": "*",
56-
"glob": "*",
57-
"load-json-file": "*",
58-
"npm-run-all": "*",
59-
"tape": "*",
60-
"tsx": "*",
61-
"typescript": "*",
62-
"write-json-file": "*"
54+
"@types/tape": "^4.2.32",
55+
"benchmark": "^2.1.4",
56+
"glob": "^10.3.10",
57+
"load-json-file": "^7.0.1",
58+
"npm-run-all": "^4.1.5",
59+
"tape": "^5.7.2",
60+
"tsx": "^3.14.0",
61+
"typescript": "^5.2.2",
62+
"write-json-file": "^5.0.0"
6363
},
6464
"dependencies": {
6565
"@turf/bearing": "^7.0.0-alpha.2",
6666
"@turf/helpers": "^7.0.0-alpha.2",
6767
"@turf/invariant": "^7.0.0-alpha.2",
6868
"@turf/rhumb-bearing": "^7.0.0-alpha.2",
69-
"tslib": "^2.3.0"
69+
"tslib": "^2.6.2"
7070
}
7171
}

packages/turf-angle/test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
const test = require("tape");
22
const path = require("path");
3-
const glob = require("glob");
4-
const load = require("load-json-file");
5-
const write = require("write-json-file");
3+
const { glob } = require("glob");
4+
const { loadJsonFileSync } = require("load-json-file");
5+
const { writeJsonFileSync } = require("write-json-file");
66
const sector = require("@turf/sector");
77
const bearing = require("@turf/bearing").default;
88
const truncate = require("@turf/truncate").default;
@@ -21,7 +21,7 @@ test("turf-angle", (t) => {
2121
.forEach((filepath) => {
2222
// Input
2323
const { name } = path.parse(filepath);
24-
const geojson = load.sync(filepath);
24+
const geojson = loadJsonFileSync(filepath);
2525
const [start, mid, end] = geojson.features;
2626

2727
// Results
@@ -87,8 +87,8 @@ test("turf-angle", (t) => {
8787
path.join("test", "in"),
8888
path.join("test", "out")
8989
);
90-
if (process.env.REGEN) write.sync(expected, results);
91-
t.deepEqual(results, load.sync(expected), name);
90+
if (process.env.REGEN) writeJsonFileSync(expected, results);
91+
t.deepEqual(results, loadJsonFileSync(expected), name);
9292
});
9393
t.end();
9494
});

packages/turf-area/bench.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const fs = require("fs");
22
const path = require("path");
3-
const load = require("load-json-file");
3+
const { loadJsonFileSync } = require("load-json-file");
44
const Benchmark = require("benchmark");
55
const area = require("./index").default;
66

@@ -10,7 +10,7 @@ const fixtures = fs.readdirSync(directory).map((filename) => {
1010
return {
1111
filename,
1212
name: path.parse(filename).name,
13-
geojson: load.sync(directory + filename),
13+
geojson: loadJsonFileSync(directory + filename),
1414
};
1515
});
1616

packages/turf-area/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,18 @@
4747
"test:tape": "tsx test.js"
4848
},
4949
"devDependencies": {
50-
"@types/tape": "*",
51-
"benchmark": "*",
52-
"load-json-file": "*",
53-
"npm-run-all": "*",
54-
"tape": "*",
55-
"tsx": "*",
56-
"typescript": "*",
57-
"write-json-file": "*"
50+
"@types/tape": "^4.2.32",
51+
"benchmark": "^2.1.4",
52+
"load-json-file": "^7.0.1",
53+
"npm-run-all": "^4.1.5",
54+
"tape": "^5.7.2",
55+
"tsx": "^3.14.0",
56+
"typescript": "^5.2.2",
57+
"write-json-file": "^5.0.0"
5858
},
5959
"dependencies": {
6060
"@turf/helpers": "^7.0.0-alpha.2",
6161
"@turf/meta": "^7.0.0-alpha.2",
62-
"tslib": "^2.3.0"
62+
"tslib": "^2.6.2"
6363
}
6464
}

packages/turf-area/test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
const fs = require("fs");
22
const test = require("tape");
33
const path = require("path");
4-
const load = require("load-json-file");
5-
const write = require("write-json-file");
4+
const { loadJsonFileSync } = require("load-json-file");
5+
const { writeJsonFileSync } = require("write-json-file");
66
const area = require("./index").default;
77

88
const directories = {
@@ -14,7 +14,7 @@ const fixtures = fs.readdirSync(directories.in).map((filename) => {
1414
return {
1515
filename,
1616
name: path.parse(filename).name,
17-
geojson: load.sync(directories.in + filename),
17+
geojson: loadJsonFileSync(directories.in + filename),
1818
};
1919
});
2020

@@ -24,8 +24,8 @@ test("turf-area", (t) => {
2424
const geojson = fixture.geojson;
2525
const results = Math.round(area(geojson));
2626
if (process.env.REGEN)
27-
write.sync(directories.out + name + ".json", results);
28-
t.equal(results, load.sync(directories.out + name + ".json"), name);
27+
writeJsonFileSync(directories.out + name + ".json", results);
28+
t.equal(results, loadJsonFileSync(directories.out + name + ".json"), name);
2929
}
3030
t.end();
3131
});

packages/turf-bbox-clip/bench.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const fs = require("fs");
22
const path = require("path");
3-
const load = require("load-json-file");
3+
const { loadJsonFileSync } = require("load-json-file");
44
const Benchmark = require("benchmark");
55
const bbox = require("@turf/bbox").default;
66
const bboxClip = require("./index").default;
@@ -10,7 +10,7 @@ const fixtures = fs.readdirSync(directory).map((filename) => {
1010
return {
1111
filename,
1212
name: path.parse(filename).name,
13-
geojson: load.sync(directory + filename),
13+
geojson: loadJsonFileSync(directory + filename),
1414
};
1515
});
1616

packages/turf-bbox-clip/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,18 @@
5454
},
5555
"devDependencies": {
5656
"@turf/bbox": "^7.0.0-alpha.2",
57-
"@types/tape": "*",
58-
"benchmark": "*",
59-
"load-json-file": "*",
60-
"npm-run-all": "*",
61-
"tape": "*",
62-
"tsx": "*",
63-
"typescript": "*",
64-
"write-json-file": "*"
57+
"@types/tape": "^4.2.32",
58+
"benchmark": "^2.1.4",
59+
"load-json-file": "^7.0.1",
60+
"npm-run-all": "^4.1.5",
61+
"tape": "^5.7.2",
62+
"tsx": "^3.14.0",
63+
"typescript": "^5.2.2",
64+
"write-json-file": "^5.0.0"
6565
},
6666
"dependencies": {
6767
"@turf/helpers": "^7.0.0-alpha.2",
6868
"@turf/invariant": "^7.0.0-alpha.2",
69-
"tslib": "^2.3.0"
69+
"tslib": "^2.6.2"
7070
}
7171
}

packages/turf-bbox-clip/test.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
const fs = require("fs");
22
const test = require("tape");
33
const path = require("path");
4-
const load = require("load-json-file");
5-
const write = require("write-json-file");
4+
const { loadJsonFileSync } = require("load-json-file");
5+
const { writeJsonFileSync } = require("write-json-file");
66
const { point, feature, featureCollection } = require("@turf/helpers");
77
const turfBBox = require("@turf/bbox").default;
88
const bboxClip = require("./index").default;
@@ -16,7 +16,7 @@ const fixtures = fs.readdirSync(directories.in).map((filename) => {
1616
return {
1717
filename,
1818
name: path.parse(filename).name,
19-
geojson: load.sync(directories.in + filename),
19+
geojson: loadJsonFileSync(directories.in + filename),
2020
};
2121
});
2222

@@ -34,8 +34,9 @@ test("turf-bbox-clip", (t) => {
3434
colorize(geojson.features[1], "#00F", 3),
3535
]);
3636

37-
if (process.env.REGEN) write.sync(directories.out + filename, results);
38-
t.deepEquals(results, load.sync(directories.out + filename), name);
37+
if (process.env.REGEN)
38+
writeJsonFileSync(directories.out + filename, results);
39+
t.deepEquals(results, loadJsonFileSync(directories.out + filename), name);
3940
}
4041
t.end();
4142
});

packages/turf-bbox-polygon/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@
4848
"test:tape": "tsx test.js"
4949
},
5050
"devDependencies": {
51-
"@types/tape": "*",
52-
"benchmark": "*",
53-
"npm-run-all": "*",
54-
"tape": "*",
55-
"tsx": "*",
56-
"typescript": "*"
51+
"@types/tape": "^4.2.32",
52+
"benchmark": "^2.1.4",
53+
"npm-run-all": "^4.1.5",
54+
"tape": "^5.7.2",
55+
"tsx": "^3.14.0",
56+
"typescript": "^5.2.2"
5757
},
5858
"dependencies": {
5959
"@turf/helpers": "^7.0.0-alpha.2",
60-
"tslib": "^2.3.0"
60+
"tslib": "^2.6.2"
6161
}
6262
}

0 commit comments

Comments
 (0)