summaryrefslogtreecommitdiff
path: root/cli/disk_cache.rs
AgeCommit message (Collapse)Author
2022-04-01chore(tests): use custom temp dir creation for the tests (#14153)David Sherret
2022-02-24chore: upgrade to Rust 1.59 (#13767)David Sherret
2022-01-07chore: update copyright to 2022 (#13306)Ryan Dahl
Co-authored-by: Erfan Safari <erfanshield@outlook.com>
2021-07-30chore: upgrade Rust to 1.54.0 (#11554)Yusuke Tanaka
2021-06-17chore: upgrade Rust to 1.53.0 (#11021)Yusuke Tanaka
2021-04-07feat: blob URL support (#10045)Luca Casonato
This commit adds blob URL support. Blob URLs are stored in a process global storage, that can be accessed from all workers, and the module loader. Blob URLs can be created using `URL.createObjectURL` and revoked using `URL.revokeObjectURL`. This commit does not add support for `fetch`ing blob URLs. This will be added in a follow up commit.
2021-02-15fix(lsp): handle cached type dependencies properly (#9500)Kitson Kelly
2021-01-11chore: update copyright to 2021 (#9092)Yusuke Tanaka
2021-01-06feat(cli): support data urls (#8866)Kitson Kelly
Closes: #5059 Co-authored-by: Valentin Anger <syrupthinker@gryphno.de>
2021-01-04fix: panic on invalid file:// module specifier (#8964)Maayan Hanin
2020-12-18fix: atomically write files to $DENO_DIR (#8822)Luca Casonato
2020-12-15fix(cli): make dynamic import errors catchable (#8750)Kitson Kelly
Fixes #6259
2020-11-16refactor(cli): rename fs module to fs_util (#8380)Bartek Iwańczuk
This commit renames "fs" module in "cli/" to "fs_util". This is purely cosmetic change; there were a few places which aliased "crate::fs" to "deno_fs" which was very confusing with "fs" module in ops.
2020-10-26fix: Use -rw-r--r-- for cache files (#8132)Ryan Dahl
2020-10-23refactor(cli): migrate run and cache to new infrastructure (#7996)Kitson Kelly
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2020-10-12chore(cli): remove dead code (#7941)Kitson Kelly
2020-09-21chore: add copyright (#7593)tokiedokie
2020-09-16Re-export deno_core::url (#7525)Ryan Dahl
Also re-exports deno_core::futures and deno_core::serde_json but these are not yet used in the CLI.
2020-09-12Revert "feat(unstable): Support data: urls (#5157)" (#7432)Bartek Iwańczuk
This reverts commit e3319f34a6ece36eab3138eae83c8d0e18fcc07c.
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