What's Changed
⚠️ Due to correctness fixes, behavior across the boolean-* methods has changed. If you depended on the invalid behavior of these methods take extra care when upgrading.
@turf/bearing
@turf/bezier
- Fix z value computation by @githubhanjunjun in #3042
@turf/boolean-contains
- Allow boundary points in MultiPoint containment checks by @rexxars in #3024
- Treat an equal two-vertex line as contained by @spokodev in #3080
- Add MultiPolygon support for non-polygon types by @rexxars in #3010
- Speed up point, line, and MultiPolygon hot paths by @rexxars in #3099
- Reject inner polygon whose edge crosses a concave outer polygon by @aloktomarr in #3104
@turf/boolean-crosses
- Make MultiPoint/LineString crossing order-independent by @spokodev in #3079
- Return false if a line/line intersection is on an endpoint by @mfedderly in #3070
@turf/boolean-disjoint
- Overlapping collinear lines should return false by @cycsmail in #3097
- Test for explicit line/line touch on a boundary point by @mfedderly in #3100
- Performance: Delegate flattening to booleanDisjoint by @rexxars in #3103
@turf/boolean-point-in-polygon
- Perf improvement & Fix issue with multiple polygons when the point is on the boundary of a polygon by @Pitouli in #2821
@turf/boolean-valid
- Add support for GeometryCollection geometries by @ltkum in #2916
- Allow MultiLineStrings with only a single LineString by @sharmaB01 in #2846
@turf/boolean-within
Internally this has been rewritten to use @turf/boolean-contains. This increases correctness, but the additional checks may have regressed performance slightly depending on inputs (it is actually faster for some inputs).
- Require an interior point in MultiPoint-in-Polygon check by @mahirhir in #3085
- Add MultiPolygon support, de-duplicate logic by @rexxars in #3011
@turf/clusters-dbscan
- Correctly honor
unitsoption by @mradlinski in #3026
@turf/combine
@turf/convex
@turf/helpers
@turf/line-arc
- Always reach bearing2 (fix dropped final vertex) by @chatman-media in #3078
@turf/line-overlap
- Fixing missing certain horizontal/vertical lines with
tolerance(#2582) by @jonovotny in #3071
@turf/polygonize
- Fix behavior when there are duplicate coordinates in the input by @Traksewt in #3045
- Performance: Migrate to Map/Set by @mfedderly in #3074
- Performance: Migrate edge storage from Array to Map for performance by @mfedderly in #3081
@turf/projection
@turf/transform-scale, @turf/transform-translate, @turf/transform-rotate
- Remove stale bboxes after coordinate transforms by @khalilurrrahmanridoykhan in #3106
Internal:
- Publish without NPM_TOKEN by @mfedderly in #3051
- Migrate @turf/buffer to TypeScript, ignoring errors by @mfedderly in #2994
- Remove JavaScript package support from MRL config by @mfedderly in #3056
- Move to pnpm catalogs by @mfedderly in #3057
- Revert d3-geo to 2.x to fix Node CJS consumers by @mfedderly in #3066
- Clean up the .gitignore files by @mfedderly in #3067
- Add consumer-style testing for Turf by @mfedderly in #3065
- Update the CI workflows by @mfedderly in #3068
- Move to @types/earcut for @turf/tesselate by @mfedderly in #3069
- Remove optional transitive dep on vue-template-compiler by @mfedderly in #3089
- Upgrade dev dependencies by @mfedderly in #3090
- Make last-checks tests less strict about @turf/helpers devDependencies by @mfedderly in #3105
- line-offset - Fix bench.ts by @mfedderly in #3111
- Clarify geomEach behavior and add a test by @mfedderly in #3112
- Dependabot - Keep GitHub actions up to date by @mfedderly in #3113
- Bump pnpm/action-setup from 4.1.0 to 6.0.9 by @dependabot[bot] in #3115
- Bump actions/setup-node from 4.3.0 to 7.0.0 by @dependabot[bot] in #3116
- Bump actions/checkout from 4.2.2 to 7.0.1 by @dependabot[bot] in #3117
- Bump softprops/action-gh-release from 2.2.1 to 3.0.2 by @dependabot[bot] in #3114
- Update release workflow to support OIDC by @mfedderly in #3119
New Contributors
- @Johse made their first contribution in #3063
- @githubhanjunjun made their first contribution in #3042
- @rexxars made their first contribution in #3024
- @spokodev made their first contribution in #3080
- @chatman-media made their first contribution in #3078
- @mradlinski made their first contribution in #3026
- @Traksewt made their first contribution in #3045
- @JSap0914 made their first contribution in #3077
- @mahirhir made their first contribution in #3085
- @jonovotny made their first contribution in #3071
- @blchelle made their first contribution in #2972
- @rczobor made their first contribution in #2935
- @ltkum made their first contribution in #2916
- @sharmaB01 made their first contribution in #2846
- @cycsmail made their first contribution in #3097
- @khalilurrrahmanridoykhan made their first contribution in #3106
- @aloktomarr made their first contribution in #3104
Full Changelog: v7.3.5...v7.4.0