Releases: OpenFn/core
More debugging info
Added core version to debugging info at the start of execution:
╭──────────────────────────────────────────────╮
│ ◲ ◱ @openfn/core#v1.3.11 (Node.js v12.19.1) │
│ ◳ ◰ ● @openfn/language-http#v3.1.0 │
╰──────────────────────────────────────────────╯
Safely stringify outputs
Here we're addressing a bug with circular references in returned JS objects, mostly from axios
, which is now used extensively in language-common
and language-http
. The gist is that before, we tried to stringy the entire output of an execution when using -o some-output-file.json
, but a circular reference would throw.
We've decided to use https://www.npmjs.com/package/fast-safe-stringify rather than https://www.npmjs.com/package/json-stringify-safe because of the benchmarks. It's got 5M weekly downloads, so we're happy with the community support/stability :-)
Expressions can be run programmatically
v1.3.9 bump version, change repo url
Read version from pacakge, falls back to path
Attempt to read the adaptor version from the adaptor's package.json (this will work on OpenFn.org and in most cases using the cli, if /path/to/some/language-package.Adaptor
is used) but if it fails, print the path to the lp, as that provides the most accurate indication of what lp is being used.
Shorter debug message
v1.3.7 bump version
Print debug info before job execution
better error messages
Better human-readable errors when compilation fails because a named helper function is not available for a particular language package.
dropping node 6 support
v1.3.4 drop support for node6
Standard security enhancements w/ VM2
No fundamental changes.
Node 12, ES6 and beyond
We've introduced support for ES6 syntax, but by using "make" you can still build adaptors that run on older versions of Node.