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.
Last release 23 days ago
03 Aug 2026
Release timing varies
gaps range from 9 days to 11 months
Some releases are documented
notes for 21 of 45 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
65 releases · first in 2016
Release timeline
65 releases since 2016Releases
- 7.4.03 Aug 2026
Release notes
Open source →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
unitsoption 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
- 7.3.519 Apr 2026
Release notes
Open source →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
- 7.3.48 Feb 2026
Release notes
Open source →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
- 7.3.328 Jan 2026
Release notes
Open source →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
- 7.3.214 Jan 2026
Release notes
Open source →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
- 7.3.127 Nov 2025
Release notes
Open source →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
- 7.3.017 Nov 2025
Release notes
Open source →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
- 7.2.029 Dec 2024
Release notes
Open source →What's Changed
Fixes to regressions and significant pain points:
- Reverted self intersection behavior:
line-intersectby @pm0u in https://github.com/Turfjs/turf/pull/2742 - Reverted self intersection behavior for
boolean-disjointby @pm0u in https://github.com/Turfjs/turf/pull/2772 - Reverted self intersection behavior for
boolean-intersectsby @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
- Reverted self intersection behavior:
- 7.1.09 Aug 2024
Release notes
Open source →What's Changed
@turf/distanceSimplify 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/helpersReduce bundle size of apps that import @turf/helpers by @smallsaucepan in https://github.com/Turfjs/turf/pull/2623@turf/line-overlapchange deep-equals dependency for smaller bundle size by @mfedderly in https://github.com/Turfjs/turf/pull/2631@turf/maskConverted turf-mask to Typescript and added support for geometry parameters by @smallsaucepan in https://github.com/Turfjs/turf/pull/2644@turf/midpointConverted turf-midpoint to Typescript by @smallsaucepan in https://github.com/Turfjs/turf/pull/2645@turf/planepointConverted turf-planepoint to Typescript by @smallsaucepan in https://github.com/Turfjs/turf/pull/2646@turf/squareConverted turf-square to Typescript by @smallsaucepan in https://github.com/Turfjs/turf/pull/2648@turf/standard-deviational-ellipseConverted 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/tesselateConverted turf-tesselate to Typescript by @smallsaucepan in https://github.com/Turfjs/turf/pull/2650@turf/transform-rotateConverted turf-transform-rotate to Typescript by @smallsaucepan in https://github.com/Turfjs/turf/pull/2651@turf/transform-scaleConverted turf-transform-scale to Typescript by @smallsaucepan in https://github.com/Turfjs/turf/pull/2652@turf/transform-translateConverted turf-transform-translate to Typescript by @smallsaucepan in https://github.com/Turfjs/turf/pull/2653@turf/unkink-polygonConverted turf-unkink-polygon to Typescript by @smallsaucepan in https://github.com/Turfjs/turf/pull/2654@turf/voronoiConverted turf-voronoi to Typescript by @smallsaucepan in https://github.com/Turfjs/turf/pull/2655@turf/boolean-intersectsFix 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/isolinesRemove unused matrix-to-grid dependency by @mfedderly in https://github.com/Turfjs/turf/pull/2669@turf/randomfix randomPolygon generating polygons outside of the givenbboxby @nnmrts in https://github.com/Turfjs/turf/pull/2659@turf/boolean-intersects@turf/booean-disjointExpose options parameter to ignore self intersections. by @01100100 in https://github.com/Turfjs/turf/pull/2636@turf/boolean-validfix checkClosingRing to check for polygon being closed by @superDoss in https://github.com/Turfjs/turf/pull/2563@turf/helpersImplemented 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-lineinclude index of MultiLineString geometries in nearest-point-on-line by @andrewharvey in https://github.com/Turfjs/turf/pull/2574@turf/point-to-line-distanceFix 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/maskStop 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/maskFix @turf/mask benchmarks to exclude test fixtures that are not usable by @mfedderly in https://github.com/Turfjs/turf/pull/2692@turf/kinksRevert @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/helpersClarify 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
- 7.1.0-alpha.709 Aug 2024pre-release
Nothing published for this version
- 7.1.0-alpha.725 Jun 2024pre-release
Nothing published for this version
- 7.0.07 Jun 2024
Release notes
Open source →See v7 CHANGELOG
The docs website is being updated to support versioning. Please be patient.
Release notes2 sources agree
Open source →⚠️ 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/helpersCorrect the conversion factor for degrees (#2177)@turf/helperspolygon() will now throw if the first and last coordinates are not the same (#2173)@turf/helpersSeparate AreaUnits into its own type (#2393)@turf/areaFix earth radius to use WGS84 median earth radius (#2166)@turf/turfRemove re-exports for turf 4.x compatability (#2183)@turf/rectangle-gridFix correctness for large areas (#2106)- `@turf/square-grid Fix correctness for large areas (#2106)
@turf/unionAccept FeatureCollection for multiple inputs (#2247)@turf/differenceAccept FeatureCollection for multiple inputs (#2247)@turf/intersectAccept FeatureCollection for multiple inputs (#2247)@turf/bufferAdd undefined return for when the geometry is invalid (#2613)
🏅 New Features/Enhancements
@turf/kinksMove to sweepline-intersections library for performance (#1896)- `@turf/buffer Reduce bundle size by moving from turf-jsts to @turf/jsts (#2217)
@turf/boolean-equalAdd option for precision (#2231)@turf/boolean-point-in-polygonMove to point-in-polygon-hao library for performance and correctness (#1893)- [
@turf/line-intersect][line-intersect] Move to sweepline-intersections library for performance (#2033) @turf/boolean-containsAdd multipolygon support (#2338)@turf/nearest-pointAdd unit option (#2415)@turf/voronoiRetain properties from points (#1450)
🐛 Bug Fixes
@turf/polygon-smoothOptions argument is now actually optional (#2149)@turf/polygon-smoothFix crashes with polygons containing multiple holes (#2323)@turf/line-arcEnsure all points are generated when the first and last points are the same (#2142)@turf/cloneFix cloning of features with null geometries (#2316)@turf/dissolveNow correctly depends on @turf/flatten (#2345)@turf/clean-coordsAllow 3 coordinate closed LineStrings (#2178)@turf/helpersAdd alternate spellings for Units: millimetres, centimetres, metres, kilometres (#2168)@turf/ellipseAdd pivot and angle options to typescript (#2174)@turf/quadrat-analysisFix test flake (#2182)@turf/bboxUse input bbox instead of computing it (#2171)@turf/transform-scaleRemoves invalid bbox when scaling (#2171)@turf/invariantgetCoord now shallow clones its result to prevent accidental mutations (#2167)@turf/line-overlapIdentify multiple overlaps on a single segment (#2134)@turf/transform-scaleFix factor to allow only numbers >= 0 (#2169)@turf/voronoiMake options optional (#2195)@turf/boolean-withinFix multipoint checks (#2216)@turf/points-within-polygonFix dropped properties on MultiPoint results (#2227)@turf/randomThrows error on invalid bbox inputs (#2172)@turf/boolean-parallelLines with 180 degree angle between them are also considered parallel (#2475)@turf/unkink-polygonFix a maximum call stack size exceeded error with very large polygons (#2504)@turf/line-arcNumber of arc segments generated wasn't related to steps value passed in (#2524)@turf/boolean-equalReplace geojson-equality with new implementation (#2531)@turf/boolean-overlapReplace geojson-equality with new implementation (#2531)@turf/boolean-withinNow correctly checks that the final point is contained (#2599)
📖 Documentation
-
[
@turf/bbox][bbox] Improve documentation (#2153) -
[
@turf/great-circle][great-circle] Add license for arc.js (#2175) -
@turf/boolean-crossesDocument OpenGIS Simple Feature Spec requirement (#2184) -
@turf/turf-cloneNow has more useful Typescript inference (#2239) -
@turf/centroidImprove docs (#2213) -
@turf/bufferClean up Typescript types (#2188) -
@turf/polygon-smoothClean up a typo (#2293) -
@turf/nearest-point-on-lineClean up typescript types (#2296) -
@turf/boolean-touchesAdd boolean-touches to docs (#2431) -
@turf/boolean-equalImprove docs (#2412) -
Remove Bower references (#2146)
-
Fix typo in README (#2313)
-
Lots of cleanup for CONTRIBUTING, README, and RELEASING (#2186)
-
Fix docs generation (#2279)
-
Add a link to turf_dart (#2286)
🔔 Misc
- `@turf/turf Add booleanIntersects typescript export (#2157)
- `@turf/turf Add booleanTouches export (#2170)
- `@turf/turf Add booleanConcave export (#2265)
@turf/simplifyClean 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
- 7.0.0-alpha.1167 May 2024pre-release
Nothing published for this version
- 7.0.0-alpha.11523 Apr 2024pre-release
Nothing published for this version
- 7.0.0-alpha.11411 Mar 2024pre-release
Nothing published for this version
- 7.0.0-alpha.1133 Feb 2024pre-release
Nothing published for this version
- 7.0.0-alpha.11117 Jan 2024pre-release
Nothing published for this version
- 7.0.0-alpha.11030 Dec 2023pre-release
Nothing published for this version
- 7.0.0-alpha.22 Oct 2023pre-release
Nothing published for this version
- 7.0.0-alpha.118 Sept 2023pre-release
Nothing published for this version
- 7.0.0-alpha.09 Nov 2022pre-release
Nothing published for this version
- 6.5.010 Jul 2021
Release notes3 sources agree
Open source →🏅 New Features/Enhancements
@turf/points-with-polygonAdd MultiPoint support (PR https://github.com/Turfjs/turf/pull/2137 - Author @twelch)
🐛 Bug Fixes
-
@turf/dissolveComplete rewrite of the dissolve module to resolve many bugs (PR https://github.com/Turfjs/turf/pull/2110 - Author @rowanwins) -
@turf/maskComplete rewrite of the mask module to resolve many bugs (PR https://github.com/Turfjs/turf/pull/2130 - Author @rowanwins) -
@turf/boolean-validAdd missing dependency to (PR https://github.com/Turfjs/turf/pull/2094 - Author @rycgar)
📖 Documentation
@turf/boolean-overlapImprove 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)
- 6.4.017 Jun 2021
Release notes2 sources agree
Open source →🏅 New Features/Enhancements
@turf/boolean-point-on-lineAdded anepislonoption to help in floating point comparison. (PR https://github.com/Turfjs/turf/pull/2051 - Author @okcoker)
🐛 Bug Fixes
-
@turf/line-slice-alongFixed a bug where the offset distance equal to the length of the line (PR https://github.com/Turfjs/turf/pull/2030 - Author @EricPKerr) -
@turf/helpersFixed the conversion ratio for converting meters to yards and vice-versa (PR https://github.com/Turfjs/turf/pull/2046 - Author @anotherhale) -
@turf/center-medianFixed 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-rotateand@turf/ellipse) Improve documentation for angle parameter (PR https://github.com/Turfjs/turf/pull/2016 - Author @pasieronen) -
@turf/line-chunkFix an invalid anchor (PR https://github.com/Turfjs/turf/pull/2071 - Author @GraxMonzo) -
@turf/distanceEnhance distance doco so supported inputs are clearer (PR https://github.com/Turfjs/turf/pull/2032 - Author @rowanwins)
🔔 Misc
-
@turf/concaveReplace 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)
- 6.3.020 Jan 2021
Release notes2 sources agree
Open source →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)
- 6.2.012 Jan 2021
Release notes2 sources agree
Open source →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/centroidDon't visit first point twice when calculating centroid (PR https://github.com/Turfjs/turf/pull/1894 - Author @rowanwins) -
@turf/transform-translateBetter handling of negative distances (PR https://github.com/Turfjs/turf/pull/1895 - Author @rowanwins) -
@turf/union,@turf/difference,@turf/intersectUse polygon-clipping library to fix correctness issues (PR https://github.com/Turfjs/turf/pull/1916 - Authors @mbullington, @ngottlieb) -
@turf/bufferChange default number of steps to 8, and actually support the steps option (PR https://github.com/Turfjs/turf/pull/1931 - Author stevenchanin) -
@turf/bufferFix projection issues that produce undersized buffers at non-equatorial latitudes (PR https://github.com/Turfjs/turf/pull/1956 - Author dyakovlev) -
@turf/helpersAdd runtime checks to point() method, fixing an API break (PR https://github.com/Turfjs/turf/pull/1964)
🏅 New Features/Enhancements
-
@turf/boolean-overlapBetter performance for MultiPoint geometries (PR https://github.com/Turfjs/turf/pull/1910 - Author @mfedderly) -
@turf/helpersAdd hectares to convertArea (PR https://github.com/Turfjs/turf/pull/1943 - Author @DanielJDufour) -
@turf/great-circleUpdate Typescript types to support MultiLineString input (PR https://github.com/Turfjs/turf/pull/1928 - Author kronick)
📖 Documentation
-
@turf/square-gridClarify inputs (PR https://github.com/Turfjs/turf/pull/1885 - Author @raphael-leger) -
@turf/greater-circleClarify properties option example (PR https://github.com/Turfjs/turf/pull/1888 - Author @chris-catignani)
⚠️ Breaking Change
-
@turf/line-to-polygonno longer modifies its input unless the mutate option is true (PR https://github.com/Turfjs/turf/pull/1879 - Author @MortenBirk) -
@turf/unkink-polygonremove Number.prototype.modulo override (PR https://github.com/Turfjs/turf/pull/1978)
- 6.2.0-alpha.310 Dec 2020pre-release
Nothing published for this version
- 6.2.0-alpha.213 Jul 2020pre-release
Nothing published for this version
- 6.2.0-alpha.127 Mar 2020pre-release
Nothing published for this version
- 6.2.0-alpha.026 Mar 2020pre-release
Nothing published for this version
- 6.1.211 Jun 2018
Nothing published for this version
- 6.0.127 Jan 2018
Nothing published for this version
- 6.0.026 Jan 2018
Nothing published for this version
- 6.0.0-beta.426 Jan 2018pre-release
Nothing published for this version
- 6.0.0-beta.35 Jan 2018pre-release
Nothing published for this version
- 6.0.0-beta.25 Jan 2018pre-release
Nothing published for this version
- 5.2.030 Dec 2017
Nothing published for this version
- 5.1.510 Dec 2017
Nothing published for this version
- 5.1.410 Dec 2017
Nothing published for this version
- 5.1.07 Dec 2017
Nothing published for this version
- 5.0.49 Nov 2017
Nothing published for this version
- 5.0.01 Oct 2017
Release notes2 sources agree
Open source →⭐️ 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
line1is parallel to the correspondent segment ofline2(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 & addedflattenEachinstead of usingflatten. (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/metalineEachmethod to provide properties, id and bbox (PR https://github.com/Turfjs/turf/pull/1010)
🐛 Bug Fixes
-
Fixes
@turf/helpersearth radius variable (PR https://github.com/Turfjs/turf/pull/1012) -
Fixes
@turf/polygon-tangentsbug (PR https://github.com/Turfjs/turf/pull/1058) -
Fixes
@turf/line-chunkbug when the number of segments is integer (PR https://github.com/Turfjs/turf/pull/1046) -
Fixes
segmentEachandsegmentReducemethods in@turf/metato 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/randomPR https://github.com/Turfjs/turf/issues/994 - Deprecate
@turf/idwIssue https://github.com/Turfjs/turf/issues/887 - Reworked Grid modules
@turf/point-grid/hex/square/trianglePR https://github.com/Turfjs/turf/pull/1029 - Renamed Modules/Methods
- [x]
@turf/inside=>@turf/boolean-point-in-polygonhttps://github.com/Turfjs/turf/issues/860#issuecomment-317216235 - [x]
@turf/within=>@turf/points-within-polygonhttps://github.com/Turfjs/turf/issues/860#issuecomment-317216235 - [x]
@turf/bezier=>@turf/bezier-splineIssue https://github.com/Turfjs/turf/issues/661 - [x]
@turf/nearest=>@turf/nearest-pointhttps://github.com/Turfjs/turf/pull/858#issuecomment-317197295 - [x]
@turf/point-on-line=>@turf/nearest-point-on-linehttps://github.com/Turfjs/turf/pull/858#issuecomment-317197295 - [x]
@turf/lineDistance=>@turf/lengthhttps://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
- [x]
- [x]
- 5.0.0-alpha26 Sept 2017pre-release
Nothing published for this version
- 4.7.312 Sept 2017
Nothing published for this version
- 4.7.15 Sept 2017
Nothing published for this version
- 4.7.05 Sept 2017
Release notes2 sources agree
Open source →🚀 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 & addedflattenEachinstead of usingflatten. (PR https://github.com/Turfjs/turf/pull/889) - [
@turf/concave][concave] refactoring, replacing [@turf/union][union] withgeojson-dissolveto increase speed and added support tonullgeometries (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
GeoJSONto [@turf/simplify][simplify] (PR https://github.com/Turfjs/turf/pull/903 - Contributor @DenisCarriere @stebogit) - Adds new
isNumberfunction 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
MultiPolygonsfor [@turf/simplify][simplify] (PR https://github.com/Turfjs/turf/pull/922 - Contributor @DenisCarriere)
🐛 Bug Fixes
- Fixes
@turf/bbox-clippoint 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] onsplitter(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 returningFeature<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
booleanproperties 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)
- 4.6.02 Aug 2017
Release notes2 sources agree
Open source →🚀 New Modules
@turf/clean-coordsRemoves redundant coordinates from any GeoJSON Geometry. (PR https://github.com/Turfjs/turf/pull/875 - Author @stebogit)@turf/interpolateTakes 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-dbscanTakes 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/clustersProvidesgetCluster,clusterEach, andclusterReducefunctions. (PR https://github.com/Turfjs/turf/pull/847 - Author @DenisCarriere)@turf/boolean-point-on-lineReturns 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-overlapTakes 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-equalDetermine 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
centeredparam default totruein@turf/point-grid(PR https://github.com/Turfjs/turf/pull/836 - Contributor @stebogit) - Adds
MultiLineStringsupport 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
segmentEachandsegmentReducefunctions 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
nullGeometry 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
bboxandidparams plusgeometrymethod to@turf/helpers(PR https://github.com/Turfjs/turf/issues/877 - Contributor @DenisCarriere)
🐛 Bug Fixes
- Applies
@turf/truncateto@turf/line-splitsplitterinput to avoid approximation errors. Fixed #852 (PR https://github.com/Turfjs/turf/pull/855) - Fixes
@turf-maskerror (See Issue https://github.com/Turfjs/turf/issues/837) (PR https://github.com/Turfjs/turf/pull/865 - Contributor @thiagoxvo) - Fixes
create-new-modulescript error onLICENSEfile creation (See Issue https://github.com/Turfjs/turf/issues/861) (commit df6986e) - Fixes
@turf/isobandserror oncommonProperties(See Issue https://github.com/Turfjs/turf/issues/831) (commit 1663f07)
- 4.5.230 Jun 2017
Nothing published for this version
- 4.5.130 Jun 2017
Nothing published for this version
- 4.4.06 Jun 2017
Release notes2 sources agree
Open source →🚀 New Modules
@turf/line-offsetAdds 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/polygonizePolygonizes (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-rotateRotates 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-translateMoves 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-scaleScale 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/centroidand@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
Tapat 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-destinationissue 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)
- 4.3.012 May 2017
Release notes2 sources agree
Open source →🚀 New Modules
- Rhumb Line Modules (https://github.com/Turfjs/turf/pull/728)
@turf/polygon-tangentsFinds the tangents of a (Multi)Polygon from a Point. (https://github.com/Turfjs/turf/pull/708)@turf/rewindRewind 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
- New function convertDistance to
@turf/helpers(https://github.com/Turfjs/turf/pull/732) - Add ignoreBoundary param
@turf/inside(https://github.com/Turfjs/turf/pull/706) - Add flattenEach/flattenReduce to
@turf/meta. (https://github.com/Turfjs/turf/pull/712 & https://github.com/Turfjs/turf/issues/692) - New Feature
getGeom&getGeomTypein@turf/invariant(https://github.com/Turfjs/turf/pull/720) - Adds
round(),radians2degrees()anddegrees2radians()toturf-helpers(https://github.com/Turfjs/turf/pull/715) - ⭐️ New Add FeatureCollection & GeometryCollection support to
@turf/rewind(https://github.com/Turfjs/turf/pull/741)
🐛 Bug Fixes
- Fix
@turf/circletranslate properties (https://github.com/Turfjs/turf/pull/717) - Apply equidistance
@turf/bufferto 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)
@turf/line-intersect(https://github.com/Turfjs/turf/pull/731)@turf/line-chunk(https://github.com/Turfjs/turf/pull/726)@turf/line-segment(https://github.com/Turfjs/turf/pull/727 & https://github.com/Turfjs/turf/pull/711)@turf/line-overlap(https://github.com/Turfjs/turf/pull/711)
- 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
radiusto@turf/buffer(https://github.com/Turfjs/turf/pull/736)
- 4.2.030 Apr 2017
Release notes2 sources agree
Open source →New Modules
Enhancements
- Add mutate param to
@turf/flip - Add Geometry & GeometryCollection support to
@turf/truncate @turf/insideperformance increase- Add properties param to
@turf/circle - Added
bearingToAnglemethod to turf-helpers
Bug Fixes
- Fix
@turf/bufferpoints in high latitudes - lineIntersect returns the same point several times
@turf/flipincorrect if z-elevation is present
Changes
Documentation
- Add mutate param to
- 4.1.010 Apr 2017
Release notes2 sources agree
Open source →New Modules
Enhancements
- added centered param to point-grid (PR: https://github.com/Turfjs/turf/pull/650)
- Single
module.exporthelpers, 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&distanceToDegreesto 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)
- 4.0.15 Apr 2017
Nothing published for this version
- 4.0.03 Apr 2017
Nothing published for this version
- 3.13.012 Mar 2017
Nothing published for this version
- 3.10.014 Feb 2017
Nothing published for this version
- 3.7.523 Jan 2017
Nothing published for this version
- 3.7.39 Jan 2017
Nothing published for this version
- 3.7.030 Nov 2016
Nothing published for this version
- 3.6.330 Nov 2016
Nothing published for this version