@turf/dissolve
Advanced tools
Comparing version 5.0.0 to 5.0.1
12
index.js
@@ -58,3 +58,3 @@ import rbush from 'geojson-rbush'; | ||
for (var potentialMatchingFeature of tree.search(polygon).features) { | ||
tree.search(polygon).features.forEach(function (potentialMatchingFeature) { | ||
polygon = features[i]; | ||
@@ -75,11 +75,11 @@ | ||
if (matchFeaturePosition === +i) continue; | ||
if (matchFeaturePosition === +i) return; | ||
var matchFeature = features[matchFeaturePosition]; | ||
if (!matchFeature || !polygon) continue; | ||
if (!matchFeature || !polygon) return; | ||
if (propertyName !== undefined && | ||
matchFeature.properties[propertyName] !== polygon.properties[propertyName]) continue; | ||
matchFeature.properties[propertyName] !== polygon.properties[propertyName]) return; | ||
if (!overlap(polygon, matchFeature) || !ringsIntersect(polygon, matchFeature)) continue; | ||
if (!overlap(polygon, matchFeature) || !ringsIntersect(polygon, matchFeature)) return; | ||
@@ -100,3 +100,3 @@ features[i] = turfUnion(polygon, matchFeature); | ||
featureChanged = true; | ||
} | ||
}); | ||
@@ -103,0 +103,0 @@ if (featureChanged) { |
12
main.js
@@ -164,3 +164,3 @@ 'use strict'; | ||
for (var potentialMatchingFeature of tree.search(polygon).features) { | ||
tree.search(polygon).features.forEach(function (potentialMatchingFeature) { | ||
polygon = features[i]; | ||
@@ -181,11 +181,11 @@ | ||
if (matchFeaturePosition === +i) continue; | ||
if (matchFeaturePosition === +i) return; | ||
var matchFeature = features[matchFeaturePosition]; | ||
if (!matchFeature || !polygon) continue; | ||
if (!matchFeature || !polygon) return; | ||
if (propertyName !== undefined && | ||
matchFeature.properties[propertyName] !== polygon.properties[propertyName]) continue; | ||
matchFeature.properties[propertyName] !== polygon.properties[propertyName]) return; | ||
if (!overlap(polygon, matchFeature) || !ringsIntersect(polygon, matchFeature)) continue; | ||
if (!overlap(polygon, matchFeature) || !ringsIntersect(polygon, matchFeature)) return; | ||
@@ -206,3 +206,3 @@ features[i] = turfUnion(polygon, matchFeature); | ||
featureChanged = true; | ||
} | ||
}); | ||
@@ -209,0 +209,0 @@ if (featureChanged) { |
{ | ||
"name": "@turf/dissolve", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "turf dissolve module", | ||
@@ -52,3 +52,3 @@ "main": "main", | ||
"@turf/meta": "5.x", | ||
"@turf/union": "*", | ||
"@turf/union": "5.x", | ||
"geojson-rbush": "2.1.0", | ||
@@ -55,0 +55,0 @@ "get-closest": "*" |
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
20364
2
0
+ Added@turf/union@5.1.5(transitive)
+ Addedturf-jsts@1.2.3(transitive)
- Removed@turf/union@7.2.0(transitive)
- Removedbignumber.js@9.1.2(transitive)
- Removedpolyclip-ts@0.16.8(transitive)
- Removedsplaytree-ts@1.0.2(transitive)
Updated@turf/union@5.x