Turf v6.2.0 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
- ๐ Better support for ESM modules (PR https://github.com/Turfjs/turf/pull/1942 - Author @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 - 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.
[
@turf/tag
][tag]โ Add MultiPolygon support. (PR https://github.com/Turfjs/turf/pull/1996 - Author bryceroney)
๐ ๐ 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)0๏ธโฃ [
@turf/buffer
](buffer) Change default number of steps to 8, and actually support the steps option (PR https://github.com/Turfjs/turf/pull/1931 - Author stevenchanin)[
@turf/buffer
](buffer) Fix projection issues that produce undersized buffers at non-equatorial latitudes (PR https://github.com/Turfjs/turf/pull/1956 - Author dyakovlev)[
@turf/helpers
](helpers) Add runtime checks to point() method, fixing an API break (PR https://github.com/Turfjs/turf/pull/1964)
๐ New Features/Enhancements
๐ [
@turf/boolean-overlap
](boolean-overlap) Better performance for MultiPoint geometries (PR https://github.com/Turfjs/turf/pull/1910 - Author @mfedderly)[
@turf/helpers
](helpers) Add hectares to convertArea (PR https://github.com/Turfjs/turf/pull/1943 - Author @DanielJDufour)โก๏ธ [
@turf/great-circle
](great-circle) Update Typescript types to support MultiLineString input (PR https://github.com/Turfjs/turf/pull/1928 - Author kronick)
๐ ๐ 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)๐ [
@turf/unkink-polygon
](unkink-polygon) remove Number.prototype.modulo override (PR https://github.com/Turfjs/turf/pull/1978)