Claude Bot
a10c4740ca
Improve snapshot serializer implementation with enhanced robustness
...
- Fix printer function garbage collection protection with printer_fn.protect()
- Implement proper recursive serialization in printer callback using Jest.runner
- Add TestRunner.deinit() method to properly cleanup snapshot_serializers registry
- Improve error handling consistency in addSnapshotSerializer validation
- Add trySerializeWithCustomSerializers static helper for recursive serialization
- Enhance memory management and cleanup logic for better stability
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-07-14 15:16:30 +00:00
Claude Bot
5588097d63
Implement snapshot serializer support in bun:test
...
Add expect.addSnapshotSerializer() API that matches Jest/Vitest behavior:
- Per-file serializer registry with ordered precedence (last added wins)
- Custom object serialization with test() and serialize() methods
- Proper integration with existing snapshot comparison pipeline
- Comprehensive test coverage for functionality and edge cases
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-07-14 14:27:15 +00:00
Jarred Sumner
499eac0d49
Enable SIMD multiline comment optimization ( #13844 )
...
Co-authored-by: Meghan Denny <meghan@bun.sh >
Co-authored-by: nektro <5464072+nektro@users.noreply.github.com >
2025-07-13 04:46:07 -07:00
Jarred Sumner
285f708fe6
Implement more v8::Array::New overloads, v8::Object::{Get,Set}, v8::Value::StrictEquals, v8::Array::Iterate ( #20737 )
...
Co-authored-by: Cursor Agent <cursoragent@cursor.com >
Co-authored-by: jarred <jarred@bun.sh >
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Ben Grant <ben@bun.sh >
2025-07-13 04:27:43 -07:00
Jarred Sumner
d6d7251352
Fixes #14988 ( #20928 )
...
Co-authored-by: Claude Bot <claude-bot@bun.sh >
Co-authored-by: Claude <noreply@anthropic.com >
2025-07-12 18:22:54 -07:00
Zack Radisic
ac61b1d471
Use better function names for bun.String ( #20999 )
2025-07-12 18:19:16 -07:00
taylor.fish
0baf5b94e2
Fix bun add with multiple packages ( #20987 )
...
Co-authored-by: Meghan Denny <meghan@bun.sh >
2025-07-12 02:10:45 -07:00
Jarred Sumner
9e4700ee2d
Remove unused Symbol.for(primitive) calls in bundler ( #20888 )
...
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Jarred Sumner <Jarred-Sumner@users.noreply.github.com >
2025-07-12 00:52:07 -07:00
Jarred Sumner
9e4f460d17
Improve tree-shaking of try statements in dead code ( #20934 )
2025-07-11 15:47:04 -07:00
190n
c49547cfa4
Fix #20972 ( #20974 )
2025-07-11 15:23:29 -07:00
Jarred Sumner
a059c76370
Include RAM in crash report message ( #20954 )
...
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
2025-07-11 12:45:49 -07:00
Meghan Denny
9bc559e09f
console: fix printing of Response(Bun.file()) ( #20933 )
2025-07-11 11:37:44 -07:00
Jarred Sumner
5bde8a6c3b
Include an Error object in WebSocket error event dispatch ( #20957 )
2025-07-10 21:28:03 -07:00
Meghan Denny
6c5b863530
safety: a lot more exception checker progress ( #20817 )
2025-07-10 15:34:51 -07:00
taylor.fish
c6bce38ead
Fix incorrect negation of isEmpty() in assertion ( #20952 )
2025-07-10 15:34:46 -07:00
taylor.fish
5a1a3b425c
Refactor UnboundedQueue ( #20926 )
2025-07-10 14:46:10 -07:00
Jarred Sumner
b8dbd5aa73
Try always running timers if they exist ( #20840 )
2025-07-10 00:12:22 -07:00
Jarred Sumner
55a9cccac0
bun.sh -> bun.com ( #20909 )
2025-07-10 00:10:43 -07:00
Dylan Conway
a1ef8f00ac
fix(install): clone arena memory on manifest parse errors ( #20925 )
2025-07-09 21:03:51 -07:00
Meghan Denny
392acbee5a
js: internal/validators: define simple validators in js ( #20897 )
2025-07-09 16:45:40 -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
36bedb0bbc
js: fix async macros on windows ( #20903 )
2025-07-08 21:23:25 -07:00
Jarred Sumner
454316ffc3
Implement "node:module"'s findSourceMap and SourceMap class ( #20863 )
...
Co-authored-by: Claude <claude@anthropic.ai >
Co-authored-by: Claude <noreply@anthropic.com >
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2025-07-07 23:08:12 -07:00
Ciro Spaciari
c2311ed06c
fix(http2) avoid sending RST multiple times per stream ( #20872 )
2025-07-07 22:36:39 -07:00
Kai Tamkun
05e8a6dd4d
Add support for vm.constants.DONT_CONTEXTIFY ( #20088 )
2025-07-07 19:29:53 -07:00
Ciro Spaciari
75902e6a21
fix(s3) fix loading http endpoint from env ( #20876 )
2025-07-07 19:24:32 -07:00
Ciro Spaciari
aa06455987
refactor(postgres) improve postgres code base ( #20808 )
...
Co-authored-by: cirospaciari <6379399+cirospaciari@users.noreply.github.com >
2025-07-07 18:41:01 -07:00
Alistair Smith
19a855e02b
types: Introduce SQL.Helper in Bun.sql ( #20809 )
...
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
2025-07-07 17:47:51 -07:00
Michael H
0399ae0ee9
followup for bun pm version ( #20799 )
2025-07-07 11:21:36 -07:00
Zack Radisic
dacb75dc1f
Fix crash in bundler related to onLoad plugins that return file loader for HTML imports ( #20849 )
2025-07-07 01:07:03 -07:00
Jarred Sumner
e1957228f3
[internal] Add error when .classes.ts files are invalid
2025-07-06 21:07:38 -07:00
Adam
7ba4b1d01e
Fix: deprecated goo.gl links in snapshots raised in issue #20086 ( #20424 )
2025-07-05 00:58:42 -07:00
Dylan Conway
906b287e31
fix BUN-KHE ( #20820 )
...
Co-authored-by: Claude <noreply@anthropic.com >
2025-07-04 15:17:24 -07:00
Jarred Sumner
eabbd5cbfb
Fix React HMR duplicate identifier error for named default exports ( #20812 )
...
Co-authored-by: Claude <noreply@anthropic.com >
2025-07-04 03:06:00 -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
Michael H
0612dc7bd9
Support process.features.typescript ( #20801 )
2025-07-03 16:26:32 -07:00
Michael H
8657d705b8
remove yarn from default-trusted-dependencies.txt ( #20684 )
2025-07-03 16:23:03 -07:00
Jarred Sumner
0d4089ea7c
Fixes #20753 ( #20789 )
...
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2025-07-03 01:06:22 -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
8bb835bf63
Fix: Dynamic imports incorrectly resolve to CSS files when code splitting is enabled ( #20784 )
...
Co-authored-by: Meghan Denny <meghan@bun.sh >
2025-07-02 22:31:02 -07:00
Jarred Sumner
8bf50cf456
Fix 2 differences in napi vs node ( #20761 )
...
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Jarred Sumner <Jarred-Sumner@users.noreply.github.com >
2025-07-02 22:11:21 -07:00
Jarred Sumner
010e715902
Upgrade Webkit to 29bbdff0f94f ( #20780 )
2025-07-02 20:50:15 -07:00
Jarred Sumner
8b321cc1c6
Match Node.js v24 behavior for napi_get_value_string_utf8 handling of NAPI_AUTO_LENGTH ( #20698 )
...
Co-authored-by: Claude <noreply@anthropic.com >
2025-07-02 20:10:08 -07:00
Zack Radisic
0b9bab34d8
SSG ( #20745 )
...
Co-authored-by: Alistair Smith <hi@alistair.sh >
2025-07-02 20:06:43 -07:00
Michael H
764e20ee19
implement bun pm version ( #20706 )
2025-07-02 18:54:47 -07:00
Meghan Denny
0276f5e4a3
misc: use fromJSHostCallGeneric in a few more places ( #20778 )
2025-07-02 18:35:44 -07:00
Jarred Sumner
5a7b5ceb33
Fix several missing async context tracking callbacks ( #20759 )
...
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
2025-07-02 17:45:00 -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
Alistair Smith
452000a2ce
Node.js test test-fs-watchfile.js ( #20773 )
2025-07-02 15:04:39 -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