Jarred Sumner
5a025abddf
Address clang warnings on newer clang ( #20054 )
2025-05-31 19:44:36 -07:00
Jarred Sumner
e58df65a75
Bump WebKit ( #19882 )
2025-05-26 18:56:32 -07:00
Jarred Sumner
69be630aea
WebKit Upgrade ( #19839 )
...
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Ben Grant <ben@bun.sh >
Co-authored-by: 190n <7763597+190n@users.noreply.github.com >
2025-05-22 21:12:43 -07:00
Dylan Conway
a844957eb3
Use operationMathPow for parser constant folding ( #19853 )
2025-05-22 20:16:37 -07:00
Jarred Sumner
83a825edff
More efficient protect/unprotect ( #19621 )
2025-05-14 18:49:35 -07:00
Meghan Denny
d774baa28a
tidyings from 18962 ( #19644 )
2025-05-14 18:47:51 -07:00
Dylan Conway
ec865e385a
fix test-webcrypto-random.js ( #19264 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-05-09 18:09:32 -07:00
pfg
00a3cbd977
more child-process ( #18688 )
...
Co-authored-by: pfgithub <6010774+pfgithub@users.noreply.github.com >
2025-05-06 22:12:24 -07:00
Jarred Sumner
e9c653a1b6
Reduce CPU usage when using Bun.spawnSync with inherit ( #19105 )
2025-05-03 20:33:57 -07:00
Jarred Sumner
d8a69d6823
Enable ASAN with linux-x64-asan in CI
2025-05-02 10:44:09 -07:00
Dylan Conway
465379d96a
add Timeout.prototype.close, _idleTimeout and _onTimeout ( #19318 )
2025-04-28 00:25:25 -07:00
Dylan Conway
1ee7bab0e7
fix test-parse-args.mjs ( #19308 )
2025-04-26 23:27:50 -07:00
pfg
ea681fa9ec
test-assert-typedarray-deepequal ( #19285 )
2025-04-25 23:36:07 -07:00
chloe caruso
903706dccf
file descriptor rewrite ( #18790 )
2025-04-15 09:37:11 -07:00
Don Isaac
caeea11706
fix(bun/test): it.failing for tests using done callbacks ( #19018 )
2025-04-14 19:29:05 -07:00
190n
35025fe161
Fix m_terminationException assertion failure with spawnSync ( #18936 )
2025-04-10 19:42:39 -07:00
Don Isaac
44f252539a
fix: mark JSPromise.rejectedPromiseValue as deprecated ( #18549 )
...
### What does this PR do?
`JSPromise.rejectedPromiseValue` does not notify the VM about the promise it creates, meaning unhandled rejections created this way do not trigger `unhandledRejection`. This is leading to accidental error suppression in (likely) a lot of places. Additionally it returns a `JSValue` when really it should be returning a `*JSPromise`, making Zig bindings more type-safe.
This PR renames `rejectedPromiseValue` to `dangerouslyCreateRejectedPromiseValueWithoutNotifyingVM` and marks it as deprecated. It does _not_ modify code calling this function, meaning no behavior changes should occur. We should slowly start replacing its usages with `rejectedPromise`
## Changelog
- Rename `rejectedPromiseValue` to `dangerouslyCreateRejectedPromiseValueWithoutNotifyingVM`
- Mark `JSPromise.asValue` as deprecated. It takes a `*JSGlobalObject` but never uses it. New code should use `toJS()`
- Refactors `blob` to make null checks over `destination_blob.source` a release assertion
- `ErrorBuilder.reject` uses `rejectedPromiseValue` when 1.3 feature flag is enabled
2025-04-09 13:27:51 -07:00
Jarred Sumner
49ca2c86e7
More robust Bun.Cookie & Bun.CookieMap ( #18359 )
...
Co-authored-by: pfg <pfg@pfg.pw >
2025-03-26 02:51:41 -07:00
Dylan Conway
687a0ab5a4
node:crypto: fix test-crypto-scrypt.js (#18396 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-03-22 01:18:27 -07:00
Jarred Sumner
60ae19bded
Revert "Introduce Bun.Cookie & Bun.CookieMap & request.cookies (in BunRequest) ( #18073 )"
...
This reverts commit 9888570456 .
We will add it in Bun v1.2.7
2025-03-21 22:17:28 -07:00
chloe caruso
ddd87fef12
module.children and Module.runMain ( #18343 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: 190n <ben@bun.sh >
2025-03-21 16:57:10 -07:00
Ashcon Partovi
f36d480919
fix: test-http-header-obstext.js ( #18371 )
2025-03-21 15:28:12 -07:00
Meghan Denny
f2c8e63ae1
update to llvm 19 and c++ 23 ( #18317 )
...
Co-authored-by: nektro <5464072+nektro@users.noreply.github.com >
2025-03-20 21:44:19 -07:00
Jarred Sumner
9888570456
Introduce Bun.Cookie & Bun.CookieMap & request.cookies (in BunRequest) ( #18073 )
...
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: pfg <pfg@pfg.pw >
2025-03-20 21:29:00 -07:00
nmarks
27cf0d5eaf
Remove references to developers former name ( #18319 )
...
Co-authored-by: chloe caruso <git@paperclover.net >
2025-03-20 00:53:46 -07:00
chloe caruso
b5cbf16cb8
module pr 2 ( #18266 )
2025-03-20 00:45:44 -07:00
Meghan Denny
2024fa09d7
js: fix many typescript errors ( #18272 )
...
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
2025-03-19 22:39:24 -07:00
Don Isaac
c47e402025
fix: crash in Bun.inspect.table ( #18256 )
...
Co-authored-by: DonIsaac <22823424+DonIsaac@users.noreply.github.com >
2025-03-18 18:56:56 -07:00
Dylan Conway
c820b0c5e1
node:crypto: implement generatePrime(Sync) and checkPrime(Sync) (#18268 )
2025-03-18 11:48:24 -07:00
pfg
5c7df736bf
Bring back btjs ( #18108 )
2025-03-11 22:51:05 -07:00
Kai Tamkun
4a0e982bb2
node:http improvements ( #17093 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Pham Minh Triet <92496972+Nanome203@users.noreply.github.com >
Co-authored-by: snwy <snwy@snwy.me >
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
Co-authored-by: cirospaciari <cirospaciari@users.noreply.github.com >
Co-authored-by: Ben Grant <ben@bun.sh >
2025-03-10 20:19:29 -07:00
Jarred Sumner
924e50b6e9
Faster new TextDecoder() ( #17964 )
2025-03-06 23:33:31 -08:00
190n
efabdcbe1f
Start fixing bugs discovered by Node.js's Node-API tests ( #14501 )
...
Co-authored-by: Kai Tamkun <kai@tamkun.io >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Ashcon Partovi <ashcon@partovi.net >
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
Co-authored-by: 190n <190n@users.noreply.github.com >
2025-02-26 22:11:42 -08:00
Dylan Conway
47f9bb84e8
fix: invalid json import regression ( #17612 )
2025-02-24 01:57:29 -08:00
Jarred Sumner
18440d4b11
Ben/bump webkit ( #17529 )
...
Co-authored-by: Ben Grant <ben@bun.sh >
2025-02-21 15:52:02 -08:00
Jarred Sumner
ba8573494a
Add shadcn, tailwind and react detection & templates to bun create. Also: bun install --analyze <files...> ( #17035 )
2025-02-09 09:36:57 -08:00
Don Isaac
146ec7791b
fix(node/assert): port more test cases from node ( #16895 )
...
Co-authored-by: DonIsaac <22823424+DonIsaac@users.noreply.github.com >
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
2025-02-06 14:29:59 -08:00
pfg
5620a7dfac
Enable asan on debug macos aarch64 builds ( #17058 )
2025-02-05 17:24:32 -08:00
Don Isaac
f454c27365
fix: Bun.deepEquals on empty objects with the same prototype ( #16894 )
...
Co-authored-by: DonIsaac <22823424+DonIsaac@users.noreply.github.com >
2025-01-30 12:12:51 -08:00
Meghan Denny
29839737df
cpp: synchronize on JSC::getVM since its more likely to be forward compatible ( #16688 )
2025-01-29 15:50:57 -08:00
190n
af27f9e697
Allow WTF timers to participate in the event loop ( #15557 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: 190n <190n@users.noreply.github.com >
Co-authored-by: 190n <7763597+190n@users.noreply.github.com >
2025-01-28 17:47:53 -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
pfg
0d17843251
Fix bun run folder ( #15117 )
...
Co-authored-by: pfgithub <pfgithub@users.noreply.github.com >
2025-01-17 22:08:07 -08:00
Don Isaac
b412e3647a
test(node/url): add more node:test parallel cases ( #16404 )
2025-01-17 21:03:09 +00:00
Meghan Denny
2d481e7bcb
fix more node:stream ( #16385 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-01-16 22:40:39 -08:00
Jarred Sumner
4cb8e37474
Make console.warn yellow, make console.log(error) not red ( #16435 )
2025-01-16 00:43:26 -08:00
chloe caruso
834ad11d48
get node:fs tests passing part 1 ( #16270 )
2025-01-14 20:53:02 -08:00
Kai Tamkun
9bca80c1a2
DNS fixes ( #15864 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-01-08 21:53:03 -08:00
Jarred Sumner
da2dd657b1
Fix various bugs with function names and source mappings involving eval and node:vm ( #16212 )
2025-01-07 20:21:50 -08:00
Jarred Sumner
c431ef1b7a
Replace 4 duplicate implementations of getting the sourceURL ( #16205 )
2025-01-07 00:34:58 -08:00