Yoshiya Hinosawa
3953059b74
fix: deprecate URL as the first arg of fetch ( #14113 )
2022-03-25 13:31:16 +01:00
apeltop
172de68920
chore(ext): fix typo in ext/webgpu, ext/fetch ( #14106 )
2022-03-25 13:31:11 +01:00
David Sherret
84afe6ae71
docs: WorkerOptions
- fix permissions description ( #14011 )
2022-03-25 13:31:06 +01:00
Aaron O'Mullan
1d774683b2
chore: drop src/ in bench_util & serde_v8 ( #14097 )
...
To align with conventions used in our other crates
2022-03-25 13:31:02 +01:00
Eliaz Bobadilla
e74ffc7fe7
ci: update actions/checkout@v2 to v3 ( #14089 )
2022-03-25 13:30:58 +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
Aaron O'Mullan
e3c8c185f4
cleanup(serde_v8): streamline magic types ( #14076 )
...
Formalize magic types and how they're "transerialized", also makes U16String deserializable
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
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