Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,36 +30,36 @@
},
"packageManager": "pnpm@10.10.0+sha256.fa0f513aa8191764d2b6b432420788c270f07b4f999099b65bb2010eec702a30",
"devDependencies": {
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.31.0",
"@eslint/eslintrc": "^3.3.5",
"@eslint/js": "^9.39.4",
"@monorepolint/cli": "0.6.0-alpha.5",
"@monorepolint/config": "0.6.0-alpha.6",
"@monorepolint/core": "0.6.0-alpha.6",
"@monorepolint/rules": "0.6.0-alpha.6",
"@types/node": "22.15.3",
"acorn": "^8.14.1",
"acorn": "^8.17.0",
"camelcase": "^8.0.0",
"d3-queue": "*",
"decamelize": "^6.0.0",
"dependency-tree": "^11.1.1",
"d3-queue": "^3.0.7",
"decamelize": "^6.0.1",
"dependency-tree": "^11.5.0",
"documentation": "^14.0.3",
"es-check": "^9.0.0",
"eslint": "^9.31.0",
"es-check": "^9.6.4",
"eslint": "^9.39.4",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.3",
"eslint-plugin-prettier": "^5.5.6",
"esm": "^3.2.25",
"glob": "^11.1.0",
"globals": "^16.0.0",
"globals": "^16.5.0",
"husky": "^9.1.7",
"lerna": "^9.0.3",
"lint-staged": "^15.5.1",
"lerna": "^9.0.7",
"lint-staged": "^15.5.2",
"load-json-file": "^7.0.1",
"meow": "^13.2.0",
"prettier": "^3.5.3",
"prettier": "^3.9.4",
"progress": "^2.0.3",
"tsup": "^8.4.0",
"typescript": "^5.8.3",
"typescript-eslint": "^8.38.0",
"yaml": "^2.8.2"
"tsup": "^8.5.1",
"typescript": "^5.9.3",
"typescript-eslint": "^8.62.1",
"yaml": "^2.9.0"
}
}
4 changes: 2 additions & 2 deletions packages/turf-boolean-contains/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
"@types/benchmark": "catalog:",
"@types/tape": "catalog:",
"benchmark": "catalog:",
"boolean-jsts": "*",
"boolean-shapely": "*",
"boolean-jsts": "^0.0.1",
"boolean-shapely": "^0.1.2",
"load-json-file": "^7.0.1",
"tape": "catalog:",
"tsup": "catalog:",
Expand Down
2 changes: 1 addition & 1 deletion packages/turf-boolean-crosses/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"@types/benchmark": "catalog:",
"@types/tape": "catalog:",
"benchmark": "catalog:",
"boolean-shapely": "*",
"boolean-shapely": "^0.1.2",
"load-json-file": "^7.0.1",
"tape": "catalog:",
"tsup": "catalog:",
Expand Down
2 changes: 1 addition & 1 deletion packages/turf-boolean-disjoint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"@types/benchmark": "catalog:",
"@types/tape": "catalog:",
"benchmark": "catalog:",
"boolean-shapely": "*",
"boolean-shapely": "^0.1.2",
"load-json-file": "^7.0.1",
"tape": "catalog:",
"tsup": "catalog:",
Expand Down
2 changes: 1 addition & 1 deletion packages/turf-boolean-equal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"@types/benchmark": "catalog:",
"@types/tape": "catalog:",
"benchmark": "catalog:",
"boolean-shapely": "*",
"boolean-shapely": "^0.1.2",
"load-json-file": "^7.0.1",
"tape": "catalog:",
"tsup": "catalog:",
Expand Down
2 changes: 1 addition & 1 deletion packages/turf-boolean-intersects/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"@types/benchmark": "catalog:",
"@types/tape": "catalog:",
"benchmark": "catalog:",
"boolean-shapely": "*",
"boolean-shapely": "^0.1.2",
"load-json-file": "^7.0.1",
"tape": "catalog:",
"tsup": "catalog:",
Expand Down
2 changes: 1 addition & 1 deletion packages/turf-boolean-overlap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"@types/benchmark": "catalog:",
"@types/tape": "catalog:",
"benchmark": "catalog:",
"boolean-shapely": "*",
"boolean-shapely": "^0.1.2",
"load-json-file": "^7.0.1",
"tape": "catalog:",
"tsup": "catalog:",
Expand Down
4 changes: 2 additions & 2 deletions packages/turf-boolean-touches/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
"@types/benchmark": "catalog:",
"@types/tape": "catalog:",
"benchmark": "catalog:",
"boolean-jsts": "*",
"boolean-shapely": "*",
"boolean-jsts": "^0.0.1",
"boolean-shapely": "^0.1.2",
"load-json-file": "^7.0.1",
"tape": "catalog:",
"tsup": "catalog:",
Expand Down
4 changes: 2 additions & 2 deletions packages/turf-boolean-valid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
"@types/benchmark": "catalog:",
"@types/tape": "catalog:",
"benchmark": "catalog:",
"boolean-jsts": "*",
"boolean-shapely": "*",
"boolean-jsts": "^0.0.1",
"boolean-shapely": "^0.1.2",
"load-json-file": "^7.0.1",
"tape": "catalog:",
"tsup": "catalog:",
Expand Down
4 changes: 2 additions & 2 deletions packages/turf-boolean-within/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
"@types/benchmark": "catalog:",
"@types/tape": "catalog:",
"benchmark": "catalog:",
"boolean-jsts": "*",
"boolean-shapely": "*",
"boolean-jsts": "^0.0.1",
"boolean-shapely": "^0.1.2",
"load-json-file": "^7.0.1",
"tape": "catalog:",
"tsup": "catalog:",
Expand Down
2 changes: 1 addition & 1 deletion packages/turf-circle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts"
},
"devDependencies": {
"@placemarkio/check-geojson": "^0.1.12",
"@placemarkio/check-geojson": "^0.1.14",
"@turf/truncate": "workspace:*",
"@types/benchmark": "catalog:",
"@types/tape": "catalog:",
Expand Down
2 changes: 1 addition & 1 deletion packages/turf-clusters-kmeans/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"@turf/clusters": "workspace:*",
"@turf/random": "workspace:*",
"@types/benchmark": "catalog:",
"@types/skmeans": "^0.11.7",
"@types/skmeans": "^0.11.8",
"@types/tape": "catalog:",
"benchmark": "catalog:",
"chromatism": "^3.0.0",
Expand Down
4 changes: 1 addition & 3 deletions packages/turf-combine/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,7 @@ function combine(
.sort()
.map(function (key) {
var geometry = { type: key, coordinates: groups[key].coordinates } as
| MultiPoint
| MultiLineString
| MultiPolygon;
MultiPoint | MultiLineString | MultiPolygon;
var properties = { collectedProperties: groups[key].properties };
return feature(geometry, properties);
})
Expand Down
2 changes: 1 addition & 1 deletion packages/turf-ellipse/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"test:tape": "tsx test.ts"
},
"devDependencies": {
"@placemarkio/check-geojson": "^0.1.12",
"@placemarkio/check-geojson": "^0.1.14",
"@turf/area": "workspace:*",
"@turf/bbox-polygon": "workspace:*",
"@turf/circle": "workspace:*",
Expand Down
12 changes: 2 additions & 10 deletions packages/turf-helpers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,7 @@ export type Lines = LineString | MultiLineString | Polygon | MultiPolygon;
* @typedef
*/
export type AllGeoJSON =
| Feature
| FeatureCollection
| Geometry
| GeometryCollection;
Feature | FeatureCollection | Geometry | GeometryCollection;

/**
* The Earth radius in meters. Used by Turf modules that model the Earth as a sphere. The {@link https://en.wikipedia.org/wiki/Earth_radius#Arithmetic_mean_radius mean radius} was selected because it is {@link https://rosettacode.org/wiki/Haversine_formula#:~:text=This%20value%20is%20recommended recommended } by the Haversine formula (used by turf/distance) to reduce error.
Expand Down Expand Up @@ -642,12 +639,7 @@ export function multiPolygon<P extends GeoJsonProperties = GeoJsonProperties>(
*/
export function geometryCollection<
G extends
| Point
| LineString
| Polygon
| MultiPoint
| MultiLineString
| MultiPolygon,
Point | LineString | Polygon | MultiPoint | MultiLineString | MultiPolygon,
P extends GeoJsonProperties = GeoJsonProperties,
>(
geometries: Array<G>,
Expand Down
7 changes: 1 addition & 6 deletions packages/turf-invariant/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,7 @@ function getCoord(coord: Feature<Point> | Point | number[]): number[] {
*/
function getCoords<
G extends
| Point
| LineString
| Polygon
| MultiPoint
| MultiLineString
| MultiPolygon,
Point | LineString | Polygon | MultiPoint | MultiLineString | MultiPolygon,
>(coords: any[] | Feature<G> | G): any[] {
if (Array.isArray(coords)) {
return coords;
Expand Down
8 changes: 2 additions & 6 deletions packages/turf-meta/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -468,9 +468,7 @@ function featureEach<
P extends GeoJsonProperties = GeoJsonProperties,
>(
geojson:
| Feature<G, P>
| FeatureCollection<G, P>
| Feature<GeometryCollection, P>,
Feature<G, P> | FeatureCollection<G, P> | Feature<GeometryCollection, P>,
callback: (currentFeature: Feature<G, P>, featureIndex: number) => void
): void {
if (geojson.type === "Feature") {
Expand Down Expand Up @@ -533,9 +531,7 @@ function featureReduce<
P extends GeoJsonProperties = GeoJsonProperties,
>(
geojson:
| Feature<G, P>
| FeatureCollection<G, P>
| Feature<GeometryCollection, P>,
Feature<G, P> | FeatureCollection<G, P> | Feature<GeometryCollection, P>,
callback: (
previousValue: Reducer,
currentFeature: Feature<G, P>,
Expand Down
4 changes: 1 addition & 3 deletions packages/turf-nearest-point-to-line/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ import { pointToLineDistance } from "@turf/point-to-line-distance";
*/
function nearestPointToLine<P = { dist: number; [key: string]: any }>(
points:
| FeatureCollection<Point>
| Feature<GeometryCollection>
| GeometryCollection,
FeatureCollection<Point> | Feature<GeometryCollection> | GeometryCollection,
line: Feature<LineString> | LineString,
options: {
units?: Units;
Expand Down
5 changes: 3 additions & 2 deletions packages/turf-nearest-point/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import { clone } from "@turf/clone";
import { distance } from "@turf/distance";
import { featureEach } from "@turf/meta";

interface NearestPoint<P extends GeoJsonProperties = GeoJsonProperties>
extends Feature<Point> {
interface NearestPoint<
P extends GeoJsonProperties = GeoJsonProperties,
> extends Feature<Point> {
properties: {
featureIndex: number;
distanceToPoint: number;
Expand Down
4 changes: 1 addition & 3 deletions packages/turf-point-to-polygon-distance/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ import { polygon, Units } from "@turf/helpers";
export function pointToPolygonDistance(
point: Feature<Point> | Point | Position,
polygonOrMultiPolygon:
| Feature<Polygon | MultiPolygon>
| Polygon
| MultiPolygon,
Feature<Polygon | MultiPolygon> | Polygon | MultiPolygon,
options: {
units?: Units;
method?: "geodesic" | "planar";
Expand Down
3 changes: 1 addition & 2 deletions packages/turf-points-within-polygon/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ function pointsWithinPolygon<
P extends GeoJsonProperties,
>(
points:
| Feature<Point | MultiPoint, P>
| FeatureCollection<Point | MultiPoint, P>,
Feature<Point | MultiPoint, P> | FeatureCollection<Point | MultiPoint, P>,
polygons: Feature<G> | FeatureCollection<G> | G
): FeatureCollection<Point | MultiPoint, P> {
const results: Feature<Point | MultiPoint, P>[] = [];
Expand Down
2 changes: 1 addition & 1 deletion packages/turf-projection/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"@types/tape": "catalog:",
"benchmark": "catalog:",
"load-json-file": "^7.0.1",
"proj4": "^2.9.2",
"proj4": "^2.20.9",
"tape": "catalog:",
"tsup": "catalog:",
"tsx": "catalog:",
Expand Down
3 changes: 1 addition & 2 deletions packages/turf-transform-scale/bench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ const fixtures = fs.readdirSync(directory).map((filename) => {
return {
name: path.parse(filename).name,
geojson: loadJsonFileSync(directory + filename) as
| FeatureCollection
| Feature,
FeatureCollection | Feature,
};
});

Expand Down
3 changes: 1 addition & 2 deletions packages/turf-transform-scale/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ const fixtures = fs.readdirSync(directories.in).map((filename) => {
filename,
name: path.parse(filename).name,
geojson: loadJsonFileSync(directories.in + filename) as
| FeatureCollection
| Feature,
FeatureCollection | Feature,
};
});

Expand Down
20 changes: 10 additions & 10 deletions packages/turf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,22 +74,22 @@
"test": "echo '@turf/turf tests run in the last-checks step'"
},
"devDependencies": {
"@babel/core": "^7.26.10",
"@babel/preset-env": "^7.26.9",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^28.0.3",
"@rollup/plugin-node-resolve": "^16.0.1",
"@babel/core": "^7.29.7",
"@babel/preset-env": "^7.29.7",
"@rollup/plugin-babel": "^7.1.0",
"@rollup/plugin-commonjs": "^29.0.3",
"@rollup/plugin-node-resolve": "^16.0.3",
"@rollup/plugin-terser": "^0.4.4",
"@types/tape": "^5.8.1",
"camelcase": "^8.0.0",
"documentation": "^14.0.3",
"glob": "^11.1.0",
"rollup": "^4.40.1",
"rollup": "^4.62.2",
"rollup-plugin-polyfill-node": "^0.13.0",
"tape": "^5.9.0",
"tsup": "^8.4.0",
"tsx": "^4.19.4",
"typescript": "^5.8.3"
"tape": "^5.10.2",
"tsup": "^8.5.1",
"tsx": "^4.22.4",
"typescript": "^5.9.3"
},
"dependencies": {
"@turf/along": "workspace:*",
Expand Down
Loading
Loading