1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-29 16:30:56 -05:00
Commit graph

7149 commits

Author SHA1 Message Date
Divy Srivastava
79181898e9 perf(http): avoid Set.has() when closing connection resource (#14085) 2022-03-24 13:39:10 +11:00
Divy Srivastava
04d8ab9839 perf(http): avoid checking promise every request (#14079) 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
Andreu Botella
71de0c92b8 chore(core): Remove a note that is no longer relevant. (#14069)
This note about how `v8::SnapshotCreator::create_blob` must not be
called from a `HandleScope` stopped being relevant in #6801, and was
now attached to code that had nothing to do with `HandleScope`s.
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
Aaron O'Mullan
f333c1f857 fix(core): variadic opSync/opAsync (#14062) 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
Aaron O'Mullan
f896666455 perf(http): avoid per header alloc (#14051) 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
Aaron O'Mullan
9ff62005cf cleanup(core): drop op_void_async's state arg (#14045) 2022-03-24 13:39:10 +11:00
Andreu Botella
25fdecff6a cleanup(web, fetch): dedupe minesniff / "extract a MIME type" algorithm (#14044)
Closes #14002
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
Divy Srivastava
fd006debe5 chore(core): update deno_core README (#14042)
Co-authored-by: Andreu Botella <andreu@andreubotella.com>
2022-03-24 13:39:10 +11:00
Divy Srivastava
fc39b33ef0 chore(ops): hide implementation details from rustdoc (#14038)
Co-authored-by: Aaron O'Mullan <aaron.omullan@gmail.com>
2022-03-24 13:39:10 +11:00
Aaron O'Mullan
a63fc8c7f8 fix(ops): throw TypeError on op return failure (#14033)
Fixes #14028
2022-03-24 13:39:10 +11:00
Leo Kettmeir
2e96c0faf9 refactor: cleanup assert() & AssertionError definitions (#13859) 2022-03-24 13:39:10 +11:00
Aapo Alasuutari
9f20c312c1 chore(core,ext): minor JS optimisations (#13950) 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
Divy Srivastava
06d6fd06fd chore: add Rust toolchain components (#14004) 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
David Sherret
92bb251058
chore: release script should automatically figure out CLI crate dependencies (#13992) 2022-03-16 20:33:14 -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
bfa4ed92bc
chore: uploading WPT shouldn't make CI fail (#13984) 2022-03-16 09:35:45 -04:00
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
426ca98527
chore: add CODEOWNERS for deno_ops (#13982) 2022-03-16 16:26:09 +05:30
Aaron O'Mullan
895e474295
cleanup(core): recursive get & ensure helpers (#13972) 2022-03-16 09:04:38 +01:00
Divy Srivastava
697b60a335
perf(web): use DOMString for BlobParts (#13979) 2022-03-16 12:58:38 +05:30
木杉
395f527238
chore(ext/webidl): change spec link (#13960) 2022-03-16 03:17:50 +01:00
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
Andreu Botella
672f66dde1
perf(web): Optimize TextDecoder by adding a new U16String type (#13923) 2022-03-16 00:22:00 +01:00
Aaron O'Mullan
bb53135ed8
cleanup(core): OpPair => OpDecl (#13952) 2022-03-15 23:43:17 +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