1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00
Commit graph

3093 commits

Author SHA1 Message Date
Leo Kettmeir
df5fe5a35f
1.17.3 2022-01-12 17:38:56 +01:00
Leo Kettmeir
b838d44799
chore: bump crate version for 1.17.3 (#13351) 2022-01-12 17:05:05 +01:00
Bartek Iwańczuk
219afc4877
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-12 16:25:38 +01:00
Rabin Gaire
d19e87e435
cli(compile): fix output flag behaviour on compile command (#13299) 2022-01-12 16:25:08 +01:00
Bartek Iwańczuk
d2456ec777
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-12 16:24:26 +01:00
David Sherret
357ff7bb13
docs: update writeSync docs to refer to writeAllSync in deno.land/std instead of Deno.writeAllSync (#13314) 2022-01-12 16:24:24 +01:00
David Sherret
a561c59954
fix: install shim with --allow-all should not output each permission individually (#13325) 2022-01-12 16:24:21 +01:00
Rodney van den Velden
4b2470135d
fix: expose "Deno.memoryUsage()" in worker context (#13293) 2022-01-12 16:24:17 +01:00
Bartek Iwańczuk
bcea8cae21
test: add inspector test with ts files (#13312) 2022-01-12 16:24:14 +01:00
Ryan Dahl
4775d57867
chore: update copyright to 2022 (#13306)
Co-authored-by: Erfan Safari <erfanshield@outlook.com>
2022-01-12 16:24:10 +01:00
Bartek Iwańczuk
ad4a077894
v1.17.2 2022-01-05 18:22:50 +01:00
Bartek Iwańczuk
d0a9bebf39
chore: release crates for v1.17.2 (#13290) 2022-01-05 17:48:25 +01:00
Sean Michael Wykes
91cbd1ab52
fix(ext/crypto) - exportKey JWK for AES/HMAC must use base64url (#13264)
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2022-01-05 16:48:17 +01:00
Leo Kettmeir
afd60fb65c
fix: support mts, cjs & cts files for deno test & deno fmt (#13274) 2022-01-05 16:48:11 +01:00
David Sherret
0721ee504d
fix: upgrade swc_ecmascript to 0.103 (#13284) 2022-01-05 16:47:58 +01:00
Leo Kettmeir
d69091a4e7
fix(signals): prevent panic when listening to forbidden signals (#13273) 2022-01-05 16:47:53 +01:00
Kitson Kelly
fbdd6c81e7
fix(lsp): handle repeating patterns in registry correctly (#13275) 2022-01-05 16:47:36 +01:00
Sean Michael Wykes
de99d60959
fix(ext/crypto): use forgiving base64 encoding for JWK (#13240)
Implements "forgiving" in JWK decode passing suitable config to base64::decode_config
2022-01-05 16:47:29 +01:00
Bartek Iwańczuk
82e4f9d885
chore: update std submodule to efa94f2 (#13260) 2022-01-05 16:47:23 +01:00
Kitson Kelly
b6ee2ce933
fix(lsp): better handling of folders in registry completions (#13250) 2022-01-05 16:47:08 +01:00
Kitson Kelly
74ed6875e8
fix(lsp): properly generate data URLs for completion items (#13246) 2022-01-05 16:47:02 +01:00
Bartek Iwańczuk
3360b8ee37
fix(core): inspector works if no "Runtime.runIfWaitingForDebugger" message is sent (#13191)
This commit changes flow in inspector code to no longer require 
"Runtime.runIfWaitingForDebugger" message to complete a handshake.

Even though clients like Chrome DevTools always send this message on startup,
it is against the protocol to require this message to start an inspector
session.

Instead "Runtime.runIfWaitingForDebugger" is required only when running with
"--inspect-brk" flag, which matches behavior of Node.js.
2022-01-05 16:46:53 +01:00
Aaron O'Mullan
0537d8255d
cleanup(cli/lsp): use op Extensions (#13225) 2022-01-05 16:46:35 +01:00
Aaron O'Mullan
4a1ab26360
cleanup(cli): use op Extensions (#13223)
Enabling op-middleware for overrides in lieu of imperative .replace_op() etc...

Impacts #13219,  #12938, #13122
2022-01-05 16:46:20 +01:00
Kitson Kelly
27fa51d0d4
fix(lsp): add code lens for tests just using named functions (#13218)
Fixes: #13216
2022-01-05 16:46:15 +01:00
David Sherret
d7bab0dd2a
fix(coverage): use only string byte indexes and 0-indexed line numbers (#13190) 2022-01-05 16:45:58 +01:00
Kitson Kelly
cd40d81bcb
fix(cli): include JSON modules in bundle (#13188)
Fixes #13150
2022-01-05 16:45:53 +01:00
Zach
662432a31d
fix(ext/console): map basic css color keywords to ansi (#13175) 2022-01-05 16:45:40 +01:00
Bartek Iwańczuk
ded77918fb
v1.17.1 2021-12-22 18:48:06 +01:00
Bartek Iwańczuk
615717bc59
chore: release crates for v1.17.1 (#13179) 2021-12-22 17:38:50 +01:00
Kitson Kelly
8547a37132
chore: update deno_graph and deno_doc (#13173) 2021-12-22 14:25:06 +01:00
David Sherret
ac06797fa8
chore(tests): remove pty_complete_imports test for deleting the cwd (#13164) 2021-12-21 12:21:07 -05:00
Bartek Iwańczuk
aca41a472a
refactor: Cleanup core/modules.rs (#13149) 2021-12-21 15:53:46 +01:00
Bartek Iwańczuk
907cef563e
refactor: cleanup cli/main.rs (#13160) 2021-12-21 15:49:27 +01:00
Kitson Kelly
b5fdfb9d25
feat(lsp): supply accept header when fetching registry config (#13159)
Closes #13153
2021-12-21 13:40:22 +11:00
Bartek Iwańczuk
1eb78731eb
refactor: Use dedicated flags structures (#13148) 2021-12-20 22:29:02 +01:00
Luca Casonato
17d81ad2ef
chore: add custom panic message (#13145) 2021-12-20 14:49:05 +01:00
Jesper van den Ende
0888ba7a8d
feat(lsp): add code lens for debugging tests (#13138)
Closes: #13130
2021-12-20 16:00:38 +11: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
Bartek Iwańczuk
f3cd9a94b5
fix: inspector prompts (#13123)
This commit fixes prompts printed to the terminal when
running with "--inspect" or "--inspect-brk" flags.

When debugger disconnects error is no longer printed as
users don't care about the reason debugger did disconnect.

A message suggesting to go to "chrome://inspect" is printed
if debugger is active.

Additionally and information that process is waiting for
debugger to connect is printed if running with "--inspect-brk"
flag.
2021-12-17 18:43:25 +01:00
Nayeem Rahman
ca1fbdd636
fix(cli/tools/coverage): Split sources by char index (#13114) 2021-12-17 17:17:35 +01:00
David Sherret
5d8baf054e
fix(repl): support assertions on import & export declarations (#13121) 2021-12-17 11:00:27 -05:00
Bartek Iwańczuk
e133d37e37
chore: add codeblocks for lib.deno.shared_globals.d.ts (#13117) 2021-12-17 02:36:03 +01:00
Bartek Iwańczuk
5f11f87495
v1.17.0 2021-12-16 19:24:16 +01:00
Bartek Iwańczuk
e0cba6b19b
chore: release crates for v1.17.0 (#13112) 2021-12-16 18:51:23 +01:00
Sean Michael Wykes
60faf7a0ed
feat(ext/crypto): support importing ECSDA and ECDH (#13088)
Co-authored-by: Luca Casonato <hello@lcas.dev>
2021-12-16 17:28:43 +01:00
Andreu Botella
8efe829fca
feat(fetch): support abort reasons in fetch (#13106) 2021-12-16 12:58:24 +01:00
Andreu Botella
01a6b66034
feat: support abort reasons in Deno APIs and WebSocketStream (#13066) 2021-12-16 12:57:26 +01:00
Nayeem Rahman
9ffc7edc23
refactor(cli): use GraphData for check and emit (#12960) 2021-12-16 21:45:41 +11:00