Satya Rohith
862e6b37a6
Merge branch 'main' into support_create_connection
2024-10-27 23:55:59 +05:30
Satya Rohith
722363b6f3
refactor: use concrete error types
2024-10-27 23:54:22 +05:30
Satya Rohith
2ee82caba1
refactor: remove public rid property
2024-10-27 23:31:49 +05:30
familyboat
c314b2d857
fix(ext/node): add path to fs.stat
and fs.statSync
error ( #26037 )
2024-10-27 08:34:35 +05:30
Bartek Iwańczuk
05868cc236
fix(watch): don't panic on invalid file specifiers ( #26577 )
...
Removes an unwrap that falsely assumed the specifier is a valid
file path.
Fixes https://github.com/denoland/deno/issues/26209
2024-10-27 08:30:19 +05:30
Meir Blachman
ab3d02a081
docs(readme): Add winget instructions ( #25136 )
...
Signed-off-by: Meir Blachman <meirblachman@gmail.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-10-26 23:31:44 +00:00
Chris Veness
75f00eecb0
fix(cli): Make --watcher CLEAR_SCREEN clear scrollback buffer as well as visible screen ( #25997 )
...
The --watch option should clear the screen scrollback buffer as well as
the screen itself.
On Ubuntu (22.04 Jammy) the 'clear' command generates
"\x1B[H\x1B[2J\x1B[3J"; that is:
- \E[H - cursor home
- \E[2J - clear entire screen
- \E[3J - clear entire screen & scrollback buffer.
By contrast, Deno defined CLEAR_SCREEN as "\x1B[2J\x1B[1;1H", which
fails to clear the scrollback buffer.
The "\E[H\E[2J\E[3J" sequence works on MacOS (Sonoma) (using printf);
I'm not able to test on Windows.
Closes https://github.com/denoland/deno/issues/26514
2024-10-27 00:12:40 +02:00
Mayank Kumar
793b155cd3
fix(ext/node): use primordials in ext\node\polyfills\internal\crypto\_randomInt.ts ( #26534 )
...
Towards #24236
2024-10-26 19:42:14 +02:00
David Sherret
f0f476e584
perf: pass transpiled module to deno_core as known string ( #26555 )
2024-10-26 13:41:09 -04:00
Nayeem Rahman
d92d2fe9b0
fix(lsp): make missing import action fix infallible ( #26539 )
2024-10-25 21:52:50 +01:00
Nathan Whitaker
ec968aa5ae
fix(install): cache json exports of JSR packages ( #26552 )
...
Fixes https://github.com/denoland/deno/issues/26509 .
Ended up being a `deno_graph` bug causing the error to surface. This PR
updates `deno_graph` to pick up the fix and reverts the temporary
workaround that skipped JSON exports.
2024-10-25 20:19:03 +00:00
David Sherret
a01edb394d
fix(upgrade): stop running deno lsp
processes on windows before attempting to replace executable ( #26542 )
2024-10-25 19:58:28 +00:00
David Sherret
e70341e65e
fix(check): ignore resolving jsxImportSource
when jsx is not used in graph ( #26548 )
2024-10-25 17:56:40 +00:00
David Sherret
4626b11d03
fix(install): regression - do not panic when config file contains \r\n newlines ( #26547 )
...
This is specifically for `deno install`/`deno add` commands.
* https://github.com/dprint/jsonc-parser/pull/49
Closes https://github.com/denoland/deno/issues/26543
2024-10-25 13:37:26 -04:00
Nayeem Rahman
38c7af4565
feat(lsp): "typescript.preferences.preferTypeOnlyAutoImports" setting ( #26546 )
2024-10-25 18:35:09 +01:00
Bartek Iwańczuk
730331622e
chore: forward v2.0.3 commit to main ( #26535 )
...
Forwarding v2.0.3 commit to `main`
Co-authored-by: denobot <33910674+denobot@users.noreply.github.com>
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
2024-10-25 09:57:40 -04:00
Bartek Iwańczuk
cead8af104
build: use 'fs' feature of 'nix' crate in ext/fs ( #26533 )
...
Hot-fix to unblock `v2.0.3` release
2024-10-25 12:53:34 +02:00
Satya Rohith
5b4d328624
remove stale logs
...
Signed-off-by: Satya Rohith <me@satyarohith.com>
2024-10-25 14:40:17 +05:30
Satya Rohith
85f39372d1
Revert "remove npm agent code"
...
This reverts commit 7cf82b7af4
.
2024-10-25 14:39:43 +05:30
Satya Rohith
7cf82b7af4
remove npm agent code
...
Signed-off-by: Satya Rohith <me@satyarohith.com>
2024-10-25 14:21:58 +05:30
Yoshiya Hinosawa
8e55dab349
avoid startTls workaround
2024-10-25 17:06:01 +09:00
Yoshiya Hinosawa
2b2d9d9be2
add comment
2024-10-25 15:18:19 +09:00
Yoshiya Hinosawa
91904db2a7
remove unnecessary if check
2024-10-25 15:18:03 +09:00
Yoshiya Hinosawa
cb8cfc8fe3
cancel unnecessary changes in tests
2024-10-25 15:02:47 +09:00
Yoshiya Hinosawa
795c093135
fmt
2024-10-25 14:47:35 +09:00
Yoshiya Hinosawa
9c09c1d889
workaround for https request from make-fetch-happen (@npmcli/agent)
2024-10-25 14:43:54 +09:00
Yoshiya Hinosawa
d777191e33
remove workaround using linsterCount as it didn't work.
...
Instead use workaround reading callstack in `connect()` call and
pause the socket when it's from @npmcli/agent. This prevents the
undesirable initial read of the socket.
2024-10-25 13:06:28 +09:00
Nathan Whitaker
0060e74779
fix(install): don't cache json exports of JSR packages (for now) ( #26530 )
...
Temporary fix for #26509 , so people don't get errors.
2024-10-24 23:46:48 +00:00
David Sherret
e162306247
chore: remove print debugging from test server ( #26529 )
...
Accidentally added in https://github.com/denoland/deno/pull/26473/files
2024-10-24 22:06:17 +00:00
Nicola Bovolato
8dd6177c62
fix(ext/node): refactor http.ServerResponse into function class ( #26210 )
...
While testing, I found out that light-my-request relies on
`ServerResponse.connection`, which is deprecated, so I added that and
`socket`, the non deprecated property.
It also relies on an undocumented `_header` property, apparently for
[raw header
processing](https://github.com/fastify/light-my-request/blob/v6.1.0/lib/response.js#L180-L186 ).
I added it as an empty string, feel free to provide other approaches.
Fixes #19901
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-10-25 00:02:26 +02:00
Bartek Iwańczuk
fd8bf08271
bench: remove http benchmarks ( #26484 )
...
These benchmarks run on GitHub Actions and are extremely noisy, thus
not providing much value.
2024-10-24 23:19:58 +02:00
Bartek Iwańczuk
09e36d41b0
fix: add 'fmt-component' to unstable features in schema file ( #26526 )
...
Closes https://github.com/denoland/deno/issues/26510
2024-10-24 19:55:38 +00:00
David Sherret
eedf243b5e
perf(compile): pass module source data from binary directly to v8 ( #26494 )
...
This changes denort to pass a static reference of the moude source bytes found in the binary to v8 instead of copying it.
2024-10-24 19:48:48 +00:00
Bartek Iwańczuk
ea641897c9
fix(fmt): --ext flag requires to pass files ( #26525 )
...
To avoid situations like described in
https://github.com/denoland/deno/issues/26402
using `deno fmt` with `--ext` flag now requires to explicitly specify
list of files (or globs) to format.
Closes https://github.com/denoland/deno/issues/26402
2024-10-24 21:22:36 +02:00
Marvin Hagemeister
5f0bb3c6f4
fix: .npmrc
settings not being passed to install/add command ( #26473 )
...
We weren't passing the resolved npmrc settings to the install commands.
This lead us to always fall back to the default registry url instead of
using the one from npmrc.
Fixes https://github.com/denoland/deno/issues/26139
Fixes https://github.com/denoland/deno/issues/26033
Fixes https://github.com/denoland/deno/issues/25924
Fixes https://github.com/denoland/deno/issues/25822
Fixes https://github.com/denoland/deno/issues/26152
---------
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-10-24 20:03:56 +02:00
Leo Kettmeir
c71e020668
refactor(ext/node): use concrete error types ( #26419 )
2024-10-24 10:45:17 -07:00
Bartek Iwańczuk
b063cfecfe
Revert "fix(runtime): send ws ping frames from inspector server (#263… ( #26513 )
2024-10-24 18:43:24 +01:00
Yoshiya Hinosawa
8ece841314
support once listener
2024-10-25 01:12:59 +09:00
Yoshiya Hinosawa
ee4c391886
fix tls_test.ts. Now it needs some listener to cause initial read
2024-10-25 00:32:42 +09:00
Yoshiya Hinosawa
408e7e545d
Revert "Looks like specs::npm::lifecycle_scripts::node_gyp is still an issue"
...
This reverts commit da8cf18a28
.
2024-10-25 00:29:35 +09:00
Yoshiya Hinosawa
c47898e2b1
A potential fix for @npmcli/agent
issue
...
If there's no listener for reading events to socket, then
do not eagerly start reading the TcpConn.
2024-10-25 00:17:16 +09:00
Nayeem Rahman
9c80ddaf93
fix(config): schemas for lint rule and tag autocompletion ( #26515 )
2024-10-24 16:03:46 +01:00
Marvin Hagemeister
ef53ce3ac4
fix(node/util): support array formats in styleText
( #26507 )
...
We missed adding support for an array of formats being passed to
`util.styleText`.
Fixes https://github.com/denoland/deno/issues/26496
2024-10-24 11:46:51 +02:00
snek
79a3ad2b95
feat: support node-api in denort ( #26389 )
...
exposes node-api symbols in denort so that `deno compile` can run native
addons.
2024-10-24 09:13:54 +02:00
Yoshiya Hinosawa
c1054b88b2
Merge branch 'main' into support_create_connection
2024-10-24 14:36:55 +09:00
Nathan Whitaker
27df42f659
fix(ext/node): cancel pending ipc writes on channel close ( #26504 )
...
Fixes the issue described in
https://github.com/denoland/deno/issues/23882#issuecomment-2423316362 .
The parent was starting to send a message right before the process would
exit, and the channel closed in the middle of the write. Unlike with
reads, we weren't cancelling the pending writes, which resulted in a
`Broken pipe` error surfacing to the user.
2024-10-24 04:50:35 +00:00
Nathan Whitaker
7c57105cc4
fix(ext/node): only set our end of child process pipe to nonblocking mode ( #26495 )
...
Fixes playwright on linux, as reported in
https://github.com/denoland/deno/issues/16899#issuecomment-2378268454 .
The issue was that we were opening the socket in nonblocking mode, which
meant that subprocesses trying to use it would get a `EWOULDBLOCK` error
(unexpectedly). The fix here is to only set nonblocking mode on our end
(which we need to use asynchronously)
2024-10-23 21:13:30 -07:00
Divy Srivastava
fa49fd404b
fix(ext/ffi): return u64/i64 as bigints from nonblocking ffi calls ( #26486 )
...
Fixes https://github.com/denoland/deno/issues/25194
2024-10-24 09:41:38 +05:30
Nathan Whitaker
6d587cbfc8
fix(install): cache all exports of JSR packages listed in deno.json
( #26501 )
...
Fixes #26498 .
This was a sort of intentional decision originally, as I wanted to avoid
caching extra files that may not be needed. It seems like that behavior
is unintuitive, so I propose we cache all of the exports of listed jsr
packages when you run a bare `deno install`.
2024-10-23 20:12:52 -07:00
Nathan Whitaker
69e1d7a4ed
fix(install): cache type only module deps in deno install
( #26497 )
...
Fixes https://github.com/denoland/deno/issues/26180 .
2024-10-23 15:01:45 -07:00