Skip to content

Commit

Permalink
Merge branch 'main' into fix/node-http-server-response
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju committed Oct 24, 2024
2 parents 90d6a21 + fd8bf08 commit 451ebdc
Show file tree
Hide file tree
Showing 26 changed files with 1,179 additions and 774 deletions.
35 changes: 1 addition & 34 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ deno_runtime = { workspace = true, features = ["include_js_files_for_snapshottin
deno_semver.workspace = true
deno_task_shell = "=0.18.1"
deno_terminal.workspace = true
eszip = "=0.79.1"
libsui = "0.4.0"
node_resolver.workspace = true

Expand Down
28 changes: 27 additions & 1 deletion cli/args/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2274,7 +2274,7 @@ Ignore formatting a file by adding an ignore comment at the top of the file:
"sass", "less", "html", "svelte", "vue", "astro", "yml", "yaml",
"ipynb",
])
.help_heading(FMT_HEADING),
.help_heading(FMT_HEADING).requires("files"),
)
.arg(
Arg::new("ignore")
Expand Down Expand Up @@ -6802,6 +6802,32 @@ mod tests {
..Flags::default()
}
);

let r = flags_from_vec(svec!["deno", "fmt", "--ext", "html"]);
assert!(r.is_err());
let r = flags_from_vec(svec!["deno", "fmt", "--ext", "html", "./**"]);
assert_eq!(
r.unwrap(),
Flags {
subcommand: DenoSubcommand::Fmt(FmtFlags {
check: false,
files: FileFlags {
include: vec!["./**".to_string()],
ignore: vec![],
},
use_tabs: None,
line_width: None,
indent_width: None,
single_quote: None,
prose_wrap: None,
no_semicolons: None,
unstable_component: false,
watch: Default::default(),
}),
ext: Some("html".to_string()),
..Flags::default()
}
);
}

#[test]
Expand Down
167 changes: 0 additions & 167 deletions cli/bench/http.rs

This file was deleted.

10 changes: 0 additions & 10 deletions cli/bench/http/deno_flash_hono_router.js

This file was deleted.

14 changes: 0 additions & 14 deletions cli/bench/http/deno_flash_send_file.js

This file was deleted.

5 changes: 0 additions & 5 deletions cli/bench/http/deno_http_read_headers.lua

This file was deleted.

11 changes: 0 additions & 11 deletions cli/bench/http/deno_http_serve.js

This file was deleted.

5 changes: 0 additions & 5 deletions cli/bench/http/deno_post_bin.lua

This file was deleted.

3 changes: 0 additions & 3 deletions cli/bench/http/deno_post_json.lua

This file was deleted.

25 changes: 0 additions & 25 deletions cli/bench/http/deno_reactdom_ssr_flash.jsx

This file was deleted.

34 changes: 0 additions & 34 deletions cli/bench/http/deno_tcp.ts

This file was deleted.

Loading

0 comments on commit 451ebdc

Please sign in to comment.