Meghan Denny
8528e9c670
make node:fs.ReadableStream and node:stream.NativeReadable constructor functions ( #10943 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-05-09 17:18:43 -07:00
Jarred Sumner
28b5a90823
Fixes missing argument in signal events ( #10940 )
2024-05-08 23:32:11 -07:00
Jarred Sumner
75420ba12a
Implement process.hasUncaughtExceptionCaptureCallback() ( #10937 )
2024-05-08 19:51:39 -07:00
Meghan Denny
93c0a37ec2
brotli: make sure stream encode on large inputs works as expected ( #10936 )
...
Co-authored-by: nektro <nektro@users.noreply.github.com >
2024-05-08 18:28:06 -07:00
Georgijs
c378febf5b
Implement process.on("uncaughtException", ...) ( #10902 )
...
Co-authored-by: Georgijs Vilums <=>
Co-authored-by: gvilums <gvilums@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-05-08 17:38:31 -07:00
Zack Radisic
4b581b011c
feat: Add cp builtin to shell for Windows ( #10174 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
Co-authored-by: zackradisic <zackradisic@users.noreply.github.com >
2024-05-08 17:01:00 -07:00
Meghan Denny
1589a1230d
Revert "Align arguments of connect() in node:tls and node:net to Node ( #10854 )" ( #10908 )
2024-05-07 20:33:42 -07:00
Georgijs
d4db29c164
Fix fd offset handling in ReadStream ( #10883 )
...
Co-authored-by: Georgijs Vilums <=>
Co-authored-by: gvilums <gvilums@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-05-07 16:05:48 -07:00
Henrik Storck
6217d78567
fix: Align arguments of connect() in node:tls and node:net to Node ( #10870 )
...
Co-authored-by: dave caruso <me@paperdave.net >
2024-05-07 15:03:38 -07:00
Meghan Denny
4970ffc3a4
node:http: add agent getter to ClientRequest ( #10878 )
2024-05-06 23:05:43 -07:00
Meghan Denny
1da810adc1
node:zlib: Brotli ( #10722 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-05-06 22:00:04 -07:00
Georgijs
7bfcc2c9e3
support onread in net ( #10753 )
...
Co-authored-by: Georgijs Vilums <=>
Co-authored-by: gvilums <gvilums@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-05-04 20:35:28 -07:00
Ashcon Partovi
541744e583
Improve node:inspector stubs ( #10807 )
2024-05-03 19:44:30 -07:00
Georgijs
ec6110e7e3
allow connecting a socket again after its connection was closed ( #10781 )
...
Co-authored-by: Georgijs Vilums <=>
Co-authored-by: gvilums <gvilums@users.noreply.github.com >
2024-05-02 20:36:58 -07:00
Ciro Spaciari
79c7abe595
fix(server) handle ignored body and node:http destroy ( #10268 )
2024-05-01 16:18:35 -07:00
Meghan Denny
23e4f609bf
Revert "node:fs.readdir: should not fail even if folder contains self-referential symlinks" ( #10750 )
2024-05-01 14:59:01 -07:00
Meghan Denny
bd632464a0
node:fs.readdir: should not fail even if folder contains self-referential symlinks ( #10679 )
2024-05-01 13:25:47 -07:00
Jarred Sumner
efd4e15f4c
Deflake http2 tests ( #10682 )
2024-04-30 13:50:30 -03:00
Meghan Denny
74c6bd4197
node:fs.fdatasync: include fd in Error when thrown ( #10678 )
2024-04-29 22:35:09 -07:00
Meghan Denny
a78db0b8ae
test: node:http: don't hardcode this value ( #10671 )
2024-04-29 19:18:42 -07:00
Jarred Sumner
b42f5227e3
Deflake fs.watchFile tests ( #10673 )
2024-04-29 19:15:53 -07:00
Jarred Sumner
3970339483
Use error handling callback in more places, emit 1015 when WSS TLS handshaking fails, micro-optimize ServerWebSocket, fix bug in util.inspect exceptions ( #10633 )
2024-04-29 13:57:23 -07:00
Dylan Conway
c7aed7e0a3
fix node-module-module.test.js on windows ( #10620 )
2024-04-28 16:54:47 -07:00
Jarred Sumner
e58d67b468
Fixes #10588 & upgrade WebKit ( #10596 )
2024-04-28 01:10:52 -07:00
Meghan Denny
adc631c9ef
fix node:http events regression and add another test ( #10566 )
2024-04-27 00:53:51 -07:00
dave caruso
a52dd7853d
final steps to getting dd-trace to work ( #10568 )
2024-04-27 00:07:44 -07:00
Meghan Denny
8280defc30
node:http: preserve this value for onListen callback ( #10533 )
2024-04-26 18:42:29 -07:00
Jarred Sumner
609ef6a8ad
Fix DNS lookup not draining microtasks ( #10561 )
2024-04-26 18:42:18 -07:00
Meghan Denny
b257a30977
node:fs: fix arg parsing of readSync ( #10527 )
2024-04-25 20:49:17 -07:00
dave caruso
006575a0f1
watcher: major refactor to use Maybe types for better error reporting ( #10492 )
2024-04-25 18:44:11 -07:00
Georgijs
9ba1181215
fix child-process-exec test on windows ( #10522 )
...
Co-authored-by: gvilums <gvilums@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-04-25 17:58:12 -07:00
Meghan Denny
a64554bba6
node:http.request should emit events in the right order ( #10447 )
...
* node:http.request should emit events in the right order
* Apply formatting changes
* remove runOnNextTick alias
* make private event a symbol
* clean test
* fix regressions and add more tests
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
2024-04-25 00:07:54 -07:00
dave caruso
e792bbdf5f
fix: overriding self.postMessage should not impact worker_threads.parentPort ( #10496 )
...
* fix a bug in worker
* remove old
2024-04-24 22:14:37 -07:00
Meghan Denny
e3689e7e83
node:crypto: add blake2b512, sha512-224, sha3-* ( #10383 )
...
* node:crypto: add blake2b512, sha512-224, sha3-*
* update submodule
* flesh out rest of api
* remove new bun.newCatchable
* add SHA512_224 to HashClasses
* remove SHA512_224 js class
* better allocation
* remove memcpy in path where buffer is provided to us
* add back benchmark
* move zig crypto things into specific struct
* Apply formatting changes
* centralize algorithm definitions into one spot
* rsa-256 was deleted
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
2024-04-23 19:35:27 -07:00
Meghan Denny
2abe6e7c3f
node:child_process: allow passing stdin,stdout,stderr to spawn ( #10451 )
...
* node:child_process: allow passing stdin,stdout,stderr to spawn
* this doesnt actually need to be limited to 0,1,2
* Apply formatting changes
* fix stream guards
* undo process internals change
* wrap check in function for better clarity
* lazy load node:fs more
---------
Co-authored-by: nektro <nektro@users.noreply.github.com >
2024-04-23 17:03:11 -07:00
Meghan Denny
ff624147ad
existsSync should never throw ENAMETOOLONG ( #10446 )
...
* existsSync should never throw ENAMETOOLONG
* undo PathLike change and use better guard
* Apply formatting changes
* await promise
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
2024-04-23 15:33:37 -07:00
Jarred Sumner
30f4090571
Fix flaky test
2024-04-20 21:30:05 -07:00
Dylan Conway
e6d8391e00
fix(windows): revert thread naming code ( #10394 )
2024-04-20 10:56:05 -07:00
Ciro Spaciari
e0f583df75
feat(SNI) Bun.serve/tls ( #10364 )
...
* add SNI support
* add some Bun.serve tests
* more tests
* wip move addServername to
* move addServerName
* clean
* fix types
* cleanup
* make TS happy
* opsie revert back
* version this
* internals
* opsie
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-04-19 17:11:05 -07:00
Georgijs
fdcc844027
fix path resolution for writeFile in nodefs ( #10179 )
...
* fix path resolution for writeFile in nodefs
* add test
* [autofix.ci] apply automated fixes
* use force copy
* fix build
* fix test on windows
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-04-15 05:02:09 -07:00
Ciro Spaciari
74d91f6b51
feat(SSL_renegociate) ( #10256 )
...
* allow client renegotiation and allow server renegotiation with limits matching nodejs behavior
* wip before the refactoring and context separation
* investigate if BoringSSL can send a SSL_renegotiate request or only accept
* format-off
* option to disable server renegotiation
* allow tls options on https
* dead_socket when connectError
* propagate cert error
* test
* move the logic to the right place
* cleanup
* Update test/js/node/tls/renegotiation.test.ts
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Georgijs <48869301+gvilums@users.noreply.github.com >
2024-04-15 05:00:41 -07:00
Jarred Sumner
9f81a6268e
Fixes #10259 ( #10260 )
2024-04-14 03:07:18 -07:00
Ciro Spaciari
4627af5893
fix(stream) fix http body-stream sending duplicate data ( #10221 )
...
* some fixes
* cleanup
* more complete test
* fix test + use same server
* opsie
* incremental steps
2024-04-12 19:58:13 -07:00
Georgijs
472bd6c7de
Allow fs.close with no callback ( #10229 )
...
* allow fs.close to only take one argument
* add test
* fix tests on windows
2024-04-12 17:11:58 -07:00
Georgijs
22d6227a3a
fix wrong truncation on fs.writeFileSync with fd argument ( #10225 )
...
* fix wrong truncate
* close fd in test
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-04-12 13:02:24 -07:00
Meghan Denny
7d673dd7d8
node:child_process: fix propagation of windowsHide and windowsVerbatimArguments option ( #10193 )
2024-04-11 20:24:47 -07:00
Jarred Sumner
f5c8914c8a
Re-sync URL from WebKit + set ERR_MISSING_ARGS ( #10129 )
...
* Update URL from WebKit
* Set `ERR_MISSING_ARGS` code on all Error objects from C++
* Fix the `code`
* [autofix.ci] apply automated fixes
* Micro optimize URL
* [autofix.ci] apply automated fixes
* Update url.mjs
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-04-09 23:21:11 -07:00
Meghan Denny
cd52f42148
windows: fs/promises: fix when writing to file opened in append mode ( #10134 )
...
* windows: fs/promises: fix when writing to file opened in append mode
* add default values since we're using one now
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-04-09 22:57:10 -07:00
Jarred Sumner
5735feac5d
Redo file watcher + Fix EBUSY when saving lockfile on Windows ( #9972 )
...
* Fix `EBUSY` when saving lockfile on Windows
* Redo file watcher wrapper on Windows
* Update lockfile.zig
* Update win_watcher.zig
* Update src/bun.js/node/node_fs.zig
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
* Add retry logic
* Comments
* more careful
* smaller
* Fix garbage
* Normalize the paths
* hmmm
* [autofix.ci] apply automated fixes
* try
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-04-05 15:40:05 -07:00
Jarred Sumner
2e0e9f135b
Fixes #9878 ( #9883 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-04-03 02:47:13 -07:00