David Sherret
ba8156e578
fix(npm): resolve npm specifiers when root redirected ( #17144 )
...
Closes #17136
2023-01-05 13:04:39 +01:00
Luca Casonato
9cd9a68b00
fix(ext/http): close stream on resp body error ( #17126 )
...
Previously, errored streaming response bodies did not cause the HTTP
stream to be aborted. It instead caused the stream to be closed gracefully,
which had the result that the client could not detect the difference
between a successful response and an errored response.
This commit fixes the issue by aborting the stream on error.
2023-01-05 13:04:38 +01:00
Kamil Ogórek
faa4e1b7cc
fix(cli): allow for specifying noErrorTruncation
compiler option ( #17127 )
...
Fixes https://github.com/denoland/deno/issues/16568
2023-01-05 13:04:38 +01:00
David Sherret
ed200d8872
perf(lsp): concurrent reads and exclusive writes ( #17135 )
2023-01-05 13:04:38 +01:00
Leo Kettmeir
36e9a8c665
fix(lsp/testing): fallback name for non-analyzable tests in collector ( #17120 )
...
Closes #17054 .
The fallback is `Test lineNumber:columnNumber`
2023-01-05 13:04:38 +01:00
Leo Kettmeir
69997a9ae2
fix: display URL in invalid URL error ( #17128 )
2023-01-05 13:04:37 +01:00
David Sherret
c3241a956b
fix: hide progress bars when showing permission prompt ( #17130 )
...
Also adds download bytes progress when downloading remote specifiers.
Closes #16860
2023-01-05 13:04:01 +01:00
Kamil Ogórek
2ebc91c16a
fix(cli): do not clear screen for non-TTY environments in watch mode ( #17129 )
2023-01-05 13:04:00 +01:00
David Sherret
716a6b018e
refactor(progress bars): global control for drawing ( #17091 )
...
This PR adds the concept of a global `DrawThread`, which can receive
multiple renderers to draw information on the screen (note: the
underlying thread is released back to tokio when it's not rendering). It
also separates the concept of progress bars from the existing "draw
thread". This makes it trivial for us to do stuff like show permission
prompts and progress bars at the same time in the future.
The reason this is global is because the process' tty stderr is also a
global concept.
2023-01-05 13:04:00 +01:00
Bartek Iwańczuk
8df1210b63
fix(npm): conditional exports with --node-modules-dir ( #17111 )
...
This commit fixes conditional exports in `require()` implementation
if `--node-modules-dir` flag is used.
2023-01-05 13:04:00 +01:00
Luca Casonato
a9c0c20d1c
test(ext/fetch): fix test in release mode ( #17125 )
2023-01-05 13:03:42 +01:00
Luca Casonato
c059c12a1e
fix(ext/fetch): handle errors in req body stream ( #17081 )
...
Right now an error in a request body stream causes an uncatchable
global promise rejection. This PR fixes this to instead propagate the
error correctly into the promise returned from `fetch`.
It additionally fixes errored readable stream bodies being treated as
successfully completed bodies by Rust.
2023-01-05 13:03:42 +01:00
Leo Kettmeir
0bed6e009c
chore(lsp/testing): refactor collectors test ( #17104 )
2023-01-05 13:03:41 +01:00
Leo Kettmeir
4113921ab3
fix(runtime): expose extensions_with_js
from WorkerOptions ( #17109 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-01-05 13:03:41 +01:00
Pig Fang
7095cc6b50
fix(init): update comment style ( #17074 )
...
The output of `init` are commands, so this should be treated as a "Shell
script". In Shell script, comments must start with `#`, not `//`. (This
also makes the commands example easier to be copied to somewhere.)
2023-01-05 13:03:41 +01:00
David Sherret
b3eed3af79
fix(runtime): Deno.memoryUsage().rss
should return correct value ( #17088 )
...
This commit changes implementation of "Deno.memoryUsage()" to return
correct value for "rss" field. To do that we implement a specialized function
per os to retrieve this information.
2023-01-05 13:03:41 +01:00
linbingquan
eb27ea6c58
chore: update to Rust 1.66.0 ( #17078 )
2023-01-05 13:03:11 +01:00
David Sherret
6acd9ebb83
fix(lint): column number for pretty reporting was off by 1 ( #17107 )
...
Closes #17086
2023-01-05 13:03:11 +01:00
Leo Kettmeir
ee73bc22f5
fix(lsp/testing): support not needing to declare first arg function in test declaration ( #17097 )
2023-01-05 13:03:11 +01:00
sigmaSd
684dcd4cb1
fix(repl): doing two history searches exiting with ctrl+c should not exit repl ( #17079 )
...
fix https://github.com/denoland/deno/issues/16147
2023-01-05 13:03:10 +01:00
Bartek Iwańczuk
bd8d529d54
fix(npm): fix require resolution if using --node-modules-dir ( #17087 )
...
In our `require()` implementation we use a special logic to resolve
"base path" when looking for matching packages, however this logic
is in contradiction to what needs to happen if there's a local
"node_modules"
directory used. This commit changes require implementation to be aware
if we're running off of global node modules cache or a local one.
2023-01-05 13:03:10 +01:00
David Sherret
a9810ce1fb
fix(install): use a hidden file for the lockfile and config ( #17084 )
...
Closes #17083
2023-01-05 13:03:10 +01:00
Bartek Iwańczuk
1a7e9c8e20
refactor(core): allow to listen for notifications in LocalInspectorSession ( #17040 )
2023-01-05 13:03:10 +01:00
Bartek Iwańczuk
2c1d2459e5
fix(repl): errors shouldn't terminate repl ( #17082 )
...
This commit changes REPL to never surface errors coming
from code execution, but instead print them as errors
to the REPL itself.
2023-01-05 13:02:43 +01:00
Leo Kettmeir
bb079e0a42
fix(lsp): handle template literal as first arg in test function ( #17076 )
2023-01-05 13:02:43 +01:00
David Sherret
98e7c91be4
fix(npm): improve exports resolution when type checking ( #17071 )
...
Closes #17012
2023-01-05 13:02:42 +01:00
David Sherret
f95b65d3c7
fix(regression): ensure progress information is shown when downloading remote modules ( #17069 )
2023-01-05 13:02:42 +01:00
denobot
145013ab7f
1.29.1 ( #17064 )
...
Co-authored-by: dsherret <dsherret@users.noreply.github.com>
2022-12-15 11:32:14 -05:00
Leo Kettmeir
50c7526526
fix: re-add Response.json static method ( #17061 )
...
Same as #16040
2022-12-15 10:33:19 -05:00
Bartek Iwańczuk
585ec1218f
Revert "feat(ops): Fast zero copy string arguments ( #16777 )" ( #17063 )
...
This reverts commit 9b2b8df927
.
Closes https://github.com/dsherret/ts-morph/issues/1372
Closes https://github.com/denoland/deno/issues/16979
2022-12-15 15:26:10 +00:00
denobot
0d4e4af7ac
1.29.0 ( #17052 )
...
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-12-15 00:22:54 +01:00
David Sherret
9f82abb4b4
fix(upgrade/windows): correct command in windows access denied message ( #17049 )
2022-12-14 16:21:43 -05:00
David Sherret
9e9e8f1e38
fix: upgrade to TS 4.9.4 ( #17048 )
2022-12-14 13:00:51 -05:00
David Sherret
4a64ca8501
chore: fix recent regression with deno upgrade
not handling redirects ( #17045 )
2022-12-14 08:47:18 -05:00
David Sherret
392cca87a8
fix(fmt): panic in yaml header with multi-byte characters ( #17042 )
...
Closes #17010
2022-12-13 23:36:02 +00:00
David Sherret
878590b773
fix(npm): support loose node semver ranges like >= ^x.x.x
( #17037 )
2022-12-13 13:01:42 -05:00
Divy Srivastava
ac4b5de656
feat(napi): improve napi coverage ( #16198 )
2022-12-13 19:56:53 +05:30
Leo Kettmeir
76a9df1ed8
docs: use example & default tags ( #17032 )
2022-12-13 14:14:41 +01:00
Bartek Iwańczuk
435948e470
feat(repl): support npm packages ( #16770 )
...
Co-authored-by: David Sherret <dsherret@gmail.com>
2022-12-13 13:53:32 +01:00
Leo Kettmeir
5d9bb8b4b0
feat: support createNew
in Deno.writeFile
( #17023 )
2022-12-13 05:12:49 +01:00
Leo Kettmeir
a2ba573e77
fix: default to "inherit"
for Deno.Command#spawn()
's stdout
& stderr
( #17025 )
2022-12-13 05:12:19 +01:00
David Sherret
8972ebc9cc
fix: always derive http client from cli flags ( #17029 )
...
I'm not sure how to test this. It doesn't seem to have an existing test.
Closes #15921
2022-12-12 21:30:44 -05:00
Bartek Iwańczuk
8c026dab92
feat: improve download progress bar ( #16984 )
...
Co-authored-by: David Sherret <dsherret@gmail.com>
2022-12-12 20:52:10 -05:00
Bartek Iwańczuk
4a17c93088
feat: add --inspect-wait
flag ( #17001 )
...
This commit adds new "--inspect-wait" flag which works similarly
to "--inspect-brk" in that it waits for inspector session to be
established before running code. However it doesn't break on the first
statement of user code, but instead runs it as soon as a session
is established.
2022-12-12 15:33:30 +01:00
Geert-Jan Zwiers
890b065310
feat(cli): support deno bench in the config file ( #16608 )
...
This PR adds the ability to set `include/exclude` fields for `deno
bench` in the configuration file.
2022-12-10 02:30:47 +01:00
sigmaSd
4eb8e875fd
feat(init): Generate main_bench.ts by default ( #16786 )
...
This commit changes "deno init" to generate "main_bench.ts" file
which scaffold two example bench cases.
2022-12-10 00:34:08 +01:00
Bartek Iwańczuk
6794d9fe5d
feat(init): Use jsonc for configuration file ( #17002 )
...
Generate "deno.jsonc" instead of "deno.json" when running "deno init"
subcommand.
2022-12-09 23:55:03 +01:00
David Sherret
653aebfa1a
fix: respect the --quiet
flag in more cases ( #16998 )
2022-12-09 10:54:24 -05:00
Bartek Iwańczuk
cb6700fa5a
unstable: remove Deno.spawn, Deno.spawnSync, Deno.spawnChild APIs ( #16893 )
...
This commit removes three unstable Deno APIs:
- "Deno.spawn()"
- "Deno.spawnSync()"
- "Deno.spawnChild()"
These APIs were replaced by a unified "Deno.Command" API.
2022-12-09 16:43:36 +01:00
David Sherret
6541a0a9fd
refactor: cleanup main.rs ( #16996 )
...
1. Extracts out some code from main.rs
2. Inlines all the `x_command` functions in main.rs
2022-12-09 09:40:48 -05:00