turf v6.2.0-alpha.2 Release Notes
-
๐ 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
๐ 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 - Author @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 - Author @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 - Author @jonnycornwell)
[
@turf/difference
][difference]No longer publishes an .mjs file.
[
@turf/meta
][meta]No longer publishes an .mjs file.
๐ ๐ Bug Fixes
[
@turf/centroid
](centroid) Don't visit first point twice when calculating centroid (PR https://github.com/Turfjs/turf/pull/1894 - Author @rowanwins)๐ [
@turf/transform-translate
](transform-translate) Better handling of negative distances (PR https://github.com/Turfjs/turf/pull/1895 - Author @rowanwins)[
@turf/union
](union), [@turf/difference
](difference), [@turf/intersect
](intersect) Use polygon-clipping library to fix correctness issues (PR https://github.com/Turfjs/turf/pull/1916 - Authors @mbullington, @ngottlieb)
๐ New Features/Enhancements
- ๐ [
@turf/boolean-overlap
](boolean-overlap) Better performance for MultiPoint geometries (PR https://github.com/Turfjs/turf/pull/1910 - Author @mfedderly)
๐ ๐ Documentation
[
@turf/square-grid
](square-grid) Clarify inputs (PR https://github.com/Turfjs/turf/pull/1885 - Author @raphael-leger)[
@turf/greater-circle
](greater-circle) Clarify properties option example (PR https://github.com/Turfjs/turf/pull/1888 - Author @chris-catignani)
โ ๏ธ Breaking Change
- [
@turf/line-to-polygon
](line-to-polygon) no longer modifies its input unless the mutate option is true (PR https://github.com/Turfjs/turf/pull/1879 - Author @MortenBirk)