deno/cli/cache
David Sherret 7b5bc87f29
fix(unstable): vendor cache should support adding files to hashed directories (#20070)
This changes the design of the manifest.json file to have a separate
"folders" map for mapping hashed directories. This allows, for example,
to add files in a folder like `http_localhost_8000/#testing_5de71/` and
have them be resolved automatically as long as their remaining
components are identity-mappable to the file system (not hashed). It
also saves space in the manifest.json file by only including the hashed
directory instead of each descendant file.

```
// manifest.json
{
  "folders": {
    "https://localhost/NOT_MAPPABLE/": "localhost/#not_mappable_5cefgh"
  },
  "modules": {
    "https://localhost/folder/file": {
      "headers": {
        "content-type": "application/javascript"
      }
    },
  }
}

// folder structure
localhost
  - folder
    - #file_2defn (note: I've made up the hashes in these examples)
  - #not_mappable_5cefgh
    - mod.ts
    - etc.ts
    - more_files.ts
```
2023-08-06 12:25:48 -04:00
..
http_cache fix(unstable): vendor cache should support adding files to hashed directories (#20070) 2023-08-06 12:25:48 -04:00
cache_db.rs fix: do not show cache initialization errors if stderr is piped (#18920) 2023-05-30 13:35:02 -04:00
caches.rs fix(compile): handle when DENO_DIR is readonly (#19257) 2023-05-25 14:27:45 -04:00
check.rs feat(core): initialize SQLite off-main-thread (#18401) 2023-03-27 22:01:52 +00:00
common.rs refactor(lsp): move config file related code to config.rs (#19790) 2023-07-10 21:45:09 +00:00
deno_dir.rs feat(unstable): optional deno_modules directory (#19977) 2023-08-02 00:49:09 +00:00
disk_cache.rs feat(unstable): optional deno_modules directory (#19977) 2023-08-02 00:49:09 +00:00
emit.rs chore(tests): test_util - Add PathRef (#19450) 2023-06-10 11:09:45 -04:00
incremental.rs refactor(lsp): move config file related code to config.rs (#19790) 2023-07-10 21:45:09 +00:00
mod.rs feat(unstable/lsp): support navigating to deno_modules folder (#20030) 2023-08-02 16:57:25 -04:00
node.rs feat(ext/node): properly segregate node globals (#19307) 2023-07-19 10:30:04 +02:00
parsed_source.rs refactor(lsp): move config file related code to config.rs (#19790) 2023-07-10 21:45:09 +00:00