Skip to content

Commit 94432b9

Browse files
authored
Use newer @types/rbush that fixes the need for the reexport shims (#2924)
1 parent 3c31d5e commit 94432b9

File tree

7 files changed

+11
-25
lines changed

7 files changed

+11
-25
lines changed

packages/turf-clusters-dbscan/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { GeoJsonProperties, FeatureCollection, Point } from "geojson";
22
import { clone } from "@turf/clone";
33
import { distance } from "@turf/distance";
44
import { degreesToRadians, lengthToDegrees, Units } from "@turf/helpers";
5-
import { rbush as RBush } from "./lib/rbush-export.js";
5+
import RBush from "rbush";
66

77
/**
88
* Point classification within the cluster.

packages/turf-clusters-dbscan/lib/rbush-export.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/turf-clusters-dbscan/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"@turf/centroid": "workspace:*",
6464
"@turf/clusters": "workspace:*",
6565
"@types/benchmark": "^2.1.5",
66-
"@types/rbush": "^3.0.2",
66+
"@types/rbush": "^3.0.4",
6767
"@types/tape": "^5.8.1",
6868
"benchmark": "^2.1.4",
6969
"chromatism": "^3.0.0",

packages/turf-collect/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { FeatureCollection, Polygon, Point } from "geojson";
22
import { bbox as turfbbox } from "@turf/bbox";
33
import { booleanPointInPolygon } from "@turf/boolean-point-in-polygon";
4-
import { rbush } from "./lib/rbush-export.js";
4+
import rbush from "rbush";
55

66
interface Entry {
77
minX: number;

packages/turf-collect/lib/rbush-export.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/turf-collect/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
},
5858
"devDependencies": {
5959
"@types/benchmark": "^2.1.5",
60-
"@types/rbush": "^3.0.2",
60+
"@types/rbush": "^3.0.4",
6161
"@types/tape": "^5.8.1",
6262
"benchmark": "^2.1.4",
6363
"npm-run-all": "^4.1.5",

pnpm-lock.yaml

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)