Skip to content

Releases: discoveryjs/discovery-cli

2.14.2

15 Apr 12:36
Compare
Choose a tag to compare
  • Fixed issue with loading parse-duration package, since it has no CJS support. The package was removed from dependencies.

2.14.1

15 Apr 12:34
Compare
Choose a tag to compare
  • Bumped dependencies (fixes npm audit warnings)

2.14.0 Introducing script mode build for models

22 Mar 01:40
Compare
Choose a tag to compare
  • Added basic script mode build for models:
    • Added support for script section in config, which enables model's script build
      modelConfig = {
        script: {
          // script.modules is the same as view.assets
          modules: ['path/to/module.js', ...]
        }
      }
    • Added new options for build: --script-names, --script-format and --script-format
  • Bumped esbuild to ^0.25.1

2.13.1

20 Jan 13:47
Compare
Choose a tag to compare
  • Fixed crash on build when model's data is used from a cache file (a regression introduced in 2.13.0)

2.13.0

18 Jan 04:42
Compare
Choose a tag to compare
  • Added --asset-names option for build command
  • Added --single-file-data option 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-file option is used (the regression was added in 2.12.1)
  • Improved 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 builds
  • Renamed the exposed model's data to model.data instead of data.json, reflecting that the data can be encoded in formats other than JSON

2.12.1

30 Dec 02:09
Compare
Choose a tag to compare
  • Improved server performance for data responses when streaming from the data child process (up to a 2x speed increase)

2.12.0

30 Nov 01:02
Compare
Choose a tag to compare
  • Added --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 build
  • Replaced darkmode option in config for colorScheme
  • Supported future changes darkmode -> colorScheme in discoveryjs

2.11.2

25 Nov 03:05
Compare
Choose a tag to compare

2.11.1

04 Nov 13:54
Compare
Choose a tag to compare
  • Fixed bundling
  • Fixed broken header on the index page

2.11.0

04 Nov 12:37
Compare
Choose a tag to compare
  • Added support for optional 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
  • Added --no-dev option for build and server to prevent using Discovery.js "src" assets when available (disables discovery-dev condition in build)
  • View setup:
    • Added inspector, Index and Discovery buttons to index page by default
    • Updated view.inspector and view.router config options to have effect for index page, enabled by default
    • Changed the extension application order so that model's view.extensions are applied after implicit extensions
  • Fixed ERR_UNSUPPORTED_ESM_URL_SCHEME exception when importing the data module on Windows
  • Fixed URL generation for model's page and assets on Windows
  • Fixed server crash occurring when a data request is aborted