@discoveryjs/cli
Advanced tools
Changelog
2.13.1 (20-01-2025)
Changelog
2.13.0 (18-01-2025)
--asset-names
option for build command--single-file-data
option for build command--single-file
option is used (the regression was added in 2.12.1
)runScript()
to output an error if the child process exits with a non-zero code or if stderr
is not flushed after the result promise is resolved. This ensures error messages are not missed in cases where the child process crashes during model buildsmodel.data
instead of data.json
, reflecting that the data can be encoded in formats other than JSONChangelog
2.12.1 (29-12-2024)
data
child process (up to a 2x speed increase)Changelog
2.12.0 (30-11-2024)
--exclude-model-on-data-fail
option for build to exclude models from the result if their data generation fails, ignoring the failure instead of halting the builddarkmode
option in config for colorScheme
darkmode
-> colorScheme
in discoveryjsChangelog
2.11.0 (04-11-2024)
version
, description
and icon
fields in the config, allowing to set version, description and icon for the model or index page to display in the app header. These fields are passed as options in Discovery.js
class constructors--no-dev
option for build and server to prevent using Discovery.js "src" assets when available (disables discovery-dev
condition in build)Index
and Discovery
buttons to index page by defaultview.inspector
and view.router
config options to have effect for index page, enabled by defaultview.extensions
are applied after implicit extensionsERR_UNSUPPORTED_ESM_URL_SCHEME
exception when importing the data
module on WindowsChangelog
2.10.0 (15-10-2024)
@discoveryjs/discovery
version 1.0.0-beta.86
and abovestdout
and stderr
output in the data loading status block when no data gathering plan is providedError:
prefix>=16.0.0
Changelog
2.9.1 (06-09-2024)
view.assets
modules (with the restriction that imports should be placed at the beginning of the module, despite JavaScript allowing imports at any location within the module's code).cjs
, .cjsx
, .mjs
, .mjsx
, .cts
, .ctsx
, .mts
and .mtsx
extensions for JavaScript/TypeScript modules in view.assets
@discoveryjs/discovery
version 1.0.0-beta.84
and above@discoveryjs/discovery