1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-22 15:06:54 -05:00
Commit graph

7328 commits

Author SHA1 Message Date
David Sherret
af1bb2d5ce
fix(task): accept double hyphen arg immediately following task name (#14567) 2022-05-12 14:16:51 +02:00
David Sherret
88cb62cce7
fix: stdout and stderr encoding on Windows (#14559) 2022-05-12 14:16:51 +02:00
David Sherret
207f214a61
fix: do not panic on TestOutputPipe::flush when receiver dropped (#14560) 2022-05-12 14:16:51 +02:00
David Sherret
d0ee4cd829
refactor: StdFileResource - remove unused cancel handle (#14558) 2022-05-12 14:16:51 +02:00
Aaron O'Mullan
510ab505e7
cleanup(ext/http): simpler http write ops (#14552)
Facilitates making `op_http_write_headers` sync and thus faster
2022-05-12 14:16:51 +02:00
David Sherret
385c8eef56
chore: fix flaky steps_output_within - part 2 (#14562) 2022-05-12 14:16:51 +02:00
David Sherret
283f63be40
refactor: remove unused Options on StdFileResource.fs_file (#14549) 2022-05-12 14:16:51 +02:00
Luca Casonato
45d7470c93
ci: use xl windows runners (#14554)
Thanks GitHub :)
2022-05-12 14:16:51 +02:00
Colin Ihrig
de0042f05c
fix: finish TLS handshake before shutting down (#14547)
This commit ensures that the TLS handshake completes before
attempting to close the connection.
2022-05-12 14:16:51 +02:00
Nayeem Rahman
7e530ce1c9
fix(runtime/web_worker): Use biased select when getting module result (#14553) 2022-05-12 14:16:51 +02:00
Mark Ladyshau
09ad149ffb
feat(cli): add deno version to manual links (#14505) 2022-05-12 14:16:51 +02:00
Aaron O'Mullan
a2e9402fcb
fix(core): avoid panic on non-string Error.name (#14529)
Fixes #14518
2022-05-12 14:16:50 +02:00
Bartek Iwańczuk
2a59c2b6df
refactor(core): add AssertedModuleType enum (#14501)
Co-authored-by: Luca Casonato <hello@lcas.dev>
2022-05-12 14:16:50 +02:00
Colin Ihrig
1c40d64aff
chore: improve release docs (#14506)
This commit fixes a typo and the test command used in deno_std.
2022-05-12 14:16:50 +02:00
denobot
2256c697ae
1.21.2 (#14504)
1.21.2
2022-05-05 16:56:49 -04:00
cjihrig
0314364982
chore: fix discrepancy between 1.21 and main branches
main updated trust-dns-client and trust-dns-server in #14372,
which was semver-minor. That means the change was not cherry-
picked to 1.21. Then, main updated those same dependencies again
in #14416, as a patch change. However, the first change made
some changes that the second change built on. Those changes are
captured here.
2022-05-05 15:16:36 -04:00
Aaron O'Mullan
6d880396e1
chore(serde_v8): V8Slice SAFETY (#14493) 2022-05-05 15:16:36 -04:00
Bartek Iwańczuk
3a28f6ef83
refactor(core): use Box<u8> for ModuleSource.code instead of a String (#14487) 2022-05-05 15:16:36 -04:00
Luca Casonato
12bed56e15
chore: update deps (#14416) 2022-05-05 15:16:36 -04:00
Nayeem Rahman
d6d4860bc7
test: Manually truncate path string (#14407) 2022-05-05 15:16:36 -04:00
David Sherret
0084f7e85a
chore: fix flaky steps_output_within test (#14479) 2022-05-05 15:16:36 -04:00
Divy Srivastava
fbfb3d6061
fix(ext/http): explicitly close resource after reading (#14471) 2022-05-05 15:16:36 -04:00
Geert-Jan Zwiers
35ca39b5a8
fix(coverage): exclude .snap files (#14480) 2022-05-05 15:16:36 -04:00
Bartek Iwańczuk
81fd78ae7d
refactor: add core.formatLocationFilename, remove op_format_filename (#14474)
This commit moves "op_format_location" to "core/ops_builtin.rs"
and removes "Deno.core.createPrepareStackTrace" in favor of
"Deno.core.prepareStackTrace".

Co-authored-by: Aaron O'Mullan <aaron.omullan@gmail.com>
2022-05-05 15:16:36 -04:00
Adilson Schmitt Junior
0c9ace2574
fix(test/bench): accept file protocol module specifier CLI args (#14429) 2022-05-05 15:16:36 -04:00
David Sherret
1a7e9fb924
fix(vendor): do not panic on relative specifier with scheme-like folder name (#14453) 2022-05-05 13:55:47 -04:00
Aaron O'Mullan
2080ea6f52
fix(runtime): lossy utf8 readTextFile (#14456) 2022-05-05 13:55:26 -04:00
David Sherret
3d9aecfa7a
fix(test): actually capture stdout and stderr in workers (#14435) 2022-05-05 13:55:13 -04:00
David Sherret
43319e79ab
fix: improve formatting jsdocs with asterisk as first char on line (#14446) 2022-05-05 13:55:05 -04:00
David Sherret
05ad006c31
fix(task): support forwarding lone double hyphen (#14436) 2022-05-05 13:54:43 -04:00
David Sherret
3ebedc65a2
fix(task): allow hyphen values after task name (#14434) 2022-05-05 13:54:34 -04:00
Kitson Kelly
a567f60a24
fix(cli): add dom.extras lib (#14430)
Closes: #12558
Fixes: #14344
2022-05-05 13:54:18 -04:00
denobot
58bedd8d84
1.21.1 (#14425) 2022-04-28 22:33:09 +02:00
Ben Heidemann
266f3d7d4e
feat(ext/console): Compact empty iterables when calling Deno.inspect with compact false (#14387) 2022-04-28 19:57:24 +02:00
Ben Heidemann
8ec0108fa0
feat(ext/console): Add string abbreviation size option for "Deno.inspect" (#14384) 2022-04-28 19:44:06 +02:00
Ikumi Nakamura
7910908c90
fix(cli): wrap long line of the env variables help (#14422) 2022-04-28 19:18:04 +02:00
David Sherret
f0af0f6836
fix: deno task forward double hyphen (#14419) 2022-04-28 19:18:01 +02:00
Andreu Botella
e1437d3f51
fix(workers): Make worker.terminate() not block the current thread (#13941)
Calling `worker.terminate()` used to kill the worker's isolate and
then block until the worker's thread finished. This blocks the calling
thread if the worker's event loop was blocked in a sync op (as with
`Deno.sleepSync`), which wasn't realized at the time, but since the
worker's isolate was killed at that moment, it would not block the
calling thread if the worker was in a JS endless loop.

However, in #12831, in order to work around a V8 bug, worker
termination was changed to first set a signal to let the worker event
loop know that termination has been requested, and only kill the
isolate if the event loop has not finished after 2 seconds. However,
this change kept the blocking, which meant that JS endless loops in
the worker now blocked the parent for 2 seconds.

As it turns out, after #12831 it is fine to signal termination and
even kill the worker's isolate without waiting for the thread to
finish, so this change does that. However, that might leave the async
ops that receive messages and control data from the worker pending
after `worker.terminate()`, which leads to odd results from the op
sanitizer. Therefore, we set up a `CancelHandler` to cancel those ops
when the worker is terminated.
2022-04-28 19:17:56 +02:00
Aaron O'Mullan
2014f47bd3
perf(runtime): read entire files in single ops (#14261)
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2022-04-28 19:17:52 +02:00
Nayeem Rahman
b7d63eace8
refactor: Remove PrettyJsError and js_error_create_fn (#14378)
This commit:
- removes "fmt_errors::PrettyJsError" in favor of "format_js_error" fn
- removes "deno_core::JsError::create" and 
"deno_core::RuntimeOptions::js_error_create_fn"
- adds new option to "deno_runtime::ops::worker_host::init"
2022-04-28 19:17:48 +02:00
David Sherret
23b4a360bb
fix(test): capture worker stdout and stderr in test output (#14410) 2022-04-28 19:17:44 +02:00
Baoshuo Ren
ededfa2c15
chore: remove git.io link (#14402)
All links on git.io will stop redirecting after April 29, 2022.

- https://github.blog/changelog/2022-04-25-git-io-deprecation/
2022-04-28 19:17:39 +02:00
David Sherret
33e5da0d68
fix(test): capture inherited stdout and stderr for subprocesses in test output (#14395) 2022-04-28 19:17:36 +02:00
David Sherret
7c53728b1d
chore: fix pty_complete_imports test (#14400) 2022-04-28 19:17:33 +02:00
Nayeem Rahman
bd362df7f3
refactor(core): Remove ErrWithV8Handle (#14394) 2022-04-28 19:17:27 +02:00
David Sherret
4569851c03
refactor(ops/process): add StdioOrRid enum (#14393) 2022-04-28 19:17:23 +02:00
Aaron O'Mullan
0c9f11bacf
chore: deno_http v0.43.1 (#14392) 2022-04-28 19:17:21 +02:00
Divy Srivastava
cb6f596af8
fix(ext/http): truncate read bytes when streaming bodies (#14389)
stream shutdown wasn't happening correctly (moved it to call op_http_shutdown) & extra zeroed bytes were being sent for when body length not a multiple of 64*1024
2022-04-28 19:16:17 +02:00
David Sherret
8be947eed1
refactor(lsp): store all the assets in Rust when initializing (#14367) 2022-04-28 19:16:14 +02:00
Aaron O'Mullan
50e6c5917a
cleanup(serde_v8): disambiguate ZeroCopyBuf (#14380) 2022-04-28 19:16:11 +02:00