Marko Vejnovic
ab708e0099
Implement test-fs-cp.mjs
2025-09-09 16:29:28 -07:00
Jarred Sumner
c0ba7e9e34
Unskip some tests ( #22116 )
...
### What does this PR do?
### How did you verify your code works?
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-27 06:39:11 -07:00
taylor.fish
437e15bae5
Replace catch bun.outOfMemory() with safer alternatives ( #22141 )
...
Replace `catch bun.outOfMemory()`, which can accidentally catch
non-OOM-related errors, with either `bun.handleOom` or a manual `catch
|err| switch (err)`.
(For internal tracking: fixes STAB-1070)
---------
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
2025-08-26 12:50:25 -07:00
Jarred Sumner
df61e88dc0
Fix potential crash in new Bun.Transpiler() ( #21650 )
...
### What does this PR do?
The `then` function in `transpiler.transform` can cause GC, which means
it can cause the `Transpiler` to become freed, which means that if that
same transpiler is in use by another run on the other thread, it could
have pointers to invalid memory.
Also, `ESMCondition` has unnecesasry memory allocations and there is a
very tiny memory leak in optionsFromLoaders
### How did you verify your code works?
Existing tests
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-07 15:16:44 -07:00
Meghan Denny
64361eb964
zig: delete deprecated bun.jsc.Maybe ( #21327 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: taylor.fish <contact@taylor.fish >
2025-07-25 12:38:06 -07:00
Meghan Denny
3413a2816f
node:fs: fix leak of mkdir return value ( #21360 )
2025-07-25 01:00:20 -07:00
Meghan Denny
e8d0935717
zig: delete deprecated some bun.jsc apis ( #21309 )
2025-07-23 17:10:58 -07:00
taylor.fish
07cd45deae
Refactor Zig imports and file structure (part 1) ( #21270 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-22 17:51:38 -07:00
pfg
83760fc446
Sort imports in all files ( #21119 )
...
Co-authored-by: taylor.fish <contact@taylor.fish >
2025-07-21 13:26:47 -07:00
Zack Radisic
ac61b1d471
Use better function names for bun.String ( #20999 )
2025-07-12 18:19:16 -07:00
Dylan Conway
f24e8cb98a
implement "nodeLinker": "isolated" in bun install ( #20440 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-07-09 00:19:57 -07:00
Meghan Denny
068997b529
make node:dns,net,cluster,tls exception checker clear ( #20658 )
...
Co-authored-by: nektro <5464072+nektro@users.noreply.github.com >
2025-07-03 18:28:38 -07:00
Meghan Denny
f9712ce309
make node:buffer,zlib,stream,fs exception checker clear ( #20494 )
2025-06-25 18:36:08 -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
Meghan Denny
284de53f26
safety: audit and add missing exception checks to JSC::constructArray+constructEmptyArray ( #20119 )
2025-05-31 20:05:02 -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
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
pfg
500199fe8b
More node tests ( #19197 )
2025-05-07 16:21:08 -07:00
Jarred Sumner
d8a69d6823
Enable ASAN with linux-x64-asan in CI
2025-05-02 10:44:09 -07:00
Dylan Conway
448340cf3f
fix test-fs-read-position-validation.mjs ( #19287 )
2025-04-26 04:43:53 -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
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
Jarred Sumner
e75d226943
Make shell more reliable ( #18794 )
2025-04-05 02:45:25 -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
Jarred Sumner
c3be6732d1
Fixes #18572 ( #18578 )
...
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
2025-03-31 02:15:27 -07:00
Dylan Conway
a3585ff961
node:crypto: implement hkdf and hkdfSync (#18312 )
2025-03-21 01:03:01 -07:00
Dylan Conway
c820b0c5e1
node:crypto: implement generatePrime(Sync) and checkPrime(Sync) (#18268 )
2025-03-18 11:48:24 -07:00
190n
de4182f305
chore: upgrade zig to 0.14.0 ( #17820 )
...
Co-authored-by: 190n <7763597+190n@users.noreply.github.com >
Co-authored-by: Zack Radisic <56137411+zackradisic@users.noreply.github.com >
Co-authored-by: pfg <pfg@pfg.pw >
Co-authored-by: pfgithub <6010774+pfgithub@users.noreply.github.com >
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
2025-03-14 22:13:31 -07:00
Meghan Denny
1574df835e
zig: make JSValue.toBunString use JSError ( #17648 )
2025-02-25 13:04:44 -08:00
Meghan Denny
27c90786ca
node: implement process.binding('fs') ( #17480 )
2025-02-20 22:15:01 -08:00
Jarred Sumner
fad856c03c
Support fs.stat, fs.existsSync, fs.readFile, fs.promises.stat, fs.promises.readFile in bun build --compile ( #17102 )
...
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
2025-02-06 00:06:52 -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
Dylan Conway
d4ce421982
Fix node:fs memory leak with AbortSignal ( #16788 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-01-31 05:25:53 -08:00
Jarred Sumner
212944a5b6
Reduce memory usage of fs.readdir withFileTypes ( #16897 )
2025-01-31 04:25:58 -08:00
Meghan Denny
676e8d1632
zig: delete is_bindgen ( #16858 )
2025-01-28 23:51:24 -08:00
Jarred Sumner
b54f3f33f0
Clean up node:fs utimes, futimes , and lutimes ( #16634 )
2025-01-23 05:09:07 -08:00
chloe caruso
5819fe49a7
node fs compat pr #2 ( #16422 )
...
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
Co-authored-by: Meghan Denny <meghan@bun.sh >
Co-authored-by: dylan-conway <35280289+dylan-conway@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-01-21 10:28:35 -08:00
Jarred Sumner
cfbb62df16
Implement fs.statfs, fs.statfsSync fs.promises.statfs ( #16519 )
2025-01-20 00:39:18 -08:00
Dylan Conway
3128beed67
fix fs.mkdir regression ( #16497 )
2025-01-19 16:07:18 -08:00
chloe caruso
1a54379521
node:fs mkdir: disable linux statx path ( #16478 )
...
this path is observed to not be stable, prioritize correctness
2025-01-17 18:40:17 -08:00
Jarred Sumner
9579e4292b
Fix fs.mkdir recursive regression from Bun v1.1.44 ( #16464 )
2025-01-17 04:12:17 -08:00
Meghan Denny
68089a099f
zig: else branch is implicitly void ( #16406 )
2025-01-15 15:14:43 -08:00