Skip to content

Commit 08aba00

Browse files
Merge branch 'master' into master
2 parents a4d0407 + 60c861b commit 08aba00

File tree

205 files changed

+16144
-13843
lines changed

Some content is hidden

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

205 files changed

+16144
-13843
lines changed

.github/workflows/prerelease.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ jobs:
1717
runs-on: ${{matrix.platform}}
1818

1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
2121
with:
2222
fetch-depth: 0
2323

2424
- name: Install pnpm
25-
uses: pnpm/action-setup@v4
25+
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # 4.1.0
2626
with:
2727
run_install: false
2828

2929
- name: Use Node.js ${{ matrix.node-version }}
30-
uses: actions/setup-node@v4
30+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # 4.3.0
3131
with:
3232
node-version: ${{ matrix.node-version }}
3333
registry-url: "https://registry.npmjs.org"

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ jobs:
2121
runs-on: ${{matrix.platform}}
2222

2323
steps:
24-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
2525
with:
2626
fetch-depth: 0
2727

2828
- name: Install pnpm
29-
uses: pnpm/action-setup@v4
29+
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # 4.1.0
3030
with:
3131
run_install: false
3232

3333
- name: Use Node.js ${{ matrix.node-version }}
34-
uses: actions/setup-node@v4
34+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # 4.3.0
3535
with:
3636
node-version: ${{ matrix.node-version }}
3737
registry-url: "https://registry.npmjs.org"
@@ -51,7 +51,7 @@ jobs:
5151
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5252

5353
- name: Create Github Release
54-
uses: softprops/action-gh-release@v2
54+
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # 2.2.1
5555
with:
5656
make_latest: true
5757
generate_release_notes: true

.github/workflows/turf.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ jobs:
2323

2424
steps:
2525
- name: Checkout
26-
uses: actions/checkout@v4
26+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
2727

2828
- name: Install pnpm
29-
uses: pnpm/action-setup@v4
29+
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # 4.1.0
3030
with:
3131
run_install: false
3232

3333
- name: Use Node.js ${{ matrix.node-version }}
34-
uses: actions/setup-node@v4
34+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # 4.3.0
3535
with:
3636
cache: "pnpm"
3737
node-version: ${{ matrix.node-version }}

.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
}

0 commit comments

Comments
 (0)