Releases: Turfjs/turf
v7.3.2
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 #2951
- turf-boolean-contains + turf-boolean-within: Fix line in polygon by @samuelarbibe in #2848
- @turf/boolean-contains - support for multipolygon inside polygon by @MartinP-C in #2357
- Refactor and extend properties of returned nearest point in @turf/nearest-point-on-line by @EmilJunker in #2867
- Changed booleanCrosses with two input lines to recognise if crossing point is between vertices by @smallsaucepan in #2968
- Improve type inference in @turf/helpers' geometry and geometryCollection by @mfedderly in #2971
- turf-tessellate: Pass original coordinate elevations through the tessellate function. by @prozvora in #2855
- Significantly improved performance of clustersDbscan by @smallsaucepan in #2885
Housekeeping and behind the scenes changes:
- Upgrade Lerna by @mfedderly in #2964
- Typescript-ifying turf-great-circle by @thomas-hervey in #2733
- Preparing for NPM trusted publishing plus node version housekeeping by @smallsaucepan in #2952
- Migrate @turf/interpolate to TypeScript by @mfedderly in #2966
- Migrate @turf/line-chunk to TypeScript by @mfedderly in #2969
- Move to Extract for @turf/helpers' geometry() by @mfedderly in #2976
- Migrate @turf/line-offset to TypeScript by @mfedderly in #2974
- Enforce only eraseable TypeScript syntax by @mfedderly in #2977
- @turf/line-slice to TypeScript by @mfedderly in #2979
- @turf/line-slice-along to TypeScript by @mfedderly in #2978
- Migrate @turf/line-split to TypeScript by @mfedderly in #2985
- Migrate @turf/geojson-rbush to TypeScript by @mfedderly in #2980
- Automatically add any inferred README changes in pre-commit hook by @mfedderly in #2987
- Clean up .js files in various TypeScript-first packages by @mfedderly in #2992
- Migrated turf-meta to typescript (bare bones edition) by @smallsaucepan in #2993
New Contributors
- @samuelarbibe made their first contribution in #2848
- @MartinP-C made their first contribution in #2357
- @thomas-hervey made their first contribution in #2733
Full Changelog: v7.3.1...v7.3.2
v7.3.1
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 #2957
Housekeeping and behind the scenes changes:
- Transitive dependency updates by @mfedderly in #2959
- Remove npm-run-all in favor of pnpm regex script name functionality by @mfedderly in #2960
- Bump glob@11 package.json entries by @mfedderly in #2961
Full Changelog: v7.3.0...v7.3.1
v7.3.0
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 #2940
- turf-nearest-point-on-line: Fix issue #2808 by @insideGen in #2849
- Rewrite @turf/isolines by @mfedderly in #2918
- Rewrite @turf/isobands by @mfedderly in #2926
Bug fixes and new functionality:
- Updated link to Chaikin's algorithm - access forbidden to the old link. by @Armatorix in #2804
- Improved the quality of generated ellipses especially at higher latitudes by @hadbn in #2739
- Fix - Documented unit used for Earth's radius by @IvoBiaus in #2842
- turf-hexgrid: fix issue #2841 by @SimonsUnikaNamn in #2856
- turf-transform-translate: Add warning about shape distortion #217 by @jtheisen in #2831
- turf-nearest-point: maintain point properties in result type by @EmilJunker in #2866
- Changed turf-destination and turf-ellipse to pass through elevation value if present by @prozvora in #2852
- Fixed simplify to not get stuck in an infinite loop on certain geometries by @smallsaucepan in #2830
- turf-great-circle: Fix antipodal error message by @macrouch in #2884
- Updates Documentation from Strings to Units by @conor-f in #2838
- Added missing layer in map example for @turf/line-split docs by @luc-tielen in #2724
- Changed lineSplit to use bbox from geojson-rbush rather than buggy turf-square by @hanneshdc in #2460
- Fix @turf/isobands issue with ring nesting logic by @mfedderly in #2925
- @turf/isobands and @turf/isolines check pointGrid input is actually gridded already by @mfedderly in #2927
- Fixed cleanCoords to remove points with appropriate tenacity by @smallsaucepan in #2771
- Use newer @types/rbush that fixes the need for the reexport shims by @mfedderly in #2924
- Add Kotlin Multiplatform port information to SEE_ALSO.md by @sargunv in #2936
- @turf/shortest-path Allow polygon feature as obstacle for shortestPath (#2941) by @ziegler-daniel in #2942
- Fix issue 2824 on turf-point-to-polygon-distance by @LHBruneton-C2C in #2845
- @turf/shortest-path improve creation of point matrix for A* algorithm (#2943) by @ziegler-daniel in #2944
- @turf/nearest-point-on-line TESTS: add test for duplicated points on line string affecting v7.2.0 by @alacret in #2903
Housekeeping and behind the scenes changes:
- Merged v7.2.0 publishing changes back to master by @smallsaucepan in #2797
- Bump eslint dependencies by @mfedderly in #2923
- Update nx config for tests by @mfedderly in #2685
- Migrate from workspace:^ to workspace:* to pin dependency versions by @mfedderly in #2878
- Pin the exact SHA1's of GitHub Actions we use by @mfedderly in #2863
- Run pnpm dedupe to clean up the lockfile by @mfedderly in #2829
- Update package.json for all turf packages by @protokoul in #2802
- Updated build tools - pnpm, lerna, typescript, tsup, etc housekeeping by @smallsaucepan in #2879
New Contributors
- @protokoul made their first contribution in #2802
- @Armatorix made their first contribution in #2804
- @hadbn made their first contribution in #2739
- @IvoBiaus made their first contribution in #2842
- @SimonsUnikaNamn made their first contribution in #2856
- @insideGen made their first contribution in #2849
- @jtheisen made their first contribution in #2831
- @EmilJunker made their first contribution in #2866
- @prozvora made their first contribution in #2852
- @macrouch made their first contribution in #2884
- @conor-f made their first contribution in #2838
- @luc-tielen made their first contribution in #2724
- @hanneshdc made their first contribution in #2460
- @sargunv made their first contribution in #2936
- @ziegler-daniel made their first contribution in #2942
- @LHBruneton-C2C made their first contribution in #2845
- @bratter made their first contribution in #2940
- @alacret made their first contribution in #2903
Full Changelog: v7.2.0...v7.3.0
v7.2.0
What's Changed
Fixes to regressions and significant pain points:
- Reverted self intersection behavior:
line-intersectby @pm0u in #2742 - Reverted self intersection behavior for
boolean-disjointby @pm0u in #2772 - Reverted self intersection behavior for
boolean-intersectsby @pm0u in #2773 - Replaced polygon-clipping with polyclip-ts by @cmurphy23 in #2729
Bug fixes and new functionality:
- Added new point-to-polygon-distance package by @pachacamac in #2735
- Added bbox parameter to @turf/interpolate by @lemonig in #2768
- Handle when start and end are the same point in greatCircle by @rowanwins in #2343
- Fixed turf-angle to consistently measure angles clockwise by @smallsaucepan in #2714
- Reversed the order in which random polygon points are generated to satisfy the right hand rule by @smallsaucepan in #2715
- Fixed multiple modules that were performing scalar instead of spherical calculations by @smallsaucepan in #2717
- Fixed confusing turf-union documentation by @smallsaucepan in #2732
- Added a cautionary message to Units about measuring length in radians or degrees. by @smallsaucepan in #2748
- Added special handling to booleanPointOnLine for zero length lines by @smallsaucepan in #2751
Housekeeping and behind the scenes changes:
- Updated release instructions by @twelch in #2698
- Improve release docs ensuring stable official release branch by @twelch in #2726
- Upgraded typescript by @mfedderly in #2684
- Added a regression test for clone() bug that was probably fixed a while ago. by @smallsaucepan in #2749
- Revamped content and layout of project docs (README, CONTRIBUTING, etc) by @smallsaucepan in #2770
- Bump rollup from 2.79.1 to 3.29.5 by @dependabot in #2720
New Contributors
- @pachacamac made their first contribution in #2735
- @pm0u made their first contribution in #2742
- @lemonig made their first contribution in #2768
- @cmurphy23 made their first contribution in #2729
Full Changelog: v7.1.0...v7.2.0
v7.1.0
What's Changed
@turf/distanceSimplify unnecessary union type in turfDistance by @isti115 in #2618- Upgrade to Lerna 8 by @mfedderly in #2612
- Deprecate CHANGELOG, improve release action, PR template, Contributing doc by @twelch in #2621
@turf/helpersReduce bundle size of apps that import @turf/helpers by @smallsaucepan in #2623@turf/line-overlapchange deep-equals dependency for smaller bundle size by @mfedderly in #2631@turf/maskConverted turf-mask to Typescript and added support for geometry parameters by @smallsaucepan in #2644@turf/midpointConverted turf-midpoint to Typescript by @smallsaucepan in #2645@turf/planepointConverted turf-planepoint to Typescript by @smallsaucepan in #2646@turf/squareConverted turf-square to Typescript by @smallsaucepan in #2648@turf/standard-deviational-ellipseConverted turf-standard-deviational-ellipse to Typescript by @smallsaucepan in #2649- Pin pnpm version using corepack by @RobinVdBroeck in #2602
@turf/tesselateConverted turf-tesselate to Typescript by @smallsaucepan in #2650@turf/transform-rotateConverted turf-transform-rotate to Typescript by @smallsaucepan in #2651@turf/transform-scaleConverted turf-transform-scale to Typescript by @smallsaucepan in #2652@turf/transform-translateConverted turf-transform-translate to Typescript by @smallsaucepan in #2653@turf/unkink-polygonConverted turf-unkink-polygon to Typescript by @smallsaucepan in #2654@turf/voronoiConverted turf-voronoi to Typescript by @smallsaucepan in #2655@turf/boolean-intersectsFix boolean-intersects docs by @izzybps in #2593- Updated documentation.js to resolve critical parse-url vulnerability by @smallsaucepan in #2664
@turf/area: bug fix: off-by-one bug in area calculation by @Abdumbo99 in #2665- Upgrade dependencies by @mfedderly in #2668
@turf/isobands@turf/isolinesRemove unused matrix-to-grid dependency by @mfedderly in #2669@turf/randomfix randomPolygon generating polygons outside of the givenbboxby @nnmrts in #2659@turf/boolean-intersects@turf/booean-disjointExpose options parameter to ignore self intersections. by @01100100 in #2636@turf/boolean-validfix checkClosingRing to check for polygon being closed by @superDoss in #2563@turf/helpersImplemented azimuthToBearing by @basvdijk in #2674- Added support/6.x branch to CI config by @smallsaucepan in #2673
@turf/nearest-point-on-lineinclude index of MultiLineString geometries in nearest-point-on-line by @andrewharvey in #2574@turf/point-to-line-distanceFix two small typos by @mfedderly in #2675- Update PR/develop action to cache pnpm files by @mfedderly in #2671
- Add explicit geojson types dependency by @mfedderly in #2676
- Rework prettier setup by @mfedderly in #2677
- Update @types/geojson to 7946.0.10 minimum by @mfedderly in #2688
@turf/maskStop turf-mask mutating by default, make it an option by @farkmarnum in #2635- Add test.example.js to .prettierignore by @mfedderly in #2689
@turf/maskFix @turf/mask benchmarks to exclude test fixtures that are not usable by @mfedderly in #2692@turf/kinksRevert @turf/kinks to 6.5.0 version by @mfedderly in #2693@turf/cluster-dbscanUpdate cluster-dbscan docs by @mwenko in #2624@turf/*-grid@turf/area@turf/helpersClarify behavior of some existing turf modules by @twelch in #2683- Upgrade pnpm/action-setup in github actions by @mfedderly in #2696
New Contributors
- @isti115 made their first contribution in #2618
- @izzybps made their first contribution in #2593
- @Abdumbo99 made their first contribution in #2665
- @nnmrts made their first contribution in #2659
- @01100100 made their first contribution in #2636
- @superDoss made their first contribution in #2563
- @basvdijk made their first contribution in #2674
- @andrewharvey made their first contribution in #2574
- @farkmarnum made their first contribution in #2635
Full Changelog: v7.0.0...v7.1.0
v7.0.0
v6.5.0
🏅 New Features/Enhancements
@turf/points-with-polygonAdd MultiPoint support
(PR #2137 - Author @twelch)
🐛 Bug Fixes
-
@turf/dissolveComplete rewrite of the dissolve module to resolve many bugs
(PR #2110 - Author @rowanwins) -
@turf/maskComplete rewrite of the mask module to resolve many bugs
(PR #2130 - Author @rowanwins) -
@turf/boolean-validAdd missing dependency to
(PR #2094 - Author @rycgar)
📖 Documentation
@turf/boolean-overlapImprove clarity
(PR #2133 - Author @patrickbrett)
🔔 Misc
- Enable TS Strict Mode
(PR #2126 - Author @mfedderly)
v3.0.11
- Fix line slice by @camilleanne in #417
- removes vendored point-on-line implementation in favor of a local dependency
- add test fixture for vertical linestrings passed to turf-line-slice
New Contributors
- @camilleanne made their first contribution in #417
Full Changelog: v3.0.10...v3.0.11
v3.0.4
- Fix turf-along using raw geometry by @jvrousseau in #376
Full Changelog: v3.0.3...v3.0.4
v3.0.3
This publishes turf-collect, which was previously incorrectly named turf-aggregate
Full Changelog: v3.0.2...v3.0.3