Turfjs/turf (@turf/centroid)
### [`v6.5.0`](https://togithub.com/Turfjs/turf/blob/HEAD/CHANGELOG.md#650)
[Compare Source](https://togithub.com/Turfjs/turf/compare/1e62773cfc88c627cca8effcb5c14cfb65a905ac...v6.5.0)
#### 🏅 New Features/Enhancements
- [`@turf/points-with-polygon`](points-with-polygon) Add MultiPoint support
[https://github.com/Turfjs/turf/pull/2137](https://togithub.com/Turfjs/turf/pull/2137)2137 - Author [@twelch](https://togithub.com/twelch))
#### 🐛 Bug Fixes
- [`@turf/dissolve`](dissolve) Complete rewrite of the dissolve module to resolve many bugs
[https://github.com/Turfjs/turf/pull/2110](https://togithub.com/Turfjs/turf/pull/2110)2110 - Author [@rowanwins](https://togithub.com/rowanwins))
- [`@turf/mask`](mask) Complete rewrite of the mask module to resolve many bugs
[https://github.com/Turfjs/turf/pull/2130](https://togithub.com/Turfjs/turf/pull/2130)2130 - Author [@rowanwins](https://togithub.com/rowanwins))
- [`@turf/boolean-valid`](boolean-valid) Add missing dependency to
[https://github.com/Turfjs/turf/pull/2094](https://togithub.com/Turfjs/turf/pull/2094)2094 - Author [@rycgar](https://togithub.com/rycgar))
#### 📖 Documentation
- [`@turf/boolean-overlap`](boolean-overlap) Improve clarity
[https://github.com/Turfjs/turf/pull/2133](https://togithub.com/Turfjs/turf/pull/2133)2133 - Author [@patrickbrett](https://togithub.com/patrickbrett))
#### 🔔 Misc
- Enable TS Strict Mode
[https://github.com/Turfjs/turf/pull/2126](https://togithub.com/Turfjs/turf/pull/2126)2126 - Author [@mfedderly](https://togithub.com/mfedderly))
### [`v6.4.0`](https://togithub.com/Turfjs/turf/blob/HEAD/CHANGELOG.md#640)
[Compare Source](https://togithub.com/Turfjs/turf/compare/v6.3.0...1e62773cfc88c627cca8effcb5c14cfb65a905ac)
#### 🏅 New Features/Enhancements
- [`@turf/boolean-point-on-line`](boolean-point-on-line) Added an `epislon` option to help in floating point comparison.
[https://github.com/Turfjs/turf/pull/2051](https://togithub.com/Turfjs/turf/pull/2051)2051 - Author [@okcoker](https://togithub.com/okcoker))
#### 🐛 Bug Fixes
- [`@turf/line-slice-along`](line-slice-along) Fixed a bug where the offset distance equal to the length of the line
[https://github.com/Turfjs/turf/pull/2030](https://togithub.com/Turfjs/turf/pull/2030)2030 - Author [@EricPKerr](https://togithub.com/EricPKerr))
- [`@turf/helpers`](helpers) Fixed the conversion ratio for converting meters to yards and vice-versa
[https://github.com/Turfjs/turf/pull/2046](https://togithub.com/Turfjs/turf/pull/2046)2046 - Author [@anotherhale](https://togithub.com/anotherhale))
- [`@turf/center-median`](center-median) Fixed a missing TS type import
[https://github.com/Turfjs/turf/pull/2044](https://togithub.com/Turfjs/turf/pull/2044)2044 - Author [@Seairth](https://togithub.com/Seairth))
- [\`@turf/bezier-spline](bezier-spline) Fix a bug ensuring the spline result reaches the end of the input
[https://github.com/Turfjs/turf/pull/2090](https://togithub.com/Turfjs/turf/pull/2090)2090 - Author [@the-nemz](https://togithub.com/the-nemz))
#### 📖 Documentation
- [`@turf/transform-rotate`](transform-rotate) and [`@turf/ellipse`](ellipse)) Improve documentation for angle parameter
[https://github.com/Turfjs/turf/pull/2016](https://togithub.com/Turfjs/turf/pull/2016)2016 - Author [@pasieronen](https://togithub.com/pasieronen))
- [`@turf/line-chunk`](line-chunk) Fix an invalid anchor
[https://github.com/Turfjs/turf/pull/2071](https://togithub.com/Turfjs/turf/pull/2071)2071 - Author [@GraxMonzo](https://togithub.com/GraxMonzo))
- [`@turf/distance`](distance) Enhance distance doco so supported inputs are clearer
[https://github.com/Turfjs/turf/pull/2032](https://togithub.com/Turfjs/turf/pull/2032)2032 - Author [@rowanwins](https://togithub.com/rowanwins))
#### 🔔 Misc
- [`@turf/concave`](concave) Replace deprecated topojson dependency
[https://github.com/Turfjs/turf/pull/2037](https://togithub.com/Turfjs/turf/pull/2037)2037 - Author [@elliots](https://togithub.com/elliots))
- Work towards enabling TS Strict Mode
[https://github.com/Turfjs/turf/pull/2053](https://togithub.com/Turfjs/turf/pull/2053)2053 - Author [@mfedderly](https://togithub.com/mfedderly))
### [`v6.3.0`](https://togithub.com/Turfjs/turf/blob/HEAD/CHANGELOG.md#630)
[Compare Source](https://togithub.com/Turfjs/turf/compare/v6.2.0...v6.3.0)
##### Fix issues importing Turf for react-native, webpack 5, and other bundlers
(PR [https://github.com/Turfjs/turf/pull/2004](https://togithub.com/Turfjs/turf/pull/2004) - Author r0b0t3d)
(PR [https://github.com/Turfjs/turf/pull/2011](https://togithub.com/Turfjs/turf/pull/2011) - Author mfedderly)
##### \[`@turf/turf`]\[turf] expose [@turf/boolean-intersect](https://togithub.com/turf/boolean-intersect)
(PR [https://github.com/Turfjs/turf/pull/2007](https://togithub.com/Turfjs/turf/pull/2007) - Author rowanwins)
### [`v6.2.0`](https://togithub.com/Turfjs/turf/blob/HEAD/CHANGELOG.md#620)
After a bit of hiatus, TurfJS is resuming releases.
#### ⭐️ Major Updates
- ES Modules available for all packages
- Tree shaking should significantly reduce import size of [@turf/turf](https://togithub.com/turf/turf)
- Better support for ESM modules (PR [https://github.com/Turfjs/turf/pull/1942](https://togithub.com/Turfjs/turf/pull/1942) - Author [@diachedelic](https://togithub.com/diachedelic))
- Clean-up of test and benchmark running to make publishing easier
- Enforce styling using Prettier
- Enable ESLint and get rid of unused variables
- Upgrade rollup for more correct javascript module builds
- Only include ES5 code
#### 🚀 New Modules
##### \[`@turf/boolean-touches`]\[boolean-touches]
Determines if two features touch but do not intersect
##### \[`@turf/boolean-valid`]\[boolean-valid]
Checks if the geometry is a valid according to the OGC Simple Feature Specification
##### \[`@turf/quadrat-analysis`]\[quadrat-analysis]
Performs a quadrat analysis on a set of points
##### \[`@turf/rectangle-grid`]\[rectangle-grid]
Creates a grid of rectangles from a bounding box
##### \[`@turf/voroni`]\[voronoi]
Typescript types for the options parameter have been fixed
(PR [https://github.com/Turfjs/turf/pull/1424](https://togithub.com/Turfjs/turf/pull/1424) - Author [@stevage](https://togithub.com/stevage))
##### \[`@turf/points-within-polygon`]\[points-within-polygon]
Typescript types around the Feature's Properties will now be preserved.
(PR [https://github.com/Turfjs/turf/pull/1761](https://togithub.com/Turfjs/turf/pull/1761) - Author [@rugheid](https://togithub.com/rugheid))
##### \[`@turf/rewind`]\[rewind]
Typescript types for the 'reverse' option are now correct. Previously it was misnamed as 'reversed'.
(PR [https://github.com/Turfjs/turf/pull/1786](https://togithub.com/Turfjs/turf/pull/1786) - Author [@jonnycornwell](https://togithub.com/jonnycornwell))
##### \[`@turf/difference`]\[difference]
No longer publishes an .mjs file.
##### \[`@turf/meta`]\[meta]
No longer publishes an .mjs file.
##### \[`@turf/tag`]\[tag]
Add MultiPolygon support.
(PR [https://github.com/Turfjs/turf/pull/1996](https://togithub.com/Turfjs/turf/pull/1996) - Author bryceroney)
#### 🐛 Bug Fixes
- [`@turf/centroid`](centroid) Don't visit first point twice when calculating centroid
[https://github.com/Turfjs/turf/pull/1894](https://togithub.com/Turfjs/turf/pull/1894)1894 - Author [@rowanwins](https://togithub.com/rowanwins))
- [`@turf/transform-translate`](transform-translate) Better handling of negative distances
[https://github.com/Turfjs/turf/pull/1895](https://togithub.com/Turfjs/turf/pull/1895)1895 - Author [@rowanwins](https://togithub.com/rowanwins))
- [`@turf/union`](union), [`@turf/difference`](difference), [`@turf/intersect`](intersect) Use polygon-clipping library to fix correctness issues
[https://github.com/Turfjs/turf/pull/1916](https://togithub.com/Turfjs/turf/pull/1916)1916 - Authors [@mbullington](https://togithub.com/mbullington), [@ngottlieb](https://togithub.com/ngottlieb))
- [`@turf/buffer`](buffer) Change default number of steps to 8, and actually support the steps option
[https://github.com/Turfjs/turf/pull/1931](https://togithub.com/Turfjs/turf/pull/1931)1931 - Author stevenchanin)
- [`@turf/buffer`](buffer) Fix projection issues that produce undersized buffers at non-equatorial latitudes
[https://github.com/Turfjs/turf/pull/1956](https://togithub.com/Turfjs/turf/pull/1956)1956 - Author dyakovlev)
- [`@turf/helpers`](helpers) Add runtime checks to point() method, fixing an API break
[https://github.com/Turfjs/turf/pull/1964](https://togithub.com/Turfjs/turf/pull/1964)1964)
#### 🏅 New Features/Enhancements
- [`@turf/boolean-overlap`](boolean-overlap) Better performance for MultiPoint geometries
[https://github.com/Turfjs/turf/pull/1910](https://togithub.com/Turfjs/turf/pull/1910)1910 - Author [@mfedderly](https://togithub.com/mfedderly))
- [`@turf/helpers`](helpers) Add hectares to convertArea
[https://github.com/Turfjs/turf/pull/1943](https://togithub.com/Turfjs/turf/pull/1943)1943 - Author [@DanielJDufour](https://togithub.com/DanielJDufour))
- [`@turf/great-circle`](great-circle) Update Typescript types to support MultiLineString input
[https://github.com/Turfjs/turf/pull/1928](https://togithub.com/Turfjs/turf/pull/1928)1928 - Author kronick)
#### 📖 Documentation
- [`@turf/square-grid`](square-grid) Clarify inputs
[https://github.com/Turfjs/turf/pull/1885](https://togithub.com/Turfjs/turf/pull/1885)1885 - Author [@raphael-leger](https://togithub.com/raphael-leger))
- [`@turf/greater-circle`](greater-circle) Clarify properties option example
[https://github.com/Turfjs/turf/pull/1888](https://togithub.com/Turfjs/turf/pull/1888)1888 - Author [@chris-catignani](https://togithub.com/chris-catignani))
#### ⚠️ Breaking Change
- [`@turf/line-to-polygon`](line-to-polygon) no longer modifies its input unless the mutate option is true
[https://github.com/Turfjs/turf/pull/1879](https://togithub.com/Turfjs/turf/pull/1879)1879 - Author [@MortenBirk](https://togithub.com/MortenBirk))
- [`@turf/unkink-polygon`](unkink-polygon) remove Number.prototype.modulo override
[https://github.com/Turfjs/turf/pull/1978](https://togithub.com/Turfjs/turf/pull/1978)1978)
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), 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 has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
6.0.2
->6.5.0
Release Notes
Turfjs/turf (@turf/centroid)
### [`v6.5.0`](https://togithub.com/Turfjs/turf/blob/HEAD/CHANGELOG.md#650) [Compare Source](https://togithub.com/Turfjs/turf/compare/1e62773cfc88c627cca8effcb5c14cfb65a905ac...v6.5.0) #### 🏅 New Features/Enhancements - [`@turf/points-with-polygon`](points-with-polygon) Add MultiPoint support [https://github.com/Turfjs/turf/pull/2137](https://togithub.com/Turfjs/turf/pull/2137)2137 - Author [@twelch](https://togithub.com/twelch)) #### 🐛 Bug Fixes - [`@turf/dissolve`](dissolve) Complete rewrite of the dissolve module to resolve many bugs [https://github.com/Turfjs/turf/pull/2110](https://togithub.com/Turfjs/turf/pull/2110)2110 - Author [@rowanwins](https://togithub.com/rowanwins)) - [`@turf/mask`](mask) Complete rewrite of the mask module to resolve many bugs [https://github.com/Turfjs/turf/pull/2130](https://togithub.com/Turfjs/turf/pull/2130)2130 - Author [@rowanwins](https://togithub.com/rowanwins)) - [`@turf/boolean-valid`](boolean-valid) Add missing dependency to [https://github.com/Turfjs/turf/pull/2094](https://togithub.com/Turfjs/turf/pull/2094)2094 - Author [@rycgar](https://togithub.com/rycgar)) #### 📖 Documentation - [`@turf/boolean-overlap`](boolean-overlap) Improve clarity [https://github.com/Turfjs/turf/pull/2133](https://togithub.com/Turfjs/turf/pull/2133)2133 - Author [@patrickbrett](https://togithub.com/patrickbrett)) #### 🔔 Misc - Enable TS Strict Mode [https://github.com/Turfjs/turf/pull/2126](https://togithub.com/Turfjs/turf/pull/2126)2126 - Author [@mfedderly](https://togithub.com/mfedderly)) ### [`v6.4.0`](https://togithub.com/Turfjs/turf/blob/HEAD/CHANGELOG.md#640) [Compare Source](https://togithub.com/Turfjs/turf/compare/v6.3.0...1e62773cfc88c627cca8effcb5c14cfb65a905ac) #### 🏅 New Features/Enhancements - [`@turf/boolean-point-on-line`](boolean-point-on-line) Added an `epislon` option to help in floating point comparison. [https://github.com/Turfjs/turf/pull/2051](https://togithub.com/Turfjs/turf/pull/2051)2051 - Author [@okcoker](https://togithub.com/okcoker)) #### 🐛 Bug Fixes - [`@turf/line-slice-along`](line-slice-along) Fixed a bug where the offset distance equal to the length of the line [https://github.com/Turfjs/turf/pull/2030](https://togithub.com/Turfjs/turf/pull/2030)2030 - Author [@EricPKerr](https://togithub.com/EricPKerr)) - [`@turf/helpers`](helpers) Fixed the conversion ratio for converting meters to yards and vice-versa [https://github.com/Turfjs/turf/pull/2046](https://togithub.com/Turfjs/turf/pull/2046)2046 - Author [@anotherhale](https://togithub.com/anotherhale)) - [`@turf/center-median`](center-median) Fixed a missing TS type import [https://github.com/Turfjs/turf/pull/2044](https://togithub.com/Turfjs/turf/pull/2044)2044 - Author [@Seairth](https://togithub.com/Seairth)) - [\`@turf/bezier-spline](bezier-spline) Fix a bug ensuring the spline result reaches the end of the input [https://github.com/Turfjs/turf/pull/2090](https://togithub.com/Turfjs/turf/pull/2090)2090 - Author [@the-nemz](https://togithub.com/the-nemz)) #### 📖 Documentation - [`@turf/transform-rotate`](transform-rotate) and [`@turf/ellipse`](ellipse)) Improve documentation for angle parameter [https://github.com/Turfjs/turf/pull/2016](https://togithub.com/Turfjs/turf/pull/2016)2016 - Author [@pasieronen](https://togithub.com/pasieronen)) - [`@turf/line-chunk`](line-chunk) Fix an invalid anchor [https://github.com/Turfjs/turf/pull/2071](https://togithub.com/Turfjs/turf/pull/2071)2071 - Author [@GraxMonzo](https://togithub.com/GraxMonzo)) - [`@turf/distance`](distance) Enhance distance doco so supported inputs are clearer [https://github.com/Turfjs/turf/pull/2032](https://togithub.com/Turfjs/turf/pull/2032)2032 - Author [@rowanwins](https://togithub.com/rowanwins)) #### 🔔 Misc - [`@turf/concave`](concave) Replace deprecated topojson dependency [https://github.com/Turfjs/turf/pull/2037](https://togithub.com/Turfjs/turf/pull/2037)2037 - Author [@elliots](https://togithub.com/elliots)) - Work towards enabling TS Strict Mode [https://github.com/Turfjs/turf/pull/2053](https://togithub.com/Turfjs/turf/pull/2053)2053 - Author [@mfedderly](https://togithub.com/mfedderly)) ### [`v6.3.0`](https://togithub.com/Turfjs/turf/blob/HEAD/CHANGELOG.md#630) [Compare Source](https://togithub.com/Turfjs/turf/compare/v6.2.0...v6.3.0) ##### Fix issues importing Turf for react-native, webpack 5, and other bundlers (PR [https://github.com/Turfjs/turf/pull/2004](https://togithub.com/Turfjs/turf/pull/2004) - Author r0b0t3d) (PR [https://github.com/Turfjs/turf/pull/2011](https://togithub.com/Turfjs/turf/pull/2011) - Author mfedderly) ##### \[`@turf/turf`]\[turf] expose [@turf/boolean-intersect](https://togithub.com/turf/boolean-intersect) (PR [https://github.com/Turfjs/turf/pull/2007](https://togithub.com/Turfjs/turf/pull/2007) - Author rowanwins) ### [`v6.2.0`](https://togithub.com/Turfjs/turf/blob/HEAD/CHANGELOG.md#620) After a bit of hiatus, TurfJS is resuming releases. #### ⭐️ Major Updates - ES Modules available for all packages - Tree shaking should significantly reduce import size of [@turf/turf](https://togithub.com/turf/turf) - Better support for ESM modules (PR [https://github.com/Turfjs/turf/pull/1942](https://togithub.com/Turfjs/turf/pull/1942) - Author [@diachedelic](https://togithub.com/diachedelic)) - Clean-up of test and benchmark running to make publishing easier - Enforce styling using Prettier - Enable ESLint and get rid of unused variables - Upgrade rollup for more correct javascript module builds - Only include ES5 code #### 🚀 New Modules ##### \[`@turf/boolean-touches`]\[boolean-touches] Determines if two features touch but do not intersect ##### \[`@turf/boolean-valid`]\[boolean-valid] Checks if the geometry is a valid according to the OGC Simple Feature Specification ##### \[`@turf/quadrat-analysis`]\[quadrat-analysis] Performs a quadrat analysis on a set of points ##### \[`@turf/rectangle-grid`]\[rectangle-grid] Creates a grid of rectangles from a bounding box ##### \[`@turf/voroni`]\[voronoi] Typescript types for the options parameter have been fixed (PR [https://github.com/Turfjs/turf/pull/1424](https://togithub.com/Turfjs/turf/pull/1424) - Author [@stevage](https://togithub.com/stevage)) ##### \[`@turf/points-within-polygon`]\[points-within-polygon] Typescript types around the Feature's Properties will now be preserved. (PR [https://github.com/Turfjs/turf/pull/1761](https://togithub.com/Turfjs/turf/pull/1761) - Author [@rugheid](https://togithub.com/rugheid)) ##### \[`@turf/rewind`]\[rewind] Typescript types for the 'reverse' option are now correct. Previously it was misnamed as 'reversed'. (PR [https://github.com/Turfjs/turf/pull/1786](https://togithub.com/Turfjs/turf/pull/1786) - Author [@jonnycornwell](https://togithub.com/jonnycornwell)) ##### \[`@turf/difference`]\[difference] No longer publishes an .mjs file. ##### \[`@turf/meta`]\[meta] No longer publishes an .mjs file. ##### \[`@turf/tag`]\[tag] Add MultiPolygon support. (PR [https://github.com/Turfjs/turf/pull/1996](https://togithub.com/Turfjs/turf/pull/1996) - Author bryceroney) #### 🐛 Bug Fixes - [`@turf/centroid`](centroid) Don't visit first point twice when calculating centroid [https://github.com/Turfjs/turf/pull/1894](https://togithub.com/Turfjs/turf/pull/1894)1894 - Author [@rowanwins](https://togithub.com/rowanwins)) - [`@turf/transform-translate`](transform-translate) Better handling of negative distances [https://github.com/Turfjs/turf/pull/1895](https://togithub.com/Turfjs/turf/pull/1895)1895 - Author [@rowanwins](https://togithub.com/rowanwins)) - [`@turf/union`](union), [`@turf/difference`](difference), [`@turf/intersect`](intersect) Use polygon-clipping library to fix correctness issues [https://github.com/Turfjs/turf/pull/1916](https://togithub.com/Turfjs/turf/pull/1916)1916 - Authors [@mbullington](https://togithub.com/mbullington), [@ngottlieb](https://togithub.com/ngottlieb)) - [`@turf/buffer`](buffer) Change default number of steps to 8, and actually support the steps option [https://github.com/Turfjs/turf/pull/1931](https://togithub.com/Turfjs/turf/pull/1931)1931 - Author stevenchanin) - [`@turf/buffer`](buffer) Fix projection issues that produce undersized buffers at non-equatorial latitudes [https://github.com/Turfjs/turf/pull/1956](https://togithub.com/Turfjs/turf/pull/1956)1956 - Author dyakovlev) - [`@turf/helpers`](helpers) Add runtime checks to point() method, fixing an API break [https://github.com/Turfjs/turf/pull/1964](https://togithub.com/Turfjs/turf/pull/1964)1964) #### 🏅 New Features/Enhancements - [`@turf/boolean-overlap`](boolean-overlap) Better performance for MultiPoint geometries [https://github.com/Turfjs/turf/pull/1910](https://togithub.com/Turfjs/turf/pull/1910)1910 - Author [@mfedderly](https://togithub.com/mfedderly)) - [`@turf/helpers`](helpers) Add hectares to convertArea [https://github.com/Turfjs/turf/pull/1943](https://togithub.com/Turfjs/turf/pull/1943)1943 - Author [@DanielJDufour](https://togithub.com/DanielJDufour)) - [`@turf/great-circle`](great-circle) Update Typescript types to support MultiLineString input [https://github.com/Turfjs/turf/pull/1928](https://togithub.com/Turfjs/turf/pull/1928)1928 - Author kronick) #### 📖 Documentation - [`@turf/square-grid`](square-grid) Clarify inputs [https://github.com/Turfjs/turf/pull/1885](https://togithub.com/Turfjs/turf/pull/1885)1885 - Author [@raphael-leger](https://togithub.com/raphael-leger)) - [`@turf/greater-circle`](greater-circle) Clarify properties option example [https://github.com/Turfjs/turf/pull/1888](https://togithub.com/Turfjs/turf/pull/1888)1888 - Author [@chris-catignani](https://togithub.com/chris-catignani)) #### ⚠️ Breaking Change - [`@turf/line-to-polygon`](line-to-polygon) no longer modifies its input unless the mutate option is true [https://github.com/Turfjs/turf/pull/1879](https://togithub.com/Turfjs/turf/pull/1879)1879 - Author [@MortenBirk](https://togithub.com/MortenBirk)) - [`@turf/unkink-polygon`](unkink-polygon) remove Number.prototype.modulo override [https://github.com/Turfjs/turf/pull/1978](https://togithub.com/Turfjs/turf/pull/1978)1978)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), 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 has been generated by Mend Renovate. View repository job log here.