Releases: discoveryjs/discovery-cli
Releases · discoveryjs/discovery-cli
2.14.7
2.14.6
2.14.5
2.14.4
- Updated JSONXL (
--experimental-jsonxloption):- Fixed an edge case for signed numbers in the range ±[MAX_SAFE_INTEGER/2 … MAX_SAFE_INTEGER].
- Removed the limitation that could trigger when the total encoded string length exceeded the maximum string length (~500 MB in V8)
2.14.3
2.14.2
2.14.1
2.14.0 Introducing script mode build for models
- Added basic script mode build for models:
- Added support for
scriptsection in config, which enables model's script buildmodelConfig = { script: { // script.modules is the same as view.assets modules: ['path/to/module.js', ...] } }
- Added new options for build:
--script-names,--script-formatand--script-format
- Added support for
- Bumped
esbuildto^0.25.1
2.13.1
2.13.0
- Added
--asset-namesoption for build command - Added
--single-file-dataoption for build command - Changed the build process to write the generated data into a temporary file before proceeding with the remaining steps, allowing child processes to complete and freeing up memory
- Fixed build when a model has no cached data and no
--single-fileoption is used (the regression was added in2.12.1) - Improved
runScript()to output an error if the child process exits with a non-zero code or ifstderris not flushed after the result promise is resolved. This ensures error messages are not missed in cases where the child process crashes during model builds - Renamed the exposed model's data to
model.datainstead ofdata.json, reflecting that the data can be encoded in formats other than JSON