From 7b5bc87f296d39e531051e1c0bb6cafa3808ab92 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Sun, 6 Aug 2023 12:25:48 -0400 Subject: 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 ``` --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 1d9c54924..4a0daec2c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -48,7 +48,7 @@ napi_sym = { version = "0.44.0", path = "./cli/napi/sym" } deno_bench_util = { version = "0.108.0", path = "./bench_util" } test_util = { path = "./test_util" } deno_lockfile = "0.14.1" -deno_media_type = { version = "0.1.0", features = ["module_specifier"] } +deno_media_type = { version = "0.1.1", features = ["module_specifier"] } deno_npm = "0.10.1" deno_semver = "0.3.0" -- cgit v1.2.3