Claude Bot
381411d298
Add SOCKS proxy support for Bun HTTP client
...
Implements SOCKS5 and SOCKS5h proxy support as requested in issue #16812 .
This adds native SOCKS proxy functionality to Bun's HTTP client:
- Support for socks5:// and socks5h:// protocols
- Environment variable support (http_proxy, https_proxy)
- Direct proxy option support in fetch()
- Full SOCKS5 handshake implementation
- Integration with existing HTTP proxy infrastructure
Key changes:
- Add SOCKSProxy.zig implementing SOCKS5 protocol
- Update HTTPThread.zig to recognize SOCKS protocols
- Modify HTTP client to handle SOCKS proxy tunneling
- Add URL helpers for SOCKS protocol detection
- Include comprehensive test coverage
Resolves issue #16812
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-07-20 06:51:27 +00:00
Meghan Denny
cc4f840e8b
test: remove accidental uses of test.only ( #20097 )
2025-07-16 23:07:23 -07:00
Zack Radisic
45a0559374
Fix some shell things ( #20649 )
...
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Zack Radisic <zackradisic@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: robobun <robobun@oven.sh >
2025-07-16 19:46:31 -07:00
Meghan Denny
4be43e2c52
de-flake spawn.test.ts
2025-07-15 17:18:46 -07:00
Ciro Spaciari
93cc51c974
fix(s3) handle slashs at end and start of bucket name ( #20997 )
2025-07-15 16:52:47 -07:00
Jarred Sumner
33fac76763
Delete flaky test that made incorrect assumptions about the event loop
...
We cannot assume that the next event loop cycle will yield the expected outcome from the operating system. We can assume certain things happen in a certain order, but when timers run next does not mean kqueue/epoll/iocp will always have the data available there.
2025-07-14 23:58:37 -07:00
Jarred Sumner
40970aee3b
Delete flaky test that made incorrect assumptions about the event loop
...
We cannot assume that the next event loop cycle will yield the expected outcome from the operating system. We can assume certain things happen in a certain order, but when timers run next does not mean kqueue/epoll/iocp will always have the data available there.
2025-07-14 23:53:12 -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
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
Jarred Sumner
55a9cccac0
bun.sh -> bun.com ( #20909 )
2025-07-10 00:10:43 -07:00
Ciro Spaciari
75902e6a21
fix(s3) fix loading http endpoint from env ( #20876 )
2025-07-07 19:24:32 -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
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
Jarred Sumner
fbe405fb89
Fail the test when no tests match the filter ( #20749 )
...
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
2025-07-01 16:03:19 -07:00
pfg
3223da2734
ReadableStream .text(), .json(), .arrayBuffer(), .bytes() ( #20694 )
...
Co-authored-by: pfgithub <6010774+pfgithub@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-06-28 00:27:57 -07:00
Ciro Spaciari
964f2a8941
fix(fetch/s3) Handle backpressure when upload large bodies ( #20481 )
...
Co-authored-by: cirospaciari <6379399+cirospaciari@users.noreply.github.com >
2025-06-27 20:52:46 -07:00
Jarred Sumner
1d48f91b5e
Enable ReadableStream as stdin for Bun.spawn ( #20582 )
...
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Cursor Agent <cursoragent@cursor.com >
Co-authored-by: jarred <jarred@bun.sh >
Co-authored-by: pfg <pfg@pfg.pw >
2025-06-27 19:42:03 -07:00
Zack Radisic
0a3ac50931
Refactor shell to use AllocationScope and fix memory issues ( #20531 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Jarred Sumner <Jarred-Sumner@users.noreply.github.com >
2025-06-23 22:29:48 -07:00
Meghan Denny
2081e5b656
test: update spawn.test.ts for ci on windows ( #20600 )
2025-06-23 19:40:53 -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
Jarred Sumner
633f4f593d
Ahead-of-time frontend bundling support for HTML imports & bun build ( #20511 )
...
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
2025-06-20 19:55:52 -07:00
Zack Radisic
41d10ed01e
Refactor shell and fix some bugs ( #20476 )
2025-06-19 18:47:00 -07:00
Meghan Denny
b62f70c23a
inspect-error-leak.test.js: add a slightly higher asan margin
2025-06-19 15:02:38 -07:00
Meghan Denny
a445b45e55
empty commit to trigger formatting ci ( #20378 )
...
Co-authored-by: nektro <5464072+nektro@users.noreply.github.com >
2025-06-13 15:18:28 -07:00
Christian Rishøj
82b34bbbdd
feat(sqlite): Add columnTypes and declaredTypes to Statement ( #20232 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-06-13 19:48:37 +02:00
190n
c6deb4527c
Fix crash when FFI pointers are encoded as ints ( #20351 )
...
Co-authored-by: 190n <7763597+190n@users.noreply.github.com >
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
2025-06-13 19:46:26 +02:00
Ciro Spaciari
631e674842
fix(FileRoute) fix eof handling, fix max size handling, fix onReaderError behavior ( #20317 )
...
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
Co-authored-by: cirospaciari <6379399+cirospaciari@users.noreply.github.com >
2025-06-11 20:34:52 -07:00
Jarred Sumner
8750f0b884
Add FileRoute for serving files ( #20198 )
...
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
2025-06-10 19:41:21 -07:00
Jarred Sumner
2801cb1f4a
Fix TOML parser to handle inline tables and table arrays correctly ( #20291 )
...
Co-authored-by: Cursor Agent <cursoragent@cursor.com >
2025-06-09 18:52:30 -07:00
190n
ea05de59b3
Fix #20283 ( #20287 )
2025-06-09 16:50:24 -07:00
Jarred Sumner
c9761d4aa6
Fixes flaky test-http-pipeline-requests-connection-leak.js ( #20248 )
2025-06-07 05:19:11 -07:00
Jarred Sumner
27abb51561
Add fallback for ADDRCONFIG like Chrome's, avoid glibc UDP port 0 hangs ( #19753 )
...
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2025-06-05 20:20:00 -07:00
pfg
bd3abc5a2a
Fix calc bug ( #20174 )
2025-06-03 22:08:51 -07:00
Ali
90dda8219f
Fixed: radians rewritten to degrees without converting ( #19848 )
2025-06-03 04:06:05 -07:00
Ali
885979644d
Fixed : bun:ffi new CString() ignores byteOffset argument if byteLength is not provided ( #19819 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-06-03 04:05:04 -07:00
Joel Shepherd
13c5b0d9cb
Added rapidhash algorithm ( #20163 )
2025-06-03 03:34:35 -07:00
Jarred Sumner
390798c172
Fix memory leak in Bun.spawn ( #20095 )
...
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
2025-05-31 20:06:22 -07:00
Meghan Denny
e0852fd651
fix memory leak when pipe Bun.spawn stdio is never read repeatedly ( #20102 )
...
Co-authored-by: nektro <5464072+nektro@users.noreply.github.com >
2025-05-31 11:16:49 -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
pfg
bf02d04479
Don't validate cookie strings passed in the CookieMap constructor ( #19945 )
...
Co-authored-by: pfgithub <6010774+pfgithub@users.noreply.github.com >
2025-05-27 20:14:21 -07:00
Alistair Smith
31980bc151
perf_hooks.Histogram ( #19920 )
2025-05-26 21:18:22 -07:00
Seokho Song, dave@modusign
2fc8785868
Add x25519 elliptic curve cryptography to webcrypto ( #19674 )
2025-05-21 11:23:23 -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
Dylan Conway
33be08bde8
Fix RuntimeError.from return value ( #19777 )
...
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: dylan-conway <dylan-conway@users.noreply.github.com >
2025-05-19 17:05:10 -07:00
Jarred Sumner
9bee7a64a2
Support method-specific routes for html & static routes ( #19710 )
2025-05-17 00:28:01 -07:00
Seokho Song, dave@modusign
dcf1b1fbf5
Fix css custom property parser uninteded removing previous token ( #19599 )
2025-05-12 18:45:46 -07:00
pfg
a4bc1c8a35
Fix inline snapshot whitespace matching bug ( #19564 )
...
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
2025-05-09 15:37:30 -07:00