⚠️ 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.
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
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [@turf/area](https://github.com/Turfjs/turf) | dependencies | minor | [`7.3.5` → `7.4.0`](https://renovatebot.com/diffs/npm/@turf%2farea/7.3.5/7.4.0) |
---
### Release Notes
<details>
<summary>Turfjs/turf (@​turf/area)</summary>
### [`v7.4.0`](https://github.com/Turfjs/turf/releases/tag/v7.4.0)
[Compare Source](https://github.com/Turfjs/turf/compare/v7.3.5...v7.4.0)
#### 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](https://github.com/turf/bearing)
- Fix final bearing returning values outside \[-180, 180] by [@​JSap0914](https://github.com/JSap0914) in [#​3077](https://github.com/Turfjs/turf/pull/3077)
##### [@​turf/bezier](https://github.com/turf/bezier)
- Fix z value computation by [@​githubhanjunjun](https://github.com/githubhanjunjun) in [#​3042](https://github.com/Turfjs/turf/pull/3042)
##### [@​turf/boolean-contains](https://github.com/turf/boolean-contains)
- Allow boundary points in MultiPoint containment checks by [@​rexxars](https://github.com/rexxars) in [#​3024](https://github.com/Turfjs/turf/pull/3024)
- Treat an equal two-vertex line as contained by [@​spokodev](https://github.com/spokodev) in [#​3080](https://github.com/Turfjs/turf/pull/3080)
- Add MultiPolygon support for non-polygon types by [@​rexxars](https://github.com/rexxars) in [#​3010](https://github.com/Turfjs/turf/pull/3010)
- Speed up point, line, and MultiPolygon hot paths by [@​rexxars](https://github.com/rexxars) in [#​3099](https://github.com/Turfjs/turf/pull/3099)
- Reject inner polygon whose edge crosses a concave outer polygon by [@​aloktomarr](https://github.com/aloktomarr) in [#​3104](https://github.com/Turfjs/turf/pull/3104)
##### [@​turf/boolean-crosses](https://github.com/turf/boolean-crosses)
- Make MultiPoint/LineString crossing order-independent by [@​spokodev](https://github.com/spokodev) in [#​3079](https://github.com/Turfjs/turf/pull/3079)
- Return false if a line/line intersection is on an endpoint by [@​mfedderly](https://github.com/mfedderly) in [#​3070](https://github.com/Turfjs/turf/pull/3070)
##### [@​turf/boolean-disjoint](https://github.com/turf/boolean-disjoint)
- Overlapping collinear lines should return false by [@​cycsmail](https://github.com/cycsmail) in [#​3097](https://github.com/Turfjs/turf/pull/3097)
- Test for explicit line/line touch on a boundary point by [@​mfedderly](https://github.com/mfedderly) in [#​3100](https://github.com/Turfjs/turf/pull/3100)
- Performance: Delegate flattening to booleanDisjoint by [@​rexxars](https://github.com/rexxars) in [#​3103](https://github.com/Turfjs/turf/pull/3103)
##### [@​turf/boolean-point-in-polygon](https://github.com/turf/boolean-point-in-polygon)
- Perf improvement & Fix issue with multiple polygons when the point is on the boundary of a polygon by [@​Pitouli](https://github.com/Pitouli) in [#​2821](https://github.com/Turfjs/turf/pull/2821)
##### [@​turf/boolean-valid](https://github.com/turf/boolean-valid)
- Add support for GeometryCollection geometries by [@​ltkum](https://github.com/ltkum) in [#​2916](https://github.com/Turfjs/turf/pull/2916)
- Allow MultiLineStrings with only a single LineString by [@​sharmaB01](https://github.com/sharmaB01) in [#​2846](https://github.com/Turfjs/turf/pull/2846)
##### [@​turf/boolean-within](https://github.com/turf/boolean-within)
Internally this has been rewritten to use [@​turf/boolean-contains](https://github.com/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](https://github.com/mahirhir) in [#​3085](https://github.com/Turfjs/turf/pull/3085)
- Add MultiPolygon support, de-duplicate logic by [@​rexxars](https://github.com/rexxars) in [#​3011](https://github.com/Turfjs/turf/pull/3011)
##### [@​turf/clusters-dbscan](https://github.com/turf/clusters-dbscan)
- Correctly honor `units` option by [@​mradlinski](https://github.com/mradlinski) in [#​3026](https://github.com/Turfjs/turf/pull/3026)
##### [@​turf/combine](https://github.com/turf/combine)
- Docs: add MultiGeometries to input type by [@​rczobor](https://github.com/rczobor) in [#​2935](https://github.com/Turfjs/turf/pull/2935)
##### [@​turf/convex](https://github.com/turf/convex)
- Correctly include properties in the final result by [@​blchelle](https://github.com/blchelle) in [#​2972](https://github.com/Turfjs/turf/pull/2972)
##### [@​turf/helpers](https://github.com/turf/helpers)
- Add short forms for Units and AreaUnits by [@​Johse](https://github.com/Johse) in [#​3063](https://github.com/Turfjs/turf/pull/3063)
##### [@​turf/line-arc](https://github.com/turf/line-arc)
- Always reach bearing2 (fix dropped final vertex) by [@​chatman-media](https://github.com/chatman-media) in [#​3078](https://github.com/Turfjs/turf/pull/3078)
##### [@​turf/line-overlap](https://github.com/turf/line-overlap)
- Fixing missing certain horizontal/vertical lines with `tolerance` ([#​2582](https://github.com/Turfjs/turf/issues/2582)) by [@​jonovotny](https://github.com/jonovotny) in [#​3071](https://github.com/Turfjs/turf/pull/3071)
##### [@​turf/polygonize](https://github.com/turf/polygonize)
- Fix behavior when there are duplicate coordinates in the input by [@​Traksewt](https://github.com/Traksewt) in [#​3045](https://github.com/Turfjs/turf/pull/3045)
- Performance: Migrate to Map/Set by [@​mfedderly](https://github.com/mfedderly) in [#​3074](https://github.com/Turfjs/turf/pull/3074)
- Performance: Migrate edge storage from Array to Map for performance by [@​mfedderly](https://github.com/mfedderly) in [#​3081](https://github.com/Turfjs/turf/pull/3081)
##### [@​turf/projection](https://github.com/turf/projection)
- Docs: Use official EPSG:3857 code instead of deprecated EPSG:900913 by [@​cycsmail](https://github.com/cycsmail) in [#​3101](https://github.com/Turfjs/turf/pull/3101)
##### [@​turf/transform-scale](https://github.com/turf/transform-scale), [@​turf/transform-translate](https://github.com/turf/transform-translate), [@​turf/transform-rotate](https://github.com/turf/transform-rotate)
- Remove stale bboxes after coordinate transforms by [@​khalilurrrahmanridoykhan](https://github.com/khalilurrrahmanridoykhan) in [#​3106](https://github.com/Turfjs/turf/pull/3106)
##### Internal:
- Publish without NPM\_TOKEN by [@​mfedderly](https://github.com/mfedderly) in [#​3051](https://github.com/Turfjs/turf/pull/3051)
- Migrate [@​turf/buffer](https://github.com/turf/buffer) to TypeScript, ignoring errors by [@​mfedderly](https://github.com/mfedderly) in [#​2994](https://github.com/Turfjs/turf/pull/2994)
- Remove JavaScript package support from MRL config by [@​mfedderly](https://github.com/mfedderly) in [#​3056](https://github.com/Turfjs/turf/pull/3056)
- Move to pnpm catalogs by [@​mfedderly](https://github.com/mfedderly) in [#​3057](https://github.com/Turfjs/turf/pull/3057)
- Revert d3-geo to 2.x to fix Node CJS consumers by [@​mfedderly](https://github.com/mfedderly) in [#​3066](https://github.com/Turfjs/turf/pull/3066)
- Clean up the .gitignore files by [@​mfedderly](https://github.com/mfedderly) in [#​3067](https://github.com/Turfjs/turf/pull/3067)
- Add consumer-style testing for Turf by [@​mfedderly](https://github.com/mfedderly) in [#​3065](https://github.com/Turfjs/turf/pull/3065)
- Update the CI workflows by [@​mfedderly](https://github.com/mfedderly) in [#​3068](https://github.com/Turfjs/turf/pull/3068)
- Move to [@​types/earcut](https://github.com/types/earcut) for [@​turf/tesselate](https://github.com/turf/tesselate) by [@​mfedderly](https://github.com/mfedderly) in [#​3069](https://github.com/Turfjs/turf/pull/3069)
- Remove optional transitive dep on vue-template-compiler by [@​mfedderly](https://github.com/mfedderly) in [#​3089](https://github.com/Turfjs/turf/pull/3089)
- Upgrade dev dependencies by [@​mfedderly](https://github.com/mfedderly) in [#​3090](https://github.com/Turfjs/turf/pull/3090)
- Make last-checks tests less strict about [@​turf/helpers](https://github.com/turf/helpers) devDependencies by [@​mfedderly](https://github.com/mfedderly) in [#​3105](https://github.com/Turfjs/turf/pull/3105)
- line-offset - Fix bench.ts by [@​mfedderly](https://github.com/mfedderly) in [#​3111](https://github.com/Turfjs/turf/pull/3111)
- Clarify geomEach behavior and add a test by [@​mfedderly](https://github.com/mfedderly) in [#​3112](https://github.com/Turfjs/turf/pull/3112)
- Dependabot - Keep GitHub actions up to date by [@​mfedderly](https://github.com/mfedderly) in [#​3113](https://github.com/Turfjs/turf/pull/3113)
- Bump pnpm/action-setup from 4.1.0 to 6.0.9 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​3115](https://github.com/Turfjs/turf/pull/3115)
- Bump actions/setup-node from 4.3.0 to 7.0.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​3116](https://github.com/Turfjs/turf/pull/3116)
- Bump actions/checkout from 4.2.2 to 7.0.1 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​3117](https://github.com/Turfjs/turf/pull/3117)
- Bump softprops/action-gh-release from 2.2.1 to 3.0.2 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​3114](https://github.com/Turfjs/turf/pull/3114)
- Update release workflow to support OIDC by [@​mfedderly](https://github.com/mfedderly) in [#​3119](https://github.com/Turfjs/turf/pull/3119)
#### New Contributors
- [@​Johse](https://github.com/Johse) made their first contribution in [#​3063](https://github.com/Turfjs/turf/pull/3063)
- [@​githubhanjunjun](https://github.com/githubhanjunjun) made their first contribution in [#​3042](https://github.com/Turfjs/turf/pull/3042)
- [@​rexxars](https://github.com/rexxars) made their first contribution in [#​3024](https://github.com/Turfjs/turf/pull/3024)
- [@​spokodev](https://github.com/spokodev) made their first contribution in [#​3080](https://github.com/Turfjs/turf/pull/3080)
- [@​chatman-media](https://github.com/chatman-media) made their first contribution in [#​3078](https://github.com/Turfjs/turf/pull/3078)
- [@​mradlinski](https://github.com/mradlinski) made their first contribution in [#​3026](https://github.com/Turfjs/turf/pull/3026)
- [@​Traksewt](https://github.com/Traksewt) made their first contribution in [#​3045](https://github.com/Turfjs/turf/pull/3045)
- [@​JSap0914](https://github.com/JSap0914) made their first contribution in [#​3077](https://github.com/Turfjs/turf/pull/3077)
- [@​mahirhir](https://github.com/mahirhir) made their first contribution in [#​3085](https://github.com/Turfjs/turf/pull/3085)
- [@​jonovotny](https://github.com/jonovotny) made their first contribution in [#​3071](https://github.com/Turfjs/turf/pull/3071)
- [@​blchelle](https://github.com/blchelle) made their first contribution in [#​2972](https://github.com/Turfjs/turf/pull/2972)
- [@​rczobor](https://github.com/rczobor) made their first contribution in [#​2935](https://github.com/Turfjs/turf/pull/2935)
- [@​ltkum](https://github.com/ltkum) made their first contribution in [#​2916](https://github.com/Turfjs/turf/pull/2916)
- [@​sharmaB01](https://github.com/sharmaB01) made their first contribution in [#​2846](https://github.com/Turfjs/turf/pull/2846)
- [@​cycsmail](https://github.com/cycsmail) made their first contribution in [#​3097](https://github.com/Turfjs/turf/pull/3097)
- [@​khalilurrrahmanridoykhan](https://github.com/khalilurrrahmanridoykhan) made their first contribution in [#​3106](https://github.com/Turfjs/turf/pull/3106)
- [@​aloktomarr](https://github.com/aloktomarr) made their first contribution in [#​3104](https://github.com/Turfjs/turf/pull/3104)
**Full Changelog**: <https://github.com/Turfjs/turf/compare/v7.3.5...v7.4.0>
</details>
---
### Configuration
📅 **Schedule**: (UTC)
- Branch creation
- "every weekday,every weekend"
- Automerge
- "every weekend"
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNzkuMCIsInVwZGF0ZWRJblZlciI6IjQzLjI3OS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJib3QiLCJyZW5vdmF0ZSJdfQ==-->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This PR contains the following updates:
7.3.5→7.4.0Release Notes
Turfjs/turf (@turf/area)
v7.4.0Compare Source
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
@turf/boolean-contains
@turf/boolean-crosses
@turf/boolean-disjoint
@turf/boolean-point-in-polygon
@turf/boolean-valid
@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).
@turf/clusters-dbscan
unitsoption by @mradlinski in #3026@turf/combine
@turf/convex
@turf/helpers
@turf/line-arc
@turf/line-overlap
tolerance(#2582) by @jonovotny in #3071@turf/polygonize
@turf/projection
@turf/transform-scale, @turf/transform-translate, @turf/transform-rotate
Internal:
New Contributors
Full Changelog: https://github.com/Turfjs/turf/compare/v7.3.5...v7.4.0
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate.