Jarred Sumner
703d6fc1a1
Merge branch 'main' into jarred/process-change
2024-02-28 15:18:34 -08:00
Jarred Sumner
53378227ca
[windows] Fix regression from #9154
2024-02-28 15:16:40 -08:00
Jarred Sumner
52b8f84a19
Merge branch 'main' into jarred/process-change
2024-02-28 14:23:03 -08:00
Jarred Sumner
dc6af25b54
Fix ownKeys issue ( #9154 )
2024-02-28 14:22:25 -08:00
Jarred Sumner
3812335c47
closeIfPossible
2024-02-27 19:55:27 -08:00
Jarred Sumner
7200d34c61
Merge branch 'main' into jarred/process-change
2024-02-27 18:06:07 -08:00
dave caruso
c54844b30b
windows: random things ( #9046 )
...
* random things
* fix reliability of loading napi stuff
* fix posix build
* a
2024-02-27 16:30:34 -08:00
Jarred Sumner
abf3dccc0e
Fix memory leaks
2024-02-26 21:58:33 -08:00
Jarred Sumner
56d936b36f
Merge branch 'main' into jarred/process-change
2024-02-26 18:56:37 -08:00
Jarred Sumner
c4a9bdbb81
Silence not implemented warning ( #9126 )
...
* Silce not implemented warning
* [autofix.ci] apply automated fixes
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-02-26 18:36:18 -08:00
Jarred Sumner
57eb04f6f4
[internal] Switch back to prettier ( #9109 )
...
* Switch back to prettier
* wip
* Update .prettierignore
* Update .prettierignore
* ignores
* Update .prettierignore
* Rest
* [autofix.ci] apply automated fixes
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-02-26 11:13:02 -08:00
Jarred Sumner
ebce8e847f
Update stream.js
2024-02-25 21:21:21 -08:00
Jarred Sumner
67e89fec23
Fix spurious error
2024-02-25 21:09:56 -08:00
Jarred Sumner
2f1550d712
Update ReadableStreamInternals.ts
2024-02-25 21:04:00 -08:00
Jarred Sumner
17a46e5756
fixes
...
cc @cirospaciari
2024-02-25 20:43:23 -08:00
Jarred Sumner
c954be2ae3
Merge branch 'main' into jarred/process-change
2024-02-25 19:26:35 -08:00
Jarred Sumner
92dec0a871
Implement util.types.isKeyObject ( #9091 )
...
* Implement util.types.isKeyObject
* just use inherits
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-02-25 14:30:05 -08:00
Cameron Haley
2333c94f8e
Fix prisma generate by emitting readable event on EoF ( #9101 )
...
* Add test for ensuring the 'readable' event is emitted on end
* Run emitReadable on nextTick instead of as microtask
* perf: Store intermediate variables
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-02-25 13:01:07 -08:00
Jarred Sumner
4ba1d4d7c8
Add missing fdatasync ( #9092 )
...
* Add missing fdatasync
* don't use /tmp/ since it might not support fdatasync on linux
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-02-24 15:47:14 -08:00
Ciro Spaciari
bcf7b16616
more stable streams ( #9053 )
...
fix stream ref counting
2024-02-23 19:10:49 -03:00
Jarred Sumner
2d71bce242
Merge branch 'main' into jarred/process-change
2024-02-21 21:02:49 -08:00
dave caruso
44f7ddd2ff
fix: ConsoleObject handles proxy better ( #9042 )
...
* fix: ConsoleObject handles proxy better
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-02-21 18:33:54 -08:00
Jarred Sumner
78291af8de
[child_process] Fix neglecting to drain stdout/stderr pipes
...
cc @jdalton @paperdave
2024-02-20 16:16:52 -08:00
Jarred Sumner
27bdf3a11d
Merge branch 'main' into jarred/process-change
2024-02-19 16:32:25 -08:00
dave caruso
6f1939621c
fix astro ( #8999 )
...
* fix astro
* set undefined
* [autofix.ci] apply automated fixes
* Fix astro
* Fix test
* Remove bad assertion
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-02-19 13:48:08 -08:00
Yannik Schröder
182d052d4b
events.on: Add compatibility with readline module (#8885 )
...
* fix: make event.on work with for...await of readline module
* fix: queueing events before next() call and multiple event vals
* test: add tests for events.on and readline for await...of
* style, docs
* [autofix.ci] apply automated fixes
* refactor: use removeListeners instead of check for done
* test: merge test files
* test: remove todo comment
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-02-19 11:44:09 -08:00
Meghan Denny
141140ef7c
windows: pass more tests ( #8938 )
...
* windows: implement bun.isWritable
* windows: pass test/cli/run/as-node.test.ts
C:\Users\dave\AppData\Local\Temp\bun-node-a2ae984c3\node.exe is a hardlink on windows so it will not resolve to C:\bun\build\bun-debug.exe
skip the first param since that is not the behavior this test is supposed to be testing
* windows: pass test/js/node/dns/node-dns.test.js
* windows: pass test/js/node/process/process.test.js
* windows: pass test/js/web/streams/streams.test.js
* windows: pass test/js/workerd/html-rewriter.test.js
Closes #8459
* windows: fix node:util.inspect
* windows: these pass now
* windows: pass test/js/node/stream/node-stream.test.js
* disable http sendfile on windows
* use url.origin here
* more sendfile removal
* windows: pass test/js/web/websocket/websocket.test.js
* test/js/deno/performance/performance.test.ts is flaky, come back to it
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-02-19 10:23:31 -08:00
Jarred Sumner
b0f951f306
Fix macOS test failure
2024-02-18 14:40:44 -08:00
Jarred Sumner
c8a5fc3dcf
Merge branch 'main' into jarred/process-change
2024-02-17 02:44:16 -08:00
Jarred Sumner
f9b12300d4
Make shell errors slightly better ( #8945 )
...
* Make shell errors slightly better
* Update shell.ts
* Fix the failing tests
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-02-16 20:43:42 -08:00
Jarred Sumner
abf1239976
feat: Support async generator functions in Response and Request for bodies ( #8941 )
2024-02-16 20:02:22 -08:00
Dmitri
fe8ec29f1f
Add fs.exists[util.promisify.custom] ( #8936 )
...
* Add fs.exists[util.promisify.custom]
fs.exists doesn't follow the error-first-callback convention, so it
needs a custom implementation for util.promisify.
* Simplify
---------
Co-authored-by: John-David Dalton <john.david.dalton@gmail.com >
2024-02-16 18:24:04 -08:00
Zack Radisic
2b56451a11
Shell changes/fixes ( #8846 )
...
* Fix #8403
* Throw on error by default
* Add the shell promise utilities to `ShellOutput` and `ShellError`
* Fix tests
* [autofix.ci] apply automated fixes
* Fix memleak
* [autofix.ci] apply automated fixes
* Woops
* `Bun.gc(true)` in fd leak test
* fd leak test should check if `fd <= baseline`
* wtf
* oob check
* [autofix.ci] apply automated fixes
* Fix double free
* Fix #8550
* increase mem threshold for linux
* Requested changes and make not throw on by default
* [autofix.ci] apply automated fixes
* more requested changes
* Do destructuring in function definition
* delete
* Change shell output test to enable throwing
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-02-16 05:01:55 -08:00
John-David Dalton
d49cb0b98e
chore: Add PrivateRecursive type annotations ( #8291 )
2024-02-15 17:35:08 -08:00
Georgijs
da78103b1c
fix typo ( #8929 )
2024-02-15 13:07:07 -08:00
Jarred Sumner
0894872c68
Fixup
2024-02-15 16:54:13 +01:00
Jarred Sumner
57dcdbfaad
Fixes
2024-02-15 16:17:35 +01:00
Jarred Sumner
b5f12b02f0
Many fixes
2024-02-15 14:58:05 +01:00
Jarred Sumner
039769d603
Merge branch 'main' into jarred/process-change
2024-02-14 20:09:03 -08:00
Jarred Sumner
d936f365c8
Fixes #8909 ( #8911 )
...
* Fixes #8909
* Add it
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-02-14 18:57:20 -08:00
Jarred Sumner
14dced17d0
Clean up some tests
2024-02-13 22:17:24 -08:00
Jarred Sumner
2bc1c124e9
Merge branch 'main' into jarred/process-change
2024-02-13 04:35:07 -08:00
Jarred Sumner
1c7620a581
Don't call as many getters for options.signal
2024-02-13 03:32:06 -08:00
Jarred Sumner
b6bca2249c
Fix bug in child_process.timeout
2024-02-13 03:31:43 -08:00
Jarred Sumner
e5f1cbfaa6
Align shell with node
2024-02-13 02:20:35 -08:00
John-David Dalton
96e7227087
feat: Add win32 path.toNamespacedPath and align rest of node:path with Node ( #8469 )
2024-02-12 14:27:26 -08:00
Jarred Sumner
09277c852c
fixup
2024-02-12 02:18:02 -08:00
Jarred Sumner
3ecee39010
Use loop callbacks
2024-02-12 01:25:40 -08:00
Jarred Sumner
54903cbb05
Replace bunNativePtr with {File,Blob,Bytes}InternalStreamSource
2024-02-11 04:35:43 -08:00
Jarred Sumner
6d96790fcf
Support argv0 in node:child_process
2024-02-11 04:29:25 -08:00