Skip to content

Commit

Permalink
v0.6.58
Browse files Browse the repository at this point in the history
  • Loading branch information
mbloch committed Dec 8, 2023
1 parent 8cf9255 commit 578879a
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v0.6.58
* Fix for -require error on Windows.

v0.6.57
* Added io.ifile() method for creating dynamic input files in the run command

Expand Down
3 changes: 0 additions & 3 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -1062,14 +1062,11 @@ Create mapshaper commands on-the-fly and run them.

`<expression>` or `expression=` A JS expression or template containing embedded expressions, for generating one or more mapshaper commands.

Common options: `target=`

* Embedded expressions are enclosed in curly braces (see below).
* Expressions can access `target` and `io` objects.
* Expressions can also access functions and data loaded with the `-require` command.
* Functions can be async.


Expression context:

`target` object provides data and information about the command's target layer
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mapshaper",
"version": "0.6.57",
"version": "0.6.58",
"description": "A tool for editing vector datasets for mapping and GIS.",
"keywords": [
"shapefile",
Expand Down
2 changes: 1 addition & 1 deletion src/commands/mapshaper-dashlines.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { convertDistanceParam } from '../geom/mapshaper-units';
import { isLatLngCRS , getDatasetCRS } from '../crs/mapshaper-projections';
import { requirePolylineLayer, getFeatureCount } from '../dataset/mapshaper-layer-utils';
import { getFeatureEditor } from '../expressions/mapshaper-each-geojson';
import { compileFeatureExpression, compileValueExpression } from '../expressions/mapshaper-feature-expressions';
import { compileValueExpression } from '../expressions/mapshaper-feature-expressions';
import { replaceLayerContents } from '../dataset/mapshaper-dataset-utils';
import { greatCircleDistance, distance2D } from '../geom/mapshaper-basic-geom';
import { getInterpolationFunction } from '../geom/mapshaper-geodesic';
Expand Down
2 changes: 1 addition & 1 deletion src/commands/mapshaper-require.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ cmd.require = async function(opts) {
}
try {
// import CJS and ES modules
mod = await import(moduleFile || moduleName);
mod = await import(moduleFile ? require('url').pathToFileURL(moduleFile) : moduleName);
if (mod.default) {
mod = mod.default;
}
Expand Down

0 comments on commit 578879a

Please sign in to comment.