Claude Bot
f95ef85afa
feat: implement Bun.Browser API for browser automation
...
Add comprehensive browser automation API using Chrome DevTools Protocol:
Core Features:
- Bun.browser() function to launch Chrome/Chromium instances
- Browser class with CDP connection management
- Page class for tab control and interaction
- Input interfaces: Keyboard, Mouse, Touchscreen
- Element and JSHandle classes for DOM manipulation
API Implementation:
- Browser.launch() with configurable options (headless, args, etc.)
- Page navigation: goto(), goBack(), goForward(), reload()
- Content manipulation: content(), setContent(), title()
- JavaScript evaluation: evaluate(), evaluateHandle()
- Element interaction: querySelector(), click(), type()
- Screenshots: screenshot() with various formats
- Viewport control: setViewport(), emulate()
- Cookie management: setCookie(), cookies(), deleteCookie()
- Event handling: on(), off(), once()
- Network control: setUserAgent(), setExtraHTTPHeaders()
Browser Automation:
- Automatic Chrome process spawning with proper flags
- WebSocket connection to Chrome DevTools Protocol
- Support for headless and headful modes
- Proper cleanup and resource management
- Error handling for common failure scenarios
Testing:
- Basic API exposure tests
- Integration tests with real browser instances
- DOM interaction and JavaScript evaluation tests
- Screenshot and viewport manipulation tests
- Multi-page handling tests
This replaces Puppeteer with a native Bun implementation for
browser automation tasks including web scraping, testing,
and automated browser interactions.
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-07-14 04:15:51 +00:00
Jarred Sumner
9cd9f534d5
Debian trixie does not support sfotware-properties-common
2025-07-13 02:34:13 -07:00
Jarred Sumner
f913a21709
Debian trixie does not support sfotware-properties-common
...
https://github.com/llvm/llvm-project/issues/120608
2025-07-13 02:29:27 -07:00
Jarred Sumner
a976a048b7
Delete unused and confusing bun-internal-test package ( #21008 )
...
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2025-07-13 02:23:50 -07:00
Jarred Sumner
22627eda9b
CI
2025-07-13 01:56:14 -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
Antonio Anderson
0feddf716a
fix(docs): use bun.sh in PowerShell install command to avoid rediret ( #21001 )
2025-07-12 18:16:09 -07:00
Zack Radisic
eae8fb34b8
Don't strip out debug symbols for lldb ( #20874 )
...
Co-authored-by: CountBleck <Mr.YouKnowWhoIAm@protonmail.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Michael H <git@riskymh.dev >
Co-authored-by: 190n <ben@bun.sh >
Co-authored-by: Alistair Smith <hi@alistair.sh >
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
Co-authored-by: cirospaciari <6379399+cirospaciari@users.noreply.github.com >
Co-authored-by: Kai Tamkun <13513421+heimskr@users.noreply.github.com >
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 >
Co-authored-by: Meghan Denny <meghan@bun.sh >
2025-07-12 17:13:34 -07:00
Meghan Denny
c106f31345
test: delete bundler test temp folders upon success ( #20990 )
2025-07-12 10:59:50 -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
Meghan Denny
7827df5745
[publish images]
2025-07-12 00:55:22 -07:00
Meghan Denny
dbd577cde6
ci: download exact version of node specifed ( #20936 )
...
Co-authored-by: nektro <5464072+nektro@users.noreply.github.com >
2025-07-12 00:53:52 -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
Alistair Smith
6615a2c9d4
docs: add typescript migration note for declaring globals in jest ( #20985 )
2025-07-11 19:13:40 -07:00
Alistair Smith
c594e7ecc1
Add non-default-referenced ambient declaration file to globally declare test runner symbols ( #20977 )
2025-07-11 18:06:45 -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
Alistair Smith
ee7e1f7d2c
fix #20978 ( #20981 )
2025-07-11 15:00:02 -07:00
Alistair Smith
70c22d41d6
types: NodeJS.ProcessEnv does not extend ImportMetaEnv ( #20976 )
2025-07-11 14:16:11 -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
Alistair Smith
c82e4fb485
fix typo ( #20962 )
2025-07-10 22:57:14 -07:00
Alistair Smith
a8780632a6
fix typo
2025-07-10 22:56:21 -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
ac55376161
[ci] Don't error if machine hits permission error when modifying coredump settings
2025-07-10 21:32:40 -07:00
Jarred Sumner
5bde8a6c3b
Include an Error object in WebSocket error event dispatch ( #20957 )
2025-07-10 21:28:03 -07:00
Zack Radisic
d733a96ba7
Add LLDB pretty printing for bun.BabyList ( #20958 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
2025-07-10 21:27:03 -07:00
190n
650c8f6d60
cmake: do not accept too-new LLVM versions ( #20955 )
2025-07-10 18:20:51 -07:00
Alistair Smith
6a62784e89
fix(types): Non-empty TextDecoderStream and TextEncoderStream when outside DOM ( #20953 )
2025-07-10 17:48:45 -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
taylor.fish
40c09fdf23
.gitignore: ignore Vim swap files ( #20950 )
2025-07-10 13:56:02 -07:00
Meghan Denny
055f821a75
webkit: disable libpas on windows ( #20931 )
2025-07-10 13:37:31 -07:00
Erick Christian
77a565269a
docs: document BUN_BE_BUN ( #20949 )
...
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
2025-07-10 13:35:32 -07:00
Michael H
000ae5c6b9
types: Bun.serve routes supportes Bun.file's ( #20919 )
2025-07-10 11:49:26 -07:00
Michael H
5dbaf08e4a
Bun Lambda keep old bun url ( #20941 )
2025-07-10 03:35:44 -07:00
Jarred Sumner
5dbe5d4308
Update CLAUDE.md
2025-07-10 01:08:10 -07:00
Jarred Sumner
b8dbd5aa73
Try always running timers if they exist ( #20840 )
2025-07-10 00:12:22 -07:00
190n
0d8175d4b9
print number of completed runs and ETA in gamble.ts ( #20920 )
2025-07-10 00:11:42 -07:00
Jarred Sumner
55a9cccac0
bun.sh -> bun.com ( #20909 )
2025-07-10 00:10:43 -07:00
Meghan Denny
72b5c0885a
test: fix process.test.js ( #20932 )
2025-07-09 23:02:43 -07:00
Dylan Conway
a1ef8f00ac
fix(install): clone arena memory on manifest parse errors ( #20925 )
2025-07-09 21:03:51 -07:00
Dylan Conway
6e92f0b9cb
make number smaller
2025-07-09 19:22:57 -07:00
Meghan Denny
392acbee5a
js: internal/validators: define simple validators in js ( #20897 )
2025-07-09 16:45:40 -07:00
190n
8b7888aeee
[publish images] upload encrypted core dumps from CI ( #19189 )
...
Co-authored-by: 190n <7763597+190n@users.noreply.github.com >
Co-authored-by: Ashcon Partovi <ashcon@partovi.net >
2025-07-09 15:42:11 -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
Meghan Denny
a63f09784e
.vscode/launch.json: delete unused configurations ( #20901 )
2025-07-08 16:45:24 -07:00