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
pfg
7a31108019
Implement expectTypeOf ( #21513 )
...
Fixes #7569
This adds expectTypeOf, but not the experimental `--typecheck` flag from
vitest. To use it, you need to typecheck manually with `bunx tsc
--noEmit` in addition to `bun test`
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-01 12:11:03 -07:00
robobun
5bdcf339d7
Document static routes vs file routes in HTTP server ( #21506 )
...
## Summary
- Add comprehensive documentation distinguishing static routes from file
routes in `Bun.serve()`
- Document caching behavior differences: ETag vs Last-Modified
- Explain performance characteristics and error handling differences
- Provide clear use case recommendations
## Changes
- **File Responses vs Static Responses** section explaining the two
approaches
- **HTTP Caching Behavior** section detailing ETag and Last-Modified
support
- **Status Code Handling** section covering automatic 204/304 responses
- Code examples showing both patterns with clear explanations
## Key Documentation Points
- Static routes (`new Response(await file.bytes())`) buffer content in
memory at startup
- File routes (`new Response(Bun.file(path))`) read from filesystem per
request
- Static routes use ETags for caching, file routes use Last-Modified
headers
- File routes handle 404s automatically, static routes cause startup
errors for missing files
- Both support HTTP caching standards but with different validation
strategies
🤖 Generated with [Claude Code](https://claude.ai/code )
---------
Co-authored-by: Claude Bot <claude-bot@bun.sh >
Co-authored-by: Claude <noreply@anthropic.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-31 22:06:35 -07:00
pfg
f8c2dac836
Fix docs in test.md ( #21472 )
2025-07-29 17:42:11 -07:00
taylor.fish
07cd45deae
Refactor Zig imports and file structure (part 1) ( #21270 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-22 17:51:38 -07:00
Jarred Sumner
a868e859d7
Run formatter
2025-07-21 01:19:09 -07:00
robobun
12dafa4f89
Add comprehensive documentation for bun ci command ( #21231 )
...
Co-authored-by: Claude Bot <claude-bot@bun.sh >
Co-authored-by: Claude <noreply@anthropic.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-07-20 03:46:44 -07:00
robobun
436be9f277
docs: add comprehensive documentation for bun update --interactive ( #21232 )
...
Co-authored-by: Claude Bot <claude-bot@bun.sh >
Co-authored-by: Claude <noreply@anthropic.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-20 03:39:31 -07:00
robobun
422991719d
docs: add isolated installs to navigation ( #21217 )
...
Co-authored-by: Claude Bot <claude-bot@bun.sh >
Co-authored-by: Claude <noreply@anthropic.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-07-19 22:27:44 -07:00
robobun
1e5f746f9b
docs: add comprehensive isolated install documentation ( #21198 )
2025-07-19 06:12:46 -07:00
Jarred Sumner
eb0b0db8fd
Rename IS_CODE_AGENT -> AGENT
2025-07-19 03:59:47 -07:00
robobun
b5a9d09009
Add comprehensive build-time constants guide for --define flag ( #21171 )
...
Co-authored-by: Claude Bot <claude-bot@bun.sh >
Co-authored-by: Claude <noreply@anthropic.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-18 15:40:17 -07:00
Jarred Sumner
45e97919e5
Add bun bd to test/ folder and also run formatter
2025-07-17 22:20:02 -07:00
robobun
1927b06c50
Add documentation for AI agent environment variables in test runner ( #21159 )
...
Co-authored-by: Claude Bot <claude-bot@bun.sh >
Co-authored-by: Claude <noreply@anthropic.com >
2025-07-17 21:45:47 -07:00
Michael H
0ee633663e
Implement bun why ( #20847 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-16 02:00:53 -07:00
Jarred Sumner
b0a5728b37
Allow "catalog" and "catalogs" in top-level package.json if it wasn't provided in "workspaces" object ( #21009 )
2025-07-15 22:14:27 -07:00
Michael H
20db4b636e
implement bun pm pkg ( #21046 )
2025-07-15 22:14:00 -07:00
jarred-sumner-bot
803181ae7c
Add --quiet flag to bun pm pack command ( #21053 )
...
Co-authored-by: Claude Bot <claude-bot@bun.sh >
Co-authored-by: Claude <noreply@anthropic.com >
Co-authored-by: jarred-sumner-bot <220441119+jarred-sumner-bot@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-07-15 01:14:58 -07:00
Jose Angel
c5f64036a7
docs: Update docs for use prisma with bun ( #21048 )
...
Co-authored-by: jose angel gonzalez velazquez <angel@23LAP1CD208600C.indra.es >
2025-07-14 19:40:05 -07:00
jarred-sumner-bot
757096777b
Document test.coveragePathIgnorePatterns option ( #21036 )
...
Co-authored-by: Claude Bot <claude-bot@bun.sh >
Co-authored-by: Claude <noreply@anthropic.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-07-14 17:36:10 -07:00
jarred-sumner-bot
e9ccc81e03
Add --sql-preconnect CLI flag for PostgreSQL startup connections ( #21035 )
...
Co-authored-by: Claude Bot <claude-bot@bun.sh >
Co-authored-by: Claude <noreply@anthropic.com >
Co-authored-by: jarred-sumner-bot <220441119+jarred-sumner-bot@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-07-14 15:05:30 -07:00
jarred-sumner-bot
3bba4e1446
Add --console-depth CLI flag and console.depth bunfig option ( #21016 )
...
Co-authored-by: Claude Bot <claude-bot@bun.sh >
Co-authored-by: Claude <noreply@anthropic.com >
Co-authored-by: jarred-sumner-bot <220441119+jarred-sumner-bot@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-07-14 04:58:41 -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
Antonio Anderson
0feddf716a
fix(docs): use bun.sh in PowerShell install command to avoid rediret ( #21001 )
2025-07-12 18:16:09 -07:00
Alistair Smith
6615a2c9d4
docs: add typescript migration note for declaring globals in jest ( #20985 )
2025-07-11 19:13:40 -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
Jarred Sumner
55a9cccac0
bun.sh -> bun.com ( #20909 )
2025-07-10 00:10:43 -07:00
Michael H
0399ae0ee9
followup for bun pm version ( #20799 )
2025-07-07 11:21:36 -07:00
Adam
7ba4b1d01e
Fix: deprecated goo.gl links in snapshots raised in issue #20086 ( #20424 )
2025-07-05 00:58:42 -07:00
Michael H
764e20ee19
implement bun pm version ( #20706 )
2025-07-02 18:54:47 -07:00
mizulu
7f55b1af55
docs: fix missing word in the bundler text loader section ( #20723 )
2025-07-01 16:05:06 -07:00
pagal
cd561c6bba
Documentation fix for --filter ( #20714 )
2025-07-01 15:30:39 -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
Sharun
a067619f13
docs(prisma): update the prisma init command to use --bun ( #15171 )
...
Co-authored-by: Meghan Denny <meghan@bun.sh >
2025-06-27 22:04:52 -07:00
Yiheng
c9242dae3a
Update bunfig.md ( #16029 )
2025-06-27 21:32:38 -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
694a820a34
Update spawn.md
2025-06-27 19:58:31 -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
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
0b5363099b
Some docs
2025-06-21 01:00:48 -07:00
familyboat
fd91e3de0d
fix typo ( #20449 )
2025-06-20 19:57:36 -07:00
Jarred Sumner
fd5e777639
Remove outdated doc line
2025-06-20 16:16:14 -07:00
Michael H
9811a2b53e
docs: minor fix to Bun.deflateSync ( #20466 )
2025-06-18 12:01:30 -07:00
Jarred Sumner
162a9b66d8
bun pm view -> bun info (#20419 )
...
Co-authored-by: Cursor Agent <cursoragent@cursor.com >
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2025-06-17 13:31:16 -07:00
Jacob
b642e36da2
Add Support for LinkWorkspacePackages in Bunfig ( #20226 )
...
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
2025-06-09 17:01:15 -07:00
Joel Shepherd
13c5b0d9cb
Added rapidhash algorithm ( #20163 )
2025-06-03 03:34:35 -07:00
Justin Yao Du
293215778f
Fix a typo in bunfig docs page (extra if) ( #20160 )
2025-06-03 01:21:40 -07:00
190n
d5cc530024
State CPU requirements in README ( #20146 )
2025-06-02 14:06:39 -07:00
familyboat
082a9cb59c
fix: missing "default" export in module "data.yml" ( #20094 )
2025-05-31 14:55:15 -07:00