Bartek Iwańczuk
4e71a9424e
fix: proper typings for unhandledrejection event ( #15271 )
2022-07-21 23:54:53 +02:00
Satya Rohith
6c3d9b981f
fix(cli): unset jsxFragmentFactory & jsxFactory options ( #15264 )
2022-07-21 14:44:18 +05:30
denobot
f0e01682cc
1.24.0 ( #15262 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-07-21 01:28:00 +02:00
David Sherret
26cea0e2ca
feat(test): add --parallel
flag, soft deprecate --jobs
( #15259 )
...
Co-authored-by: mrkldshv <markladyshev@gmail.com>
2022-07-20 17:36:54 -04:00
David Sherret
5f5bbd597a
fix(coverage): do not verify emit source hash for coverage ( #15260 )
2022-07-20 16:30:57 -04:00
Bartek Iwańczuk
d53936eb7d
Reland "feat: add "unhandledrejection" event support" ( #15211 )
2022-07-20 20:28:19 +02:00
Nayeem Rahman
6e350b2b7c
chore(cli): Ignore "experimentalDecorators" and "moduleDetection" options ( #15202 )
2022-07-20 16:59:56 +02:00
Bartek Iwańczuk
d17b3906bf
chore: use import.meta.resolve() in tests ( #15256 )
2022-07-20 16:56:53 +02:00
David Sherret
73504d76b2
fix(task): resolve deno configuration file first from specified --cwd
arg ( #15257 )
2022-07-20 10:36:14 -04:00
David Sherret
cee3246edb
fix(fmt): improve curried arrow functions ( #15251 )
2022-07-20 08:55:18 -04:00
ayame113
27a72a12b7
chore: align some Web API type definitions to lib.dom.d.ts ( #15219 )
2022-07-20 18:30:41 +08:00
Phosra
b8e1250500
fix(ext/web): align DOMException better with spec ( #15097 )
2022-07-20 10:12:18 +02:00
Dante Issaias
2b1f145c3e
chore(ext): update webgpu ( #15059 )
2022-07-20 02:22:26 +02:00
David Sherret
649536e266
fix(task): do not overflow attempting to parse large number as redirect ( #15249 )
2022-07-19 16:50:09 -04:00
Roj
248bfda8d3
chore(cli): update config file schema to include test config ( #15246 )
2022-07-19 15:10:41 -04:00
David Sherret
0ab262b901
feat: emit files on demand and fix racy emit ( #15220 )
2022-07-19 11:58:18 -04:00
Leo Kettmeir
2eb27c92db
fix: WebSocketStream ping event causes pending promises ( #15235 )
2022-07-18 22:49:49 +02:00
Leo Kettmeir
2bebdc9116
feat(unstable): Ability to ref/unref "Child" in "Deno.spawnChild()" API ( #15151 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: Colin Ihrig <cjihrig@gmail.com>
2022-07-18 22:24:35 +02:00
Roj
70d1ecaeaa
feat(cli): support configuring the test tool in the config file ( #15079 )
2022-07-18 15:12:19 -04:00
sigmaSd
1f04cea160
chore(repl): update rustyline to 10.0.0 ( #15232 )
2022-07-18 20:47:00 +02:00
Bartek Iwańczuk
999cbfb52b
feat: import.meta.resolve() ( #15074 )
...
This commit adds new "import.meta.resolve()" API which
allows to resolve specifiers relative to the module the API
is called in. This API supports resolving using import maps.
2022-07-18 20:05:26 +02:00
David Sherret
0d73eb3dd9
chore: fix flaky captured_output ( #15234 )
2022-07-18 13:20:15 -04:00
Bartek Iwańczuk
89c1ad0303
fix: revert changes to test output for uncaught errors ( #15231 )
2022-07-18 18:58:13 +02:00
Nayeem Rahman
45c49034a7
BREAKING(unstable): Improve Deno.spawn() stdio API ( #14919 )
...
- "SpawnOutput" extends "ChildStatus" instead of composing it
- "SpawnOutput::stdout", "SpawnOutput::stderr", "Child::stdin",
"Child::stdout" and "Child::stderr" are no longer optional, instead
made them getters that throw at runtime if that stream wasn't set
to "piped".
- Remove the complicated "<T extends SpawnOptions = SpawnOptions>"
which we currently need to give proper type hints for the availability of
these fields. Their typings for these would get increasingly complex
if it became dependent on more options (e.g. "SpawnOptions::pty"
which if set should make the stdio streams unavailable)
2022-07-18 15:16:12 +02:00
Nayeem Rahman
22a4998e29
refactor: allocate IDs for tests ( #14729 )
2022-07-15 13:09:22 -04:00
David Sherret
635eed9373
chore: fix Windows specific clippy errors ( #15212 )
2022-07-15 12:30:25 -04:00
Mark Ladyshau
ee0c0586b3
feat(cli/test): add DENO_JOBS
env variable for test
subcommand ( #14929 )
2022-07-15 10:29:55 -04:00
Bartek Iwańczuk
f9b692e68e
Revert "feat: add "unhandledrejection" event support ( #12994 ) ( #15080 )" ( #15210 )
...
This reverts commit 1a7259b04b
.
2022-07-15 01:06:20 +02:00
orvit
dbf5e95b59
refactor: remove redundant qualification of symbols in Rust ( #15201 )
2022-07-15 07:52:44 +10:00
Bartek Iwańczuk
1a7259b04b
feat: add "unhandledrejection" event support ( #12994 ) ( #15080 )
...
Relanding #12994
This commit adds support for "unhandledrejection" event.
This event will trigger event listeners registered using:
"globalThis.addEventListener("unhandledrejection")
"globalThis.onunhandledrejection"
This is done by registering a default handler using
"Deno.core.setPromiseRejectCallback" that allows to
handle rejected promises in JavaScript instead of Rust.
This commit will make it possible to polyfill
"process.on("unhandledRejection")" in the Node compat
layer.
Co-authored-by: Colin Ihrig <cjihrig@gmail.com>
2022-07-14 22:39:20 +02:00
Liam Murphy
bc7cb61d1a
fix(cli/dts): allow passing arguments to WebAssembly
error constructors ( #15149 )
...
These constructors have the same signature as all of JavaScript's other builtin errors.
2022-07-14 14:42:54 -04:00
Rafael Ávila de Espíndola
a34ed568e9
fix(cli): expand tsc roots when using checkJs ( #15164 )
...
A JS file can still point to a TS file, so we need to expand the roots
in the checkJs case too.
Fixes: #15163
2022-07-14 10:40:47 -04:00
Kitson Kelly
7e06d33b34
feat(lsp): provide import map remapping diags and fixes ( #15165 )
2022-07-14 11:12:18 +10:00
David Sherret
294b27717c
feat(fmt): do not add a newline between a template and its tag ( #15195 )
2022-07-13 17:27:27 -04:00
2shiori17
0aca3f0690
fix(cli): Improve error message in watch mode ( #15184 )
2022-07-13 22:01:09 +02:00
David Sherret
5273259eef
chore: remove flaky writeSyncWhileAsyncFails test ( #15194 )
2022-07-13 15:49:20 -04:00
Nayeem Rahman
c2770c70b7
chore(cli): remove dead code related to previous tsc emit ( #15196 )
2022-07-13 15:38:36 -04:00
David Sherret
667812a297
fix(cli): synchronize async stdio/file reads and writes ( #15092 )
...
Fixes a regression where async writes and reads could get out of order.
2022-07-13 11:16:42 -04:00
David Sherret
7470b2d2a7
chore: fix flaky integration::test::meta
( #15192 )
2022-07-13 11:01:52 -04:00
David Sherret
944d708e3c
chore: fix pty_complete_imports test on linux/mac ( #15191 )
2022-07-13 10:49:14 -04:00
David Sherret
698eeb90fd
fix: fallback to no type checking cache when db file can't be created ( #15180 )
2022-07-12 22:44:15 -04:00
2shiori17
61340f1d89
feat(cli/lsp): Sort repl completions ( #15171 )
2022-07-12 22:21:56 -04:00
David Sherret
3a4e95c431
fix(repl): do not panic for import completions when the import specifier is empty ( #15177 )
2022-07-12 21:56:48 -04:00
David Sherret
0c87dd1e98
perf: use emit from swc instead of tsc ( #15118 )
2022-07-12 18:58:39 -04:00
Colin Ihrig
7610764980
chore: forward v1.23.4 release commit to main ( #15172 )
...
1.23.4 (#15168 )
Co-authored-by: cjihrig <cjihrig@users.noreply.github.com>
Co-authored-by: denobot <33910674+denobot@users.noreply.github.com>
Co-authored-by: cjihrig <cjihrig@users.noreply.github.com>
2022-07-12 17:08:36 -04:00
Divy Srivastava
5b26a4a30e
fix(ext/http): reading headers with ongoing body reader ( #15161 )
2022-07-12 13:31:37 -04:00
David Sherret
2ff3e8a6c5
chore: fix repl::pty_emoji test on linux ( #15166 )
2022-07-12 11:05:56 -04:00
Kitson Kelly
5db16d1229
fix(lsp): enable auto imports ( #15145 )
...
Fixes: #15111
2022-07-12 09:35:18 +10:00
David Sherret
82431062fa
fix(coverage): better handling of multi-byte characters ( #15159 )
2022-07-11 19:02:11 -04:00
Bartek Iwańczuk
88c36fd414
benchmarks: fix exec_time and latency benchmarks ( #15155 )
2022-07-11 20:58:32 +02:00