Turfjs/turf (@turf/centroid)
### [`v7.1.0`](https://redirect.github.com/Turfjs/turf/releases/tag/v7.1.0)
[Compare Source](https://redirect.github.com/Turfjs/turf/compare/v7.0.0...v7.1.0)
#### What's Changed
- `@turf/distance` Simplify unnecessary union type in turfDistance by [@isti115](https://redirect.github.com/isti115) in [https://github.com/Turfjs/turf/pull/2618](https://redirect.github.com/Turfjs/turf/pull/2618)
- Upgrade to Lerna 8 by [@mfedderly](https://redirect.github.com/mfedderly) in [https://github.com/Turfjs/turf/pull/2612](https://redirect.github.com/Turfjs/turf/pull/2612)
- Deprecate CHANGELOG, improve release action, PR template, Contributing doc by [@twelch](https://redirect.github.com/twelch) in [https://github.com/Turfjs/turf/pull/2621](https://redirect.github.com/Turfjs/turf/pull/2621)
- `@turf/helpers` Reduce bundle size of apps that import [@turf/helpers](https://redirect.github.com/turf/helpers) by [@smallsaucepan](https://redirect.github.com/smallsaucepan) in [https://github.com/Turfjs/turf/pull/2623](https://redirect.github.com/Turfjs/turf/pull/2623)
- `@turf/line-overlap` change deep-equals dependency for smaller bundle size by [@mfedderly](https://redirect.github.com/mfedderly) in [https://github.com/Turfjs/turf/pull/2631](https://redirect.github.com/Turfjs/turf/pull/2631)
- `@turf/mask` Converted turf-mask to Typescript and added support for geometry parameters by [@smallsaucepan](https://redirect.github.com/smallsaucepan) in [https://github.com/Turfjs/turf/pull/2644](https://redirect.github.com/Turfjs/turf/pull/2644)
- `@turf/midpoint` Converted turf-midpoint to Typescript by [@smallsaucepan](https://redirect.github.com/smallsaucepan) in [https://github.com/Turfjs/turf/pull/2645](https://redirect.github.com/Turfjs/turf/pull/2645)
- `@turf/planepoint` Converted turf-planepoint to Typescript by [@smallsaucepan](https://redirect.github.com/smallsaucepan) in [https://github.com/Turfjs/turf/pull/2646](https://redirect.github.com/Turfjs/turf/pull/2646)
- `@turf/square` Converted turf-square to Typescript by [@smallsaucepan](https://redirect.github.com/smallsaucepan) in [https://github.com/Turfjs/turf/pull/2648](https://redirect.github.com/Turfjs/turf/pull/2648)
- `@turf/standard-deviational-ellipse` Converted turf-standard-deviational-ellipse to Typescript by [@smallsaucepan](https://redirect.github.com/smallsaucepan) in [https://github.com/Turfjs/turf/pull/2649](https://redirect.github.com/Turfjs/turf/pull/2649)
- Pin pnpm version using corepack by [@RobinVdBroeck](https://redirect.github.com/RobinVdBroeck) in [https://github.com/Turfjs/turf/pull/2602](https://redirect.github.com/Turfjs/turf/pull/2602)
- `@turf/tesselate` Converted turf-tesselate to Typescript by [@smallsaucepan](https://redirect.github.com/smallsaucepan) in [https://github.com/Turfjs/turf/pull/2650](https://redirect.github.com/Turfjs/turf/pull/2650)
- `@turf/transform-rotate` Converted turf-transform-rotate to Typescript by [@smallsaucepan](https://redirect.github.com/smallsaucepan) in [https://github.com/Turfjs/turf/pull/2651](https://redirect.github.com/Turfjs/turf/pull/2651)
- `@turf/transform-scale` Converted turf-transform-scale to Typescript by [@smallsaucepan](https://redirect.github.com/smallsaucepan) in [https://github.com/Turfjs/turf/pull/2652](https://redirect.github.com/Turfjs/turf/pull/2652)
- `@turf/transform-translate` Converted turf-transform-translate to Typescript by [@smallsaucepan](https://redirect.github.com/smallsaucepan) in [https://github.com/Turfjs/turf/pull/2653](https://redirect.github.com/Turfjs/turf/pull/2653)
- `@turf/unkink-polygon` Converted turf-unkink-polygon to Typescript by [@smallsaucepan](https://redirect.github.com/smallsaucepan) in [https://github.com/Turfjs/turf/pull/2654](https://redirect.github.com/Turfjs/turf/pull/2654)
- `@turf/voronoi` Converted turf-voronoi to Typescript by [@smallsaucepan](https://redirect.github.com/smallsaucepan) in [https://github.com/Turfjs/turf/pull/2655](https://redirect.github.com/Turfjs/turf/pull/2655)
- `@turf/boolean-intersects` Fix boolean-intersects docs by [@izzybps](https://redirect.github.com/izzybps) in [https://github.com/Turfjs/turf/pull/2593](https://redirect.github.com/Turfjs/turf/pull/2593)
- Updated documentation.js to resolve critical parse-url vulnerability by [@smallsaucepan](https://redirect.github.com/smallsaucepan) in [https://github.com/Turfjs/turf/pull/2664](https://redirect.github.com/Turfjs/turf/pull/2664)
- `@turf/area`: bug fix: off-by-one bug in area calculation by [@Abdumbo99](https://redirect.github.com/Abdumbo99) in [https://github.com/Turfjs/turf/pull/2665](https://redirect.github.com/Turfjs/turf/pull/2665)
- Upgrade dependencies by [@mfedderly](https://redirect.github.com/mfedderly) in [https://github.com/Turfjs/turf/pull/2668](https://redirect.github.com/Turfjs/turf/pull/2668)
- `@turf/isobands` `@turf/isolines` Remove unused matrix-to-grid dependency by [@mfedderly](https://redirect.github.com/mfedderly) in [https://github.com/Turfjs/turf/pull/2669](https://redirect.github.com/Turfjs/turf/pull/2669)
- `@turf/random` fix randomPolygon generating polygons outside of the given `bbox` by [@nnmrts](https://redirect.github.com/nnmrts) in [https://github.com/Turfjs/turf/pull/2659](https://redirect.github.com/Turfjs/turf/pull/2659)
- `@turf/boolean-intersects` `@turf/booean-disjoint` Expose options parameter to ignore self intersections. by [@01100100](https://redirect.github.com/01100100) in [https://github.com/Turfjs/turf/pull/2636](https://redirect.github.com/Turfjs/turf/pull/2636)
- `@turf/boolean-valid` fix checkClosingRing to check for polygon being closed by [@superDoss](https://redirect.github.com/superDoss) in [https://github.com/Turfjs/turf/pull/2563](https://redirect.github.com/Turfjs/turf/pull/2563)
- `@turf/helpers` Implemented azimuthToBearing by [@basvdijk](https://redirect.github.com/basvdijk) in [https://github.com/Turfjs/turf/pull/2674](https://redirect.github.com/Turfjs/turf/pull/2674)
- Added support/6.x branch to CI config by [@smallsaucepan](https://redirect.github.com/smallsaucepan) in [https://github.com/Turfjs/turf/pull/2673](https://redirect.github.com/Turfjs/turf/pull/2673)
- `@turf/nearest-point-on-line` include index of MultiLineString geometries in nearest-point-on-line by [@andrewharvey](https://redirect.github.com/andrewharvey) in [https://github.com/Turfjs/turf/pull/2574](https://redirect.github.com/Turfjs/turf/pull/2574)
- `@turf/point-to-line-distance` Fix two small typos by [@mfedderly](https://redirect.github.com/mfedderly) in [https://github.com/Turfjs/turf/pull/2675](https://redirect.github.com/Turfjs/turf/pull/2675)
- Update PR/develop action to cache pnpm files by [@mfedderly](https://redirect.github.com/mfedderly) in [https://github.com/Turfjs/turf/pull/2671](https://redirect.github.com/Turfjs/turf/pull/2671)
- Add explicit geojson types dependency by [@mfedderly](https://redirect.github.com/mfedderly) in [https://github.com/Turfjs/turf/pull/2676](https://redirect.github.com/Turfjs/turf/pull/2676)
- Rework prettier setup by [@mfedderly](https://redirect.github.com/mfedderly) in [https://github.com/Turfjs/turf/pull/2677](https://redirect.github.com/Turfjs/turf/pull/2677)
- Update [@types/geojson](https://redirect.github.com/types/geojson) to 7946.0.10 minimum by [@mfedderly](https://redirect.github.com/mfedderly) in [https://github.com/Turfjs/turf/pull/2688](https://redirect.github.com/Turfjs/turf/pull/2688)
- `@turf/mask` Stop turf-mask mutating by default, make it an option by [@farkmarnum](https://redirect.github.com/farkmarnum) in [https://github.com/Turfjs/turf/pull/2635](https://redirect.github.com/Turfjs/turf/pull/2635)
- Add test.example.js to .prettierignore by [@mfedderly](https://redirect.github.com/mfedderly) in [https://github.com/Turfjs/turf/pull/2689](https://redirect.github.com/Turfjs/turf/pull/2689)
- `@turf/mask` Fix [@turf/mask](https://redirect.github.com/turf/mask) benchmarks to exclude test fixtures that are not usable by [@mfedderly](https://redirect.github.com/mfedderly) in [https://github.com/Turfjs/turf/pull/2692](https://redirect.github.com/Turfjs/turf/pull/2692)
- `@turf/kinks` Revert [@turf/kinks](https://redirect.github.com/turf/kinks) to 6.5.0 version by [@mfedderly](https://redirect.github.com/mfedderly) in [https://github.com/Turfjs/turf/pull/2693](https://redirect.github.com/Turfjs/turf/pull/2693)
- `@turf/cluster-dbscan`Update cluster-dbscan docs by [@mwenko](https://redirect.github.com/mwenko) in [https://github.com/Turfjs/turf/pull/2624](https://redirect.github.com/Turfjs/turf/pull/2624)
- `@turf/*-grid` `@turf/area` `@turf/helpers` Clarify behavior of some existing turf modules by [@twelch](https://redirect.github.com/twelch) in [https://github.com/Turfjs/turf/pull/2683](https://redirect.github.com/Turfjs/turf/pull/2683)
- Upgrade pnpm/action-setup in github actions by [@mfedderly](https://redirect.github.com/mfedderly) in [https://github.com/Turfjs/turf/pull/2696](https://redirect.github.com/Turfjs/turf/pull/2696)
#### New Contributors
- [@isti115](https://redirect.github.com/isti115) made their first contribution in [https://github.com/Turfjs/turf/pull/2618](https://redirect.github.com/Turfjs/turf/pull/2618)
- [@izzybps](https://redirect.github.com/izzybps) made their first contribution in [https://github.com/Turfjs/turf/pull/2593](https://redirect.github.com/Turfjs/turf/pull/2593)
- [@Abdumbo99](https://redirect.github.com/Abdumbo99) made their first contribution in [https://github.com/Turfjs/turf/pull/2665](https://redirect.github.com/Turfjs/turf/pull/2665)
- [@nnmrts](https://redirect.github.com/nnmrts) made their first contribution in [https://github.com/Turfjs/turf/pull/2659](https://redirect.github.com/Turfjs/turf/pull/2659)
- [@01100100](https://redirect.github.com/01100100) made their first contribution in [https://github.com/Turfjs/turf/pull/2636](https://redirect.github.com/Turfjs/turf/pull/2636)
- [@superDoss](https://redirect.github.com/superDoss) made their first contribution in [https://github.com/Turfjs/turf/pull/2563](https://redirect.github.com/Turfjs/turf/pull/2563)
- [@basvdijk](https://redirect.github.com/basvdijk) made their first contribution in [https://github.com/Turfjs/turf/pull/2674](https://redirect.github.com/Turfjs/turf/pull/2674)
- [@andrewharvey](https://redirect.github.com/andrewharvey) made their first contribution in [https://github.com/Turfjs/turf/pull/2574](https://redirect.github.com/Turfjs/turf/pull/2574)
- [@farkmarnum](https://redirect.github.com/farkmarnum) made their first contribution in [https://github.com/Turfjs/turf/pull/2635](https://redirect.github.com/Turfjs/turf/pull/2635)
**Full Changelog**: https://github.com/Turfjs/turf/compare/v7.0.0...v7.1.0
### [`v7.0.0`](https://redirect.github.com/Turfjs/turf/blob/HEAD/CHANGELOG.md#700)
[Compare Source](https://redirect.github.com/Turfjs/turf/compare/v6.5.0...v7.0.0)
#### ⚠️ Breaking
- Move to [@types/geojson](https://redirect.github.com/types/geojson) package instead of declaring our own. Typescript consumers of Turf will need to import from [@types/geojson](https://redirect.github.com/types/geojson). ([#2158](https://redirect.github.com/Turfjs/turf/issues/2158))
- Move distribution JS to target ES2017 ([#2237](https://redirect.github.com/Turfjs/turf/issues/2237))
- Please change to using named exports instead of default exports from the various packages
- [`@turf/helpers`](helpers) Correct the conversion factor for degrees ([#2177](https://redirect.github.com/Turfjs/turf/issues/2177))
- [`@turf/helpers`](helpers) polygon() will now throw if the first and last coordinates are not the same ([#2173](https://redirect.github.com/Turfjs/turf/issues/2173))
- [`@turf/helpers`](helpers) Separate AreaUnits into its own type ([#2393](https://redirect.github.com/Turfjs/turf/issues/2393))
- [`@turf/area`](area) Fix earth radius to use WGS84 median earth radius ([#2166](https://redirect.github.com/Turfjs/turf/issues/2166))
- [`@turf/turf`](turf) Remove re-exports for turf 4.x compatability ([#2183](https://redirect.github.com/Turfjs/turf/issues/2183))
- [`@turf/rectangle-grid`](rectangle-grid) Fix correctness for large areas ([#2106](https://redirect.github.com/Turfjs/turf/issues/2106))
- [\`@turf/square-grid](square-grid) Fix correctness for large areas ([#2106](https://redirect.github.com/Turfjs/turf/issues/2106))
- [`@turf/union`](union) Accept FeatureCollection for multiple inputs ([#2247](https://redirect.github.com/Turfjs/turf/issues/2247))
- [`@turf/difference`](difference) Accept FeatureCollection for multiple inputs ([#2247](https://redirect.github.com/Turfjs/turf/issues/2247))
- [`@turf/intersect`](intersect) Accept FeatureCollection for multiple inputs ([#2247](https://redirect.github.com/Turfjs/turf/issues/2247))
- [`@turf/buffer`](buffer) Add undefined return for when the geometry is invalid ([#2613](https://redirect.github.com/Turfjs/turf/issues/2613))
#### 🏅 New Features/Enhancements
- [`@turf/kinks`](kinks) Move to sweepline-intersections library for performance ([#1896](https://redirect.github.com/Turfjs/turf/issues/1896))
- [\`@turf/buffer](buffer) Reduce bundle size by moving from turf-jsts to [@turf/jsts](https://redirect.github.com/turf/jsts) ([#2217](https://redirect.github.com/Turfjs/turf/issues/2217))
- [`@turf/boolean-equal`](boolean-equal) Add option for precision ([#2231](https://redirect.github.com/Turfjs/turf/issues/2231))
- [`@turf/boolean-point-in-polygon`](boolean-point-in-polygon) Move to point-in-polygon-hao library for performance and correctness ([#1893](https://redirect.github.com/Turfjs/turf/issues/1893))
- \[`@turf/line-intersect`]\[line-intersect] Move to sweepline-intersections library for performance ([#2033](https://redirect.github.com/Turfjs/turf/issues/2033))
- [`@turf/boolean-contains`](boolean-contains) Add multipolygon support ([#2338](https://redirect.github.com/Turfjs/turf/issues/2338))
- [`@turf/nearest-point`](nearest-point) Add unit option ([#2415](https://redirect.github.com/Turfjs/turf/issues/2415))
- [`@turf/voronoi`](voronoi) Retain properties from points ([#1450](https://redirect.github.com/Turfjs/turf/issues/1450))
#### 🐛 Bug Fixes
- [`@turf/polygon-smooth`](polygon-smooth) Options argument is now actually optional ([#2149](https://redirect.github.com/Turfjs/turf/issues/2149))
- [`@turf/polygon-smooth`](polygon-smooth) Fix crashes with polygons containing multiple holes ([#2323](https://redirect.github.com/Turfjs/turf/issues/2323))
- [`@turf/line-arc`](line-arc) Ensure all points are generated when the first and last points are the same ([#2142](https://redirect.github.com/Turfjs/turf/issues/2142))
- [`@turf/clone`](clone) Fix cloning of features with null geometries ([#2316](https://redirect.github.com/Turfjs/turf/issues/2316))
- [`@turf/dissolve`](dissolve) Now correctly depends on [@turf/flatten](https://redirect.github.com/turf/flatten) ([#2345](https://redirect.github.com/Turfjs/turf/issues/2345))
- [`@turf/clean-coords`](clean-coords) Allow 3 coordinate closed LineStrings ([#2178](https://redirect.github.com/Turfjs/turf/issues/2178))
- [`@turf/helpers`](helpers) Add alternate spellings for Units: millimetres, centimetres, metres, kilometres ([#2168](https://redirect.github.com/Turfjs/turf/issues/2168))
- [`@turf/ellipse`](ellipse) Add pivot and angle options to typescript ([#2174](https://redirect.github.com/Turfjs/turf/issues/2174))
- [`@turf/quadrat-analysis`](quadrat-analysis) Fix test flake ([#2182](https://redirect.github.com/Turfjs/turf/issues/2182))
- [`@turf/bbox`](bbox) Use input bbox instead of computing it ([#2171](https://redirect.github.com/Turfjs/turf/issues/2171))
- [`@turf/transform-scale`](transform-scale) Removes invalid bbox when scaling ([#2171](https://redirect.github.com/Turfjs/turf/issues/2171))
- [`@turf/invariant`](invariant) getCoord now shallow clones its result to prevent accidental mutations ([#2167](https://redirect.github.com/Turfjs/turf/issues/2167))
- [`@turf/line-overlap`](line-overlap) Identify multiple overlaps on a single segment ([#2134](https://redirect.github.com/Turfjs/turf/issues/2134))
- [`@turf/transform-scale`](transform-scale) Fix factor to allow only numbers >= 0 ([#2169](https://redirect.github.com/Turfjs/turf/issues/2169))
- [`@turf/voronoi`](voronoi) Make options optional ([#2195](https://redirect.github.com/Turfjs/turf/issues/2195))
- [`@turf/boolean-within`](boolean-within) Fix multipoint checks ([#2216](https://redirect.github.com/Turfjs/turf/issues/2216))
- [`@turf/points-within-polygon`](points-within-polygon) Fix dropped properties on MultiPoint results ([#2227](https://redirect.github.com/Turfjs/turf/issues/2227))
- [`@turf/random`](random) Throws error on invalid bbox inputs ([#2172](https://redirect.github.com/Turfjs/turf/issues/2172))
- [`@turf/boolean-parallel`](boolean-parallel) Lines with 180 degree angle between them are also considered parallel ([#2475](https://redirect.github.com/Turfjs/turf/issues/2475))
- [`@turf/unkink-polygon`](unkink-polygon) Fix a maximum call stack size exceeded error with very large polygons ([#2504](https://redirect.github.com/Turfjs/turf/issues/2504))
- [`@turf/line-arc`](line-arc) Number of arc segments generated wasn't related to steps value passed in ([#2524](https://redirect.github.com/Turfjs/turf/issues/2524))
- [`@turf/boolean-equal`](boolean-equal) Replace geojson-equality with new implementation ([#2531](https://redirect.github.com/Turfjs/turf/issues/2531))
- [`@turf/boolean-overlap`](boolean-overlap) Replace geojson-equality with new implementation ([#2531](https://redirect.github.com/Turfjs/turf/issues/2531))
- [`@turf/boolean-within`](boolean-within) Now correctly checks that the final point is contained ([#2599](https://redirect.github.com/Turfjs/turf/issues/2599))
#### 📖 Documentation
- \[`@turf/bbox`]\[bbox] Improve documentation ([#2153](https://redirect.github.com/Turfjs/turf/issues/2153))
- \[`@turf/great-circle`]\[great-circle] Add license for arc.js ([#2175](https://redirect.github.com/Turfjs/turf/issues/2175))
- [`@turf/boolean-crosses`](boolean-crosses) Document OpenGIS Simple Feature Spec requirement ([#2184](https://redirect.github.com/Turfjs/turf/issues/2184))
- [`@turf/turf-clone`](clone) Now has more useful Typescript inference ([#2239](https://redirect.github.com/Turfjs/turf/issues/2239))
- [`@turf/centroid`](centroid) Improve docs ([#2213](https://redirect.github.com/Turfjs/turf/issues/2213))
- [`@turf/buffer`](buffer) Clean up Typescript types ([#2188](https://redirect.github.com/Turfjs/turf/issues/2188))
- [`@turf/polygon-smooth`](polygon-smooth) Clean up a typo ([#2293](https://redirect.github.com/Turfjs/turf/issues/2293))
- [`@turf/nearest-point-on-line`](nearest-point-on-line) Clean up typescript types ([#2296](https://redirect.github.com/Turfjs/turf/issues/2296))
- [`@turf/boolean-touches`](boolean-touches) Add boolean-touches to docs ([#2431](https://redirect.github.com/Turfjs/turf/issues/2431))
- [`@turf/boolean-equals`](boolean-equals) Improve docs ([#2412](https://redirect.github.com/Turfjs/turf/issues/2412))
- Remove Bower references ([#2146](https://redirect.github.com/Turfjs/turf/issues/2146))
- Fix typo in README ([#2313](https://redirect.github.com/Turfjs/turf/issues/2313))
- Lots of cleanup for CONTRIBUTING, README, and RELEASING ([#2186](https://redirect.github.com/Turfjs/turf/issues/2186))
- Fix docs generation ([#2279](https://redirect.github.com/Turfjs/turf/issues/2279))
- Add a link to turf_dart ([#2286](https://redirect.github.com/Turfjs/turf/issues/2286))
#### 🔔 Misc
- [\`@turf/turf](turf) Add booleanIntersects typescript export ([#2157](https://redirect.github.com/Turfjs/turf/issues/2157))
- [\`@turf/turf](turf) Add booleanTouches export ([#2170](https://redirect.github.com/Turfjs/turf/issues/2170))
- [\`@turf/turf](turf) Add booleanConcave export ([#2265](https://redirect.github.com/Turfjs/turf/issues/2265))
- [`@turf/simplify`](simplify) Clean up internals for less object churn ([#2561](https://redirect.github.com/Turfjs/turf/issues/2561))
- [\`@turf/helpers](helpers) Make isObject a little more accurate ([#2176](https://redirect.github.com/Turfjs/turf/issues/2176))
- Migrate from geojsonhint to [@placemark/check-geojson](https://redirect.github.com/placemark/check-geojson) ([#2571](https://redirect.github.com/Turfjs/turf/issues/2571))
- Add custom types entry point to exports, required by Typescript for node16, nodenext and bundler module resolution strategies ([#2400](https://redirect.github.com/Turfjs/turf/issues/2400), [#2452](https://redirect.github.com/Turfjs/turf/issues/2452))
- types.ts tests are now run in strict mode ([#2363](https://redirect.github.com/Turfjs/turf/issues/2363))
- Uses tslib now for smaller bundles ([#2165](https://redirect.github.com/Turfjs/turf/issues/2165))
- Remove object-assign dependency from all packages ([#2241](https://redirect.github.com/Turfjs/turf/issues/2241))
- Lots of dependencies have been upgraded
Configuration
📅 Schedule: Branch creation - "before 7am every weekday" in timezone Europe/Brussels, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
^6.5.0
->^7.0.0
Release Notes
Turfjs/turf (@turf/centroid)
### [`v7.1.0`](https://redirect.github.com/Turfjs/turf/releases/tag/v7.1.0) [Compare Source](https://redirect.github.com/Turfjs/turf/compare/v7.0.0...v7.1.0) #### What's Changed - `@turf/distance` Simplify unnecessary union type in turfDistance by [@isti115](https://redirect.github.com/isti115) in [https://github.com/Turfjs/turf/pull/2618](https://redirect.github.com/Turfjs/turf/pull/2618) - Upgrade to Lerna 8 by [@mfedderly](https://redirect.github.com/mfedderly) in [https://github.com/Turfjs/turf/pull/2612](https://redirect.github.com/Turfjs/turf/pull/2612) - Deprecate CHANGELOG, improve release action, PR template, Contributing doc by [@twelch](https://redirect.github.com/twelch) in [https://github.com/Turfjs/turf/pull/2621](https://redirect.github.com/Turfjs/turf/pull/2621) - `@turf/helpers` Reduce bundle size of apps that import [@turf/helpers](https://redirect.github.com/turf/helpers) by [@smallsaucepan](https://redirect.github.com/smallsaucepan) in [https://github.com/Turfjs/turf/pull/2623](https://redirect.github.com/Turfjs/turf/pull/2623) - `@turf/line-overlap` change deep-equals dependency for smaller bundle size by [@mfedderly](https://redirect.github.com/mfedderly) in [https://github.com/Turfjs/turf/pull/2631](https://redirect.github.com/Turfjs/turf/pull/2631) - `@turf/mask` Converted turf-mask to Typescript and added support for geometry parameters by [@smallsaucepan](https://redirect.github.com/smallsaucepan) in [https://github.com/Turfjs/turf/pull/2644](https://redirect.github.com/Turfjs/turf/pull/2644) - `@turf/midpoint` Converted turf-midpoint to Typescript by [@smallsaucepan](https://redirect.github.com/smallsaucepan) in [https://github.com/Turfjs/turf/pull/2645](https://redirect.github.com/Turfjs/turf/pull/2645) - `@turf/planepoint` Converted turf-planepoint to Typescript by [@smallsaucepan](https://redirect.github.com/smallsaucepan) in [https://github.com/Turfjs/turf/pull/2646](https://redirect.github.com/Turfjs/turf/pull/2646) - `@turf/square` Converted turf-square to Typescript by [@smallsaucepan](https://redirect.github.com/smallsaucepan) in [https://github.com/Turfjs/turf/pull/2648](https://redirect.github.com/Turfjs/turf/pull/2648) - `@turf/standard-deviational-ellipse` Converted turf-standard-deviational-ellipse to Typescript by [@smallsaucepan](https://redirect.github.com/smallsaucepan) in [https://github.com/Turfjs/turf/pull/2649](https://redirect.github.com/Turfjs/turf/pull/2649) - Pin pnpm version using corepack by [@RobinVdBroeck](https://redirect.github.com/RobinVdBroeck) in [https://github.com/Turfjs/turf/pull/2602](https://redirect.github.com/Turfjs/turf/pull/2602) - `@turf/tesselate` Converted turf-tesselate to Typescript by [@smallsaucepan](https://redirect.github.com/smallsaucepan) in [https://github.com/Turfjs/turf/pull/2650](https://redirect.github.com/Turfjs/turf/pull/2650) - `@turf/transform-rotate` Converted turf-transform-rotate to Typescript by [@smallsaucepan](https://redirect.github.com/smallsaucepan) in [https://github.com/Turfjs/turf/pull/2651](https://redirect.github.com/Turfjs/turf/pull/2651) - `@turf/transform-scale` Converted turf-transform-scale to Typescript by [@smallsaucepan](https://redirect.github.com/smallsaucepan) in [https://github.com/Turfjs/turf/pull/2652](https://redirect.github.com/Turfjs/turf/pull/2652) - `@turf/transform-translate` Converted turf-transform-translate to Typescript by [@smallsaucepan](https://redirect.github.com/smallsaucepan) in [https://github.com/Turfjs/turf/pull/2653](https://redirect.github.com/Turfjs/turf/pull/2653) - `@turf/unkink-polygon` Converted turf-unkink-polygon to Typescript by [@smallsaucepan](https://redirect.github.com/smallsaucepan) in [https://github.com/Turfjs/turf/pull/2654](https://redirect.github.com/Turfjs/turf/pull/2654) - `@turf/voronoi` Converted turf-voronoi to Typescript by [@smallsaucepan](https://redirect.github.com/smallsaucepan) in [https://github.com/Turfjs/turf/pull/2655](https://redirect.github.com/Turfjs/turf/pull/2655) - `@turf/boolean-intersects` Fix boolean-intersects docs by [@izzybps](https://redirect.github.com/izzybps) in [https://github.com/Turfjs/turf/pull/2593](https://redirect.github.com/Turfjs/turf/pull/2593) - Updated documentation.js to resolve critical parse-url vulnerability by [@smallsaucepan](https://redirect.github.com/smallsaucepan) in [https://github.com/Turfjs/turf/pull/2664](https://redirect.github.com/Turfjs/turf/pull/2664) - `@turf/area`: bug fix: off-by-one bug in area calculation by [@Abdumbo99](https://redirect.github.com/Abdumbo99) in [https://github.com/Turfjs/turf/pull/2665](https://redirect.github.com/Turfjs/turf/pull/2665) - Upgrade dependencies by [@mfedderly](https://redirect.github.com/mfedderly) in [https://github.com/Turfjs/turf/pull/2668](https://redirect.github.com/Turfjs/turf/pull/2668) - `@turf/isobands` `@turf/isolines` Remove unused matrix-to-grid dependency by [@mfedderly](https://redirect.github.com/mfedderly) in [https://github.com/Turfjs/turf/pull/2669](https://redirect.github.com/Turfjs/turf/pull/2669) - `@turf/random` fix randomPolygon generating polygons outside of the given `bbox` by [@nnmrts](https://redirect.github.com/nnmrts) in [https://github.com/Turfjs/turf/pull/2659](https://redirect.github.com/Turfjs/turf/pull/2659) - `@turf/boolean-intersects` `@turf/booean-disjoint` Expose options parameter to ignore self intersections. by [@01100100](https://redirect.github.com/01100100) in [https://github.com/Turfjs/turf/pull/2636](https://redirect.github.com/Turfjs/turf/pull/2636) - `@turf/boolean-valid` fix checkClosingRing to check for polygon being closed by [@superDoss](https://redirect.github.com/superDoss) in [https://github.com/Turfjs/turf/pull/2563](https://redirect.github.com/Turfjs/turf/pull/2563) - `@turf/helpers` Implemented azimuthToBearing by [@basvdijk](https://redirect.github.com/basvdijk) in [https://github.com/Turfjs/turf/pull/2674](https://redirect.github.com/Turfjs/turf/pull/2674) - Added support/6.x branch to CI config by [@smallsaucepan](https://redirect.github.com/smallsaucepan) in [https://github.com/Turfjs/turf/pull/2673](https://redirect.github.com/Turfjs/turf/pull/2673) - `@turf/nearest-point-on-line` include index of MultiLineString geometries in nearest-point-on-line by [@andrewharvey](https://redirect.github.com/andrewharvey) in [https://github.com/Turfjs/turf/pull/2574](https://redirect.github.com/Turfjs/turf/pull/2574) - `@turf/point-to-line-distance` Fix two small typos by [@mfedderly](https://redirect.github.com/mfedderly) in [https://github.com/Turfjs/turf/pull/2675](https://redirect.github.com/Turfjs/turf/pull/2675) - Update PR/develop action to cache pnpm files by [@mfedderly](https://redirect.github.com/mfedderly) in [https://github.com/Turfjs/turf/pull/2671](https://redirect.github.com/Turfjs/turf/pull/2671) - Add explicit geojson types dependency by [@mfedderly](https://redirect.github.com/mfedderly) in [https://github.com/Turfjs/turf/pull/2676](https://redirect.github.com/Turfjs/turf/pull/2676) - Rework prettier setup by [@mfedderly](https://redirect.github.com/mfedderly) in [https://github.com/Turfjs/turf/pull/2677](https://redirect.github.com/Turfjs/turf/pull/2677) - Update [@types/geojson](https://redirect.github.com/types/geojson) to 7946.0.10 minimum by [@mfedderly](https://redirect.github.com/mfedderly) in [https://github.com/Turfjs/turf/pull/2688](https://redirect.github.com/Turfjs/turf/pull/2688) - `@turf/mask` Stop turf-mask mutating by default, make it an option by [@farkmarnum](https://redirect.github.com/farkmarnum) in [https://github.com/Turfjs/turf/pull/2635](https://redirect.github.com/Turfjs/turf/pull/2635) - Add test.example.js to .prettierignore by [@mfedderly](https://redirect.github.com/mfedderly) in [https://github.com/Turfjs/turf/pull/2689](https://redirect.github.com/Turfjs/turf/pull/2689) - `@turf/mask` Fix [@turf/mask](https://redirect.github.com/turf/mask) benchmarks to exclude test fixtures that are not usable by [@mfedderly](https://redirect.github.com/mfedderly) in [https://github.com/Turfjs/turf/pull/2692](https://redirect.github.com/Turfjs/turf/pull/2692) - `@turf/kinks` Revert [@turf/kinks](https://redirect.github.com/turf/kinks) to 6.5.0 version by [@mfedderly](https://redirect.github.com/mfedderly) in [https://github.com/Turfjs/turf/pull/2693](https://redirect.github.com/Turfjs/turf/pull/2693) - `@turf/cluster-dbscan`Update cluster-dbscan docs by [@mwenko](https://redirect.github.com/mwenko) in [https://github.com/Turfjs/turf/pull/2624](https://redirect.github.com/Turfjs/turf/pull/2624) - `@turf/*-grid` `@turf/area` `@turf/helpers` Clarify behavior of some existing turf modules by [@twelch](https://redirect.github.com/twelch) in [https://github.com/Turfjs/turf/pull/2683](https://redirect.github.com/Turfjs/turf/pull/2683) - Upgrade pnpm/action-setup in github actions by [@mfedderly](https://redirect.github.com/mfedderly) in [https://github.com/Turfjs/turf/pull/2696](https://redirect.github.com/Turfjs/turf/pull/2696) #### New Contributors - [@isti115](https://redirect.github.com/isti115) made their first contribution in [https://github.com/Turfjs/turf/pull/2618](https://redirect.github.com/Turfjs/turf/pull/2618) - [@izzybps](https://redirect.github.com/izzybps) made their first contribution in [https://github.com/Turfjs/turf/pull/2593](https://redirect.github.com/Turfjs/turf/pull/2593) - [@Abdumbo99](https://redirect.github.com/Abdumbo99) made their first contribution in [https://github.com/Turfjs/turf/pull/2665](https://redirect.github.com/Turfjs/turf/pull/2665) - [@nnmrts](https://redirect.github.com/nnmrts) made their first contribution in [https://github.com/Turfjs/turf/pull/2659](https://redirect.github.com/Turfjs/turf/pull/2659) - [@01100100](https://redirect.github.com/01100100) made their first contribution in [https://github.com/Turfjs/turf/pull/2636](https://redirect.github.com/Turfjs/turf/pull/2636) - [@superDoss](https://redirect.github.com/superDoss) made their first contribution in [https://github.com/Turfjs/turf/pull/2563](https://redirect.github.com/Turfjs/turf/pull/2563) - [@basvdijk](https://redirect.github.com/basvdijk) made their first contribution in [https://github.com/Turfjs/turf/pull/2674](https://redirect.github.com/Turfjs/turf/pull/2674) - [@andrewharvey](https://redirect.github.com/andrewharvey) made their first contribution in [https://github.com/Turfjs/turf/pull/2574](https://redirect.github.com/Turfjs/turf/pull/2574) - [@farkmarnum](https://redirect.github.com/farkmarnum) made their first contribution in [https://github.com/Turfjs/turf/pull/2635](https://redirect.github.com/Turfjs/turf/pull/2635) **Full Changelog**: https://github.com/Turfjs/turf/compare/v7.0.0...v7.1.0 ### [`v7.0.0`](https://redirect.github.com/Turfjs/turf/blob/HEAD/CHANGELOG.md#700) [Compare Source](https://redirect.github.com/Turfjs/turf/compare/v6.5.0...v7.0.0) #### ⚠️ Breaking - Move to [@types/geojson](https://redirect.github.com/types/geojson) package instead of declaring our own. Typescript consumers of Turf will need to import from [@types/geojson](https://redirect.github.com/types/geojson). ([#2158](https://redirect.github.com/Turfjs/turf/issues/2158)) - Move distribution JS to target ES2017 ([#2237](https://redirect.github.com/Turfjs/turf/issues/2237)) - Please change to using named exports instead of default exports from the various packages - [`@turf/helpers`](helpers) Correct the conversion factor for degrees ([#2177](https://redirect.github.com/Turfjs/turf/issues/2177)) - [`@turf/helpers`](helpers) polygon() will now throw if the first and last coordinates are not the same ([#2173](https://redirect.github.com/Turfjs/turf/issues/2173)) - [`@turf/helpers`](helpers) Separate AreaUnits into its own type ([#2393](https://redirect.github.com/Turfjs/turf/issues/2393)) - [`@turf/area`](area) Fix earth radius to use WGS84 median earth radius ([#2166](https://redirect.github.com/Turfjs/turf/issues/2166)) - [`@turf/turf`](turf) Remove re-exports for turf 4.x compatability ([#2183](https://redirect.github.com/Turfjs/turf/issues/2183)) - [`@turf/rectangle-grid`](rectangle-grid) Fix correctness for large areas ([#2106](https://redirect.github.com/Turfjs/turf/issues/2106)) - [\`@turf/square-grid](square-grid) Fix correctness for large areas ([#2106](https://redirect.github.com/Turfjs/turf/issues/2106)) - [`@turf/union`](union) Accept FeatureCollection for multiple inputs ([#2247](https://redirect.github.com/Turfjs/turf/issues/2247)) - [`@turf/difference`](difference) Accept FeatureCollection for multiple inputs ([#2247](https://redirect.github.com/Turfjs/turf/issues/2247)) - [`@turf/intersect`](intersect) Accept FeatureCollection for multiple inputs ([#2247](https://redirect.github.com/Turfjs/turf/issues/2247)) - [`@turf/buffer`](buffer) Add undefined return for when the geometry is invalid ([#2613](https://redirect.github.com/Turfjs/turf/issues/2613)) #### 🏅 New Features/Enhancements - [`@turf/kinks`](kinks) Move to sweepline-intersections library for performance ([#1896](https://redirect.github.com/Turfjs/turf/issues/1896)) - [\`@turf/buffer](buffer) Reduce bundle size by moving from turf-jsts to [@turf/jsts](https://redirect.github.com/turf/jsts) ([#2217](https://redirect.github.com/Turfjs/turf/issues/2217)) - [`@turf/boolean-equal`](boolean-equal) Add option for precision ([#2231](https://redirect.github.com/Turfjs/turf/issues/2231)) - [`@turf/boolean-point-in-polygon`](boolean-point-in-polygon) Move to point-in-polygon-hao library for performance and correctness ([#1893](https://redirect.github.com/Turfjs/turf/issues/1893)) - \[`@turf/line-intersect`]\[line-intersect] Move to sweepline-intersections library for performance ([#2033](https://redirect.github.com/Turfjs/turf/issues/2033)) - [`@turf/boolean-contains`](boolean-contains) Add multipolygon support ([#2338](https://redirect.github.com/Turfjs/turf/issues/2338)) - [`@turf/nearest-point`](nearest-point) Add unit option ([#2415](https://redirect.github.com/Turfjs/turf/issues/2415)) - [`@turf/voronoi`](voronoi) Retain properties from points ([#1450](https://redirect.github.com/Turfjs/turf/issues/1450)) #### 🐛 Bug Fixes - [`@turf/polygon-smooth`](polygon-smooth) Options argument is now actually optional ([#2149](https://redirect.github.com/Turfjs/turf/issues/2149)) - [`@turf/polygon-smooth`](polygon-smooth) Fix crashes with polygons containing multiple holes ([#2323](https://redirect.github.com/Turfjs/turf/issues/2323)) - [`@turf/line-arc`](line-arc) Ensure all points are generated when the first and last points are the same ([#2142](https://redirect.github.com/Turfjs/turf/issues/2142)) - [`@turf/clone`](clone) Fix cloning of features with null geometries ([#2316](https://redirect.github.com/Turfjs/turf/issues/2316)) - [`@turf/dissolve`](dissolve) Now correctly depends on [@turf/flatten](https://redirect.github.com/turf/flatten) ([#2345](https://redirect.github.com/Turfjs/turf/issues/2345)) - [`@turf/clean-coords`](clean-coords) Allow 3 coordinate closed LineStrings ([#2178](https://redirect.github.com/Turfjs/turf/issues/2178)) - [`@turf/helpers`](helpers) Add alternate spellings for Units: millimetres, centimetres, metres, kilometres ([#2168](https://redirect.github.com/Turfjs/turf/issues/2168)) - [`@turf/ellipse`](ellipse) Add pivot and angle options to typescript ([#2174](https://redirect.github.com/Turfjs/turf/issues/2174)) - [`@turf/quadrat-analysis`](quadrat-analysis) Fix test flake ([#2182](https://redirect.github.com/Turfjs/turf/issues/2182)) - [`@turf/bbox`](bbox) Use input bbox instead of computing it ([#2171](https://redirect.github.com/Turfjs/turf/issues/2171)) - [`@turf/transform-scale`](transform-scale) Removes invalid bbox when scaling ([#2171](https://redirect.github.com/Turfjs/turf/issues/2171)) - [`@turf/invariant`](invariant) getCoord now shallow clones its result to prevent accidental mutations ([#2167](https://redirect.github.com/Turfjs/turf/issues/2167)) - [`@turf/line-overlap`](line-overlap) Identify multiple overlaps on a single segment ([#2134](https://redirect.github.com/Turfjs/turf/issues/2134)) - [`@turf/transform-scale`](transform-scale) Fix factor to allow only numbers >= 0 ([#2169](https://redirect.github.com/Turfjs/turf/issues/2169)) - [`@turf/voronoi`](voronoi) Make options optional ([#2195](https://redirect.github.com/Turfjs/turf/issues/2195)) - [`@turf/boolean-within`](boolean-within) Fix multipoint checks ([#2216](https://redirect.github.com/Turfjs/turf/issues/2216)) - [`@turf/points-within-polygon`](points-within-polygon) Fix dropped properties on MultiPoint results ([#2227](https://redirect.github.com/Turfjs/turf/issues/2227)) - [`@turf/random`](random) Throws error on invalid bbox inputs ([#2172](https://redirect.github.com/Turfjs/turf/issues/2172)) - [`@turf/boolean-parallel`](boolean-parallel) Lines with 180 degree angle between them are also considered parallel ([#2475](https://redirect.github.com/Turfjs/turf/issues/2475)) - [`@turf/unkink-polygon`](unkink-polygon) Fix a maximum call stack size exceeded error with very large polygons ([#2504](https://redirect.github.com/Turfjs/turf/issues/2504)) - [`@turf/line-arc`](line-arc) Number of arc segments generated wasn't related to steps value passed in ([#2524](https://redirect.github.com/Turfjs/turf/issues/2524)) - [`@turf/boolean-equal`](boolean-equal) Replace geojson-equality with new implementation ([#2531](https://redirect.github.com/Turfjs/turf/issues/2531)) - [`@turf/boolean-overlap`](boolean-overlap) Replace geojson-equality with new implementation ([#2531](https://redirect.github.com/Turfjs/turf/issues/2531)) - [`@turf/boolean-within`](boolean-within) Now correctly checks that the final point is contained ([#2599](https://redirect.github.com/Turfjs/turf/issues/2599)) #### 📖 Documentation - \[`@turf/bbox`]\[bbox] Improve documentation ([#2153](https://redirect.github.com/Turfjs/turf/issues/2153)) - \[`@turf/great-circle`]\[great-circle] Add license for arc.js ([#2175](https://redirect.github.com/Turfjs/turf/issues/2175)) - [`@turf/boolean-crosses`](boolean-crosses) Document OpenGIS Simple Feature Spec requirement ([#2184](https://redirect.github.com/Turfjs/turf/issues/2184)) - [`@turf/turf-clone`](clone) Now has more useful Typescript inference ([#2239](https://redirect.github.com/Turfjs/turf/issues/2239)) - [`@turf/centroid`](centroid) Improve docs ([#2213](https://redirect.github.com/Turfjs/turf/issues/2213)) - [`@turf/buffer`](buffer) Clean up Typescript types ([#2188](https://redirect.github.com/Turfjs/turf/issues/2188)) - [`@turf/polygon-smooth`](polygon-smooth) Clean up a typo ([#2293](https://redirect.github.com/Turfjs/turf/issues/2293)) - [`@turf/nearest-point-on-line`](nearest-point-on-line) Clean up typescript types ([#2296](https://redirect.github.com/Turfjs/turf/issues/2296)) - [`@turf/boolean-touches`](boolean-touches) Add boolean-touches to docs ([#2431](https://redirect.github.com/Turfjs/turf/issues/2431)) - [`@turf/boolean-equals`](boolean-equals) Improve docs ([#2412](https://redirect.github.com/Turfjs/turf/issues/2412)) - Remove Bower references ([#2146](https://redirect.github.com/Turfjs/turf/issues/2146)) - Fix typo in README ([#2313](https://redirect.github.com/Turfjs/turf/issues/2313)) - Lots of cleanup for CONTRIBUTING, README, and RELEASING ([#2186](https://redirect.github.com/Turfjs/turf/issues/2186)) - Fix docs generation ([#2279](https://redirect.github.com/Turfjs/turf/issues/2279)) - Add a link to turf_dart ([#2286](https://redirect.github.com/Turfjs/turf/issues/2286)) #### 🔔 Misc - [\`@turf/turf](turf) Add booleanIntersects typescript export ([#2157](https://redirect.github.com/Turfjs/turf/issues/2157)) - [\`@turf/turf](turf) Add booleanTouches export ([#2170](https://redirect.github.com/Turfjs/turf/issues/2170)) - [\`@turf/turf](turf) Add booleanConcave export ([#2265](https://redirect.github.com/Turfjs/turf/issues/2265)) - [`@turf/simplify`](simplify) Clean up internals for less object churn ([#2561](https://redirect.github.com/Turfjs/turf/issues/2561)) - [\`@turf/helpers](helpers) Make isObject a little more accurate ([#2176](https://redirect.github.com/Turfjs/turf/issues/2176)) - Migrate from geojsonhint to [@placemark/check-geojson](https://redirect.github.com/placemark/check-geojson) ([#2571](https://redirect.github.com/Turfjs/turf/issues/2571)) - Add custom types entry point to exports, required by Typescript for node16, nodenext and bundler module resolution strategies ([#2400](https://redirect.github.com/Turfjs/turf/issues/2400), [#2452](https://redirect.github.com/Turfjs/turf/issues/2452)) - types.ts tests are now run in strict mode ([#2363](https://redirect.github.com/Turfjs/turf/issues/2363)) - Uses tslib now for smaller bundles ([#2165](https://redirect.github.com/Turfjs/turf/issues/2165)) - Remove object-assign dependency from all packages ([#2241](https://redirect.github.com/Turfjs/turf/issues/2241)) - Lots of dependencies have been upgradedConfiguration
📅 Schedule: Branch creation - "before 7am every weekday" in timezone Europe/Brussels, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.