Skip to content

Commit fb75782

Browse files
authored
Merge branch 'master' into nearest-point-on-line-multi-feature-location
2 parents 69a338e + 05494d8 commit fb75782

File tree

194 files changed

+11053
-9131
lines changed

Some content is hidden

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

194 files changed

+11053
-9131
lines changed

.monorepolint.config.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ export default {
222222
benchmark: "^2.1.4",
223223
"npm-run-all": "^4.1.5",
224224
tape: "^5.9.0",
225-
tsup: "^8.3.5",
226-
tsx: "^4.19.2",
225+
tsup: "^8.4.0",
226+
tsx: "^4.19.4",
227227
},
228228
},
229229
includePackages: [...TS_PACKAGES, ...JS_PACKAGES],
@@ -236,8 +236,8 @@ export default {
236236
},
237237
devDependencies: {
238238
"@types/benchmark": "^2.1.5",
239-
"@types/tape": "^4.13.4",
240-
typescript: "^5.5.4",
239+
"@types/tape": "^5.8.1",
240+
typescript: "^5.8.3",
241241
},
242242
},
243243
includePackages: TS_PACKAGES,

eslint.config.mjs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import typescriptEslint from "@typescript-eslint/eslint-plugin";
21
import globals from "globals";
3-
import tsParser from "@typescript-eslint/parser";
42
import js from "@eslint/js";
53
import tsEslint from "typescript-eslint";
64
import prettierRecommended from "eslint-plugin-prettier/recommended";
@@ -19,15 +17,15 @@ export default tsEslint.config(
1917
},
2018
{
2119
plugins: {
22-
"@typescript-eslint": typescriptEslint,
20+
"@typescript-eslint": tsEslint.plugin,
2321
},
2422

2523
languageOptions: {
2624
globals: {
2725
...globals.node,
2826
},
2927

30-
parser: tsParser,
28+
parser: tsEslint.parser,
3129
ecmaVersion: 6,
3230
sourceType: "module",
3331
},

nx.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
"{workspaceRoot}/tsconfig.shared.json",
66
"{projectRoot}/package.json",
77
"{projectRoot}/tsconfig.json"
8-
]
8+
],
9+
"sources": ["{projectRoot}/index.{js,ts}", "{projectRoot}/lib/**"]
910
},
1011
"targetDefaults": {
1112
"build": {
1213
"dependsOn": ["^build"],
1314
"inputs": [
1415
"default",
16+
"sources",
1517
"{workspaceRoot}/tsup.config.ts",
16-
"{projectRoot}/index.{js,ts}",
1718
"{projectRoot}/index.d.ts",
18-
"{projectRoot}/lib/**",
1919
"{projectRoot}/rollup.config.cjs"
2020
],
2121
"outputs": ["{projectRoot}/dist"],
@@ -24,6 +24,7 @@
2424
"test": {
2525
"inputs": [
2626
"default",
27+
"sources",
2728
"{projectRoot}/test.ts",
2829
"{projectRoot}/test/**",
2930
"{projectRoot}/types.ts"

package.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -27,41 +27,41 @@
2727
],
2828
"*": "prettier --write --ignore-unknown"
2929
},
30-
"packageManager": "pnpm@8.15.8+sha512.d1a029e1a447ad90bc96cd58b0fad486d2993d531856396f7babf2d83eb1823bb83c5a3d0fc18f675b2d10321d49eb161fece36fe8134aa5823ecd215feed392",
30+
"packageManager": "pnpm@10.10.0+sha256.fa0f513aa8191764d2b6b432420788c270f07b4f999099b65bb2010eec702a30",
3131
"devDependencies": {
32-
"@eslint/eslintrc": "^3.2.0",
33-
"@eslint/js": "^9.16.0",
32+
"@eslint/eslintrc": "^3.3.1",
33+
"@eslint/js": "^9.25.1",
3434
"@monorepolint/cli": "0.5.0",
3535
"@monorepolint/config": "0.5.0",
3636
"@monorepolint/core": "0.5.0",
3737
"@monorepolint/rules": "0.5.0",
38-
"@types/node": "18.11.9",
39-
"acorn": "^7.4.1",
38+
"@types/node": "22.15.3",
39+
"acorn": "^8.14.1",
4040
"camelcase": "^8.0.0",
4141
"d3-queue": "*",
4242
"decamelize": "^6.0.0",
43-
"dependency-tree": "^11.0.0",
43+
"dependency-tree": "^11.1.1",
4444
"documentation": "^14.0.3",
45-
"es-check": "^7.1.1",
46-
"eslint": "^9.16.0",
47-
"eslint-config-prettier": "^9.1.0",
48-
"eslint-plugin-prettier": "^5.2.1",
45+
"es-check": "^9.0.0",
46+
"eslint": "^9.25.1",
47+
"eslint-config-prettier": "^10.1.2",
48+
"eslint-plugin-prettier": "^5.2.6",
4949
"esm": "^3.2.25",
50-
"fs-extra": "^11.1.1",
51-
"glob": "^10.3.10",
52-
"globals": "^15.13.0",
53-
"husky": "^9.0.0",
54-
"lerna": "^8.1.9",
55-
"lint-staged": "^15.2.8",
50+
"fs-extra": "^11.3.0",
51+
"glob": "^11.0.2",
52+
"globals": "^16.0.0",
53+
"husky": "^9.1.7",
54+
"lerna": "^8.2.2",
55+
"lint-staged": "^15.5.1",
5656
"load-json-file": "^7.0.1",
57-
"meow": "^12.1.1",
57+
"meow": "^13.2.0",
5858
"npm-run-all": "^4.1.5",
59-
"prettier": "^3.3.3",
59+
"prettier": "^3.5.3",
6060
"progress": "^2.0.3",
61-
"tsup": "^8.3.5",
62-
"tsx": "^4.19.2",
63-
"typescript": "^5.5.4",
64-
"typescript-eslint": "^8.17.0",
61+
"tsup": "^8.4.0",
62+
"tsx": "^4.19.4",
63+
"typescript": "^5.8.3",
64+
"typescript-eslint": "^8.31.1",
6565
"yamljs": "^0.3.0"
6666
}
6767
}

packages/turf-along/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Takes a [LineString][1] and returns a [Point][2] at a specified distance along t
1212
* `distance` **[number][4]** distance along the line
1313
* `options` **[Object][5]?** Optional parameters (optional, default `{}`)
1414

15-
* `options.units` **Units** can be degrees, radians, miles, or kilometers (optional, default `"kilometers"`)
15+
* `options.units` **Units** Supports all valid Turf [Units][6]. (optional, default `"kilometers"`)
1616

1717
### Examples
1818

@@ -38,6 +38,8 @@ Returns **[Feature][3]<[Point][2]>** Point `distance` `units` along the line
3838

3939
[5]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object
4040

41+
[6]: https://turfjs.org/docs/api/types/Units
42+
4143
<!-- This file is automatically generated. Please don't edit it directly. If you find an error, edit the source file of the module in question (likely index.js or index.ts), and re-run "yarn docs" from the root of the turf project. -->
4244

4345
---

packages/turf-along/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { getGeom } from "@turf/invariant";
1212
* @param {Feature<LineString>|LineString} line input line
1313
* @param {number} distance distance along the line
1414
* @param {Object} [options] Optional parameters
15-
* @param {Units} [options.units="kilometers"] can be degrees, radians, miles, or kilometers
15+
* @param {Units} [options.units="kilometers"] Supports all valid Turf {@link https://turfjs.org/docs/api/types/Units Units}.
1616
* @returns {Feature<Point>} Point `distance` `units` along the line
1717
* @example
1818
* var line = turf.lineString([[-83, 30], [-84, 36], [-78, 41]]);

packages/turf-along/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,21 @@
5353
},
5454
"devDependencies": {
5555
"@types/benchmark": "^2.1.5",
56-
"@types/tape": "^4.13.4",
56+
"@types/tape": "^5.8.1",
5757
"benchmark": "^2.1.4",
5858
"load-json-file": "^7.0.1",
5959
"npm-run-all": "^4.1.5",
6060
"tape": "^5.9.0",
61-
"tsup": "^8.3.5",
62-
"tsx": "^4.19.2",
63-
"typescript": "^5.5.4"
61+
"tsup": "^8.4.0",
62+
"tsx": "^4.19.4",
63+
"typescript": "^5.8.3"
6464
},
6565
"dependencies": {
66-
"@turf/bearing": "workspace:^",
67-
"@turf/destination": "workspace:^",
68-
"@turf/distance": "workspace:^",
69-
"@turf/helpers": "workspace:^",
70-
"@turf/invariant": "workspace:^",
66+
"@turf/bearing": "workspace:*",
67+
"@turf/destination": "workspace:*",
68+
"@turf/distance": "workspace:*",
69+
"@turf/helpers": "workspace:*",
70+
"@turf/invariant": "workspace:*",
7171
"@types/geojson": "^7946.0.10",
7272
"tslib": "^2.8.1"
7373
}

packages/turf-angle/package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -52,26 +52,26 @@
5252
"test:tape": "tsx test.ts"
5353
},
5454
"devDependencies": {
55-
"@turf/distance": "workspace:^",
56-
"@turf/sector": "workspace:^",
57-
"@turf/truncate": "workspace:^",
55+
"@turf/distance": "workspace:*",
56+
"@turf/sector": "workspace:*",
57+
"@turf/truncate": "workspace:*",
5858
"@types/benchmark": "^2.1.5",
59-
"@types/tape": "^4.13.4",
59+
"@types/tape": "^5.8.1",
6060
"benchmark": "^2.1.4",
61-
"glob": "^10.3.10",
61+
"glob": "^11.0.2",
6262
"load-json-file": "^7.0.1",
6363
"npm-run-all": "^4.1.5",
6464
"tape": "^5.9.0",
65-
"tsup": "^8.3.5",
66-
"tsx": "^4.19.2",
67-
"typescript": "^5.5.4",
68-
"write-json-file": "^5.0.0"
65+
"tsup": "^8.4.0",
66+
"tsx": "^4.19.4",
67+
"typescript": "^5.8.3",
68+
"write-json-file": "^6.0.0"
6969
},
7070
"dependencies": {
71-
"@turf/bearing": "workspace:^",
72-
"@turf/helpers": "workspace:^",
73-
"@turf/invariant": "workspace:^",
74-
"@turf/rhumb-bearing": "workspace:^",
71+
"@turf/bearing": "workspace:*",
72+
"@turf/helpers": "workspace:*",
73+
"@turf/invariant": "workspace:*",
74+
"@turf/rhumb-bearing": "workspace:*",
7575
"@types/geojson": "^7946.0.10",
7676
"tslib": "^2.8.1"
7777
}

