Jarred Sumner
de7c947161
bump webkit ( #22256 )
...
### 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>
Co-authored-by: Claude Bot <claude-bot@bun.sh >
Co-authored-by: Claude <noreply@anthropic.com >
2025-09-01 16:20:13 -07:00
Tim Caswell
53a3a67a0f
Fix xxhash64 to support seeds larger than u32. ( #21881 )
...
### What does this PR do?
Hopefully fix https://github.com/oven-sh/bun/issues/21879
### How did you verify your code works?
Added a test with a seed larger than u32.
The test vector is from this tiny test I wrote to rule out upstream zig
as the culprit:
```zig
const std = @import("std");
const testing = std.testing;
test "xxhash64 of short string with custom seed" {
const input = "";
const seed: u64 = 16269921104521594740;
const hash = std.hash.XxHash64.hash(seed, input);
const expected_hash: u64 = 3224619365169652240;
try testing.expect(hash == expected_hash);
}
```
2025-08-15 17:50:35 -07:00
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
pfg
cb2887feee
Fix Bun.resolve() returning a promise throwing a raw exception instead of an Error ( #21302 )
...
I haven't checked all uses of tryTakeException but this bug is probably
not the only one.
Caught by running fuzzy-wuzzy with debug logging enabled. It tried to
print the exception. Updates fuzzy-wuzzy to have improved logging that
can tell you what was last executed before a crash.
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-25 12:46:33 -07:00
190n
a1f756fea9
Fix running bun test on multiple node:test tests ( #19354 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-24 11:48:55 -07:00
Dylan Conway
f90a007593
[PKG-513, ENG-19757] bun install: fix non-ascii edge case and simplify task lifetimes ( #21320 )
2025-07-23 19:23:54 -07:00
Jarred Sumner
2e02d9de28
Use ReadableStream.prototype.* in tests instead of new Response(...).* ( #20937 )
...
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Alistair Smith <hi@alistair.sh >
Co-authored-by: Claude Bot <claude-bot@bun.sh >
Co-authored-by: Claude <noreply@anthropic.com >
2025-07-14 00:47:53 -07:00
Adam
7ba4b1d01e
Fix: deprecated goo.gl links in snapshots raised in issue #20086 ( #20424 )
2025-07-05 00:58: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
Jarred Sumner
4cc61a1b8c
Fix NODE_PATH for bun build ( #20576 )
...
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2025-06-22 20:51:45 -07:00
Meghan Denny
b62f70c23a
inspect-error-leak.test.js: add a slightly higher asan margin
2025-06-19 15:02:38 -07:00
Joel Shepherd
13c5b0d9cb
Added rapidhash algorithm ( #20163 )
2025-06-03 03:34:35 -07:00
Meghan Denny
809992229f
node:net rework ( #18962 )
...
Co-authored-by: nektro <5464072+nektro@users.noreply.github.com >
2025-05-28 17:04:37 -07:00
Jarred Sumner
4ca83be84f
Add Zstd decompression to HTTP client ( #19800 )
...
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-05-20 23:26:47 -07:00
Jarred Sumner
14b439a115
Fix formatters not running in CI + delete unnecessary files ( #19433 )
2025-05-08 23:22:16 -07:00
190n
b5f31a6ee2
node:worker_threads: improve error messages, support environmentData, emit worker event ( #18768 )
...
Co-authored-by: 190n <7763597+190n@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-05-08 19:27:46 -07:00
Jarred Sumner
7230b88c5d
Clean up usage of .destroy in sinks ( #19302 )
2025-04-29 18:30:43 -07:00
Jarred Sumner
5152254b2b
Add test for non-reified static properties on the Bun global ( #19270 )
2025-04-25 00:07:34 -07:00
Dylan Conway
41388204b9
update webkit ( #19238 )
2025-04-23 23:21:22 -07:00
Ciro Spaciari
dac7f22997
fix(CSRF) remove undefined's and add more checks for bad tokens ( #18535 )
2025-03-27 17:47:00 -07:00
pfg
1d655a0232
cookie mistakes ( #18513 )
2025-03-26 20:51:20 -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
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
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
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
Ciro Spaciari
013fdddc6e
feat(CSRF) implement Bun.CSRF ( #18045 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-03-10 17:51:57 -07:00
chloe caruso
e7790894d9
elaborate on error "Expected Sink" ( #15234 )
...
Co-authored-by: paperdave <paperdave@users.noreply.github.com >
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
2025-02-27 17:08:00 -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
chloe caruso
f912e0abc4
hot module reloading for HTML import development mode ( #16955 )
2025-02-08 00:31:30 -08:00
pfg
0c8658b350
Fix test-fs-promises-writefile.js on windows ( #17053 )
2025-02-05 22:12:52 -08:00
Dylan Conway
06b16fc11e
fix 16939 ( #16991 )
2025-02-02 21:31:40 -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
Jarred Sumner
22a23add8d
Fix import("bun") in Vite ( #16938 )
2025-01-31 06:34:14 -08:00
Meghan Denny
f1a5ac4fd3
js: fix printing of empty Symbol's ( #16626 )
2025-01-22 17:39:50 -08:00
Don Isaac
b412e3647a
test(node/url): add more node:test parallel cases ( #16404 )
2025-01-17 21:03:09 +00:00
versecafe
6cb0d49afb
Implement Bun.hash.xxHash32|64() ( #16397 )
2025-01-15 00:54:44 -08:00
chloe caruso
834ad11d48
get node:fs tests passing part 1 ( #16270 )
2025-01-14 20:53:02 -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
Meghan Denny
e1cfea4925
node: fix the rest of test-process ( #16026 )
2025-01-06 14:30:36 -08:00
Jarred Sumner
79430091a1
Add v8.writeHeapSnapshot ( #16123 )
2025-01-02 21:24:16 -08:00
Jarred Sumner
f834304c27
Support generating V8 Heap Snapshots ( #16109 )
2025-01-02 20:15:13 -08:00
Jarred Sumner
2b2ca3275c
Improve stack overflow, show more properties in Error objects ( #15985 )
...
Co-authored-by: Dave Caruso <me@paperdave.net >
2024-12-25 21:47:13 -08:00
Jarred Sumner
774e30d383
Make originalLine and originalColumn getter calls not observable ( #15951 )
2024-12-23 03:40:51 -08:00
Jarred Sumner
32c1fdf205
Rename estimateDirectMemoryUsageOf to estimateShallowMemoryUsageOf
2024-12-16 20:18:04 -08:00
Jarred Sumner
aada6f930f
Fix heap snapshots memory usage stats. Introduce estimateDirectMemoryUsageOf function in "bun:jsc" ( #15790 )
2024-12-16 20:16:23 -08:00
dave caruso
b39632c921
feat: new binding generator ( #15638 )
2024-12-10 12:43:17 -08:00
Dennis Dudek
1bb211df56
bustDirCache on FileSystemRouter.reload & fix of dir_cache keys in windows ( #15091 )
...
Co-authored-by: dave caruso <me@paperdave.net >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-11-27 12:21:32 -08:00
Michael H
0d6d4faa51
better printing for console.log types ( #15404 )
2024-11-26 14:27:39 -08:00
Dylan Conway
66ba6ba061
fix 14957 ( #15025 )
2024-11-06 19:41:39 -08:00
Jarred Sumner
240b2a539f
Introduce Bun.randomUUIDv7 ( #14858 )
...
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
2024-10-29 16:39:09 -07:00