Releases: discoveryjs/discovery-cli
Releases · discoveryjs/discovery-cli
1.14.2
1.14.1
1.14.0 Rework caching
- 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
- 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
- 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 fordata.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
1.11.0
- Added support for humanize durations for cacheTtl and cacheBgUpdate in config, e.g.
5mins
or1h 30m
(see parse-duration for format support) - Disabled async/await transformations on build