Jarred Sumner
1d48f91b5e
Enable ReadableStream as stdin for Bun.spawn ( #20582 )
...
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Cursor Agent <cursoragent@cursor.com >
Co-authored-by: jarred <jarred@bun.sh >
Co-authored-by: pfg <pfg@pfg.pw >
2025-06-27 19:42:03 -07:00
Meghan Denny
f9712ce309
make node:buffer,zlib,stream,fs exception checker clear ( #20494 )
2025-06-25 18:36:08 -07:00
Zack Radisic
0a3ac50931
Refactor shell to use AllocationScope and fix memory issues ( #20531 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Jarred Sumner <Jarred-Sumner@users.noreply.github.com >
2025-06-23 22:29:48 -07:00
Zack Radisic
41d10ed01e
Refactor shell and fix some bugs ( #20476 )
2025-06-19 18:47:00 -07:00
190n
346e97dde2
fix bugs found by exception scope verification ( #20285 )
...
Co-authored-by: 190n <7763597+190n@users.noreply.github.com >
2025-06-18 23:08:19 -07:00
Zack Radisic
c103b57bcc
Split out shell code into more files ( #20331 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2025-06-15 14:09:15 -07:00
Meghan Denny
6b4662ff55
zig: .jsUndefined -> .js_undefined ( #20377 )
...
Co-authored-by: nektro <5464072+nektro@users.noreply.github.com >
2025-06-13 16:14:57 -07:00
Meghan Denny
dedd433cbf
zig: prefer .jsUndefined() over .undefined for JSValue ( #20332 )
2025-06-12 13:18:46 -07:00
Jarred Sumner
c863e7582f
Fix dest field in sys.Error ( #20244 )
2025-06-07 04:00:36 -07:00
Jarred Sumner
407c4e800a
Revert "add support for "workspaces.nohoist" and "workspaces.hoistingLimits" ( #20124 )"
...
This reverts commit 11070b8e16 .
2025-06-03 23:51:03 -07:00
Dylan Conway
11070b8e16
add support for "workspaces.nohoist" and "workspaces.hoistingLimits" ( #20124 )
2025-06-03 23:44:09 -07:00
Jarred Sumner
390798c172
Fix memory leak in Bun.spawn ( #20095 )
...
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
2025-05-31 20:06:22 -07:00
Meghan Denny
ba78d5b2c3
ci: pass the src directory to 'zig fmt' ( #20114 )
...
Co-authored-by: nektro <5464072+nektro@users.noreply.github.com >
2025-05-31 18:52:18 -07:00
Meghan Denny
e0852fd651
fix memory leak when pipe Bun.spawn stdio is never read repeatedly ( #20102 )
...
Co-authored-by: nektro <5464072+nektro@users.noreply.github.com >
2025-05-31 11:16:49 -07:00
Jarred Sumner
3ea6133c46
CI: Remove unused top-level decls in formatter in zig ( #19879 )
...
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
2025-05-23 22:49:48 -07:00
Dylan Conway
8e80afbce1
Replace string runtime flags with enum ( #19827 )
2025-05-22 22:36:46 -07:00
pfg
a7b46ebbfe
fastGet can throw ( #19506 )
...
Co-authored-by: Meghan Denny <meghan@bun.sh >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-05-14 22:14:20 -07:00
chloe caruso
80aff24951
fix: require.extensions uses Strong instead of being clever ( #19231 )
2025-04-23 17:52:41 -07:00
chloe caruso
3349c995b5
no usingnamespace, organize jsc namespace, enable -fincremental ( #19122 )
...
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
2025-04-22 16:34:15 -07:00
Jarred Sumner
0471254e4e
Use Highway SIMD ( #19134 )
...
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2025-04-21 23:28:03 -07:00
Jarred Sumner
b117d14650
Avoid u3 ( #19140 )
2025-04-21 22:46:32 -07:00
chloe caruso
7d7512076b
remove more usingnamespace ( #19042 )
2025-04-17 19:04:05 -07:00
chloe caruso
4ec410e0d7
internal: make @import("bun") work in zig ( #19096 )
2025-04-17 12:32:47 -07:00
chloe caruso
be77711a4e
delete usingnamespace in bindings generator ( #19020 )
2025-04-15 12:14:47 -07:00
chloe caruso
903706dccf
file descriptor rewrite ( #18790 )
2025-04-15 09:37:11 -07:00
Jarred Sumner
879fdd7ef6
Bump Zig again ( #18948 )
2025-04-11 19:13:20 -07:00
chloe caruso
c1dc5f1b73
remove some usingnamespaces ( #18765 )
2025-04-10 14:16:30 -07:00
Don Isaac
dff1f555b4
test: get zig build test working ( #18207 )
...
### What does this PR do?
Lets us write and run unit tests directly in Zig.
Running Zig unit tests in CI is blocked by https://github.com/ziglang/zig/issues/23281 . We can un-comment relevant code once this is fixed.
#### Workflow
> I'll finish writing this up later, but some initial points are below.
> Tl;Dr: `bun build:test`
Test binaries can be made for any kind of build. They are called `<bun>-test` and live next to their corresponding `bun` bin. For example, debug tests compile to `build/debug/bun-debug-test`.
Test binaries re-use most cmake/zig build steps from normal bun binaries, so building one after a normal bun build is pretty fast.
### How did you verify your code works?
I tested that my tests run tests.
2025-04-08 15:31:53 -07:00
190n
eee5d4fb4a
node:worker_threads low-hanging fruit ( #18758 )
...
Co-authored-by: 190n <7763597+190n@users.noreply.github.com >
Co-authored-by: Ashcon Partovi <ashcon@partovi.net >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
Co-authored-by: Don Isaac <donald.isaac@gmail.com >
Co-authored-by: chloe caruso <git@paperclover.net >
2025-04-08 05:29:53 -07:00
Dylan Conway
78ee4a3e82
fix(shell): possible UAF when throwing a shell error ( #18840 )
2025-04-07 20:20:22 -07:00
Dylan Conway
340ae94d0f
napi_async_work fixes (#18825 )
2025-04-07 05:20:24 -07:00
Jarred Sumner
e75d226943
Make shell more reliable ( #18794 )
2025-04-05 02:45:25 -07:00
Jarred Sumner
a8cc31f8c4
Split shell into more files ( #18793 )
2025-04-04 23:38:43 -07:00
Jarred Sumner
11f2b5fb55
Run zig fmt
2025-04-03 12:04:24 -07:00
Jarred Sumner
4806e84cc1
Revert "remove many usingnamespace, introduce new ref count and ref leak debugging tools ( #18353 )"
...
This reverts commit a199b85f2b . It does not compile on Windows.
2025-04-01 08:35:51 -07:00
chloe caruso
a199b85f2b
remove many usingnamespace, introduce new ref count and ref leak debugging tools ( #18353 )
2025-03-31 17:17:38 -07:00
Don Isaac
6bef525704
fix: make JSPropertyIterator accept a JSObject instead of a JSValue ( #18308 )
...
Co-authored-by: DonIsaac <22823424+DonIsaac@users.noreply.github.com >
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
2025-03-22 01:19:27 -07:00
Dylan Conway
a3585ff961
node:crypto: implement hkdf and hkdfSync (#18312 )
2025-03-21 01:03:01 -07:00
Jarred Sumner
da9c980d26
Fix shell crash in load test ( #18320 )
2025-03-20 11:36:43 -07:00
Don Isaac
062a5b9bf8
fix(shell): remove unecessary allocations when printing errors ( #17898 )
2025-03-14 08:45:34 -07:00
Don Isaac
1ed87f4e83
fix: deadlock in Cow debug checks ( #18173 )
...
Co-authored-by: DonIsaac <22823424+DonIsaac@users.noreply.github.com >
2025-03-13 16:42:06 -07:00
Don Isaac
4ef7a43939
chore: add assertf and releaseAssert ( #17859 )
...
Co-authored-by: DonIsaac <22823424+DonIsaac@users.noreply.github.com >
Co-authored-by: chloe caruso <git@paperclover.net >
2025-03-04 12:50:59 -08:00
Meghan Denny
1574df835e
zig: make JSValue.toBunString use JSError ( #17648 )
2025-02-25 13:04:44 -08:00
Meghan Denny
04703bd3cc
zig: catch JSValue.toZigString/getZigString thrown exceptions ( #17508 )
2025-02-21 22:55:03 -08:00
Meghan Denny
27c90786ca
node: implement process.binding('fs') ( #17480 )
2025-02-20 22:15:01 -08:00
Don Isaac
cdf62b35ff
refactor: move string-like structs into string module ( #17369 )
2025-02-15 21:52:43 -08:00
chloe caruso
2b97d61deb
chore: remove some trivial usage of usingnamespace ( #17268 )
2025-02-11 19:38:52 -08:00
Minsoo Choo
fa502506e5
Fix formatting for extern "c" ( #16983 )
2025-02-02 21:34:58 -08:00
Meghan Denny
26d3688e53
zig: update to 0.14.0-dev ( #16862 )
...
Co-authored-by: nektro <5464072+nektro@users.noreply.github.com >
2025-02-01 01:11:02 -08:00
Zack Radisic
87dedd109a
CSS bundling & general fixes ( #16486 )
2025-01-18 13:26:27 -08:00