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
Andreu Botella
c6bf07ec6d
fix(core): Don't override structured clone error messages from V8 ( #13942 )
...
In the implementation of structured serialization in
`Deno.core.serialize`, whenever there is a serialization error, an
exception will be thrown with the message "Failed to serialize
response", even though V8 provides a message to use in such cases.
This change instead throws an exception with the V8-provided message,
if there is one.
2022-03-14 19:35:15 +01:00
Divy Srivastava
b4e42953e1
feat(core): codegen ops ( #13861 )
...
Co-authored-by: Aaron O'Mullan <aaron.omullan@gmail.com>
2022-03-14 18:44:15 +01:00
Divy Srivastava
4e3ed37037
chore: improve build times for ext/
changes ( #13927 )
2022-03-14 09:08:54 +05:30
Bartek Iwańczuk
9d9e60b694
feat(task): log task script ( #13922 )
...
Logs task name and associated script with additional args.
This is disabled if "--quiet/-q" flag is present.
2022-03-12 02:35:18 +01:00
Bartek Iwańczuk
1a764790f2
test: fix flaky compat tests ( #13921 )
2022-03-12 02:08:55 +01:00