Skip to content

Releases: discoveryjs/discovery-cli

2.14.7

24 Nov 19:14

Choose a tag to compare

  • Fixed data embedding into HTML during build
  • Fixed a rare crash when loading HTML-embedded data with compression enabled
  • Fixed exception handling during data embedding into HTML on build — previously, build failures were silent

2.14.6

31 Aug 20:29

Choose a tag to compare

  • Fixed JSONXL encoding of data in cache command

2.14.5

27 Aug 13:28

Choose a tag to compare

  • Fixed multi-model build on Windows

2.14.4

27 Aug 13:27

Choose a tag to compare

  • Updated JSONXL (--experimental-jsonxl option):
    • 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

02 Aug 17:52

Choose a tag to compare

  • Fixed height for main container (.discovery) on mobile devices by using dvh unit instead of vh

2.14.2

15 Apr 12:36

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

Choose a tag to compare

  • Bumped dependencies (fixes npm audit warnings)

2.14.0 Introducing script mode build for models

22 Mar 01:40

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

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

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