PackageTrack

npm · #3601

@turf/invariant

7.4.0Turfjs/turf

Lightweight utility for input validation and data extraction in Turf.js. Ensures GeoJSON inputs are in the correct format and extracts specific components like coordinates or geometries.

Release timeline

65 releases since 2016
20182020202220242026

Releases

  1. 7.4.03 Aug 2026
    Release notes

    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

    • Fix final bearing returning values outside [-180, 180] by @JSap0914 in https://github.com/Turfjs/turf/pull/3077

    @turf/bezier

    • Fix z value computation by @githubhanjunjun in https://github.com/Turfjs/turf/pull/3042

    @turf/boolean-contains

    • Allow boundary points in MultiPoint containment checks by @rexxars in https://github.com/Turfjs/turf/pull/3024
    • Treat an equal two-vertex line as contained by @spokodev in https://github.com/Turfjs/turf/pull/3080
    • Add MultiPolygon support for non-polygon types by @rexxars in https://github.com/Turfjs/turf/pull/3010
    • Speed up point, line, and MultiPolygon hot paths by @rexxars in https://github.com/Turfjs/turf/pull/3099
    • Reject inner polygon whose edge crosses a concave outer polygon by @aloktomarr in https://github.com/Turfjs/turf/pull/3104

    @turf/boolean-crosses

    • Make MultiPoint/LineString crossing order-independent by @spokodev in https://github.com/Turfjs/turf/pull/3079
    • Return false if a line/line intersection is on an endpoint by @mfedderly in https://github.com/Turfjs/turf/pull/3070

    @turf/boolean-disjoint

    • Overlapping collinear lines should return false by @cycsmail in https://github.com/Turfjs/turf/pull/3097
    • Test for explicit line/line touch on a boundary point by @mfedderly in https://github.com/Turfjs/turf/pull/3100
    • Performance: Delegate flattening to booleanDisjoint by @rexxars in https://github.com/Turfjs/turf/pull/3103

    @turf/boolean-point-in-polygon

    • Perf improvement & Fix issue with multiple polygons when the point is on the boundary of a polygon by @Pitouli in https://github.com/Turfjs/turf/pull/2821

    @turf/boolean-valid

    • Add support for GeometryCollection geometries by @ltkum in https://github.com/Turfjs/turf/pull/2916
    • Allow MultiLineStrings with only a single LineString by @sharmaB01 in https://github.com/Turfjs/turf/pull/2846

    @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).

    • Require an interior point in MultiPoint-in-Polygon check by @mahirhir in https://github.com/Turfjs/turf/pull/3085
    • Add MultiPolygon support, de-duplicate logic by @rexxars in https://github.com/Turfjs/turf/pull/3011

    @turf/clusters-dbscan

    • Correctly honor units option by @mradlinski in https://github.com/Turfjs/turf/pull/3026

    @turf/combine

    • Docs: add MultiGeometries to input type by @rczobor in https://github.com/Turfjs/turf/pull/2935

    @turf/convex

    • Correctly include properties in the final result by @blchelle in https://github.com/Turfjs/turf/pull/2972

    @turf/helpers

    • Add short forms for Units and AreaUnits by @Johse in https://github.com/Turfjs/turf/pull/3063

    @turf/line-arc

    • Always reach bearing2 (fix dropped final vertex) by @chatman-media in https://github.com/Turfjs/turf/pull/3078

    @turf/line-overlap

    • Fixing missing certain horizontal/vertical lines with tolerance (#2582) by @jonovotny in https://github.com/Turfjs/turf/pull/3071

    @turf/polygonize

    • Fix behavior when there are duplicate coordinates in the input by @Traksewt in https://github.com/Turfjs/turf/pull/3045
    • Performance: Migrate to Map/Set by @mfedderly in https://github.com/Turfjs/turf/pull/3074
    • Performance: Migrate edge storage from Array to Map for performance by @mfedderly in https://github.com/Turfjs/turf/pull/3081

    @turf/projection

    • Docs: Use official EPSG:3857 code instead of deprecated EPSG:900913 by @cycsmail in https://github.com/Turfjs/turf/pull/3101

    @turf/transform-scale, @turf/transform-translate, @turf/transform-rotate

    • Remove stale bboxes after coordinate transforms by @khalilurrrahmanridoykhan in https://github.com/Turfjs/turf/pull/3106

    Internal:

    • Publish without NPM_TOKEN by @mfedderly in https://github.com/Turfjs/turf/pull/3051
    • Migrate @turf/buffer to TypeScript, ignoring errors by @mfedderly in https://github.com/Turfjs/turf/pull/2994
    • Remove JavaScript package support from MRL config by @mfedderly in https://github.com/Turfjs/turf/pull/3056
    • Move to pnpm catalogs by @mfedderly in https://github.com/Turfjs/turf/pull/3057
    • Revert d3-geo to 2.x to fix Node CJS consumers by @mfedderly in https://github.com/Turfjs/turf/pull/3066
    • Clean up the .gitignore files by @mfedderly in https://github.com/Turfjs/turf/pull/3067
    • Add consumer-style testing for Turf by @mfedderly in https://github.com/Turfjs/turf/pull/3065
    • Update the CI workflows by @mfedderly in https://github.com/Turfjs/turf/pull/3068
    • Move to @types/earcut for @turf/tesselate by @mfedderly in https://github.com/Turfjs/turf/pull/3069
    • Remove optional transitive dep on vue-template-compiler by @mfedderly in https://github.com/Turfjs/turf/pull/3089
    • Upgrade dev dependencies by @mfedderly in https://github.com/Turfjs/turf/pull/3090
    • Make last-checks tests less strict about @turf/helpers devDependencies by @mfedderly in https://github.com/Turfjs/turf/pull/3105
    • line-offset - Fix bench.ts by @mfedderly in https://github.com/Turfjs/turf/pull/3111
    • Clarify geomEach behavior and add a test by @mfedderly in https://github.com/Turfjs/turf/pull/3112
    • Dependabot - Keep GitHub actions up to date by @mfedderly in https://github.com/Turfjs/turf/pull/3113
    • Bump pnpm/action-setup from 4.1.0 to 6.0.9 by @dependabot[bot] in https://github.com/Turfjs/turf/pull/3115
    • Bump actions/setup-node from 4.3.0 to 7.0.0 by @dependabot[bot] in https://github.com/Turfjs/turf/pull/3116
    • Bump actions/checkout from 4.2.2 to 7.0.1 by @dependabot[bot] in https://github.com/Turfjs/turf/pull/3117
    • Bump softprops/action-gh-release from 2.2.1 to 3.0.2 by @dependabot[bot] in https://github.com/Turfjs/turf/pull/3114
    • Update release workflow to support OIDC by @mfedderly in https://github.com/Turfjs/turf/pull/3119

    New Contributors

    • @Johse made their first contribution in https://github.com/Turfjs/turf/pull/3063
    • @githubhanjunjun made their first contribution in https://github.com/Turfjs/turf/pull/3042
    • @rexxars made their first contribution in https://github.com/Turfjs/turf/pull/3024
    • @spokodev made their first contribution in https://github.com/Turfjs/turf/pull/3080
    • @chatman-media made their first contribution in https://github.com/Turfjs/turf/pull/3078
    • @mradlinski made their first contribution in https://github.com/Turfjs/turf/pull/3026
    • @Traksewt made their first contribution in https://github.com/Turfjs/turf/pull/3045
    • @JSap0914 made their first contribution in https://github.com/Turfjs/turf/pull/3077
    • @mahirhir made their first contribution in https://github.com/Turfjs/turf/pull/3085
    • @jonovotny made their first contribution in https://github.com/Turfjs/turf/pull/3071
    • @blchelle made their first contribution in https://github.com/Turfjs/turf/pull/2972
    • @rczobor made their first contribution in https://github.com/Turfjs/turf/pull/2935
    • @ltkum made their first contribution in https://github.com/Turfjs/turf/pull/2916
    • @sharmaB01 made their first contribution in https://github.com/Turfjs/turf/pull/2846
    • @cycsmail made their first contribution in https://github.com/Turfjs/turf/pull/3097
    • @khalilurrrahmanridoykhan made their first contribution in https://github.com/Turfjs/turf/pull/3106
    • @aloktomarr made their first contribution in https://github.com/Turfjs/turf/pull/3104

    Full Changelog: https://github.com/Turfjs/turf/compare/v7.3.5...v7.4.0

    Open source →
  2. 7.3.519 Apr 2026
    Release notes

    What's Changed

    Main goal of this release was to revert a build breaking performance improvement introduced in v7.3.2 that was affecting CommonJS environments.

    • Reverted performance related improvement to clusters-dbscan that broke builds by @smallsaucepan in https://github.com/Turfjs/turf/pull/3049

    Other bug fixes and new functionality:

    • Add @turf/directional-mean to @turf/turf by @mfedderly in https://github.com/Turfjs/turf/pull/3002
    • Mark old nearest-point-on-line properties as deprecated by @EmilJunker in https://github.com/Turfjs/turf/pull/3005

    Housekeeping and behind the scenes changes:

    • Introduced tstyche for type checking and to guard against unintentional API changes by @smallsaucepan in https://github.com/Turfjs/turf/pull/3020
    • Remove unused scripts by @mfedderly in https://github.com/Turfjs/turf/pull/3036
    • Update generate-readme script by @mfedderly in https://github.com/Turfjs/turf/pull/3037

    Full Changelog: https://github.com/Turfjs/turf/compare/v7.3.4...v7.3.5

    Open source →
  3. 7.3.48 Feb 2026
    Release notes

    Fixed a couple of backwards steps, one that was causing build breaks for users and a bug fix that wasn't backwards compatible.

    What's Changed

    • Reverted backward incompatible fix to nearestPointOnLine by @smallsaucepan in https://github.com/Turfjs/turf/pull/3017
    • Added newer kdbush types to @turf/turf as a dependency by @smallsaucepan in https://github.com/Turfjs/turf/pull/3019

    Full Changelog: https://github.com/Turfjs/turf/compare/v7.3.3...v7.3.4

    Open source →
  4. 7.3.328 Jan 2026
    Release notes

    Patch release to fix an unintended change to the return type of lineOffset that was causing compilation issues for Turf users.

    What's Changed

    • Fix @turf/line-offset's return type regression by @mfedderly in https://github.com/Turfjs/turf/pull/3009

    Full Changelog: https://github.com/Turfjs/turf/compare/v7.3.2...v7.3.3

    Open source →
  5. 7.3.214 Jan 2026
    Release notes

    Patch release with several bug fixes.

    What's Changed

    Bug fixes and new functionality:

    • Fixed a bug in nearestPointOnLine causing duplicate points to be returned from lineSlice by @smallsaucepan in https://github.com/Turfjs/turf/pull/2951
    • turf-boolean-contains + turf-boolean-within: Fix line in polygon by @samuelarbibe in https://github.com/Turfjs/turf/pull/2848
    • @turf/boolean-contains - support for multipolygon inside polygon by @MartinP-C in https://github.com/Turfjs/turf/pull/2357
    • Refactor and extend properties of returned nearest point in @turf/nearest-point-on-line by @EmilJunker in https://github.com/Turfjs/turf/pull/2867
    • Changed booleanCrosses with two input lines to recognise if crossing point is between vertices by @smallsaucepan in https://github.com/Turfjs/turf/pull/2968
    • Improve type inference in @turf/helpers' geometry and geometryCollection by @mfedderly in https://github.com/Turfjs/turf/pull/2971
    • turf-tessellate: Pass original coordinate elevations through the tessellate function. by @prozvora in https://github.com/Turfjs/turf/pull/2855
    • Significantly improved performance of clustersDbscan by @smallsaucepan in https://github.com/Turfjs/turf/pull/2885

    Housekeeping and behind the scenes changes:

    • Upgrade Lerna by @mfedderly in https://github.com/Turfjs/turf/pull/2964
    • Typescript-ifying turf-great-circle by @thomas-hervey in https://github.com/Turfjs/turf/pull/2733
    • Preparing for NPM trusted publishing plus node version housekeeping by @smallsaucepan in https://github.com/Turfjs/turf/pull/2952
    • Migrate @turf/interpolate to TypeScript by @mfedderly in https://github.com/Turfjs/turf/pull/2966
    • Migrate @turf/line-chunk to TypeScript by @mfedderly in https://github.com/Turfjs/turf/pull/2969
    • Move to Extract for @turf/helpers' geometry() by @mfedderly in https://github.com/Turfjs/turf/pull/2976
    • Migrate @turf/line-offset to TypeScript by @mfedderly in https://github.com/Turfjs/turf/pull/2974
    • Enforce only eraseable TypeScript syntax by @mfedderly in https://github.com/Turfjs/turf/pull/2977
    • @turf/line-slice to TypeScript by @mfedderly in https://github.com/Turfjs/turf/pull/2979
    • @turf/line-slice-along to TypeScript by @mfedderly in https://github.com/Turfjs/turf/pull/2978
    • Migrate @turf/line-split to TypeScript by @mfedderly in https://github.com/Turfjs/turf/pull/2985
    • Migrate @turf/geojson-rbush to TypeScript by @mfedderly in https://github.com/Turfjs/turf/pull/2980
    • Automatically add any inferred README changes in pre-commit hook by @mfedderly in https://github.com/Turfjs/turf/pull/2987
    • Clean up .js files in various TypeScript-first packages by @mfedderly in https://github.com/Turfjs/turf/pull/2992
    • Migrated turf-meta to typescript (bare bones edition) by @smallsaucepan in https://github.com/Turfjs/turf/pull/2993

    New Contributors

    • @samuelarbibe made their first contribution in https://github.com/Turfjs/turf/pull/2848
    • @MartinP-C made their first contribution in https://github.com/Turfjs/turf/pull/2357
    • @thomas-hervey made their first contribution in https://github.com/Turfjs/turf/pull/2733

    Full Changelog: https://github.com/Turfjs/turf/compare/v7.3.1...v7.3.2

    Open source →
  6. 7.3.127 Nov 2025
    Release notes

    Point release soon after 7.3.0 to address an issue in the revamped isobands implementation, plus some security related version bumps of third party packages.

    What's Changed

    Bug fixes and new functionality:

    • Clean up isobands output for empty bands by @mfedderly in https://github.com/Turfjs/turf/pull/2957

    Housekeeping and behind the scenes changes:

    • Transitive dependency updates by @mfedderly in https://github.com/Turfjs/turf/pull/2959
    • Remove npm-run-all in favor of pnpm regex script name functionality by @mfedderly in https://github.com/Turfjs/turf/pull/2960
    • Bump glob@11 package.json entries by @mfedderly in https://github.com/Turfjs/turf/pull/2961

    Full Changelog: https://github.com/Turfjs/turf/compare/v7.3.0...v7.3.1

    Open source →
  7. 7.3.017 Nov 2025
    Release notes

    Thanks everyone who contributed to this release!

    What's Changed

    Fixes to regressions and significant pain points:

    • Fix @turf/nearest-point-on-line endpoint selection and degenerate input cases by @bratter in https://github.com/Turfjs/turf/pull/2940
    • turf-nearest-point-on-line: Fix issue #2808 by @insideGen in https://github.com/Turfjs/turf/pull/2849
    • Rewrite @turf/isolines by @mfedderly in https://github.com/Turfjs/turf/pull/2918
    • Rewrite @turf/isobands by @mfedderly in https://github.com/Turfjs/turf/pull/2926

    Bug fixes and new functionality:

    • Updated link to Chaikin's algorithm - access forbidden to the old link. by @Armatorix in https://github.com/Turfjs/turf/pull/2804
    • Improved the quality of generated ellipses especially at higher latitudes by @hadbn in https://github.com/Turfjs/turf/pull/2739
    • Fix - Documented unit used for Earth's radius by @IvoBiaus in https://github.com/Turfjs/turf/pull/2842
    • turf-hexgrid: fix issue #2841 by @SimonsUnikaNamn in https://github.com/Turfjs/turf/pull/2856
    • turf-transform-translate: Add warning about shape distortion #217 by @jtheisen in https://github.com/Turfjs/turf/pull/2831
    • turf-nearest-point: maintain point properties in result type by @EmilJunker in https://github.com/Turfjs/turf/pull/2866
    • Changed turf-destination and turf-ellipse to pass through elevation value if present by @prozvora in https://github.com/Turfjs/turf/pull/2852
    • Fixed simplify to not get stuck in an infinite loop on certain geometries by @smallsaucepan in https://github.com/Turfjs/turf/pull/2830
    • turf-great-circle: Fix antipodal error message by @macrouch in https://github.com/Turfjs/turf/pull/2884
    • Updates Documentation from Strings to Units by @conor-f in https://github.com/Turfjs/turf/pull/2838
    • Added missing layer in map example for @turf/line-split docs by @luc-tielen in https://github.com/Turfjs/turf/pull/2724
    • Changed lineSplit to use bbox from geojson-rbush rather than buggy turf-square by @hanneshdc in https://github.com/Turfjs/turf/pull/2460
    • Fix @turf/isobands issue with ring nesting logic by @mfedderly in https://github.com/Turfjs/turf/pull/2925
    • @turf/isobands and @turf/isolines check pointGrid input is actually gridded already by @mfedderly in https://github.com/Turfjs/turf/pull/2927
    • Fixed cleanCoords to remove points with appropriate tenacity by @smallsaucepan in https://github.com/Turfjs/turf/pull/2771
    • Use newer @types/rbush that fixes the need for the reexport shims by @mfedderly in https://github.com/Turfjs/turf/pull/2924
    • Add Kotlin Multiplatform port information to SEE_ALSO.md by @sargunv in https://github.com/Turfjs/turf/pull/2936
    • @turf/shortest-path Allow polygon feature as obstacle for shortestPath (#2941) by @ziegler-daniel in https://github.com/Turfjs/turf/pull/2942
    • Fix issue 2824 on turf-point-to-polygon-distance by @LHBruneton-C2C in https://github.com/Turfjs/turf/pull/2845
    • @turf/shortest-path improve creation of point matrix for A* algorithm (#2943) by @ziegler-daniel in https://github.com/Turfjs/turf/pull/2944
    • @turf/nearest-point-on-line TESTS: add test for duplicated points on line string affecting v7.2.0 by @alacret in https://github.com/Turfjs/turf/pull/2903

    Housekeeping and behind the scenes changes:

    • Merged v7.2.0 publishing changes back to master by @smallsaucepan in https://github.com/Turfjs/turf/pull/2797
    • Bump eslint dependencies by @mfedderly in https://github.com/Turfjs/turf/pull/2923
    • Update nx config for tests by @mfedderly in https://github.com/Turfjs/turf/pull/2685
    • Migrate from workspace:^ to workspace:* to pin dependency versions by @mfedderly in https://github.com/Turfjs/turf/pull/2878
    • Pin the exact SHA1's of GitHub Actions we use by @mfedderly in https://github.com/Turfjs/turf/pull/2863
    • Run pnpm dedupe to clean up the lockfile by @mfedderly in https://github.com/Turfjs/turf/pull/2829
    • Update package.json for all turf packages by @protokoul in https://github.com/Turfjs/turf/pull/2802
    • Updated build tools - pnpm, lerna, typescript, tsup, etc housekeeping by @smallsaucepan in https://github.com/Turfjs/turf/pull/2879

    New Contributors

    • @protokoul made their first contribution in https://github.com/Turfjs/turf/pull/2802
    • @Armatorix made their first contribution in https://github.com/Turfjs/turf/pull/2804
    • @hadbn made their first contribution in https://github.com/Turfjs/turf/pull/2739
    • @IvoBiaus made their first contribution in https://github.com/Turfjs/turf/pull/2842
    • @SimonsUnikaNamn made their first contribution in https://github.com/Turfjs/turf/pull/2856
    • @insideGen made their first contribution in https://github.com/Turfjs/turf/pull/2849
    • @jtheisen made their first contribution in https://github.com/Turfjs/turf/pull/2831
    • @EmilJunker made their first contribution in https://github.com/Turfjs/turf/pull/2866
    • @prozvora made their first contribution in https://github.com/Turfjs/turf/pull/2852
    • @macrouch made their first contribution in https://github.com/Turfjs/turf/pull/2884
    • @conor-f made their first contribution in https://github.com/Turfjs/turf/pull/2838
    • @luc-tielen made their first contribution in https://github.com/Turfjs/turf/pull/2724
    • @hanneshdc made their first contribution in https://github.com/Turfjs/turf/pull/2460
    • @sargunv made their first contribution in https://github.com/Turfjs/turf/pull/2936
    • @ziegler-daniel made their first contribution in https://github.com/Turfjs/turf/pull/2942
    • @LHBruneton-C2C made their first contribution in https://github.com/Turfjs/turf/pull/2845
    • @bratter made their first contribution in https://github.com/Turfjs/turf/pull/2940
    • @alacret made their first contribution in https://github.com/Turfjs/turf/pull/2903

    Full Changelog: https://github.com/Turfjs/turf/compare/v7.2.0...v7.3.0

    Open source →
  8. 7.2.029 Dec 2024
    Release notes

    What's Changed

    Fixes to regressions and significant pain points:

    • Reverted self intersection behavior: line-intersect by @pm0u in https://github.com/Turfjs/turf/pull/2742
    • Reverted self intersection behavior for boolean-disjoint by @pm0u in https://github.com/Turfjs/turf/pull/2772
    • Reverted self intersection behavior for boolean-intersects by @pm0u in https://github.com/Turfjs/turf/pull/2773
    • Replaced polygon-clipping with polyclip-ts by @cmurphy23 in https://github.com/Turfjs/turf/pull/2729

    Bug fixes and new functionality:

    • Added new point-to-polygon-distance package by @pachacamac in https://github.com/Turfjs/turf/pull/2735
    • Added bbox parameter to @turf/interpolate by @lemonig in https://github.com/Turfjs/turf/pull/2768
    • Handle when start and end are the same point in greatCircle by @rowanwins in https://github.com/Turfjs/turf/pull/2343
    • Fixed turf-angle to consistently measure angles clockwise by @smallsaucepan in https://github.com/Turfjs/turf/pull/2714
    • Reversed the order in which random polygon points are generated to satisfy the right hand rule by @smallsaucepan in https://github.com/Turfjs/turf/pull/2715
    • Fixed multiple modules that were performing scalar instead of spherical calculations by @smallsaucepan in https://github.com/Turfjs/turf/pull/2717
    • Fixed confusing turf-union documentation by @smallsaucepan in https://github.com/Turfjs/turf/pull/2732
    • Added a cautionary message to Units about measuring length in radians or degrees. by @smallsaucepan in https://github.com/Turfjs/turf/pull/2748
    • Added special handling to booleanPointOnLine for zero length lines by @smallsaucepan in https://github.com/Turfjs/turf/pull/2751

    Housekeeping and behind the scenes changes:

    • Updated release instructions by @twelch in https://github.com/Turfjs/turf/pull/2698
    • Improve release docs ensuring stable official release branch by @twelch in https://github.com/Turfjs/turf/pull/2726
    • Upgraded typescript by @mfedderly in https://github.com/Turfjs/turf/pull/2684
    • Added a regression test for clone() bug that was probably fixed a while ago. by @smallsaucepan in https://github.com/Turfjs/turf/pull/2749
    • Revamped content and layout of project docs (README, CONTRIBUTING, etc) by @smallsaucepan in https://github.com/Turfjs/turf/pull/2770
    • Bump rollup from 2.79.1 to 3.29.5 by @dependabot in https://github.com/Turfjs/turf/pull/2720

    New Contributors

    • @pachacamac made their first contribution in https://github.com/Turfjs/turf/pull/2735
    • @pm0u made their first contribution in https://github.com/Turfjs/turf/pull/2742
    • @lemonig made their first contribution in https://github.com/Turfjs/turf/pull/2768
    • @cmurphy23 made their first contribution in https://github.com/Turfjs/turf/pull/2729

    Full Changelog: https://github.com/Turfjs/turf/compare/v7.1.0...v7.2.0

    Open source →
  9. 7.1.09 Aug 2024
    Release notes

    What's Changed

    • @turf/distance Simplify unnecessary union type in turfDistance by @isti115 in https://github.com/Turfjs/turf/pull/2618
    • Upgrade to Lerna 8 by @mfedderly in https://github.com/Turfjs/turf/pull/2612
    • Deprecate CHANGELOG, improve release action, PR template, Contributing doc by @twelch in https://github.com/Turfjs/turf/pull/2621
    • @turf/helpers Reduce bundle size of apps that import @turf/helpers by @smallsaucepan in https://github.com/Turfjs/turf/pull/2623
    • @turf/line-overlap change deep-equals dependency for smaller bundle size by @mfedderly in https://github.com/Turfjs/turf/pull/2631
    • @turf/mask Converted turf-mask to Typescript and added support for geometry parameters by @smallsaucepan in https://github.com/Turfjs/turf/pull/2644
    • @turf/midpoint Converted turf-midpoint to Typescript by @smallsaucepan in https://github.com/Turfjs/turf/pull/2645
    • @turf/planepoint Converted turf-planepoint to Typescript by @smallsaucepan in https://github.com/Turfjs/turf/pull/2646
    • @turf/square Converted turf-square to Typescript by @smallsaucepan in https://github.com/Turfjs/turf/pull/2648
    • @turf/standard-deviational-ellipse Converted turf-standard-deviational-ellipse to Typescript by @smallsaucepan in https://github.com/Turfjs/turf/pull/2649
    • Pin pnpm version using corepack by @RobinVdBroeck in https://github.com/Turfjs/turf/pull/2602
    • @turf/tesselate Converted turf-tesselate to Typescript by @smallsaucepan in https://github.com/Turfjs/turf/pull/2650
    • @turf/transform-rotate Converted turf-transform-rotate to Typescript by @smallsaucepan in https://github.com/Turfjs/turf/pull/2651
    • @turf/transform-scale Converted turf-transform-scale to Typescript by @smallsaucepan in https://github.com/Turfjs/turf/pull/2652
    • @turf/transform-translate Converted turf-transform-translate to Typescript by @smallsaucepan in https://github.com/Turfjs/turf/pull/2653
    • @turf/unkink-polygon Converted turf-unkink-polygon to Typescript by @smallsaucepan in https://github.com/Turfjs/turf/pull/2654
    • @turf/voronoi Converted turf-voronoi to Typescript by @smallsaucepan in https://github.com/Turfjs/turf/pull/2655
    • @turf/boolean-intersects Fix boolean-intersects docs by @izzybps in https://github.com/Turfjs/turf/pull/2593
    • Updated documentation.js to resolve critical parse-url vulnerability by @smallsaucepan in https://github.com/Turfjs/turf/pull/2664
    • @turf/area: bug fix: off-by-one bug in area calculation by @Abdumbo99 in https://github.com/Turfjs/turf/pull/2665
    • Upgrade dependencies by @mfedderly in https://github.com/Turfjs/turf/pull/2668
    • @turf/isobands @turf/isolines Remove unused matrix-to-grid dependency by @mfedderly in https://github.com/Turfjs/turf/pull/2669
    • @turf/random fix randomPolygon generating polygons outside of the given bbox by @nnmrts in https://github.com/Turfjs/turf/pull/2659
    • @turf/boolean-intersects @turf/booean-disjoint Expose options parameter to ignore self intersections. by @01100100 in https://github.com/Turfjs/turf/pull/2636
    • @turf/boolean-valid fix checkClosingRing to check for polygon being closed by @superDoss in https://github.com/Turfjs/turf/pull/2563
    • @turf/helpers Implemented azimuthToBearing by @basvdijk in https://github.com/Turfjs/turf/pull/2674
    • Added support/6.x branch to CI config by @smallsaucepan in https://github.com/Turfjs/turf/pull/2673
    • @turf/nearest-point-on-line include index of MultiLineString geometries in nearest-point-on-line by @andrewharvey in https://github.com/Turfjs/turf/pull/2574
    • @turf/point-to-line-distance Fix two small typos by @mfedderly in https://github.com/Turfjs/turf/pull/2675
    • Update PR/develop action to cache pnpm files by @mfedderly in https://github.com/Turfjs/turf/pull/2671
    • Add explicit geojson types dependency by @mfedderly in https://github.com/Turfjs/turf/pull/2676
    • Rework prettier setup by @mfedderly in https://github.com/Turfjs/turf/pull/2677
    • Update @types/geojson to 7946.0.10 minimum by @mfedderly in https://github.com/Turfjs/turf/pull/2688
    • @turf/mask Stop turf-mask mutating by default, make it an option by @farkmarnum in https://github.com/Turfjs/turf/pull/2635
    • Add test.example.js to .prettierignore by @mfedderly in https://github.com/Turfjs/turf/pull/2689
    • @turf/mask Fix @turf/mask benchmarks to exclude test fixtures that are not usable by @mfedderly in https://github.com/Turfjs/turf/pull/2692
    • @turf/kinks Revert @turf/kinks to 6.5.0 version by @mfedderly in https://github.com/Turfjs/turf/pull/2693
    • @turf/cluster-dbscanUpdate cluster-dbscan docs by @mwenko in https://github.com/Turfjs/turf/pull/2624
    • @turf/*-grid @turf/area @turf/helpers Clarify behavior of some existing turf modules by @twelch in https://github.com/Turfjs/turf/pull/2683
    • Upgrade pnpm/action-setup in github actions by @mfedderly in https://github.com/Turfjs/turf/pull/2696

    New Contributors

    • @isti115 made their first contribution in https://github.com/Turfjs/turf/pull/2618
    • @izzybps made their first contribution in https://github.com/Turfjs/turf/pull/2593
    • @Abdumbo99 made their first contribution in https://github.com/Turfjs/turf/pull/2665
    • @nnmrts made their first contribution in https://github.com/Turfjs/turf/pull/2659
    • @01100100 made their first contribution in https://github.com/Turfjs/turf/pull/2636
    • @superDoss made their first contribution in https://github.com/Turfjs/turf/pull/2563
    • @basvdijk made their first contribution in https://github.com/Turfjs/turf/pull/2674
    • @andrewharvey made their first contribution in https://github.com/Turfjs/turf/pull/2574
    • @farkmarnum made their first contribution in https://github.com/Turfjs/turf/pull/2635

    Full Changelog: https://github.com/Turfjs/turf/compare/v7.0.0...v7.1.0

    Open source →
  10. 7.1.0-alpha.709 Aug 2024pre-release

    Nothing published for this version

  11. 7.1.0-alpha.725 Jun 2024pre-release

    Nothing published for this version

  12. 7.0.07 Jun 2024
    Release notes

    See v7 CHANGELOG

    The docs website is being updated to support versioning. Please be patient.

    Open source →
    Release notes2 sources agree

    ⚠️ Breaking

    • Move to @types/geojson package instead of declaring our own. Typescript consumers of Turf will need to import from @types/geojson. (#2158)
    • Move distribution JS to target ES2017 (#2237)
    • Please change to using named exports instead of default exports from the various packages
    • @turf/helpers Correct the conversion factor for degrees (#2177)
    • @turf/helpers polygon() will now throw if the first and last coordinates are not the same (#2173)
    • @turf/helpers Separate AreaUnits into its own type (#2393)
    • @turf/area Fix earth radius to use WGS84 median earth radius (#2166)
    • @turf/turf Remove re-exports for turf 4.x compatability (#2183)
    • @turf/rectangle-grid Fix correctness for large areas (#2106)
    • `@turf/square-grid Fix correctness for large areas (#2106)
    • @turf/union Accept FeatureCollection for multiple inputs (#2247)
    • @turf/difference Accept FeatureCollection for multiple inputs (#2247)
    • @turf/intersect Accept FeatureCollection for multiple inputs (#2247)
    • @turf/buffer Add undefined return for when the geometry is invalid (#2613)

    🏅 New Features/Enhancements

    🐛 Bug Fixes

    📖 Documentation

    🔔 Misc

    • `@turf/turf Add booleanIntersects typescript export (#2157)
    • `@turf/turf Add booleanTouches export (#2170)
    • `@turf/turf Add booleanConcave export (#2265)
    • @turf/simplify Clean up internals for less object churn (#2561)
    • `@turf/helpers Make isObject a little more accurate (#2176)
    • Migrate from geojsonhint to @placemark/check-geojson (#2571)
    • Add custom types entry point to exports, required by Typescript for node16, nodenext and bundler module resolution strategies (#2400, #2452)
    • types.ts tests are now run in strict mode (#2363)
    • Uses tslib now for smaller bundles (#2165)
    • Remove object-assign dependency from all packages (#2241)
    • Lots of dependencies have been upgraded
    Open source →
  13. 7.0.0-alpha.1167 May 2024pre-release

    Nothing published for this version

  14. 7.0.0-alpha.11523 Apr 2024pre-release

    Nothing published for this version

  15. 7.0.0-alpha.11411 Mar 2024pre-release

    Nothing published for this version

  16. 7.0.0-alpha.1133 Feb 2024pre-release

    Nothing published for this version

  17. 7.0.0-alpha.11117 Jan 2024pre-release

    Nothing published for this version

  18. 7.0.0-alpha.11030 Dec 2023pre-release

    Nothing published for this version

  19. 7.0.0-alpha.22 Oct 2023pre-release

    Nothing published for this version

  20. 7.0.0-alpha.118 Sept 2023pre-release

    Nothing published for this version

  21. 7.0.0-alpha.09 Nov 2022pre-release

    Nothing published for this version

  22. 6.5.010 Jul 2021
    Release notes3 sources agree

    🏅 New Features/Enhancements

    🐛 Bug Fixes

    • @turf/dissolve Complete rewrite of the dissolve module to resolve many bugs (PR https://github.com/Turfjs/turf/pull/2110 - Author @rowanwins)

    • @turf/mask Complete rewrite of the mask module to resolve many bugs (PR https://github.com/Turfjs/turf/pull/2130 - Author @rowanwins)

    • @turf/boolean-valid Add missing dependency to (PR https://github.com/Turfjs/turf/pull/2094 - Author @rycgar)

    📖 Documentation

    • @turf/boolean-overlap Improve clarity (PR https://github.com/Turfjs/turf/pull/2133 - Author @patrickbrett)

    🔔 Misc

    • Enable TS Strict Mode (PR https://github.com/Turfjs/turf/pull/2126 - Author @mfedderly)
    Open source →
  23. 6.4.017 Jun 2021
    Release notes2 sources agree

    🏅 New Features/Enhancements

    • @turf/boolean-point-on-line Added an epislon option to help in floating point comparison. (PR https://github.com/Turfjs/turf/pull/2051 - Author @okcoker)

    🐛 Bug Fixes

    • @turf/line-slice-along Fixed a bug where the offset distance equal to the length of the line (PR https://github.com/Turfjs/turf/pull/2030 - Author @EricPKerr)

    • @turf/helpers Fixed the conversion ratio for converting meters to yards and vice-versa (PR https://github.com/Turfjs/turf/pull/2046 - Author @anotherhale)

    • @turf/center-median Fixed a missing TS type import (PR https://github.com/Turfjs/turf/pull/2044 - Author @Seairth)

    • `@turf/bezier-spline Fix a bug ensuring the spline result reaches the end of the input (PR https://github.com/Turfjs/turf/pull/2090 - Author @the-nemz)

    📖 Documentation

    • @turf/transform-rotate and @turf/ellipse) Improve documentation for angle parameter (PR https://github.com/Turfjs/turf/pull/2016 - Author @pasieronen)

    • @turf/line-chunk Fix an invalid anchor (PR https://github.com/Turfjs/turf/pull/2071 - Author @GraxMonzo)

    • @turf/distance Enhance distance doco so supported inputs are clearer (PR https://github.com/Turfjs/turf/pull/2032 - Author @rowanwins)

    🔔 Misc

    • @turf/concave Replace deprecated topojson dependency (PR https://github.com/Turfjs/turf/pull/2037 - Author @elliots)

    • Work towards enabling TS Strict Mode (PR https://github.com/Turfjs/turf/pull/2053 - Author @mfedderly)

    Open source →
  24. 6.3.020 Jan 2021
    Release notes2 sources agree

    Fix issues importing Turf for react-native, webpack 5, and other bundlers

    (PR https://github.com/Turfjs/turf/pull/2004 - Author r0b0t3d) (PR https://github.com/Turfjs/turf/pull/2011 - Author mfedderly)

    [@turf/turf][turf] expose @turf/boolean-intersect

    (PR https://github.com/Turfjs/turf/pull/2007 - Author rowanwins)

    Open source →
  25. 6.2.012 Jan 2021
    Release notes2 sources agree

    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 Don't visit first point twice when calculating centroid (PR https://github.com/Turfjs/turf/pull/1894 - Author @rowanwins)

    • @turf/transform-translate Better handling of negative distances (PR https://github.com/Turfjs/turf/pull/1895 - Author @rowanwins)

    • @turf/union, @turf/difference, @turf/intersect Use polygon-clipping library to fix correctness issues (PR https://github.com/Turfjs/turf/pull/1916 - Authors @mbullington, @ngottlieb)

    • @turf/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 Fix projection issues that produce undersized buffers at non-equatorial latitudes (PR https://github.com/Turfjs/turf/pull/1956 - Author dyakovlev)

    • @turf/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 Better performance for MultiPoint geometries (PR https://github.com/Turfjs/turf/pull/1910 - Author @mfedderly)

    • @turf/helpers Add hectares to convertArea (PR https://github.com/Turfjs/turf/pull/1943 - Author @DanielJDufour)

    • @turf/great-circle Update Typescript types to support MultiLineString input (PR https://github.com/Turfjs/turf/pull/1928 - Author kronick)

    📖 Documentation

    • @turf/square-grid Clarify inputs (PR https://github.com/Turfjs/turf/pull/1885 - Author @raphael-leger)

    • @turf/greater-circle Clarify properties option example (PR https://github.com/Turfjs/turf/pull/1888 - Author @chris-catignani)

    ⚠️ Breaking Change

    • @turf/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 remove Number.prototype.modulo override (PR https://github.com/Turfjs/turf/pull/1978)

    Open source →
  26. 6.2.0-alpha.310 Dec 2020pre-release

    Nothing published for this version

  27. 6.2.0-alpha.213 Jul 2020pre-release

    Nothing published for this version

  28. 6.2.0-alpha.127 Mar 2020pre-release

    Nothing published for this version

  29. 6.2.0-alpha.026 Mar 2020pre-release

    Nothing published for this version

  30. 6.1.211 Jun 2018

    Nothing published for this version

  31. 6.0.127 Jan 2018

    Nothing published for this version

  32. 6.0.026 Jan 2018

    Nothing published for this version

  33. 6.0.0-beta.426 Jan 2018pre-release

    Nothing published for this version

  34. 6.0.0-beta.35 Jan 2018pre-release

    Nothing published for this version

  35. 6.0.0-beta.25 Jan 2018pre-release

    Nothing published for this version

  36. 5.2.030 Dec 2017

    Nothing published for this version

  37. 5.1.510 Dec 2017

    Nothing published for this version

  38. 5.1.410 Dec 2017

    Nothing published for this version

  39. 5.1.07 Dec 2017

    Nothing published for this version

  40. 5.0.49 Nov 2017

    Nothing published for this version

  41. 5.0.01 Oct 2017
    Release notes2 sources agree

    ⭐️ Major Updates

    • TurfJS now supports ES Modules (Related PR's)
    • Optional parameters are now defined as an Object.

    🚀 New Modules

    [@turf/voronoi][voronoi]

    Takes a FeatureCollection of points, and a bounding box, and returns a FeatureCollection of Voronoi polygons. (PR https://github.com/Turfjs/turf/pull/1043 - Author @stevage)

    [@turf/shortest-path][shortest-path]

    Returns the shortest path from start to end without colliding with any feature in obstacles (PR https://github.com/Turfjs/turf/pull/956 - Author @stebogit)

    [@turf/boolean-parallel][boolean-parallel]

    Boolean-Parallel returns True if each segment of line1 is parallel to the correspondent segment of line2 (PR https://github.com/Turfjs/turf/pull/941 - Author @stebogit)

    [@turf/nearest-point-on-line][nearest-point-on-line]

    Takes a {@link Point} and a {@link LineString} and calculates the closest Point on the (Multi)LineString. (PR https://github.com/Turfjs/turf/pull/939 - Author @stebogit)

    🏅 New Features/Enhancements

    • Updates [@turf/unkink-polygon][unkink-polygon] testing & added flattenEach instead of using flatten. (PR https://github.com/Turfjs/turf/pull/889)

    • Add multi-geomtry support to @turf/line-split (PR https://github.com/Turfjs/turf/pull/1078)

    • Improve @turf/meta lineEach method to provide properties, id and bbox (PR https://github.com/Turfjs/turf/pull/1010)

    🐛 Bug Fixes

    • Fixes @turf/helpers earth radius variable (PR https://github.com/Turfjs/turf/pull/1012)

    • Fixes @turf/polygon-tangents bug (PR https://github.com/Turfjs/turf/pull/1058)

    • Fixes @turf/line-chunk bug when the number of segments is integer (PR https://github.com/Turfjs/turf/pull/1046)

    • Fixes segmentEach and segmentReduce methods in @turf/meta to ensure something is returned (PR https://github.com/Turfjs/turf/pull/968)

    ⚠️ Breaking Change

    • Optional parameters are now defined as an Object:

    Before

    var from = [-75.343, 39.984];
    var to = [-75.534, 39.123];
    var units = 'miles';
    var distance = turf.distance(from, to, units);
    

    After

    var from = [-75.343, 39.984];
    var to = [-75.534, 39.123];
    var options = {units: 'miles'};
    var distance = turf.distance(from, to, options);
    
    • Reworked @turf/random PR https://github.com/Turfjs/turf/issues/994
    • Deprecate @turf/idw Issue https://github.com/Turfjs/turf/issues/887
    • Reworked Grid modules @turf/point-grid/hex/square/triangle PR https://github.com/Turfjs/turf/pull/1029
    • Renamed Modules/Methods
      • [x] @turf/inside => @turf/boolean-point-in-polygon https://github.com/Turfjs/turf/issues/860#issuecomment-317216235
      • [x] @turf/within => @turf/points-within-polygon https://github.com/Turfjs/turf/issues/860#issuecomment-317216235
      • [x] @turf/bezier => @turf/bezier-spline Issue https://github.com/Turfjs/turf/issues/661
      • [x] @turf/nearest => @turf/nearest-point https://github.com/Turfjs/turf/pull/858#issuecomment-317197295
      • [x] @turf/point-on-line => @turf/nearest-point-on-line https://github.com/Turfjs/turf/pull/858#issuecomment-317197295
      • [x] @turf/lineDistance => @turf/length https://github.com/Turfjs/turf/issues/860#issuecomment-317229869
      • [x] @turf/helpers
        • [x] radians2degrees => radiansToDegrees
        • [x] degrees2radians => degreesToRadians
        • [x] distanceToDegrees => lengthToDegrees
        • [x] distanceToRadians => lengthToRadians
        • [x] radiansToDistance => radiansToLength
        • [x] bearingToAngle => bearingToAzimuth
        • [x] convertDistance => convertLength
    Open source →
  42. 5.0.0-alpha26 Sept 2017pre-release

    Nothing published for this version

  43. 4.7.312 Sept 2017

    Nothing published for this version

  44. 4.7.15 Sept 2017

    Nothing published for this version

  45. 4.7.05 Sept 2017
    Release notes2 sources agree

    🚀 New Modules

    [@turf/projection][projection]

    • toMercator: Converts a WGS84 GeoJSON object into Mercator (EPSG:900913) projection
    • toWgs84: Converts a Mercator (EPSG:900913) GeoJSON object into WGS84 projection

    (PR https://github.com/Turfjs/turf/pull/927 - Author @stebogit)

    [@turf/point-to-line-distance][point-to-line-distance]

    Returns the minimum distance between a {@link Point} and a {@link LineString}, being the distance from a line the minimum distance between the point and any segment of the LineString.

    (PR https://github.com/Turfjs/turf/pull/925 - Author @stebogit)

    [@turf/boolean-within][boolean-within]

    Boolean-within returns true if the first geometry is completely within the second geometry. The interiors of both geometries must intersect and, the interior and boundary of the primary (geometry a) must not intersect the exterior of the secondary (geometry b). Boolean-within returns the exact opposite result of the [@turf/boolean-contains][boolean-contains].

    (PR https://github.com/Turfjs/turf/pull/924 - Author @rowanwins)

    🏅 New Features/Enhancements

    • Updates [@turf/unkink-polygon][unkink-polygon] testing & added flattenEach instead of using flatten. (PR https://github.com/Turfjs/turf/pull/889)
    • [@turf/concave][concave] refactoring, replacing [@turf/union][union] with geojson-dissolve to increase speed and added support to null geometries (PR https://github.com/Turfjs/turf/pull/907 - Contributor @stebogit @DenisCarriere)
    • Adds doc note on [@turf/polygonize][polygonize] about "Edges must be correctly noded" (PR https://github.com/Turfjs/turf/pull/898 - Contributor @stebogit @NickCis)
    • Adds support to foreign Members to [@turf/clone][clone] (PR https://github.com/Turfjs/turf/pull/904 - Contributor @DenisCarriere)
    • Extends support of any GeoJSON to [@turf/simplify][simplify] (PR https://github.com/Turfjs/turf/pull/903 - Contributor @DenisCarriere @stebogit)
    • Adds new isNumber function and improves type checking for few [@turf/helpers][helpers] methods (PR https://github.com/Turfjs/turf/pull/920 - Contributor @DenisCarriere @stebogit)
    • Adds throw errors to invalid MultiPolygons for [@turf/simplify][simplify] (PR https://github.com/Turfjs/turf/pull/922 - Contributor @DenisCarriere)

    🐛 Bug Fixes

    • Fixes @turf/bbox-clip point intersection handling, adding sanity-checks the lineclip output (PR https://github.com/Turfjs/turf/pull/886)
    • Fixes [@turf/line-split][line-split] endpoint case handling applying [@turf/truncate][truncate] on splitter (PR https://github.com/Turfjs/turf/pull/892 and https://github.com/Turfjs/turf/pull/855 - Contributor @stebogit)
    • Fixes [@turf/intersect][intersect] throwing "uncaught exception", adding [@turf/truncate][truncate] to inputs and returning Feature<null> if no geometry (PR https://github.com/Turfjs/turf/pull/890 - Contributor @stebogit @vicvolk)
    • Fixes [@turf/hex-grid][hex-grid] not properly cloning the last ring vertex (PR https://github.com/Turfjs/turf/pull/897 - Contributor @stebogit @DenisCarriere)
    • Fixes [@turf/boolean-disjoint][boolean-disjoint] incorrect behaviour where a poly was completely contained within another poly (PR https://github.com/Turfjs/turf/pull/908 - Contributor @rowanwins)
    • Fixes [@turf/simplify][simplify] process pending on particular geometries, applying [@turf/clean-coords][clean-coords] to input. (PR https://github.com/Turfjs/turf/pull/903 - Contributor @stebogit @DenisCarriere)
    • Fixes boolean properties not being translated with [@turf/clone][clone] (PR https://github.com/Turfjs/turf/pull/909 - Contributor @DenisCarriere)
    • Fixes [@turf/boolean-contains][boolean-contains] incorrect output when checking two polygons (PR https://github.com/Turfjs/turf/pull/923 - Contributor @rowanwins @DenisCarriere)
    Open source →
  46. 4.6.02 Aug 2017
    Release notes2 sources agree

    🚀 New Modules

    • @turf/clean-coords Removes redundant coordinates from any GeoJSON Geometry. (PR https://github.com/Turfjs/turf/pull/875 - Author @stebogit)
    • @turf/interpolate Takes a set of points and estimates their 'property' values on a grid using the Inverse Distance Weighting (IDW) method.. (PR https://github.com/Turfjs/turf/pull/832 - Author @stebogit)
    • @turf/clusters-dbscan Takes a set of Points and partition them into clusters according to DBSCAN's data clustering algorithm. (PR https://github.com/Turfjs/turf/pull/812 and https://github.com/Turfjs/turf/pull/851 - Author @DenisCarriere)

      special mention to this incredibly instructive and fun interactive map by @DenisCarriere 😎👏

    • @turf/clusters Provides getCluster, clusterEach, and clusterReduce functions. (PR https://github.com/Turfjs/turf/pull/847 - Author @DenisCarriere)
    • @turf/boolean-point-on-line Returns true if a point is on a line. Accepts a optional parameter to ignore the start and end vertices of the linestring. (PR https://github.com/Turfjs/turf/pull/858 - Author @rowanwins)
    • @turf/boolean-overlap Takes two features and returns true or false whether or not they overlap, i.e. whether any pair of edges on the two polygons intersect. If there are any edge intersections, the polygons overlap. (PR https://github.com/Turfjs/turf/pull/856 and https://github.com/Turfjs/turf/pull/868 - Author @stebogit @tcql)
    • @turf/boolean-equal Determine whether two geometries of the same type have identical X,Y coordinate values. (PR https://github.com/Turfjs/turf/pull/869 - Author @stebogit @tcql)

    🏅 New Features/Enhancements

    • Sets centered param default to true in @turf/point-grid (PR https://github.com/Turfjs/turf/pull/836 - Contributor @stebogit)
    • Adds MultiLineString support for @turf/point-on-line (PR https://github.com/Turfjs/turf/pull/838 - Contributor @stebogit)
    • Renames @turf/clusters => @turf/clusters-kmeans, plus adds deprecated warning message to @turf/[email protected] (See Issue https://github.com/Turfjs/turf/issues/845)
    • Changes output type of @turf/clusters-kmeans (See Issue https://github.com/Turfjs/turf/issues/850 - Contributor @DenisCarriere)
    • Adds segmentEach and segmentReduce functions to @turf/meta (See Issue https://github.com/Turfjs/turf/issues/850 - Contributor @DenisCarriere)
    • Adds tests and linting on JSDoc in TurfJS core from turf-www; see Issue https://github.com/Turfjs/turf/issues/859 (PR https://github.com/Turfjs/turf/issues/857 + https://github.com/Turfjs/turf/issues/864 + https://github.com/Turfjs/turf/issues/870 - Contributor @DenisCarriere @stebogit)
    • Introduces null Geometry support across TurfJS modules (See Issue https://github.com/Turfjs/turf/issues/853) (PR https://github.com/Turfjs/turf/issues/866 - Contributor @DenisCarriere)
    • Includes feature(Sub)Index in coordEach/coordReduce (@turf/meta) 🎉 (PR https://github.com/Turfjs/turf/issues/872 - Contributor @DenisCarriere)
    • Adds bbox and id params plus geometry method to @turf/helpers (PR https://github.com/Turfjs/turf/issues/877 - Contributor @DenisCarriere)

    🐛 Bug Fixes

    • Applies @turf/truncate to @turf/line-split splitter input to avoid approximation errors. Fixed #852 (PR https://github.com/Turfjs/turf/pull/855)
    • Fixes @turf-mask error (See Issue https://github.com/Turfjs/turf/issues/837) (PR https://github.com/Turfjs/turf/pull/865 - Contributor @thiagoxvo)
    • Fixes create-new-module script error on LICENSE file creation (See Issue https://github.com/Turfjs/turf/issues/861) (commit df6986e)
    • Fixes @turf/isobands error on commonProperties (See Issue https://github.com/Turfjs/turf/issues/831) (commit 1663f07)
    Open source →
  47. 4.5.230 Jun 2017

    Nothing published for this version

  48. 4.5.130 Jun 2017

    Nothing published for this version

  49. 4.4.06 Jun 2017
    Release notes2 sources agree

    🚀 New Modules

    • @turf/line-offset Adds a new lineOffset module as per this issue. Basically takes an input line and returns a new line offset by the distance. (PR https://github.com/Turfjs/turf/pull/729 - Author @rowanwins)
    • @turf/polygonize Polygonizes (Multi)LineString(s) into Polygons. Implementation of GEOSPolygonize function (geos::operation::polygonize::Polygonizer). (PR https://github.com/Turfjs/turf/pull/767 - Author @NickCis)
    • @turf/transform-rotate Rotates any geojson Feature or Geometry of a specified angle, around its centroid or a given pivot point; all rotations follow the right-hand rule. (Issue https://github.com/Turfjs/turf/issues/747 - Author @stebogit)
    • @turf/transform-translate Moves any geojson Feature or Geometry of a specified distance along a Rhumb Line on the provided direction angle. (Issue https://github.com/Turfjs/turf/issues/747 - Author @stebogit)
    • @turf/transform-scale Scale a GeoJSON from a given point by a factor of scaling (ex: factor=2 would make the GeoJSON 200% larger). If a FeatureCollection is provided, the origin point will be calculated based on each individual Feature. (Issue https://github.com/Turfjs/turf/issues/747 - Author @stebogit)

    🏅 New Features

    • Support z-coordinate as input for @turf/turf-tin (PR https://github.com/Turfjs/turf/pull/772)
    • Adds properties parameter to @turf/centroid and @turf/center (PR https://github.com/Turfjs/turf/pull/769)
    • Include Yarn.lock for all modules & Lerna uses Yarn (Issue https://github.com/Turfjs/turf/issues/704, https://github.com/Turfjs/turf/issues/765, PR https://github.com/Turfjs/turf/pull/766)
    • Use Tap at root which enables code coverage reports (Issue https://github.com/Turfjs/turf/issues/328 & PR https://github.com/Turfjs/turf/pull/762)
    • Support z-coordinate as input for @turf/pointplane (PR https://github.com/Turfjs/turf/pull/754)
    • Add core tests - file management & package.json rules (PR https://github.com/Turfjs/turf/pull/749 & https://github.com/Turfjs/turf/pull/756)

    🐛 Bug Fixes

    • Website http://turfjs.org is back up and running (Issue https://github.com/Turfjs/turf/issues/777)
    • @turf/rhumb-destination issue at 180th meridian (Issue https://github.com/Turfjs/turf/issues/770 & PR https://github.com/Turfjs/turf/pull/771)
    • Getting too large numbers for Longitude (Issue https://github.com/Turfjs/turf/issues/758 & PR https://github.com/Turfjs/turf/pull/763)
    • Throw error if FeatureCollection not array #751 (PR https://github.com/Turfjs/turf/pull/760)
    • Change default param coordinates to 3 @turf/truncate (PR https://github.com/Turfjs/turf/pull/757)
    • along returns a point that is not found by @turf/point-on-line (Issue https://github.com/Turfjs/turf/issues/691)
    • Fix location of intersect point for @turf/point-on-line. (PR https://github.com/Turfjs/turf/pull/750)
    • Handle empty geometries as undefined @turf/buffer (PR https://github.com/Turfjs/turf/pull/746)
    Open source →
  50. 4.3.012 May 2017
    Release notes2 sources agree

    🚀 New Modules

    • Rhumb Line Modules (https://github.com/Turfjs/turf/pull/728)
    • @turf/polygon-tangents Finds the tangents of a (Multi)Polygon from a Point. (https://github.com/Turfjs/turf/pull/708)
    • @turf/rewind Rewind LineString or Polygon outer ring ~clockwise~ counter-clockwise and inner rings ~counterclockwise~ clockwise (https://github.com/Turfjs/turf/pull/700 & https://github.com/Turfjs/turf/issues/66)
    • @turf/isobands - Takes a grid FeatureCollection of Point features with z-values and an array of value breaks and generates filled contour isobands. (https://github.com/Turfjs/turf/pull/619)

    🏅 New Features

    🐛 Bug Fixes

    • Fix @turf/circle translate properties (https://github.com/Turfjs/turf/pull/717)
    • Apply equidistance @turf/buffer to polygons (https://github.com/Turfjs/turf/issues/660 & https://github.com/Turfjs/turf/pull/718)
    • Fix jsts empty (Multi)Polygon error @turf/difference (https://github.com/Turfjs/turf/pull/725)
    • Support Geometry Objects & Collection (https://github.com/Turfjs/turf/issues/710)
    • New Reverse winding - Polygon CCW & Polygon CW @turf/rewind (https://github.com/Turfjs/turf/pull/741)
    • ⭐️ New Fix Feature GeometryCollection to @turf/buffer (https://github.com/Turfjs/turf/pull/739)
    • ⭐️ New Re-enable negative radius to @turf/buffer (https://github.com/Turfjs/turf/pull/736)
    Open source →
  51. 4.2.030 Apr 2017
    Release notes2 sources agreeOpen source →
  52. 4.1.010 Apr 2017
    Release notes2 sources agree

    New Modules

    Enhancements

    • added centered param to point-grid (PR: https://github.com/Turfjs/turf/pull/650)
    • Single module.export helpers, invariant & meta (Commit: https://github.com/Turfjs/turf/commit/9cebb2100cf545fec49488c80140909ab54358b5)

    Bug Fixes

    • Turf.invariant fails on string value as coordinate (PR: https://github.com/Turfjs/turf/pull/643)
    • Handle precision=0 turf-truncate (PR: https://github.com/Turfjs/turf/pull/641)
    • Added radiansToDistance, distanceToRadians & distanceToDegrees to Turf core library from @turf/helpers. (Commit: https://github.com/Turfjs/turf/commit/a88d77a3e7f76860b3c138a716da8b603a407c8e)
    • Removed process.hrtime in @turf/polygon-unkink(issue: https://github.com/mclaeysb/simplepolygon/issues/5)
    Open source →
  53. 4.0.15 Apr 2017

    Nothing published for this version

  54. 4.0.03 Apr 2017

    Nothing published for this version

  55. 3.13.012 Mar 2017

    Nothing published for this version

  56. 3.10.014 Feb 2017

    Nothing published for this version

  57. 3.7.523 Jan 2017

    Nothing published for this version

  58. 3.7.39 Jan 2017

    Nothing published for this version

  59. 3.7.030 Nov 2016

    Nothing published for this version

  60. 3.6.330 Nov 2016

    Nothing published for this version