1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-01 16:51:13 -05:00
Commit graph

7296 commits

Author SHA1 Message Date
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
Divy Srivastava
b9abe45ee4
perf(ext/http): fast path for uncompressed bodies (#14366) 2022-04-28 19:15:56 +02:00
Aaron O'Mullan
2139773cbb
perf(ext/http): faster is_content_compressible (#14383)
Cleanup + benches
2022-04-28 19:15:53 +02:00
Bartek Iwańczuk
37e534dac5
feat: change shade of "gray" color in eye-catchers (#14309)
This commit changes "gray" color for eye-catchers to use 
Ansi(245) color.
2022-04-28 19:15:47 +02:00
Nayeem Rahman
bf5eea0cc6
fix(runtime/js/spawn): Pass stdio options for spawn() and spawnSync() (#14358) 2022-04-28 19:15:43 +02:00
Aaron O'Mullan
854a804f20
perf(serde_v8): zero-copy StringOrBuffer (#14381) 2022-04-28 19:15:38 +02:00
Divy Srivastava
b225c8e7d3
chore(ext/fetch): custom arity (#14198) 2022-04-28 19:15:35 +02:00
evan
9ae677ef6a
fix(bench): eliminate sanitizeExit overhead (#14361) 2022-04-28 19:15:31 +02:00
evan
059409d0c3
fix(bench): report pending summary before clearing (#14369) 2022-04-28 19:15:28 +02:00
David Sherret
fec28daf3c
chore(tests): fix pty_clear_function on Windows (#14364) 2022-04-28 19:15:25 +02:00
Luca Casonato
d14bd135ab
chore: bump crates (#14365) 2022-04-28 19:15:20 +02:00
Luca Casonato
4e9d1c7260
tests: unflake streaming compression tests (#14363) 2022-04-28 19:15:16 +02:00
evan
34e4d6eb9c
fix(bench): reset reporter context (#14360)
This commit fixes previous file benchmarks leaking into the next file benchmarks summary.
2022-04-28 19:15:12 +02:00
Divy Srivastava
fe40451a15
Reland "perf(http): optimize ReadableStreams backed by a resource" (#14346) 2022-04-28 19:15:08 +02:00
David Sherret
45dc49206a
chore: add release step failure instructions (#14352) 2022-04-28 19:15:05 +02:00
David Sherret
5be4a942ae
chore(ci): skip ci cache when doing a release (#14350) 2022-04-28 19:14:58 +02:00
Bartek Iwańczuk
3215c26053
fix(watcher): don't clear screen on start (#14351) 2022-04-28 19:14:54 +02:00
David Sherret
6df777b3f5
chore(scripts): allow running version_bump workflow without releasing deno_std yet (#14341) 2022-04-28 19:14:47 +02:00
ayame113
e51ad003c4
chore(cli/dts): fix the display of the Deno.spawnSync() document (#14342) 2022-04-28 19:14:40 +02:00
Divy Srivastava
5aaa6d5206
Reland "feat(ext/http): stream auto resp body compression" (#14345) 2022-04-28 19:13:56 +02:00
denobot
29c8cd8aae
1.21.0 (#14336)
Co-authored-by: ry <ry@users.noreply.github.com>
Co-authored-by: David Sherret <dsherret@gmail.com>
2022-04-20 21:50:16 -04:00
Bartek Iwańczuk
03019e7781
Revert various PRs related to "ext/http" (#14339)
* Revert "feat(ext/http): stream auto resp body compression (#14325)"
* Revert "core: introduce `resource.read_return` (#14331)"
* Revert "perf(http): optimize `ReadableStream`s backed by a resource (#14284)"
2022-04-21 02:22:55 +02:00
David Sherret
aaaa877d91
chore: fix version bump credentials (#14338) 2022-04-20 19:57:22 -04:00
Ryan Dahl
78c9cd9789
upgrade: rusty_v8 0.42.0 (#14334) 2022-04-20 19:13:31 -04:00
Leo Kettmeir
8a7539cab3
feat(runtime): two-tier subprocess API (#11618) 2022-04-21 00:20:33 +02:00
Luca Casonato
8b25807054
feat(ext/http): stream auto resp body compression (#14325)
This commit adds support for auto response body compression for
streaming bodies.
2022-04-20 22:53:56 +02:00
Colin Ihrig
2a93c134dc
feat(repl): add global clear() function (#14332)
This commit adds a clear() function in the REPL which works
similar to console.clear().
2022-04-20 15:48:15 -04:00
evan
f785ecee1a
feat(bench): update API, new console reporter (#14305)
This commit changes "deno bench" subcommand, by updating
the "Deno.bench" API as follows:
- remove "Deno.BenchDefinition.n"
- remove "Deno.BenchDefintion.warmup"
- add "Deno.BenchDefinition.group"
- add "Deno.BenchDefintion.baseline"

This is done because bench cases are no longer run fixed amount
of iterations, but instead they are run until there is difference between
subsequent runs that is statistically insiginificant.

Additionally, console reporter was rewritten completely, to looks
similar to "hyperfine" reporter.
2022-04-20 21:06:39 +02:00
Divy Srivastava
2612b6f20f
core: introduce resource.read_return (#14331) 2022-04-20 18:39:13 +02:00
Divy Srivastava
57a8fc37fc
perf(http): optimize ReadableStreams backed by a resource (#14284) 2022-04-20 18:16:44 +05:30
Naju Mancheril
3833d37b15
feat(repl): add "--eval-file" flag to execute a script file on startup (#14247)
This commit adds support for "--eval-file" in "deno repl" subcommand.

This flag can be used to pass paths or URLs to files, that will be executed
on REPL startup. All files will be executed in the same context as the REPL
(ie. as "plain old scripts", not ES modules), sharing the global scope.

This feature allows to implement custom REPLs on top of Deno's REPL.
2022-04-20 14:16:37 +02:00
David Sherret
ae479b1036
perf(fmt/lint): incremental formatting and linting (#14314) 2022-04-19 22:14:00 -04:00
Luca Casonato
803499886b
Remove the DENO_FUTURE_CHECK warning (#14320)
It has good intentions, but it is a really terrible user experience. As
such we shouldn't print this warning.
2022-04-19 17:08:23 +02:00