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

6832 commits

Author SHA1 Message Date
Leo Kettmeir
d69091a4e7
fix(signals): prevent panic when listening to forbidden signals (#13273) 2022-01-05 16:47:53 +01:00
Bartek Iwańczuk
8a10f4bfcb
refactor(core): InspectorSession implements Stream (#13270)
This commit rewrites "InspectorSession" to no longer implement "Future"
trait but instead implement "Stream" trait. "Stream" trait is implemented
by yielding a raw pointer to the "v8::inspector::V8InspectorSession" and
received message. In effect received messages are no longer dispatched
from within the future, but are explicitly dispatched by the caller.

This change should allow us to dispatch a message to the session when
another message is being dispatched, ie.
"V8InspectorSesssion::dispatch_protocol_message" is already on the
call stack.
2022-01-05 16:47:44 +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
Luca Casonato
7f0a4ea68a
build: hardcode WPT_FYI_USER (#13262)
GHA keeps redacting all occurrences of the word "deno" out of logs
because this is our wpt.fyi username. This is rather annoying, so I am
just hardcoding the username in the CI script.
2022-01-05 16:47:17 +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
Bartek Iwańczuk
ada8f58c7a
chore(core): remove stale TODOs (#13232) 2022-01-05 16:46:47 +01:00
Andreu Botella
4e1fd69760
fix(doc): Make private types which show up in the rustdocs public (#13230)
`CrossIsolateStore`, `ExtensionBuilder` and `InMemoryChannelResource`
are private types which are referred to by other public APIs, and so
don't show up as links in the rustdoc. This is especially confusing for
`ExtensionBuilder`, since there is nothing in the docs that explains how
to build an extension.

Exposing these three types doesn't add any new capabilities:
`ExtensionBuilder` can be created from `Extension::builder()`,
`SharedArrayBufferStore` and `CompiledWasmModuleStore` already enable
doing anything that `CrossIsolateStore` can do by itself, and
`InMemoryChannelResource` isn't constructable.
2022-01-05 16:46:41 +01:00
Aaron O'Mullan
0537d8255d
cleanup(cli/lsp): use op Extensions (#13225) 2022-01-05 16:46:35 +01:00
Aaron O'Mullan
e8c60f757e
cleanup(core): use Extensions to register ops (#13224)
In examples and tests
2022-01-05 16:46:30 +01:00
Aaron O'Mullan
4186f1a9db
chore(bench_util): update README example (#13226) 2022-01-05 16:46:25 +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
Bartek Iwańczuk
b064794695
refactor(core): cleanup Inspector implementation (#12962) 2022-01-05 16:46:10 +01:00
Sean Michael Wykes
8b9cf4b857
fix(ext/crypto) include AES-CTR for deriveKey (#13174) 2022-01-05 16:46:04 +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
Ryan Dahl
8e1adc4c12
docs: update release instructions for M1 build (#13182) 2022-01-05 16:45:47 +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
Hirotaka Tagawa / wafuwafu13
9825c876b4
test(test_util/lsp): add tests for invalid content-length (#12971) 2021-12-21 09:14:49 -05: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
Divy Srivastava
04fe513003
refactor(ext/crypto): cleanup decrypt code (#13120) 2021-12-20 16:07:36 +01:00
Luca Casonato
17d81ad2ef
chore: add custom panic message (#13145) 2021-12-20 14:49:05 +01:00
Leo Kettmeir
ef95d7b1e9
fix(ext/websocket): WebSocketStream don't error with "sending after closing" when closing (#13134) 2021-12-20 11:36:46 +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
e20682bd42
fix(wpt_ecoch): Don't schedule on forks (#13144) 2021-12-19 22:00:42 -05: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
Luke Channings
e5a8588370
fix(ext/ffi): use c_char instead of i8 for reading strings (#13118) 2021-12-17 10:42:45 +01:00
Bartek Iwańczuk
e133d37e37
chore: add codeblocks for lib.deno.shared_globals.d.ts (#13117) 2021-12-17 02:36:03 +01:00
Kitson Kelly
e803a9f2f0
docs: update release info for doc.deno.land (#13116) 2021-12-17 12:13:45 +11: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