deno/cli/tools
David Sherret 4f80d83774
feat(unstable): single checksum per JSR package in the lockfile (#22421)
This changes the lockfile to not store JSR specifiers in the "remote"
section. Instead a single JSR integrity is stored per package in the
lockfile, which is a hash of the version's `x.x.x_meta.json` file, which
contains hashes for every file in the package. The hashes in this file
are then compared against when loading.

Additionally, when using `{ "vendor": true }` in a deno.json, the files
can be modified without causing lockfile errors—the checksum is only
checked when copying into the vendor folder and not afterwards
(eventually we should add this behaviour for non-jsr specifiers as
well). As part of this change, the `vendor` folder creation is not
always automatic in the LSP and running an explicit cache command is
necessary. The code required to track checksums in the LSP would have
been too complex for this PR, so that all goes through deno_graph now.
The vendoring is still automatic when running from the CLI.
2024-02-15 14:49:35 -05:00
..
bench refactor: use globbing from deno_config (#21925) 2024-01-15 19:15:39 -05:00
coverage feat(unstable): single checksum per JSR package in the lockfile (#22421) 2024-02-15 14:49:35 -05:00
init chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
jupyter refactor: extract out runtime::colors to deno_terminal::colors (#22324) 2024-02-07 11:25:14 -05:00
registry chore: rename DENO_REGISTRY_URL to JSR_URL (#22414) 2024-02-14 18:30:44 +00:00
repl fix: upgrade to deno_ast 0.33 (#22341) 2024-02-09 01:40:26 +00:00
run feat: denort binary for deno compile (#22205) 2024-02-13 21:52:30 +05:30
test chore: deno_core bump (#22407) 2024-02-13 19:44:37 -07:00
vendor feat(unstable): single checksum per JSR package in the lockfile (#22421) 2024-02-15 14:49:35 -05:00
bundle.rs refactor: extract out runtime::colors to deno_terminal::colors (#22324) 2024-02-07 11:25:14 -05:00
check.rs refactor: extract out runtime::colors to deno_terminal::colors (#22324) 2024-02-07 11:25:14 -05:00
compile.rs refactor: extract out runtime::colors to deno_terminal::colors (#22324) 2024-02-07 11:25:14 -05:00
doc.rs feat(unstable): single checksum per JSR package in the lockfile (#22421) 2024-02-15 14:49:35 -05:00
fmt.rs refactor: load bytes in deno_graph (#22212) 2024-02-01 03:15:22 +00:00
info.rs chore: update to Rust 1.76 (#22376) 2024-02-12 03:00:33 +00:00
installer.rs fix(install): forward granular --unstable-* flags (#22164) 2024-02-01 09:16:37 +05:30
lint.rs fix: upgrade to deno_ast 0.33 (#22341) 2024-02-09 01:40:26 +00:00
mod.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
task.rs fix(task): do not eagerly auto-install packages in package.json when "nodeModulesDir": false (#21858) 2024-01-08 19:30:36 -05:00
upgrade.rs feat: denort binary for deno compile (#22205) 2024-02-13 21:52:30 +05:30