9.4.1 • Published 3 years ago
@mapbox/osm-compare v9.4.1
osm-compare
Compare functions are small atomic functions that are designed identify what changed during a feature edit on OpenStreetMap. Compare functions can be broadly split up into two categories:
- Property (tags) checking compare function
- Geometry checking compare functions
Compare functions take as inputs the following:
oldVersion
- GeoJSON of the feature's old versionnewVersion
- GeoJSON of the feature's new version
Compare functions output the following:
result
- Object containing key value pairs representing findings of the compare function or an empty object.
# Format of compare function result where value can be primary data types or objects
{
'result:comparator_name': value,
'message': Any custom message which corresponds to the catch
}
# Format of compare function if no result, (default)
false
Install
# Install osm-compare from the Mapbox namespace.
npm install @mapbox/osm-compare
Docs
How do I build an npm package?
- We use Semantic Versioning Specification for versioning releases.
- Create an appropriate version of the npm package with
npm version [major|minor|patch]
. - Push the package tag commit with
git push --tags
- Publish the NPM package with
npm publish
9.4.1
3 years ago
9.4.0
3 years ago
9.3.2
4 years ago
9.3.1
5 years ago
9.2.1
6 years ago
9.2.0
6 years ago
9.1.0
6 years ago
9.0.0
6 years ago
8.3.0
6 years ago
8.2.0
6 years ago
8.0.0
7 years ago
7.8.0
7 years ago
7.7.0
7 years ago
7.6.0
7 years ago
7.5.0
7 years ago
7.4.4
7 years ago
7.4.3
7 years ago
7.4.2
7 years ago
7.4.1
7 years ago
7.3.0
7 years ago
7.2.0
7 years ago
7.1.2
7 years ago
7.1.1
7 years ago
7.1.0
7 years ago
7.0.0
7 years ago
6.3.2
7 years ago
6.3.1
7 years ago
6.2.2
7 years ago
6.3.0
7 years ago
6.2.1
7 years ago
6.2.0
7 years ago
6.1.0
7 years ago
6.0.0
7 years ago
5.0.0
7 years ago
4.16.3
7 years ago