0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 09:31:22 -05:00
deno/cli
Bartek Iwańczuk a1f0796fcc
feat: Add support for import assertions and JSON modules (#12866)
This commit adds proper support for import assertions and JSON modules.

Implementation of "core/modules.rs" was changed to account for multiple possible
module types, instead of always assuming that the code is an "ES module". In
effect "ModuleMap" now has knowledge about each modules' type (stored via
"ModuleType" enum). Module loading pipeline now stores information about
expected module type for each request and validates that expected type matches
discovered module type based on file's "MediaType".

Relevant tests were added to "core/modules.rs" and integration tests,
additionally multiple WPT tests were enabled.

There are still some rough edges in the implementation and not all WPT were
enabled, due to:
a) unclear BOM handling in source code by "FileFetcher"
b) design limitation of Deno's "FileFetcher" that doesn't download the same
module multiple times in a single run

Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-12-15 19:22:36 +01:00
..
ast fix: upgrade swc fixing many bundling and --no-check bugs (#13025) 2021-12-08 19:12:14 -05:00
bench fix(bench): migrate to v8 from rusty_v8 (#12571) 2021-10-28 21:40:27 +11:00
compat chore: merge v1.16.4 into main (#12984) 2021-12-04 01:26:54 +01:00
dts feat(ext/ffi): implement UnsafePointer and UnsafePointerView (#12828) 2021-12-15 15:41:49 +01:00
lsp feat: Add support for import assertions and JSON modules (#12866) 2021-12-15 19:22:36 +01:00
ops fix(watch): mitigate race condition between file write by other process and watch read (#13038) 2021-12-09 20:24:37 -05:00
schemas feat(lsp): improve registry completion suggestions (#13023) 2021-12-14 06:24:11 +11:00
tests feat: Add support for import assertions and JSON modules (#12866) 2021-12-15 19:22:36 +01:00
tools chore: updates to support deno_graph API changes (#13080) 2021-12-15 07:39:20 +11:00
tsc feat(cli): update to TypeScript 4.5 (#12410) 2021-12-10 09:12:21 +11:00
auth_tokens.rs feat(cli): Support Basic authentication in DENO_AUTH_TOKENS (#11910) 2021-09-08 06:18:11 +02:00
build.rs feat(cli): update to TypeScript 4.5 (#12410) 2021-12-10 09:12:21 +11:00
cache.rs refactor: integrate deno_graph into CLI (#12369) 2021-10-11 08:26:22 +11:00
Cargo.toml chore: updates to support deno_graph API changes (#13080) 2021-12-15 07:39:20 +11:00
checksum.rs chore: update copyright to 2021 (#9092) 2021-01-11 18:13:41 +01:00
config_file.rs feat: Add support for import assertions and JSON modules (#12866) 2021-12-15 19:22:36 +01:00
deno.ico fix(cli): add icon and metadata to deno.exe on Windows (#6693) 2020-07-15 21:54:38 +02:00
deno_dir.rs chore: update copyright to 2021 (#9092) 2021-01-11 18:13:41 +01:00
diagnostics.rs feat: add --no-check=remote flag (#12766) 2021-11-30 09:23:30 +11:00
diff.rs refactor: Remove duplicated colors.rs file (#11990) 2021-09-12 12:04:17 -04:00
disk_cache.rs chore: upgrade Rust to 1.54.0 (#11554) 2021-07-30 15:03:41 +02:00
emit.rs feat: Add support for import assertions and JSON modules (#12866) 2021-12-15 19:22:36 +01:00
errors.rs fix(cli): don't panic when mapping unknown errors (#12659) 2021-11-07 15:33:56 +01:00
file_fetcher.rs feat(lsp): registry suggestion cache respects cache headers (#13010) 2021-12-09 22:16:17 +11:00
file_watcher.rs feat(watcher): clear screen on each restart (#12613) 2021-12-11 01:12:25 +01:00
flags.rs feat(repl): add --unsafe-ignore-certificate-errors flag (#13045) 2021-12-10 15:47:55 +01:00
flags_allow_net.rs chore: update copyright to 2021 (#9092) 2021-01-11 18:13:41 +01:00
fmt_errors.rs fix(cli/fmt_errors): don't panic on source line formatting errors (#12449) 2021-10-18 18:05:36 +02:00
fs_util.rs fix(lsp): lsp should respect include/exclude files in format config (#12876) 2021-11-24 15:14:19 -05:00
http_cache.rs feat(lsp): registry suggestion cache respects cache headers (#13010) 2021-12-09 22:16:17 +11:00
http_util.rs feat(lsp): registry suggestion cache respects cache headers (#13010) 2021-12-09 22:16:17 +11:00
lockfile.rs feat(cli): use deno fmt for lock and coverage files (#13018) 2021-12-07 19:21:04 -05:00
logger.rs feat(lsp): add internal debugging logging (#10438) 2021-05-11 14:54:10 +10:00
main.rs fix: op_set_exit_code (#13034) 2021-12-11 15:56:45 +01:00
module_loader.rs fix(cli): short-circuit in prepare_module_load() (#12604) 2021-11-16 10:25:52 +11:00
proc_state.rs feat: Add support for import assertions and JSON modules (#12866) 2021-12-15 19:22:36 +01:00
README.md Remove deno_typescript (#6813) 2020-07-20 19:49:57 -04:00
resolver.rs feat(cli): support React 17 JSX transforms (#12631) 2021-11-09 12:26:39 +11:00
source_maps.rs refactor: Rename ProgramState to ProcState (#12204) 2021-09-24 11:10:42 -04:00
standalone.rs feat: Add support for import assertions and JSON modules (#12866) 2021-12-15 19:22:36 +01:00
text_encoding.rs fix(doc): fix rustdoc bare_urls warning (#11921) 2021-09-05 16:22:45 +02:00
tsc.rs feat: Add support for import assertions and JSON modules (#12866) 2021-12-15 19:22:36 +01:00
unix_util.rs chore: update copyright headers (#10243) 2021-04-20 14:27:36 +09:00
version.rs Remove denort optimization (#10350) 2021-04-26 13:28:38 -04:00
windows_util.rs chore: upgrade Rust to 1.56.0 (#12514) 2021-10-26 07:17:11 +02:00

Deno CLI Crate

crates docs

This provides the actual deno executable and the user-facing APIs.

The deno crate uses the deno_core to provide the executable.