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
Leo Kettmeir
c71e020668
refactor(ext/node): use concrete error types ( #26419 )
2024-10-24 10:45:17 -07: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
Yoshiya Hinosawa
285635daa6
fix(ext/node): map ERROR_INVALID_NAME
to ENOENT
on windows ( #26475 )
...
In libuv on windows, `ERROR_INVALID_NAME` is mapped to `ENOENT`, but it
is mapped to `EINVAL` in our compat implementation, which causes the
issue #24899 .
ref:
d4ab6fbba4/src/win/error.c (L138)
closes #24899
closes #26411
closes #23635
closes #21165
closes #19067
2024-10-23 11:28:04 +09:00
Satya Rohith
f62bb6ff1b
Merge branch 'main' into support_create_connection
2024-10-20 05:52:02 +05:30
Leo Kettmeir
6c4ef11f04
refactor(ext/fetch): use concrete error types ( #26220 )
2024-10-19 01:20:58 +00:00
Nathan Whitaker
1bccf45ecb
fix(ext/node): properly map reparse point error in readlink ( #26375 )
2024-10-18 10:11:06 -07:00
Satya Rohith
f32d070c12
enable websocket tests
2024-10-18 16:18:15 +05:30
Satya Rohith
8c0f6b02c2
chore: make race condition more visible by removing op_node_http_wait_for_connection
2024-10-17 20:53:49 +05:30
Yoshiya Hinosawa
4915f342b0
remove debugs
2024-10-17 12:15:27 +09:00
Satya Rohith
be6a1baa06
Merge remote-tracking branch 'upstream/main' into support_create_connection
2024-10-17 01:32:10 +05:30
Toby Ealden
c5a7f98d82
fix(ext/node): handle http2 server ending stream ( #26235 )
...
Closes #24845
2024-10-15 23:35:10 +05:30
Satya Rohith
881fe46d3f
fix double request initiation
2024-10-15 16:46:09 +05:30
Satya Rohith
d19c5a73e1
wip
2024-10-14 19:28:59 +05:30
Divy Srivastava
dfbf03eee7
perf: use fast calls for microtask ops ( #26236 )
...
Updates deno_core to 0.312.0
2024-10-14 12:31:51 +00:00
Divy Srivastava
bbad7c5922
fix(ext/node): compute pem length (upper bound) for key exports ( #26231 )
...
Fixes https://github.com/denoland/deno/issues/26188
2024-10-14 14:24:26 +05:30
Satya Rohith
9ec31c6714
Merge branch 'main' into support_create_connection
2024-10-08 10:38:39 +05:30
David Sherret
2de4faa483
refactor: improve node permission checks ( #26028 )
...
Does less work when requesting permissions with `-A`
2024-10-04 20:55:41 +01:00
Yoshiya Hinosawa
7471848dc4
refactor: dedupe op_node_http_request_with_conn and op_node_http_request_with_tls_conn
2024-10-03 21:42:51 +09:00
Yoshiya Hinosawa
5e0c89d813
apply the same fix to op_node_http_request_with_tls_conn
2024-10-03 19:22:41 +09:00
Yoshiya Hinosawa
8d41fbc2da
enable a test case 'ClientRequest search params'
2024-10-03 17:58:25 +09:00
Satya Rohith
007b5265b8
fix: support https requests
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-10-03 11:28:23 +05:30
Satya Rohith
32c1278736
feat(ext/node): buffer.transcode() ( #25972 )
...
Closes https://github.com/denoland/deno/issues/25911
2024-10-02 08:23:14 +00:00
Yoshiya Hinosawa
0467865e17
Merge branch 'main' into support_create_connection
2024-10-01 15:50:35 +09:00
David Sherret
fc739dc5eb
refactor: use deno_path_util ( #25918 )
2024-09-28 07:55:01 -04:00
Yoshiya Hinosawa
122cefaed4
fix lint errors
2024-09-26 13:54:09 +09:00
Yoshiya Hinosawa
9c1b39ba2d
clean up debug logs
2024-09-26 12:45:33 +09:00
Divy Srivastava
7d7e541724
fix(ext/node): Fix vm sandbox object panic ( #24985 )
2024-09-24 15:47:13 +05:30
Satya Rohith
f9c1219f7c
wip
2024-09-24 11:01:56 +05:30
Satya Rohith
29fe1768a8
introduce more ops to wait for connection ready
2024-09-24 11:01:56 +05:30
Satya Rohith
821d5a5653
flush buffer once socket is ready
2024-09-24 11:01:56 +05:30
Satya Rohith
c883a72f27
chore(ext/node): remove old ops
2024-09-24 11:01:55 +05:30
Satya Rohith
568cd787cc
feat: op_node_http_request_with_conn
2024-09-24 11:01:55 +05:30
Volker Schlecht
37cedefb4d
fix(ext/node): stub cpu_info() for OpenBSD ( #25807 )
...
Add an implementation of cpu_info() for OpenBSD, that returns a
correctly-sized array. Since Rust's libc bindings for OpenBSD do not
contain all symbols necessary for a full implementation and it is not
planned to add them, this solution at least avoids problems with code
that relies on cpu_info() purely for the size of the returned array to
derive the number of available CPUs.
This addresses https://github.com/denoland/deno/issues/25621
2024-09-23 09:08:16 +05:30
Divy Srivastava
e97f00f6f6
fix(ext/node): support x509 certificates in createPublicKey
( #25731 )
...
Fixes https://github.com/denoland/deno/issues/25681
2024-09-19 19:12:23 +05:30
Luca Casonato
ab1e391e1d
feat(ext/node): add rootCertificates to node:tls ( #25707 )
...
Closes https://github.com/denoland/deno/issues/25604
Signed-off-by: Satya Rohith <me@satyarohith.com>
Co-authored-by: Satya Rohith <me@satyarohith.com>
2024-09-18 21:14:26 +02:00
David Sherret
62e952559f
refactor(permissions): split up Descriptor into Allow, Deny, and Query ( #25508 )
...
This makes the permission system more versatile.
2024-09-16 21:39:37 +01:00
Luca Casonato
81c9e0ba25
fix(ext/crypto): support md4 digest algorithm ( #25656 )
...
Fixes #25646
2024-09-16 11:04:40 +00:00
Yoshiya Hinosawa
ef2d98fe11
fix(ext/node): validate input lengths in Cipheriv
and Decipheriv
( #25570 )
...
addresses the first part of #25279
2024-09-11 13:27:07 +09:00
Nathan Whitaker
be0ba6d84f
fix(ext/node): Rewrite node:v8
serialize/deserialize ( #25439 )
...
Closes #20613 .
Reimplements the serialization on top of the v8 APIs instead of
deno_core. Implements `v8.Serializer`, `v8.DefaultSerializer`,
`v8.Deserializer`, and `v8.DefaultSerializer`.
2024-09-10 21:50:21 +00:00
snek
f9007d3386
feat: require(esm) ( #25501 )
...
implement require(esm) using `op_import_sync` from deno_core.
possible future changes:
- cts and mts
- replace Deno.core.evalContext to optimize esm syntax detection
Fixes: https://github.com/denoland/deno/issues/25487
2024-09-10 20:12:36 +00:00
Divy Srivastava
c4d088863e
fix(inspector): Fix panic when re-entering runtime ops ( #25537 )
...
Mark `op_require_break_on_next_statement` as reentrant and properly
release borrow on the `OpState`. This fixes `BorrowMut` assertions when
running with inspector + op metrics.
Fixes https://github.com/denoland/deno/issues/25515
2024-09-10 08:14:26 +05:30
Yoshiya Hinosawa
186f7484da
fix(ext/node): close upgraded socket when the underlying http connection is closed ( #25387 )
...
This change fixes the handling of upgraded socket from `node:http` module.
In `op_node_http_fetch_response_upgrade`, we create DuplexStream paired
with `hyper::upgrade::Upgraded`. When the connection is closed from the
server, the read result from `Upgraded` becomes 0. However because we
don't close the paired DuplexStream at that point, the Socket object in
JS side keeps alive even after the server closed. That caused the issue
#20179
This change fixes it by closing the paired DuplexStream when the
`Upgraded` stream returns 0 read result.
closes #20179
2024-09-05 13:30:18 +09:00
Divy Srivastava
0e50bb1d4a
fix(ext/node): import RSA JWK keys ( #25267 )
...
Fixes https://github.com/denoland/deno/issues/24129
2024-08-28 20:56:11 +05:30
Divy Srivastava
b9c144df6f
fix(ext/node): export JWK public key ( #25239 )
...
Fixes https://github.com/denoland/deno/issues/18928
Signed-off-by: Divy Srivastava <dj.srivastava23@gmail.com>
2024-08-28 15:03:02 +00:00
Divy Srivastava
553bd7dec3
fix(ext/node): import EC JWK keys ( #25266 )
2024-08-28 19:54:49 +05:30
Divy Srivastava
3394c4df75
fix(ext/node): update aead-gcm-stream to 0.3 ( #25261 )
...
Fixes https://github.com/denoland/deno/issues/25260
Fixes https://github.com/denoland/deno/issues/25254
Fixes https://github.com/denoland/deno/issues/23693
Verified that `web-push` GCM decryption works in the browser. See
`aead-gcm-stream` changes
[here](a9ffd0c07c
)
2024-08-28 18:34:18 +05:30
David Sherret
d8dfe6dc97
perf(ext/node): reduce some allocations in require ( #25197 )
2024-08-26 11:13:39 -04:00