3561 Commits

Author SHA1 Message Date
James Milner
910f62ddb7 update github actions to latest versions 2023-09-30 09:53:52 +01:00
James Milner
b0fc70c9a9
resolve bundling issues relating to @turf/jsts in buffer module (#2501) 2023-09-28 20:05:38 +01:00
Mark Racette
cc6689a5a8
Lines with a 180 degree angle between them should be considered parallel (turf-boolean-parallel) (#2475)
* Lines with a 180 degree angle between them are considered parallel

* Add simple verticals test

* Add failing test case for 3d lines

* Fix verticals 3d test
2023-09-18 17:53:47 -07:00
mfedderly
cf7a0c507b
Do the 7.0.0-alpha.1 release (#2493)
* update changelog

* v7.0.0-alpha.1

* More changelog
2023-09-18 19:41:14 -04:00
James Beard
4469661e09
Replace ts-node with tsx in doc and test related build scripts (#2489)
* MRL configuration changes to replace ts-node with tsx, a more robust TS runtime. Will run MRL --fix and commit per-package changes next.

* JS projects can also rely on tsx to run scripts that used to be run by node.

* Need to keep ts-node around (at the monorepo level at least) for monorepolint.

* Almost entirely MRL automatic fixes for tsx dev dependencies, bench, doc, and test:tape. Hand edited last-checks scripts in packages/turf/
2023-09-10 20:15:59 -04:00
mfedderly
9129ff29d3
Fix typings exports definitions (#2452)
* Manual: Differentiate TS and JS packages for export definitions

* Automatic: Apply MRL
2023-08-22 19:16:20 -04:00
dependabot[bot]
d96f88612d
Bump word-wrap from 1.2.3 to 1.2.4 (#2459) 2023-07-21 21:35:41 +00:00
mfedderly
e9400e1c1d
Update supported node-versions based on node EOL (#2451) 2023-07-12 11:43:01 -04:00
dependabot[bot]
56fd2cfc11
Bump semver from 5.7.1 to 5.7.2 (#2450) 2023-07-12 00:47:51 +00:00
Moritz Wenko
88dfdbb261
feature: add unit option to nearest-point (#2415)
* feature: add unit option to nearest-point

* chore: update types & docs

* chore: add js-doc param

* chore: update nearest-point readme

---------

Co-authored-by: Rowan Winsemius <rowanwins@yahoo.com.au>
2023-05-08 22:16:13 +10:00
J-Guenther
ab2456fc66
Fix boolean-equal docs and added new tests (#2401) (#2412)
Co-authored-by: James Milner <jamesmilner22@hotmail.com>
2023-05-08 21:37:13 +10:00
Rowan Winsemius
fa673871a7
Add booleanTouches to docs (#2431) 2023-05-08 21:36:22 +10:00
James Milner
44d2ca26e1
remove node 12 and add in node 18 and 20 (#2430)
Co-authored-by: Rowan Winsemius <rowanwins@yahoo.com.au>
2023-05-01 00:36:10 +01:00
Gabriela Gutierrez
5516e56410
Set minimum permissions for turf.yml (#2416)
Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
2023-03-18 19:07:49 +00:00
Evgeny
625b4205df
Support TS node16, nodenext and bundler module resolutions (#2400)
* Support TS node16, nodenext and bundler module resoutions

Support TypeScript node16, nodenext and bundler module resolutions.

* Fix mrl config to require exports.types

* Fix all packages to have exports.types
2023-03-07 19:16:05 +00:00
Robert Martin
4eebe7a1c4
Fix typo in @turf/boolean-intersects README (#2382)
Co-authored-by: James Milner <jamesmilner22@hotmail.com>
2023-02-26 21:59:19 +00:00
dependabot[bot]
286a81c16a
Bump http-cache-semantics from 4.1.0 to 4.1.1 (#2396) 2023-02-03 13:17:16 +00:00
James Milner
3e7b4eac20
TypeScript types: Separate out length units from area units (#2393)
* Seperate out length units from area measurements

* turf-nearest-neighbor-analysis intersection type in unit option

* deduplicate import in turf-nearest-neighbor-analysis
2023-01-28 21:39:02 +00:00
dependabot[bot]
f98598b193
Bump json5 from 1.0.1 to 1.0.2 (#2386) 2023-01-07 16:45:15 +00:00
dependabot[bot]
6505576d21
Bump minimatch from 3.0.4 to 3.1.2 (#2381) 2022-12-08 16:08:31 +00:00
dependabot[bot]
8f4bf6a25c
Bump qs from 6.5.2 to 6.5.3 (#2380) 2022-12-08 15:04:39 +00:00
dependabot[bot]
d909cc1578
Bump decode-uri-component from 0.2.0 to 0.2.2 (#2375) 2022-12-03 02:35:47 +00:00
Randy_rs
a4eb377045
radiansToDegrees -> degreesToRadians (#2372) 2022-11-27 22:59:05 +00:00
dependabot[bot]
abf61cf179
Bump loader-utils from 1.4.0 to 1.4.2 (#2371) 2022-11-23 13:49:11 +00:00
mfedderly
0edc4c491b
Changelog + Release for 7.0.0-alpha.0 (#2364)
* (huge) changelog

* v7.0.0-alpha.0

* Update yarn.lock to handle the fact that our dependencies take dependencies on turf itself

Co-authored-by: Matt Fedderly <mfedderly@palantir.com>
2022-11-09 10:09:15 -05:00
mfedderly
05fafef0ea
Strict type tests (#2363)
* Small cleanup on the MRL config

* Make types tests also follow strict mode like our tsconfig.shared.json

* [auto] apply monorepolint

* Fix errors caused by types.ts checks becoming strict

Co-authored-by: Matt Fedderly <mfedderly@palantir.com>
2022-11-07 13:06:21 -05:00
SeulGi Choi(Chase)
e70a2ffd0a
add missing dependency on @turf/dissolve (#2345)
Co-authored-by: Rowan Winsemius <rowanwins@yahoo.com.au>
2022-10-12 11:55:10 +11:00
Rowan Winsemius
5c52955b66
Update kinks to use sweepline-intersections library (#1896)
* Update kinks to use sweepline-intersections library

Co-authored-by: mfedderly <mdfedderly@mdfedderly.com>
Co-authored-by: Matt Fedderly <mfedderly@palantir.com>
2022-10-12 11:11:36 +11:00
yardenfi
efb393e30d
Fix a typo in README.md (#2313)
Co-authored-by: Rowan Winsemius <rowanwins@yahoo.com.au>
2022-10-06 20:18:45 +11:00
Christoph Pahmeyer
b3582c2ba9
Fix cloning of features with null geometries (#2314) (#2316)
Co-authored-by: Rowan Winsemius <rowanwins@yahoo.com.au>
2022-10-06 20:15:13 +11:00
Pitouli
9e20dd5ee9
polygon-smooth: fix crash with MultiPolygons (#2323) (#2324)
* Fix polygon-smooth was crashing when dealing with MultiPolygons including more than one polygon with hole(s) (#2323)

* Move rollup.config in folder so the package can be used with https://gitpkg.vercel.app/

* Add the files required for using the forked package

* Make the fork usable

* Remove changes to rollup and and ts

Co-authored-by: Rowan Winsemius <rowanwins@yahoo.com.au>
2022-10-06 19:27:59 +11:00
Moritz Duchêne
81bb4573cc
feat(@turf/boolean-contains): Add MultiPolygon support (#2338)
Closes https://github.com/Turfjs/turf/issues/2337
2022-10-06 17:35:34 +11:00
dependabot[bot]
2dd2ef88c4
Bump terser from 5.5.1 to 5.14.2 (#2312) 2022-07-20 13:29:00 +00:00
James Milner
b9b338f4f0
Set NearestPointOnLine type to always include dist, index, location (#2296)
* Set NearestPointOnLine type to always include dist, index, location

* Remove uncessary property check

* Remove unnecessary
2022-06-24 10:12:21 +01:00
dependabot[bot]
c079bc2817
Bump shell-quote from 1.7.2 to 1.7.3 (#2304) 2022-06-23 13:44:41 +00:00
Lukas Himsel
f2023aee26
Add Turf for Dart (#2286) 2022-06-07 11:55:20 +01:00
David Calhoun
630a684ff0
fix minor typo in polygon-smooth docs (THe -> The) (#2293) 2022-05-30 09:57:56 +01:00
mfedderly
f62ba326cb
Fix docs generation (#2279)
* Fix generate-readmes script to work with typescript packages

* auto generated changes from generate-readmes and new documentationjs version

* Update husky to enforce docs builds at commit time
2022-04-02 12:52:52 -04:00
Rowan Winsemius
b3076e71e0
Rewrite line-intersect module (#2033)
* Rewrite line-intersect module

* fix jsdoc

* update use of sweepline-intersections to not detect self-intersections

* inline sweepline-intersections as es5

* Add some ts config

* remove unused import

* add allowJs

* adjust tsconfig

* address some eslint issues

* Some minor typing updates to get the build to pass

* Fix imports after merge

* rejig ts config

* update yarn lock

* add extra option to line-intersect re self-intersections

* run prettier

* update the turf-line-split outputs

* fix prettier

* line-intersect additional type cleanup (#2273)

* some cleanup

* clarify Intersection type

* line-intersect-typescript-cleanup (#2274)

* bump sweepline-intersections to 1.4.0

Co-authored-by: Matt Fedderly <mfedderly@palantir.com>
Co-authored-by: Tim Welch <tim.j.welch@gmail.com>
Co-authored-by: mfedderly <mdfedderly@mdfedderly.com>
2022-04-02 12:37:38 -04:00
James Milner
fcdaa939c9
Add booleanConcave to index.d.ts (#2265)
Co-authored-by: Rowan Winsemius <rowanwins@yahoo.com.au>
2022-03-17 19:19:03 +11:00
James Milner
7b43038a9c
Remove objectAssign from all packages (#2241)
* Remove objectAssign from all packages, convert isobands and isolines to TypeScript

* Fix unit tests

* Fix yarn.lock issue

* fix usage of any

* Fix mrl lint
2022-03-02 21:09:55 +00:00
dependabot[bot]
dba8f4affb
Bump nanoid from 3.1.23 to 3.2.0 (#2254) 2022-01-27 18:53:09 +00:00
dependabot[bot]
4de7b5d6dd
Bump node-fetch from 2.6.1 to 2.6.7 (#2256) 2022-01-27 18:32:45 +00:00
dependabot[bot]
b790c690f4
Bump trim-off-newlines from 1.0.1 to 1.0.3 (#2255) 2022-01-27 18:14:42 +00:00
dependabot[bot]
8f1ea4266d
Bump cached-path-relative from 1.0.2 to 1.1.0 (#2253) 2022-01-27 17:46:35 +00:00
Rowan Winsemius
45282eb105
Update boolean-point-in-polygon to use point-in-polygon-hao library (#1893)
* use point-in-oplygon-hao

* prettier

* Bump point-in-polygon-hao version

* add yarn referernce

Co-authored-by: mfedderly <mdfedderly@mdfedderly.com>
Co-authored-by: Matt Fedderly <mfedderly@palantir.com>
2022-01-17 17:01:18 -05:00
mfedderly
15268af737
FeatureCollection args for @turf/difference @turf/intersect @turf/union (#2247)
* @turf/union - accept FeatureCollection for multiple inputs

* @turf/difference - accept FeatureCollection for multiple inputs

* @turf/intersect - accept FeatureCollection for multiple inputs

* @turf/hex-grid and @turf/triangle-grid - options.mask must be a Feature<Polygon>

* Fix examples
2022-01-17 16:37:14 -05:00
mfedderly
6bc5fbe927
@turf/random throws error when passed an invalid bbox (#2172)
* @turf/random throws error when passed an invalid bbox

* 🐛 fix bug introduced with web-based conflict editor

Co-authored-by: Matt Fedderly <mfedderly@palantir.com>
Co-authored-by: Tim Welch <tim.j.welch@gmail.com>
2022-01-16 17:41:36 -05:00
mfedderly
4848e7d25f
@turf/buffer - Update typescript definitions (#2188)
- The existing definitions seemed unnecessarily convoluted
- The existing definitions did not correctly include that a negative radius could result in a MultiPolygon for certain inputs (#1749)

Co-authored-by: Matt Fedderly <mfedderly@palantir.com>
Co-authored-by: Tim Welch <tim.j.welch@gmail.com>
2022-01-16 16:36:45 -05:00
mfedderly
52f54494a3
Target ES2017 (#2237)
* Target ES2017

* Fix rbush usage issue

* More rbush fixes

Co-authored-by: Rowan Winsemius <rowanwins@yahoo.com.au>
2022-01-15 07:30:28 -05:00