@rapideditor/location-conflation
Advanced tools
Comparing version 1.2.1 to 1.3.0
{ | ||
"name": "@rapideditor/location-conflation", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"license": "ISC", | ||
@@ -46,11 +46,11 @@ "repository": "github:rapideditor/location-conflation", | ||
"geojson-precision": "^1.0.0", | ||
"polygon-clipping": "~0.15.3" | ||
"polyclip-ts": "~0.16.3" | ||
}, | ||
"devDependencies": { | ||
"c8": "^8.0.0", | ||
"esbuild": "^0.18.11", | ||
"eslint": "^8.44.0", | ||
"c8": "^8.0.1", | ||
"esbuild": "^0.19.3", | ||
"eslint": "^8.49.0", | ||
"npm-run-all": "^4.1.5", | ||
"shx": "^0.3.4", | ||
"tap": "^16.3.7" | ||
"tap": "^16.3.8" | ||
}, | ||
@@ -61,4 +61,4 @@ "publishConfig": { | ||
"engines": { | ||
"node": ">=16.14.0" | ||
"node": ">=18" | ||
} | ||
} |
@@ -57,3 +57,3 @@ [![build](https://github.com/rapideditor/location-conflation/workflows/build/badge.svg)](https://github.com/rapideditor/location-conflation/actions?query=workflow%3A%22build%22) | ||
// or | ||
import LocationConflation from '@rapideditor/location-conflation'; // import ESM | ||
import { LocationConflation } from '@rapideditor/location-conflation'; // import ESM | ||
``` | ||
@@ -69,3 +69,3 @@ | ||
<head> | ||
<script src="https://cdn.jsdelivr.net/npm/@rapideditor/location-conflation@1.2/dist/location-conflation.iife.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@rapideditor/location-conflation@1.3/dist/location-conflation.iife.min.js"></script> | ||
</head> | ||
@@ -85,4 +85,4 @@ … | ||
```js | ||
const LocationConflation = require('@rapideditor/location-conflation').default; | ||
const myFeatures = require('./path/to/FeatureCollection.json'); // optional | ||
import { LocationConflation } from '@rapideditor/location-conflation'; | ||
import myFeatures from './fixtures/features.json' assert {type: 'json'}; // optional | ||
const loco = new LocationConflation(myFeatures); | ||
@@ -133,3 +133,2 @@ ``` | ||
* [stringify](#stringify) | ||
* [cache](#cache) | ||
@@ -264,3 +263,3 @@ | ||
Get/set "strict mode". New instances of LocationConflation start out in strict mode by default. | ||
Getter/setter for "strict mode". Current versions of LocationConflation start out in strict mode by default. | ||
@@ -271,4 +270,4 @@ * In strict mode, any invalid location or locationSet throws an error. | ||
```js | ||
loco.strict(false); // pass a true/false value to set the strict mode | ||
const isStrict = loco.strict(); // pass no value to return the current value | ||
loco.strict = false; // setter: pass a true/false value to set the strict mode | ||
const isStrict = loco.strict; // getter: return the current value | ||
``` | ||
@@ -286,6 +285,2 @@ | ||
<a name="cache" href="#cache">#</a> <i>loco</i>.<b>cache</b>() | ||
Convenience method to access the internal feature `_cache`. You probably shouldn't use it except for debugging. | ||
| ||
@@ -298,3 +293,3 @@ | ||
* [Node.js](https://nodejs.org/) version 16 or newer | ||
* [Node.js](https://nodejs.org/) version 18 or newer | ||
* [`git`](https://www.atlassian.com/git/tutorials/install-git/) for your platform | ||
@@ -301,0 +296,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
2508773
8463
314
+ Addedpolyclip-ts@~0.16.3
+ Addedbignumber.js@9.1.2(transitive)
+ Addedpolyclip-ts@0.16.7(transitive)
+ Addedsplaytree-ts@1.0.1(transitive)
- Removedpolygon-clipping@~0.15.3
- Removedpolygon-clipping@0.15.7(transitive)
- Removedrobust-predicates@3.0.2(transitive)
- Removedsplaytree@3.1.2(transitive)