packages/turf-area/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,19 @@
5252
},
5353
"devDependencies": {
5454
"@types/benchmark": "^2.1.5",
55-
"@types/tape": "^4.13.4",
55+
"@types/tape": "^5.8.1",
5656
"benchmark": "^2.1.4",
5757
"load-json-file": "^7.0.1",
5858
"npm-run-all": "^4.1.5",
5959
"tape": "^5.9.0",
60-
"tsup": "^8.3.5",
61-
"tsx": "^4.19.2",
62-
"typescript": "^5.5.4",
63-
"write-json-file": "^5.0.0"
60+
"tsup": "^8.4.0",
61+
"tsx": "^4.19.4",
62+
"typescript": "^5.8.3",
63+
"write-json-file": "^6.0.0"
6464
},
6565
"dependencies": {
66-
"@turf/helpers": "workspace:^",
67-
"@turf/meta": "workspace:^",
66+
"@turf/helpers": "workspace:*",
67+
"@turf/meta": "workspace:*",
6868
"@types/geojson": "^7946.0.10",
6969
"tslib": "^2.8.1"
7070
}

packages/turf-bbox-clip/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,21 +57,21 @@
5757
"test:tape": "tsx test.ts"
5858
},
5959
"devDependencies": {
60-
"@turf/bbox": "workspace:^",
60+
"@turf/bbox": "workspace:*",
6161
"@types/benchmark": "^2.1.5",
62-
"@types/tape": "^4.13.4",
62+
"@types/tape": "^5.8.1",
6363
"benchmark": "^2.1.4",
6464
"load-json-file": "^7.0.1",
6565
"npm-run-all": "^4.1.5",
6666
"tape": "^5.9.0",
67-
"tsup": "^8.3.5",
68-
"tsx": "^4.19.2",
69-
"typescript": "^5.5.4",
70-
"write-json-file": "^5.0.0"
67+
"tsup": "^8.4.0",
68+
"tsx": "^4.19.4",
69+
"typescript": "^5.8.3",
70+
"write-json-file": "^6.0.0"
7171
},
7272
"dependencies": {
73-
"@turf/helpers": "workspace:^",
74-
"@turf/invariant": "workspace:^",
73+
"@turf/helpers": "workspace:*",
74+
"@turf/invariant": "workspace:*",
7575
"@types/geojson": "^7946.0.10",
7676
"tslib": "^2.8.1"
7777
}

0 commit comments

Comments
 (0)