Skip to content

Commit

Permalink
Merge pull request #2631 from Turfjs/mf/fast-deep-equal
Browse files Browse the repository at this point in the history
@turf/line-overlap change deep-equals dependency for smaller bundle size
  • Loading branch information
mfedderly authored Jun 26, 2024
2 parents 0ce6ecc + 6487f2b commit a8038d0
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 240 deletions.
2 changes: 1 addition & 1 deletion packages/turf-line-overlap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
GeoJsonProperties,
} from "geojson";
import { featureCollection, isObject } from "@turf/helpers";
import equal from "deep-equal";
import equal from "fast-deep-equal";

/**
* Takes any LineString or Polygon and returns the overlapping lines between both features.
Expand Down
3 changes: 1 addition & 2 deletions packages/turf-line-overlap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
},
"devDependencies": {
"@types/benchmark": "^2.1.5",
"@types/deep-equal": "^1.0.4",
"@types/tape": "^4.2.32",
"benchmark": "^2.1.4",
"load-json-file": "^7.0.1",
Expand All @@ -76,7 +75,7 @@
"@turf/line-segment": "workspace:^",
"@turf/meta": "workspace:^",
"@turf/nearest-point-on-line": "workspace:^",
"deep-equal": "^2.2.3",
"fast-deep-equal": "^3.1.3",
"tslib": "^2.6.2"
}
}
Loading

0 comments on commit a8038d0

Please sign in to comment.