1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00
Commit graph

3302 commits

Author SHA1 Message Date
David Sherret
0d85847a36 chore: upgrade dprint-core to 0.54.1 (#14146) 2022-03-30 16:48:40 -04:00
Andreu Botella
542d9e7620 chore(wasm): Don't await on the argument to handleWasmStreaming (#14000)
`handleWasmStreaming` is the function that provides the binding with
the `fetch` API needed for `WebAssembly.instantiateStreaming()` and
`WebAssembly.compileStreaming()`. When I implemented it in #11200, I
thought V8 was calling these functions with the argument of the
`WebAssembly` streaming functions, without doing any resolving, and so
`handleWasmStreaming` awaits for the parameter to resolve. However,
as discovered in
https://github.com/denoland/deno/issues/13917#issuecomment-1065805565,
V8 does in fact resolve the parameter if it's a promise (and handles
rejections arising from that).

This change removes the `async` IIFE inside `handleWasmStreaming`,
letting initial errors be handled synchronously (which will however
not throw synchronously from the `WebAssembly` namespace functions).
Awaiting is still necessary for reading the bytes of the response,
though, and so there is an `async` IIFE for that.
2022-03-30 16:48:40 -04:00
Bartek Iwańczuk
cac8b2b5ad refactor(flags): rename CheckFlag to TypecheckMode (#14111) 2022-03-30 16:48:40 -04:00
David Sherret
fad9ff5ea4 chore: fix compile_windows_ext test (#14142) 2022-03-30 16:48:09 -04:00
David Sherret
6e1961ea18 fix(task): handle PATHEXT with trailing semi-colon (#14140) 2022-03-30 16:48:09 -04:00
Kitson Kelly
11011506e1 fix(lsp): watch .jsonc files (#14135) 2022-03-30 16:48:09 -04:00
Robert
51ac189cd5 chore: update clap and completions (#14136) 2022-03-30 16:48:09 -04:00
Luca Casonato
347da0d117
v1.20.3 2022-03-25 16:22:00 +01:00
David Sherret
a5c0deb73b
fix: Deno.run - do not modify user provided cmd array (#14109) 2022-03-25 13:31:30 +01:00
Aleksandr Bukhalo
89f1842977
docs(cli): fix typo in PermissionOptionsObject (#14114) 2022-03-25 13:31:26 +01:00
Luca Casonato
fcfce1bb86
fix(ext/ffi): enforce unstable check on ops (#14115) 2022-03-25 13:31:20 +01:00
David Sherret
84afe6ae71
docs: WorkerOptions - fix permissions description (#14011) 2022-03-25 13:31:06 +01:00
Kitson Kelly
1be60627d8 1.20.2 2022-03-24 13:39:10 +11:00
Kitson Kelly
833767dd5d tests(cli): ignore previously unignored test (#14104)
Ref: #14103
2022-03-24 13:39:10 +11:00
Bartek Iwańczuk
8d4469eab8 fix(bench): require --unstable flag in JavaScript (#14091) 2022-03-24 13:39:10 +11:00
David Sherret
caf3e1b243 chore: remove all pub(crate)s from the cli crate (#14083) 2022-03-24 13:39:10 +11:00
Bartek Iwańczuk
c7aecc1299 fix(test): don't error on missing op details (#14074) 2022-03-24 13:39:10 +11:00
Bartek Iwańczuk
3f805e61e2 refactor: remove loops in cli/tests/unit/http_test.ts (#14075) 2022-03-24 13:39:10 +11:00
Yoav Lavi
acec460ab5 fix(compat): Changes an instance of collect::<Vec<_>>().join("") to collect::<String>() (#14082) 2022-03-24 13:39:10 +11:00
David Sherret
fb6e135b3e chore: replace .expect("...") calls with .unwrap() in test code (#14081) 2022-03-24 13:39:10 +11:00
David Sherret
c47974677e fix(tests): do not use global env vars in install tests (#14078) 2022-03-24 13:39:10 +11:00
Nayeem Rahman
a90ae421dd fix(ext/fetch): Connect async error stack with user code (#13899) 2022-03-24 13:39:10 +11:00
David Sherret
7e38bda50a fix(unstable): upgrade deno_task_shell to 0.2 (#14073) 2022-03-24 13:39:10 +11:00
David Sherret
6366d623e2 feat: upgrade to swc_ecmascript 0.137.0 (#14067) 2022-03-24 13:39:10 +11:00
Andreu Botella
d523cc2abc fix(fetch): Fix uncaught rejection panic with WebAssembly.instantiateStreaming (#13925)
When an exception is thrown during the processing of streaming WebAssembly,
`op_wasm_streaming_abort` is called. This op calls into V8, which synchronously
rejects the promise and calls into the promise rejection handler, if applicable.
But calling an op borrows the isolate's `JsRuntimeState` for the duration of the
op, which means it is borrowed when V8 calls into `promise_reject_callback`,
which tries to borrow it again, panicking.

This change changes `op_wasm_streaming_abort` from an op to a binding
(`Deno.core.abortWasmStreaming`). Although that binding must borrow the
`JsRuntimeState` in order to access the `WasmStreamingResource` stored in the
`OpTable`, it also takes ownership of that `WasmStreamingResource` instance,
which means it can drop any borrows of the `JsRuntimeState` before calling into
V8.
2022-03-24 13:39:10 +11:00
David Sherret
cd88cd6231 chore: fix development issues on Windows (#14030) 2022-03-24 13:39:10 +11:00
Kitson Kelly
fc8aa5ad8b feat(lsp): support deno.enablePaths setting (#13978)
Ref: denoland/vscode_deno#633
2022-03-24 13:39:10 +11:00
Luca Casonato
e43707792d fix: actually don't inherit runtime permissions (#14024) 2022-03-24 13:39:10 +11:00
Jason
74307a6950 fix(ext/console): fix error with a Proxy of a Map (#14032) 2022-03-24 13:39:10 +11:00
TrickyPi
3f7d2fc1e9 fix(cli): improve deno compile error messages (#13944)
Co-authored-by: David Sherret <dsherret@gmail.com>
2022-03-24 13:39:10 +11:00
Sylvain Cau
b01a817f36 fix(cli): add support for DENO_CERT in upgrade command (#13862) 2022-03-24 13:39:10 +11:00
Divy Srivastava
3a106f08d8 chore(ops): include argument position in serde_v8 errors (#14027) 2022-03-24 13:39:10 +11:00
David Sherret
7d853ff33b fix(config-file): fix config-file.v1.json schema to allow colons in the task name (#14013) 2022-03-24 13:39:10 +11:00
Ryan Dahl
fce60f2cc2
v1.20.1 2022-03-16 21:40:31 -04:00
Ryan Dahl
18f998fbee
chore: fix build (#13997) 2022-03-16 21:37:02 -04:00
Ryan Dahl
f7ab41583e
fix: cargo publish fails without absolute paths (#13993)
This reverts commit 4e3ed37037.

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-03-17 01:25:44 +01:00
Ryan Dahl
418c1eb4b3
v1.20.0 2022-03-16 16:07:35 -04:00
Bert Belder
c5270abad7
feat(unstable): Add Deno.upgradeHttp API (#13618)
This commit adds "Deno.upgradeHttp" API, which
allows to "hijack" connection and switch protocols, to eg.
implement WebSocket required for Node compat.

Co-authored-by: crowlkats <crowlkats@toaxl.com>
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-03-16 14:54:18 +01:00
Divy Srivastava
89a41d0a67
chore(cli): Disallow cross compiling for snapshots (#13976) 2022-03-16 19:17:15 +05:30
Divy Srivastava
7044bf523b
perf(web): optimize Blob.text and Blob.arrayBuffer (#13981) 2022-03-16 19:16:52 +05:30
Ryan Dahl
45b3aa22c0
feat(ext/fetch): Allow Response status 101 (#13969)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-03-16 14:30:43 +01:00
Divy Srivastava
697b60a335
perf(web): use DOMString for BlobParts (#13979) 2022-03-16 12:58:38 +05:30
David Sherret
748aff1e94
feat(task): add unstable warning to deno task (#13966) 2022-03-15 21:24:07 -04:00
Luca Casonato
a7bef54d3f
BREAKING: don't inherit permissions by default (#13668)
Previously specifying permissions: {} was the same as specifying
permissions: "inherit". Now it will be the same as permissions: "none".
Not specifying any permissions (permissions: undefined) still means
permissions: "inherit".
2022-03-16 01:43:14 +01:00
Aaron O'Mullan
bd481bf095
feat(ops): optional OpState (#13954) 2022-03-16 00:33:46 +01:00
David Sherret
5d60ee7f12
chore(test_util): use pretty_assertions::assert_eq when not pattern matching (#13965) 2022-03-15 18:15:56 -04:00
Ryan Dahl
163e1d6192
disable flakes (#13962) 2022-03-15 11:19:59 -04:00
Aaron O'Mullan
88d0f01948
feat(ops): custom arity (#13949)
Also cleanup & drop ignored wildcard op-args
2022-03-14 23:38:53 +01:00
Andreu Botella
9f494dc405
feat(ext/web): Add AbortSignal.timeout() (#13687) 2022-03-14 20:19:22 +01:00
Leo Kettmeir
5eb0e4c2df
fix: shell completion hints (#13876) 2022-03-14 19:41:35 +01:00