Yoshiya Hinosawa
33017aed88
fix
2024-10-30 00:26:37 +09:00
Yoshiya Hinosawa
d1bd93772e
re-introduce tls-afterConnect workaround
2024-10-30 00:10:47 +09:00
Yoshiya Hinosawa
e75ed2e48b
fix lint
2024-10-29 23:02:35 +09:00
Yoshiya Hinosawa
3a4de2eb82
access to internalRid via kStreamBaseField as it could be swapped to TlsConn in afterConnect of tls.connect
2024-10-29 22:51:42 +09:00
Yoshiya Hinosawa
eaa52272ee
Merge branch 'main' into support_create_connection
2024-10-29 20:25:28 +09:00
Yoshiya Hinosawa
aa2a354190
refactor(init): inline routing in deno init --serve template ( #26595 )
2024-10-29 14:37:21 +09:00
Bartek Iwańczuk
46e5ed1a64
Revert "fix(ext/node): use primordials in ext/node/polyfills/https.ts
( #26323 )" ( #26613 )
...
…s` (#26323 )"
This reverts commit afb33b3c25
.
Reverting because it caused a regression -
https://github.com/denoland/deno/issues/26612 .
Closes https://github.com/denoland/deno/issues/26612 .
2024-10-29 00:41:02 +00:00
Bartek Iwańczuk
484f8ca9c3
fix: provide hints in terminal errors for Node.js globals ( #26610 )
...
Add info/hint for terminal errors related to Node.js globals:
- __filename
- __dirname
- Buffer
- global
- setImmediate
- clearImmediate
Closes https://github.com/denoland/deno/issues/17494
2024-10-29 00:55:51 +01:00
David Sherret
0e641632c3
fix(check): expose more globals from @types/node ( #26603 )
...
Extracted out of https://github.com/denoland/deno/pull/26558
Closes https://github.com/denoland/deno/issues/26578
2024-10-28 17:43:41 -04:00
snek
4e38fbd0a3
fix: report exceptions from nextTick ( #26579 )
...
Fixes: https://github.com/denoland/deno/issues/24713
Fixes: https://github.com/denoland/deno/issues/25855
2024-10-28 18:16:43 +01:00
David Sherret
f61af864df
fix(compile): regression handling redirects ( #26586 )
...
Closes https://github.com/denoland/deno/issues/26583
2024-10-28 09:31:58 -04:00
Marvin Hagemeister
5389972ba5
fix(npm): match npm bearer token generation ( #26544 )
...
Spend some time stepping through the npm client code and noticed that
the bearer token was different from ours. They do some double encoding
and @dsherret helped me in matching the encoding behavior.
Fixes https://github.com/denoland/deno/issues/26033
2024-10-28 12:08:51 +01:00
David Sherret
3a306c450c
fix: do not panic when failing to write to http cache ( #26591 )
...
Closes https://github.com/denoland/deno/issues/26189
Closes https://github.com/denoland/deno/issues/26575
2024-10-28 02:03:30 +00:00
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