1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-12 10:37:52 -05:00
Commit graph

3321 commits

Author SHA1 Message Date
David Sherret
7a71b7428f fix: upgrade to swc_ecmascript 0.143 (#14238) 2022-04-14 13:17:23 -04:00
Aaron O'Mullan
2363916b37 refactor(core): OpCtx (#14228) 2022-04-14 13:17:23 -04:00
github-actions[bot]
d2c0940838 1.20.5 (#14230)
Co-authored-by: David Sherret <dsherret@gmail.com>
2022-04-07 12:38:26 -04:00
Yoshiya Hinosawa
9df06c346f feat(unstable): add ref/unref to Listener (#13961)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-04-07 10:32:22 -04:00
EduM22
4b853611ba fix(ext/crypto): check extractable in exportKey (#14222) 2022-04-07 09:42:33 -04:00
Valentin Anger
43a18205da fix(cli/install): preserve compat flag (#14223) 2022-04-07 09:42:33 -04:00
Jason
506c7b5a25 refactor(lsp): migrate from lspower back to tower-lsp (#14163) 2022-04-07 09:42:33 -04:00
Bartek Iwańczuk
6311834164 chore: update tokio, tokio-util and libc dependencies (#14174) 2022-04-07 09:42:33 -04:00
David Sherret
79106d757f chore: fix main (#14175) 2022-04-07 09:42:33 -04:00
David Sherret
53abcffd62 chore(tests): use custom temp dir creation for the tests (#14153) 2022-04-07 09:42:33 -04:00
Kitson Kelly
e696cd8e13 feat(lsp): add experimental testing API (#13798)
Ref: denoland/vscode_deno#629
2022-04-07 09:42:29 -04:00
Kitson Kelly
e19303d690 feat(lsp): support API for config file (#14139)
Closes: #13910
2022-04-07 09:04:47 -04:00
github-actions[bot]
a78f728a10
1.20.4 (#14165)
Co-authored-by: David Sherret <dsherret@gmail.com>
2022-03-31 13:09:34 -04:00
Divy Srivastava
d5cd7c3261 fix(compile): follow redirects when resolving (#14161) 2022-03-31 11:33:03 -04:00
David Sherret
454a874d74 chore: disable wgpu tests in WSL (#14157) 2022-03-31 11:33:03 -04:00
David Sherret
bd767029e9 chore(tests): add more lsp tests for formatting (#14155) 2022-03-31 11:32:54 -04:00
David Sherret
16f35b5a10 build: use workflows for bumping versions and cargo publishing on the CI (#13995) 2022-03-30 16:49:07 -04:00
David Sherret
921d33cb11 chore: add semi-colon to compat/mod.rs export default output (#14154) 2022-03-30 16:49:07 -04:00
David Sherret
afd43bdff3 chore(ci): fix lsp bench due to notification that was accidentally added (#14148) 2022-03-30 16:49:06 -04:00
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