Comparing version 2.2.2 to 2.2.3
@@ -5,2 +5,6 @@ # Change Log | ||
## [2.2.3] - 01-25-2021 | ||
### Changed | ||
* Refactored class break generation | ||
## [2.2.2] - 12-16-2020 | ||
@@ -375,2 +379,3 @@ ### Fixed | ||
[2.2.3]: https://github.com/featureserver/winnow/compare/v2.2.2...v2.2.3 | ||
[2.2.2]: https://github.com/featureserver/winnow/compare/v2.2.1...v2.2.2 | ||
@@ -377,0 +382,0 @@ [2.2.1]: https://github.com/featureserver/winnow/compare/v2.2.0...v2.2.1 |
const standardQuery = require('./standard-query') | ||
const { calculateClassBreaks, calculateUniqueValueBreaks } = require('../generateBreaks/index') | ||
const calculateClassBreaks = require('../calculate-class-breaks') | ||
const uniqueValueQuery = require('./unique-value-query') | ||
@@ -17,4 +18,3 @@ function classificationQuery (features, sqlstatement, options) { | ||
if (type === 'unique') { | ||
const { options, query: sqlBreaksStatement } = calculateUniqueValueBreaks(filtered, classification) | ||
return standardQuery(filtered, sqlBreaksStatement, { ...options, skipLimitHandling: true }) | ||
return uniqueValueQuery(filtered, classification) | ||
} | ||
@@ -21,0 +21,0 @@ |
{ | ||
"name": "winnow", | ||
"version": "2.2.2", | ||
"version": "2.2.3", | ||
"description": "Apply sql-like filters to GeoJSON", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
107462
78
1719