David Sherret
e661591e7c
chore: fix flaky '[node/http] send request with non-chunked body' test ( #23818 )
...
https://github.com/denoland/deno/actions/runs/9086887959/job/24973565321
2024-05-15 08:37:46 -04:00
Marvin Hagemeister
e389917535
fix(node): stub AsyncResource.emitDestroy()
( #23802 )
...
<!--
Before submitting a PR, please read
https://docs.deno.com/runtime/manual/references/contributing
1. Give the PR a descriptive title.
Examples of good title:
- fix(std/http): Fix race condition in server
- docs(console): Update docstrings
- feat(doc): Handle nested reexports
Examples of bad title:
- fix #7123
- update docs
- fix bugs
2. Ensure there is a related issue and it is referenced in the PR text.
3. Ensure there are tests that cover the changes.
4. Ensure `cargo test` passes.
5. Ensure `./tools/format.js` passes without changing files.
6. Ensure `./tools/lint.js` passes.
7. Open as a draft PR if your work is still in progress. The CI won't
run
all steps, but you can add '[ci]' to a commit message to force it to.
8. If you would like to run the benchmarks on the CI, add the 'ci-bench'
label.
-->
Fixes https://github.com/denoland/deno/issues/23397
2024-05-15 00:42:43 +02:00
Bartek Iwańczuk
03a76f33ad
fix(ext/node): process.uptime works without this ( #23786 )
...
Fixes https://github.com/denoland/deno/issues/23761
Co-authored-by: Satya Rohith <me@satyarohith.com>
2024-05-12 23:38:22 +00:00
Satya Rohith
56ba7f3c23
fix(ext/node): support delete process.env.var ( #23647 )
...
Closes https://github.com/denoland/deno/issues/23641
2024-05-02 06:40:22 +00:00
Satya Rohith
0156f82e73
fix(ext/node): support multiple message listeners on MessagePort ( #23600 )
...
Closes https://github.com/denoland/deno/issues/23561
2024-04-30 16:59:39 +05:30
Divy Srivastava
b02ffec37c
fix(ext/node): exporting rsa public keys ( #23596 )
...
Initial support for exporting rsa public KeyObject.
Current assumption is that RSA keys are stored in pkcs1 der format in
key storage.
Ref https://github.com/denoland/deno/issues/23471
Ref https://github.com/denoland/deno/issues/18928
Ref https://github.com/denoland/deno/issues/21124
2024-04-29 19:16:38 +05:30
Bartek Iwańczuk
b424959d3e
fix(ext/node): worker_threads copies env object ( #23536 )
...
Most common argument to `env` option for `worker_threads.Worker` will be
`process.env`.
In Deno `process.env` is a `Proxy` which can't be cloned using
structured clone algorithm.
So to be safe, I'm creating a copy of actual object before it's sent to
the worker thread.
Ref #23522
2024-04-24 16:17:28 +00:00
Bartek Iwańczuk
14ae4f897f
fix(ext/node): define http.maxHeaderSize ( #23479 )
...
Closes https://github.com/denoland/deno/issues/23432
2024-04-21 07:31:23 +05:30
Divy Srivastava
c0f40ed81a
fix(ext/node): implement process.kill in Rust ( #23130 )
...
Closes https://github.com/denoland/deno/issues/23056
2024-04-20 18:55:07 +05:30
Divy Srivastava
04c6785fae
fix(ext/node): cp
into non-existent parent directory ( #23469 )
...
Fixes https://github.com/denoland/deno/issues/20604
2024-04-20 11:41:27 +00:00
Divy Srivastava
e0554ac4a2
fix(ext/node): Support env
option in worker_thread ( #23462 )
...
Fixes https://github.com/denoland/deno/issues/23455
2024-04-20 09:18:10 +05:30
Matt Mastracci
5e2a747685
fix(ext/node): Correctly send ALPN on node TLS connections ( #23434 )
...
Landing work from #21903 , plus fixing a node compat bug.
We were always sending the HTTP/2 ALPN on TLS connections which might
confuse upstream servers.
Changes:
- Configure HTTP/2 ALPN when making the TLS connection from the HTTP/2
code
- Read the `ALPNProtocols` property from the TLS connection options
rather than the deno `alpnProtocols` field
- Add tests
Prereq for landing Deno.serveHttp on Deno.serve: removing older HTTP
servers from the codebase.
2024-04-18 09:37:47 -06:00
Bartek Iwańczuk
760d64bc6b
fix(ext/node): worker_threads.receiveMessageOnPort doesn't panic ( #23406 )
...
Follow up to https://github.com/denoland/deno/pull/23386 .
Instead of using async `recv()` method, it was replaced
with a poll based function that doesn't hold onto
RefCell borrow across await point.
Fixes https://github.com/denoland/deno/issues/23362
2024-04-16 18:41:03 +00:00
Bartek Iwańczuk
0b8d7d1d4b
fix(ext/node): panic on 'worker_threads.receiveMessageOnPort' ( #23386 )
...
Closes https://github.com/denoland/deno/issues/23362
Previously we were panicking if there was a pending read on a
port and `receiveMessageOnPort` was called. This is now fixed
by cancelling the pending read, trying to read a message and
resuming reading in a loop.
2024-04-16 01:06:39 +02:00
Divy Srivastava
f36a8951a4
fix(ext/node): add stub for AsyncResource#asyncId() ( #23372 )
...
Ref https://github.com/denoland/deno/issues/23263
2024-04-15 12:54:42 +00:00
Divy Srivastava
402d59eea9
fix(ext/node): promise rejection in VM contexts ( #23305 )
...
Fixes https://github.com/denoland/deno/issues/23297
`docusaurus build` works!
```
$ deno run -A repro.js
fish: Job 1, 'deno run -A ../../littledivy/fs…' terminated by signal SIGSEGV (Address
boundary error)
$ denod run -A repro.js
error: Uncaught (in promise) Error: rejected
```
Depends on https://github.com/denoland/deno_core/pull/693
2024-04-13 17:02:07 +05:30
Divy Srivastava
fad12b7c2e
fix(ext/node): node:vm
contexts ( #23202 )
...
Implement contextified objects in `node:vm`
Fixes https://github.com/denoland/deno/issues/23186
Fixes https://github.com/denoland/deno/issues/22395
Fixes https://github.com/denoland/deno/issues/20607
Fixes https://github.com/denoland/deno/issues/18299
Fixes https://github.com/denoland/deno/issues/19395
Fixes https://github.com/denoland/deno/issues/18315
Fixes https://github.com/denoland/deno/issues/18319
Fixes https://github.com/denoland/deno/issues/23183
2024-04-09 21:24:25 +05:30
Yoshiya Hinosawa
2670c1d580
fix(ext/node): out-of-order writes of fs.createWriteStream ( #23244 )
...
This PR follows this fix (https://github.com/nodejs/node/pull/52005 ) in
Node.js.
Stream's construct callback happens one tick earlier by this change, and
it prevents the reordering of the first few chunks in
`node:stream.Writable`
closes #20284
2024-04-08 12:47:34 +09:00
Divy Srivastava
ee4bfe1600
fix(ext/node): hostname is valid IPv4 addr ( #23243 )
...
Fixes `docusaurus serve`
2024-04-05 17:42:26 +05:30
Divy Srivastava
f4b11db072
fix(ext/node): Add "module" to builtinsModule ( #23242 )
...
Fixes https://github.com/denoland/deno/issues/22731
2024-04-05 11:38:00 +00:00
Bartek Iwańczuk
778b0b8eb5
fix(ext/node): polyfill node:domain module ( #23088 )
...
Closes https://github.com/denoland/deno/issues/16852
---------
Co-authored-by: Nathan Whitaker <nathan@deno.com>
2024-04-03 21:37:10 +02:00
Alex Yang
8eb2b6c61f
feat: improve AsyncLocalStorage api ( #23175 )
...
Fixes: https://github.com/denoland/deno/issues/23174
2024-04-02 22:53:29 +00:00
Satya Rohith
4d66ec91c1
fix(ext/node): MessagePort works ( #22999 )
...
Closes https://github.com/denoland/deno/issues/22951
Closes https://github.com/denoland/deno/issues/23001
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2024-04-02 17:06:09 +05:30
Asher Gomez
858abbe745
chore: update std
submodule to 0.221.0 ( #23112 )
2024-04-02 12:57:05 +11:00
Divy Srivastava
bca0fe1cde
fix(ext/node): support stdin: "inherit" in node:child_process ( #23110 )
...
Fixes https://github.com/denoland/deno/issues/23051
2024-03-28 19:44:42 +05:30
David Sherret
ac4a5f74b8
feat: TypeScript 5.4 ( #23086 )
...
Fork PR: https://github.com/denoland/TypeScript/pull/10
Closes #23080
2024-03-26 18:52:57 -04:00
Divy Srivastava
ec9342f95a
fix(ext/node): handle null
in stdio array ( #23048 )
...
Fixes https://github.com/denoland/deno/issues/23045
2024-03-24 06:55:53 +01:00
Divy Srivastava
43be97923f
fix(ext/node): handle KeyObject in prepareAsymmetricKey
( #23026 )
...
Fixes https://github.com/denoland/deno/issues/20938
2024-03-22 19:28:28 +05:30
Divy Srivastava
a90a6f3b29
chore: ignore flaky brotli test ( #23020 )
...
Closes https://github.com/denoland/deno/issues/22898
2024-03-21 17:01:11 +00:00
Divy Srivastava
1f60b8af97
fix(ext/node): ECDH.publicKey() point encoding ( #23013 )
2024-03-21 14:11:54 +05:30
Asher Gomez
9593cf2852
chore(ext/io): remove use of deprecated Deno.writeSync()
( #22872 )
2024-03-20 10:39:25 -07:00
Satya Rohith
fb0744f4e1
fix(ext/node): spread args in setImmediate ( #22998 )
...
Closes https://github.com/denoland/deno/issues/22997
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2024-03-20 07:52:50 +00:00
Divy Srivastava
724cdcec7b
fix(ext/node): implement EventEmitterAsyncResource ( #22994 )
...
Fixes #22729
2024-03-20 11:20:18 +05:30
Divy Srivastava
5b2f689f08
fix(ext/node): FsWatcher ref and unref ( #22987 )
...
Fixes https://github.com/denoland/deno/issues/22973
---------
Co-authored-by: Satya Rohith <me@satyarohith.com>
2024-03-20 11:19:53 +05:30
Satya Rohith
737adbe1b0
fix(ext/node): add process.setSourceMapsEnabled noop ( #22993 )
...
Closes https://github.com/denoland/deno/issues/22992
2024-03-20 05:26:41 +00:00
mash-graz
0d43a63636
fix(ext/node): worker_threads ESM handling ( #22841 )
...
Fixes #22840
Fixes #22964
2024-03-20 09:12:22 +05:30
Asher Gomez
b0c687c1d2
fix(ext/node): support Diffie-Hellman key type in crypto.createPrivateKey()
( #22984 )
...
Towards #22489
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-03-19 11:11:01 +05:30
Divy Srivastava
bd6938ac70
fix(node): implement v8 serialize and deserialize ( #22975 )
...
Fixes https://github.com/denoland/deno/issues/22971
2024-03-18 13:48:55 +05:30
Satya Rohith
becdad531f
fix(ext/node): support public key point encoding in ECDH.generateKeys() ( #22976 )
...
Towards https://github.com/denoland/deno/issues/22921
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2024-03-18 13:20:10 +05:30
Divy Srivastava
9c5ddf7c69
fix(ext/node): pass normalized watchFile handler to StatWatcher ( #22940 )
...
Fixes https://github.com/denoland/deno/issues/22939
2024-03-16 09:44:47 +05:30
Bartek Iwańczuk
92576fdcfd
fix(ext/node): support MessagePort in WorkerOptions.workerData
( #22950 )
...
This commit fixes passing `MessagePort` instances to
`WorkerOptions.workerData`.
Before they were not serialized and deserialized properly when spawning
a worker thread.
Closes https://github.com/denoland/deno/issues/22935
2024-03-16 01:59:18 +01:00
Divy Srivastava
b00f076017
fix(ext/node): Support private EC key signing ( #22914 )
...
Fixes https://github.com/denoland/deno/issues/18972
Support for web-push VAPID keys & jws signing
- Fixes EC keygen to return raw private key and uncompressed public key
point.
- Support for `EC PRIVATE KEY`
2024-03-14 14:53:50 +01:00
Divy Srivastava
9c348a0acd
fix(ext/node): support spki
format in createPublicKey ( #22918 )
2024-03-14 14:39:46 +01:00
Divy Srivastava
cf3c6f9b08
fix(ext/node): crypto.getCipherInfo() ( #22916 )
...
Stub implementation of getCipherInfo(). Good enough for most cases.
Note: We do not support all OpenSSL ciphers (likely never will)
Fixes https://github.com/denoland/deno/issues/21805
2024-03-14 19:00:29 +05:30
Divy Srivastava
10e592f954
fix(ext/node): DH (dhKeyAgreement
) support for createPrivateKey
( #22891 )
...
Ref https://github.com/denoland/deno/pull/22511
2024-03-14 08:56:07 +05:30
Nayeem Rahman
f377fce640
feat(node): implement fs.statfs() ( #22862 )
2024-03-13 10:57:59 +00:00
Asher Gomez
5cfa03ceca
fix(ext/node): initial crypto.createPublicKey()
support ( #22509 )
...
Closes #21807
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2024-03-13 08:17:23 +00:00
Asher Gomez
6e6c316c9d
feat(ext/node): add more named curves in crypto.generateKeyPair[Sync]()
( #22882 )
...
Towards fixing #21761
2024-03-13 12:14:51 +05:30
Divy Srivastava
4a88695563
fix(ext/node): flush brotli decompression stream ( #22856 )
...
Fixes https://github.com/denoland/deno/issues/22259
The decompressed input size was not restored because of improper
flushing of the CBrotliDecompressStream state.
2024-03-12 17:23:31 +05:30
Bartek Iwańczuk
47f318230f
test(ext/node): add worker_threads test for SharedArrayBuffer ( #22850 )
...
Follow up to https://github.com/denoland/deno/pull/22815
2024-03-11 22:59:42 +00:00