Jarred Sumner
4fa69773a3
Introduce Bun.stripANSI ( #21801 )
...
### What does this PR do?
Introduce `Bun.stripANSI`, a SIMD-accelerated drop-in replacement for
the popular `"strip-ansi"` package.
`Bun.stripANSI` performs >10x faster and fixes several bugs in
`strip-ansi`, like [this long-standing
one](https://github.com/chalk/strip-ansi/issues/43 ).
### How did you verify your code works?
There are tests that check the output of `strip-ansi` matches
`Bun.stripANSI`. For cases where `strip-ansi`'s behavior is incorrect,
the expected value is manually provided.
---------
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>
Co-authored-by: Claude Bot <claude-bot@bun.sh >
Co-authored-by: Claude <noreply@anthropic.com >
Co-authored-by: taylor.fish <contact@taylor.fish >
2025-08-14 22:42:05 -07:00
Jarred Sumner
964d4dac2c
Rewrite AbortSignal.timeout ( #21695 )
...
### What does this PR do?
On Linux, AbortSignal.timeout created a file descriptor for each timeout
and did not keep the event loop alive when a timer was active. This is
fixed.
### How did you verify your code works?
Fewer flaky tests
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Claude <claude@anthropic.ai >
2025-08-08 23:07:19 -07:00
Alistair Smith
d0edcc69ae
Support TypeScript 5.9 ( #21539 )
...
### What does this PR do?
Fixes #21535
### How did you verify your code works?
2025-08-01 16:09:44 -07:00
pfg
0cf2b71ff1
expect.toHaveReturnedWith/toHaveLastReturnedWith/toHaveNthReturnedWith ( #21363 )
...
Fixes #10380
DRAFT: not reviewed
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-01 15:09:03 -07:00
Dylan Conway
1a9bc5da09
fix(install): isolated install aliased dependency name fix ( #21138 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
Co-authored-by: Meghan Denny <meghan@bun.sh >
2025-07-19 01:59:52 -07:00
Jarred Sumner
45e97919e5
Add bun bd to test/ folder and also run formatter
2025-07-17 22:20:02 -07:00
Alistair Smith
65ccb39778
Convert bun-types.test.ts to TS compiler api, fix forward-declared empty interfaces ( #20960 )
2025-07-10 22:47:42 -07:00
Jarred Sumner
27c979129c
Introduce Bun.randomUUIDv5 ( #20782 )
...
Co-authored-by: Cursor Agent <cursoragent@cursor.com >
Co-authored-by: jarred <jarred@bun.sh >
Co-authored-by: Meghan Denny <meghan@bun.sh >
2025-07-02 22:47:14 -07:00
Ciro Spaciari
a04cf04cd5
fix(grpc/http2) fix tonic Rust support ( #20738 )
...
Co-authored-by: cirospaciari <6379399+cirospaciari@users.noreply.github.com >
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
2025-07-02 17:43:38 -07:00
190n
172aecb02e
[publish images] Upgrade self-reported Node.js version from 22.6.0 to 24.3.0 (v2) ( #20772 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Claude <noreply@anthropic.com >
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Meghan Denny <meghan@bun.sh >
Co-authored-by: Ashcon Partovi <ashcon@partovi.net >
Co-authored-by: pfg <pfg@pfg.pw >
Co-authored-by: pfgithub <6010774+pfgithub@users.noreply.github.com >
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
2025-07-02 12:06:08 -07:00
Ben Grant
ea57037567
Revert "Upgrade self-reported Node.js version from 22.6.0 to 24.3.0 ( #20659 ) [publish images]"
...
This reverts commit 80309e4d59 . It breaks the Windows CI.
2025-07-02 09:40:32 -07:00
Jarred Sumner
80309e4d59
Upgrade self-reported Node.js version from 22.6.0 to 24.3.0 ( #20659 ) [publish images]
...
Co-authored-by: Claude <noreply@anthropic.com >
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Meghan Denny <meghan@bun.sh >
Co-authored-by: Ashcon Partovi <ashcon@partovi.net >
Co-authored-by: pfg <pfg@pfg.pw >
Co-authored-by: pfgithub <6010774+pfgithub@users.noreply.github.com >
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
Co-authored-by: Ben Grant <ben@bun.sh >
2025-07-02 00:03:05 -07:00
Ciro Spaciari
4cea70a484
fix(node:http) fix fastify websockets ( #18712 )
2025-04-01 19:28:44 -07:00
Ciro Spaciari
7021c42cf2
fix(node:http) fix post regression ( #18599 )
...
Co-authored-by: cirospaciari <6379399+cirospaciari@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2025-03-29 01:50:26 -07:00
Don Isaac
75144ab881
fix: reflect-metadata import order ( #18086 )
...
Co-authored-by: DonIsaac <22823424+DonIsaac@users.noreply.github.com >
2025-03-26 16:19:45 -07:00
Meghan Denny
66fb9f1097
test: install detect-libc ( #18185 )
2025-03-14 09:49:19 -07:00
Don Isaac
a41d773aaa
feat: support Svelte in bundler and dev server ( #17735 )
2025-03-04 14:16:18 -08:00
Don Isaac
70dbf582a6
fix(bunfig): fix and test preloads ( #16329 )
2025-03-03 15:45:18 -08:00
Ciro Spaciari
5c6e20aeb4
fix(sql) fix state being set to prepared too soon ( #17732 )
2025-02-26 16:02:51 -08:00
Jarred Sumner
c2a9cf5bbd
Fixes #17568 ( #17572 )
2025-02-22 16:48:20 -08:00
190n
7c6d9cac50
Bump WebKit, re-enable IPInt ( #17467 )
2025-02-19 20:47:40 -08:00
chloe caruso
f17ce2b756
hmr fixes ( #17239 )
...
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-02-12 23:14:02 -08:00
190n
4d2a8650e5
test: bump pglite version ( #17117 )
2025-02-06 14:33:44 -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
190n
71eb1476db
Fix crash when napi_register_module_v1 returns nullptr ( #16816 )
2025-01-27 20:13:22 -08:00
pfg
1fd7ed6751
Fix typescript emitDecoratorMetadata for getters ( #16389 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-01-20 22:14:04 -08:00
pfg
b04ce670e3
Fix #16312 ( #16322 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-01-10 20:04:16 -08:00
Jarred Sumner
5e003dccd2
Fixes #16277 ( #16280 )
2025-01-09 03:15:31 -08:00
190n
8268af3a7d
Disable IPInt ( #16188 )
2025-01-06 13:59:50 -08:00
Jarred Sumner
f834304c27
Support generating V8 Heap Snapshots ( #16109 )
2025-01-02 20:15:13 -08:00
Jarred Sumner
10990f5213
Fixes #3554 ( #15870 )
2024-12-18 22:54:11 -08:00
190n
59e06b0df5
fix(napi): set lossless parameter in napi_get_value_bigint_{int64,uint64}, and trim leading zeroes in napi_create_bigint_words ( #15804 )
2024-12-17 17:38:12 -08:00
190n
4eae3a90e8
fix(napi): Make napi_wrap work on regular objects ( #15622 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-12-16 15:54:39 -08:00
Ashcon Partovi
fa6ac405a4
ci: Add bootstrap.ps1 and automate Windows build images ( #15606 )
2024-12-05 15:16:37 -07:00
dave caruso
baff3c900e
bake: fix the big regressions ( #15544 )
...
Co-authored-by: paperdave <paperdave@users.noreply.github.com >
2024-12-03 22:15:59 -08:00
Ciro Spaciari
c04a2d1dfc
fix regression on http2-wrapper caused by node.js compatibility improvements on net ( #15318 )
2024-11-22 15:22:35 -08:00
Jarred Sumner
3ef35d746a
Implement junit test reporter ( #15205 )
...
Co-authored-by: Jarred-Sumner <Jarred-Sumner@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 >
2024-11-18 20:50:42 -08:00
Zack Radisic
5502278f3e
CSS: More stuff and tests ( #14832 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-10-27 13:49:25 -07:00
Ciro Spaciari
409e674526
feat(node:http2) Implement HTTP2 server support ( #14286 )
...
Co-authored-by: cirospaciari <cirospaciari@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-10-15 16:28:21 -07:00
Dylan Conway
3452f50c96
update webkit ( #14449 )
2024-10-10 02:35:23 -07:00
Dylan Conway
f374ae6db1
add bun publish ( #14215 )
2024-10-02 20:47:22 -07:00
Ciro Spaciari
d80d9f450c
fix(node:http) improve agent support ( #13780 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-09-19 23:04:36 -07:00
Meghan Denny
de5809b45a
windows: fix sometimes crash when FDImpl.uv() is called on stdio ( #13719 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Dave Caruso <me@paperdave.net >
Co-authored-by: nektro <nektro@users.noreply.github.com >
2024-09-06 21:00:55 -07:00
Ashcon Partovi
a1312066b3
Fix secrets in CI tests ( #13306 )
2024-08-14 11:13:09 -07:00
Jarred Sumner
6ad3e6a5e3
Fixes #2532 ( #12633 )
...
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
2024-07-17 20:53:12 -07:00
Jarred Sumner
cc42052039
node-fetch polyfill shouldn't break when web globals are overriden (#12634 )
2024-07-17 18:57:03 -07:00
dave caruso
749c51d71a
simpler version of simplifyUnusedExpr rewrite ( #12384 )
2024-07-05 20:20:45 -07:00
Ashcon Partovi
d105b048b1
Use Buildkite for CI ( #11477 )
2024-06-27 14:56:07 -07:00
dave caruso
ec082db67c
fix: fix sourcemap generation (rewrites bun.StringJoiner) ( #11288 )
2024-05-23 23:30:11 -07:00
Meghan Denny
86bcc49bef
node:http: allow setting response.statusCode and statusMessage [v2] ( #11082 )
2024-05-15 00:27:55 -07:00