Skip to content

Releases: discoveryjs/discovery-cli

1.14.2

23 Oct 10:01
Compare
Choose a tag to compare
  • Fixed missed darkmodePersistent option for index page

1.14.1

22 Oct 10:25
Compare
Choose a tag to compare
  • Fixed resource inlining on CSS build to avoid corruption of external and hash references
  • Fixed modelfree mode client side setup

1.14.0 Rework caching

20 Oct 17:15
Compare
Choose a tag to compare
  • Reworked cache subsystem
    • Added cache command
    • Added /cachez server route with details about cache
    • Added ETag header in server when cache is using (response with 304 when data is not changed)
    • Replaced --cache option with --no-cache and --cachedir
    • Changed --cachedir (former --cache option) default to .discoveryjs-cache
    • Improved background data cache updating
    • Fixed issues with corrupted data responding due to read from a cache that's not fully written or uncomplete because of
    • Introduced cache dispatcher that encapsulates cache related logic
    • Removed cache logic and options from data command
  • Added default favicon.ico to server
  • Added support for darkmode option in config (for index and model)
  • Fixed building to avoid "Download" and "Reload without cache" buttons in built result
  • Fixed streaming data to client (not through cache) when data contains async values

1.13.0

02 Oct 15:21
Compare
Choose a tag to compare
  • Used @discoveryjs/json-ext for JSON stream stringifying instead of custom solution
  • Fixed suppression of errors when warming up a model data, which cause to treat the model as successful, despite that it is broken
  • Added --bail option for server to exit on first warmup task failure
  • Fixed model's warming up task to wait until data is written to disk before next warmup task
  • Changed server's warming up to schedule data cache background update after all other warmup tasks is finished
  • Send Content-Length header for data.json when available
  • Added support for model downloading (enabled by default, to disable use download: false in main config or model's config)
  • Improved model building when a big JSON data is injecting to build

1.12.0

01 Jul 14:14
Compare
Choose a tag to compare
  • Added warmup task list with details on readyz
  • Fixed issue when common router extension doesn't apply in single model mode (i.e. when --model option is used)

1.11.0

16 Jun 13:07
Compare
Choose a tag to compare
  • Added support for humanize durations for cacheTtl and cacheBgUpdate in config, e.g. 5mins or 1h 30m (see parse-duration for format support)
  • Disabled async/await transformations on build

1.10.3

15 Jun 22:51
Compare
Choose a tag to compare
  • Fixed exceptions when no config found
  • Improved error location in prepare module

1.10.2

18 May 23:04
Compare
Choose a tag to compare
  • Fixed server routing in single mode with --prebuild option enabled
  • Fixed edge cases with custom properties and empty values when bundling CSS

1.10.1

18 May 16:59
Compare
Choose a tag to compare
  • Fixed regression The requested module './gen/model-libs.js' does not provide an export named 'plugins'

1.10.0

18 May 16:01
Compare
Choose a tag to compare
  • Added extendRouter setting which provide router customization on application level
  • Added meta field support in model's config to pass extra setup values
  • Added view field support in multi mode config (i.e. for index page)