summaryrefslogtreecommitdiff
path: root/cli/disk_cache.rs
AgeCommit message (Collapse)Author
2020-09-11feat(unstable): Support data: urls (#5157)Valentin Anger
2020-08-03feat: hash file names in gen cache (#6911)Luca Casonato
2020-06-26fix(cli/disk_cache): Support UNC paths in the typescript DiskCache (#6495)Andrey Filatkin
2020-06-11fix: WebAssembly runtime error propagation (#6137)Casper Beyer
Currently WebAssembly runtime errors don't propagate up to the user as they use urls to denote where the error occurred which get caught by the source-map pipeline which doesn't support the wasm scheme.
2020-05-24fix: create HTTP cache lazily (#5795)Bartek Iwańczuk
2020-05-15fix: panic if $DENO_DIR is a relative path (#5375)Bartek Iwańczuk
This commit fixes panic occurring if $DENO_DIR is set to a relative path, eg. "DENO_DIR=denodir deno run main.ts". Before creating DenoDir instance given path is checked and if necessary resolved against current working directory. Additional sanity checks were put in place to ensure all caches receive absolute path for the location.
2020-05-07fix(deno_dir): better error message (#5120)Yoshiya Hinosawa
Add better error messages when a cache subdirectory in `DENO_DIR` cannot be created.
2020-04-06fix: test_create_cache_if_dir_not_exit (#4636)Yusuke Sakurai
This test doesn't remove created directory after test. It will fail on next run.
2020-04-03on init create disk_cache directory if it doesn't already exists (#4617)Lorran Rosa
2020-01-24Do not panic and improve error message on cache failure (#3784)Kevin (Kun) "Kassimo" Qian
2020-01-04Use async at places, use &self instead of self: &Self (#3594)Gurwinder Singh
2019-08-12fix: cache paths on Windows are broken (#2760)Bartek Iwańczuk
2019-07-31refactor: cleanup compiler pipeline (#2686)Bartek Iwańczuk
* remove fetch_source_file_and_maybe_compile_async and replace it with State.fetch_compiled_module * remove SourceFile.js_source() * introduce CompiledModule which is basically the same as deno::SourceInfo and represents arbitrary file that has been compiled to JS module * introduce //cli/compilers module containing all compilers * introduce JsCompiler which is a no-op compiler - output is the same as input, no compilation takes place - it is used for MediaType::JavaScript and MediaType::Unknown * introduce JsonCompiler that wraps JSON in default export * support JS-to-JS compilation using checkJs
2019-07-17Refactor DenoDir (#2636)Bartek Iwańczuk
* rename `ModuleMetaData` to `SourceFile` and remove TS specific functionality * add `TsCompiler` struct encapsulating processing of TypeScript files * move `SourceMapGetter` trait implementation to `//cli/compiler.rs` * add low-level `DiskCache` API for general purpose caches and use it in `DenoDir` and `TsCompiler` for filesystem access * don't use hash-like filenames for compiled modules, instead use metadata file for storing compilation hash * add `SourceFileCache` for in-process caching of loaded files for fast subsequent access * define `SourceFileFetcher` trait encapsulating loading of local and remote files and implement it for `DenoDir` * define `use_cache` and `no_fetch` flags on `DenoDir` instead of using in fetch methods