Divy Srivastava
82643857cc
Revert "chore: use kqueue backend of notify on macOS" ( #21039 )
...
Reverts denoland/deno#21028
Reason:
https://github.com/notify-rs/notify/blob/main/notify/src/kqueue.rs#L79-L81
Need to wait for the watcher thread to spawn otherwise we hit flakes
---------
Signed-off-by: Divy Srivastava <dj.srivastava23@gmail.com>
2023-11-01 15:54:27 +00:00
Divy Srivastava
646afdf259
chore: use kqueue backend of notify on macOS ( #21028 )
...
Towards #20996
"macos_fsevent" feature of notify links us to CoreFoundation on macOS.
2023-10-31 16:43:04 +00:00
Divy Srivastava
09204107d8
fix: implement node:tty ( #20892 )
...
Fixes #21012
Closes https://github.com/denoland/deno/issues/20855
Fixes https://github.com/denoland/deno/issues/20890
Fixes https://github.com/denoland/deno/issues/20611
Fixes https://github.com/denoland/deno/issues/20336
Fixes `create-svelte` from https://github.com/denoland/deno/issues/17248
Fixes more reports here:
- https://github.com/denoland/deno/issues/6529#issuecomment-1432690559
- https://github.com/denoland/deno/issues/6529#issuecomment-1522059006
- https://github.com/denoland/deno/issues/6529#issuecomment-1695803570
2023-10-30 15:53:08 +00:00
Aapo Alasuutari
effb5e1ce4
fix(node/buffer): utf8ToBytes should return a Uint8Array ( #20769 )
2023-10-08 11:09:50 +09:00
Hirotaka Tagawa / wafuwafu13
9017e789df
test(node_compat): add test-http-url.parse*
( #20458 )
...
Add `test-http-url.parse*` tests for Node compat.
2023-09-30 10:14:48 +02:00
Bartek Iwańczuk
2a1ba2732e
chore: disable 'test-http-content-length.js` test ( #20344 )
2023-09-04 23:23:01 +02:00
osddeitf
c2547ba039
fix(node/http): correctly send Content-length
header instead of Transfer-Encoding: chunked
( #20127 )
...
Fix #20063 .
2023-08-28 09:32:54 +02:00
Yoshiya Hinosawa
cd2525d4cf
test(ext/node): clean up node:path test cases ( #19610 )
2023-07-05 16:13:34 +09:00
Bartek Iwańczuk
d90a75c036
fix: use proper ALPN protocols if HTTP client is HTTP/1.1 only ( #19303 )
...
Closes https://github.com/denoland/deno/issues/16923
---------
Co-authored-by: crowlkats <crowlkats@toaxl.com>
Co-authored-by: Matt Mastracci <matthew@mastracci.com>
2023-05-29 23:05:45 +02:00
Leo Kettmeir
be59e93220
refactor(node/http): don't use readablestream for writing to request ( #19282 )
...
Refactors the internal usage of a readablestream to write to the
resource directly
---------
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-05-27 15:42:20 +02:00
Yoshiya Hinosawa
26f42a248f
fix(ext/node): add basic node:worker_threads support ( #19192 )
...
This PR restores `node:worker_threads` implementation and test cases
from
[`std@0.175.0/node`](https://github.com/denoland/deno_std/blob/0.175.0/node/worker_threads.ts ).
---------
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-05-23 20:56:29 +02:00
Yoshiya Hinosawa
243d9c846d
fix(ext/node): fix whatwg url formatting ( #19146 )
2023-05-17 14:51:51 +09:00
Leo Kettmeir
867a6d3032
refactor(node): reimplement http client ( #19122 )
...
This commit reimplements most of "node:http" client APIs using
"ext/fetch".
There is some duplicated code and two removed Node compat tests that
will be fixed in follow up PRs.
---------
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-05-17 01:20:32 +02:00
Levente Kurusa
1171c54952
feat(node/crypto): Builtin Diffie-Hellman Groups ( #19137 )
...
Towards #18455
2023-05-16 00:07:58 +02:00
Levente Kurusa
3356173d00
feat(node/crypto): Diffie Hellman Support ( #18943 )
...
Support crypto.DiffieHellman class in ext/node/crypto
2023-05-15 19:41:53 +02:00
Yoshiya Hinosawa
ab88dc2c68
chore(ext/node): removed skipped compat test cases ( #19109 )
2023-05-13 15:26:16 +09:00
Yoshiya Hinosawa
2a0c664840
chore: fix & update node compat config ( #19106 )
2023-05-13 14:49:11 +09:00
Marvin Hagemeister
f1d0f745d3
fix(node): expose channels in worker_threads ( #19086 )
...
This PR ensures that node's `worker_threads` module exports
`MessageChannel`, `MessagePort` and the `BroadcastChannel` API. Fixing
these won't make `esbuild` work, but brings us one step closer 🎉
Fixes #19028 .
2023-05-11 12:32:19 +02:00
Marvin Hagemeister
5fd74bfa1c
feat(node): add Module.runMain()
( #19080 )
...
This PR adds the missing `Module.runMain()` function which is required
for tools like `ts-node`.
Fixes #19033
2023-05-11 00:13:45 +02:00
Yoshiya Hinosawa
63befe9377
fix(ext/node): fix hash.flush ( #18818 )
2023-04-25 11:21:26 +09:00
Bartek Iwańczuk
ebfc75fe8c
test: disable flaky Node test ( #18821 )
...
If we hit a slow runner this test almost always fails.
2023-04-24 22:55:06 +09:00
Levente Kurusa
d137501a63
feat(node/http): implement ClientRequest.setTimeout() ( #18783 )
...
- implement setTimeout with matching semantics of Node
- add the test from Node but leave it turned off because ClientRequest
has no underlying socket
2023-04-22 13:20:00 +02:00
Yoshiya Hinosawa
53c9f5918c
fix(ext/node): improve vm.runInThisContext ( #18767 )
2023-04-19 23:26:16 +09:00
Bartek Iwańczuk
972469d309
tests: disable another flaky test ( #18762 )
...
This test is flaky too, it actually shouldn't be running since it's not
listed in `cli/tests/node_compat/config.jsonc` at all.
2023-04-19 00:10:01 +00:00
Bartek Iwańczuk
edca01c35e
chore: disable flaky Node compat tests ( #18760 )
...
I'm not able to reproduce any of the failures from CI on my machine.
I'm going to disable these tests for now as they are holding us back.
2023-04-19 00:32:21 +02:00