Leo Kettmeir
382a978859
refactor: factor out CDP message types ( #13501 )
2022-01-27 15:09:47 +01:00
Ryan Dahl
39ea4abff4
feat: auto-discover config file ( #13313 )
2022-01-17 20:10:17 -05:00
David Sherret
ad224f53c7
chore: upgrade to rust 1.58 ( #13377 )
2022-01-15 07:10:12 +01:00
David Sherret
903cb48fe9
refactor(installer): refactor installer code to be more testable ( #13374 )
2022-01-14 13:23:47 -05:00
Tomofumi Chiba
9e37fd1db6
fix(cli): fix deno install --prompt
( #13349 )
2022-01-14 09:59:32 -05:00
David Sherret
eda6e58520
refactor: upgrade to import_map v0.6 ( #13368 )
2022-01-13 18:17:56 -05:00
David Sherret
f12164646b
refactor: move transpiling to deno_ast ( #13332 )
2022-01-13 11:58:00 -05:00
Bartek Iwańczuk
13751d9de6
fix(coverage): merge coverage ranges ( #13334 )
...
Covered ranges were not merged and thus it appeared that some lines
might be uncovered. To fix this I used "v8-coverage" that takes care
of merging the ranges properly. With this change, coverage collected
from a file by multiple entrypoints is now correctly calculated.
I ended up forking https://github.com/demurgos/v8-coverage and adding
"cli/tools/coverage/merge.rs" and "cli/tools/coverage/range_tree.rs".
2022-01-11 21:17:25 +01:00
Rabin Gaire
605b8db8f6
cli(compile): fix output flag behaviour on compile command ( #13299 )
2022-01-10 23:24:39 -05:00
Bartek Iwańczuk
a3b3a792b5
fix(coverage): don't type check ( #13324 )
...
This commit changes "deno coverage" command not to type check.
Instead of relying on infrastructure for module loading in "deno run";
the code now directly reaches into cache for original and transpiled
sources. In case sources are not available the error is returned to the
user, suggesting to first run "deno test --coverage" command.
2022-01-10 17:36:58 +01:00
David Sherret
ea86c0818a
fix: install shim with --allow-all
should not output each permission individually ( #13325 )
2022-01-10 09:22:03 -05:00
Ryan Dahl
1fb5858009
chore: update copyright to 2022 ( #13306 )
...
Co-authored-by: Erfan Safari <erfanshield@outlook.com>
2022-01-07 22:09:52 -05:00
David Sherret
19c8cd3a45
fix: upgrade swc_ecmascript to 0.103 ( #13284 )
2022-01-04 17:02:56 -05:00
Steven Guerrero
39a6c94071
feat(test): Add support for "deno test --compat" ( #13235 )
2021-12-30 17:18:30 +01:00
Aaron O'Mullan
4208199490
cleanup(cli): use op Extensions ( #13223 )
...
Enabling op-middleware for overrides in lieu of imperative .replace_op() etc...
Impacts #13219 , #12938 , #13122
2021-12-29 14:30:08 +01:00
David Sherret
7ebbda7fd7
fix(coverage): use only string byte indexes and 0-indexed line numbers ( #13190 )
2021-12-23 20:02:54 -05:00
Kitson Kelly
8547a37132
chore: update deno_graph and deno_doc ( #13173 )
2021-12-22 14:25:06 +01:00
Bartek Iwańczuk
907cef563e
refactor: cleanup cli/main.rs ( #13160 )
2021-12-21 15:49:27 +01:00
Bartek Iwańczuk
1eb78731eb
refactor: Use dedicated flags structures ( #13148 )
2021-12-20 22:29:02 +01:00
Divy Srivastava
6de53b631f
refactor: use once_cell
instead of lazy_static
( #13135 )
2021-12-18 16:14:42 -05:00
Bartek Iwańczuk
3db18bf9e6
refactor(repl): factor out ReplEditor and ReplSession ( #13131 )
2021-12-18 02:18:17 +01:00
Nayeem Rahman
ca1fbdd636
fix(cli/tools/coverage): Split sources by char index ( #13114 )
2021-12-17 17:17:35 +01:00
Nayeem Rahman
9ffc7edc23
refactor(cli): use GraphData for check and emit ( #12960 )
2021-12-16 21:45:41 +11:00
Jesper van den Ende
5a3ded6611
feat(watch): support watching external files ( #13087 )
2021-12-15 16:04:43 -05:00
David Sherret
6c324acf23
feat: REPL import specifier auto-completions ( #13078 )
2021-12-15 13:23:43 -05:00
Kitson Kelly
e8d7b430ce
chore: updates to support deno_graph API changes ( #13080 )
2021-12-15 07:39:20 +11:00
Bartek Iwańczuk
0dec9b4381
fix: op_set_exit_code ( #13034 )
...
Fixes "op_set_exit_code" by sharing a single "Arc" between
all workers (via "op state") instead of having a "global" value stored in
"deno_runtime" crate. As a consequence setting an exit code is always
scoped to a tree of workers, instead of being overridable if there are
multiple worker tree (like in "deno test --jobs" subcommand).
Refactored "cli/main.rs" functions to return "Result<i32, AnyError>" instead
of "Result<(), AnyError>" so they can return exit code.
2021-12-11 15:56:45 +01:00
David Sherret
f530189c50
fix(watch): mitigate race condition between file write by other process and watch read ( #13038 )
2021-12-09 20:24:37 -05:00
David Sherret
1507b8c984
fix: upgrade swc fixing many bundling and --no-check
bugs ( #13025 )
2021-12-08 19:12:14 -05:00
WenheLI
b51b0c834b
feat(cli): use deno fmt for lock and coverage files ( #13018 )
2021-12-07 19:21:04 -05:00
Bartek Iwańczuk
c59f90d01f
chore: upgrade to Rust 1.57.0 ( #12968 )
2021-12-04 14:19:06 +01:00
Kitson Kelly
18a63dd977
feat: add --no-check=remote
flag ( #12766 )
...
Closes #11970
2021-11-30 09:23:30 +11:00
Zheyu Zhang
bd989143e1
refactor(cli): simplify lint/format resolver logic ( #12898 )
2021-11-29 09:17:57 -05:00
David Sherret
6a780543a4
refactor(repl): move rustyline sync channel communication into struct ( #12900 )
2021-11-25 14:05:12 -05:00
David Sherret
adc5974333
fix(lsp): lsp should respect include/exclude files in format config ( #12876 )
2021-11-24 15:14:19 -05:00
David Sherret
51e3db956a
fix(cli): config file should resolve paths relative to the config file ( #12867 )
...
* Add `specifier_to_file_path` to support converting a ModuleSpecifier with a unix-style path to a PathBuf on Windows.
2021-11-23 10:38:11 -05:00
Ryan Dahl
b2036a4db7
refactor: re-export anyhow from deno_core ( #12777 )
2021-11-16 09:02:28 -05:00
Nayeem Rahman
cd9193f126
fix(cli): short-circuit in prepare_module_load() ( #12604 )
2021-11-16 10:25:52 +11:00
David Sherret
ec9f5d5af2
feat(unstable/test): include test step pass/fail/ignore counts in final report ( #12432 )
2021-11-15 10:20:37 -05:00
Geert-Jan Zwiers
58e7b290dc
fix(test): support typechecking docs with CRLF line endings ( #12748 )
2021-11-15 09:58:04 -05:00
Luca Casonato
22dd1b90c4
fix(cli/upgrade): nice error when unzip is missing ( #12693 )
...
Previously just a generic "error: No such file or directory (os error
2)" was printed. Now "`unzip` was not found on your PATH, please install
`unzip`" will be printed.
2021-11-09 11:06:45 +01:00
Kitson Kelly
f5eb177f50
feat(cli): support React 17 JSX transforms ( #12631 )
...
Closes #8440
2021-11-09 12:26:39 +11:00
David Sherret
45425c1146
fix(lint): use recommended tags when no tags specified in config, but includes or excludes are ( #12700 )
2021-11-08 20:10:33 -05:00
Bert Belder
f1b1a3f389
refactor: move mod tokio_util
to runtime ( #12332 )
...
This avoids a bunch of duplicated code.
2021-11-08 12:49:11 -08:00
Zheyu Zhang
efe956b4fd
fix(lint): use recommended tag if there is no tags in config file or flags ( #12644 )
2021-11-04 11:12:12 -04:00
David Sherret
0ec151b8cb
chore: upgrade deno_ast to 0.5.0 ( #12595 )
2021-11-01 16:22:27 -04:00
Dezső Mészáros
d080f1c965
chore(cli): fix typo in variable name ( #12617 )
2021-11-01 08:34:58 +11:00
Bartek Iwańczuk
e06515c5a9
feat(test): better formatting for test elapsed time ( #12610 )
...
This commit changes formatting of elapsed time in test
runner output.
Instead of "XXXms", reporter outputs one of:
- "XXXms" for <1000ms
- "XXs" for <60s
- "XXXmYYs" for >=60s
2021-10-30 22:49:46 +02:00
Zheyu Zhang
3fb23ab772
fix(cli): linter/formater watches current directory without args ( #12550 )
2021-10-30 19:20:56 +02:00
Zheyu Zhang
85a2943435
fix(cli): lint/format all discoverd files on each change ( #12518 )
2021-10-30 09:59:53 +02:00