Commit Graph

255 Commits

Author SHA1 Message Date
Claude Bot
b982fc16d5 Fix React Server Components package references
Correct package names in documentation:
- Use `react-server-dom-bun` instead of `react-server-dom-webpack`
- Update install command to match actual requirements from bake.zig:344
- Fix serverRuntimeImportSource to use correct Bun-specific package

Based on actual implementation in:
- /workspace/bun/src/bake.zig:234 (server_runtime_import)
- /workspace/bun/src/bake.zig:344 (react_install_command)
- /workspace/bun/test/bake/bake-harness.ts (test install commands)

The index.ts file is marked as "unused by Bun itself" and contains
outdated references.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-27 05:40:54 +00:00
Claude Bot
c08b14ab10 Add comprehensive Bun Rendering API documentation with missing features
Major additions based on deep code analysis:

**Framework-Agnostic Architecture:**
- Document that React is just a built-in example, not the only option
- Add complete Svelte framework example showing custom plugins
- Show multi-framework apps with different router types
- Explain plugin system for custom file transformations

**Advanced CSS Hot Module Reloading:**
- Document sophisticated CSS HMR with MutationObserver tracking
- Framework-aware CSS management during client navigation
- CSSStyleSheet API for instant style replacement
- CSS chunking, routing-based splitting, and optimization

**Static Site Generation with Dynamic Params:**
- Document `getParams` export requirement for dynamic routes
- Show streaming parameter generation with async iterators
- Explain exhaustive vs non-exhaustive parameter generation
- Add Next.js `getStaticPaths` compatibility examples

**Production Build Features:**
- Document that `bun build --app` creates static builds by default
- Explain `import.meta.env.STATIC` environment variable
- Show complete build output structure with .rsc files
- Document RSC payload generation for seamless navigation

**Advanced Development Features:**
- HMR with file watching and incremental rebuilds
- Error overlay with stack traces and source maps
- Custom hot reload hooks for framework authors
- Environment variables for different build modes

**Complete API Reference:**
- All Framework configuration options
- RouteMetadata interface documentation
- Special module imports (bun:bake/server, bun:bake/client)
- Custom router function examples

Based on actual implementation analysis of:
- /workspace/bun/src/bake/production.zig (build system)
- /workspace/bun/src/bake/client/css-reloader.ts (CSS HMR)
- /workspace/bun/test/bake/fixtures/svelte-component-islands/ (framework examples)
- /workspace/bun/src/bake/bun-framework-react/ (React integration)

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-27 05:39:40 +00:00
Claude Bot
735bbdb7ca Rename from Bake framework to Bun Rendering API
Update documentation to correctly refer to this as the "Bun Rendering API"
rather than "Bake framework". This better reflects that it's a rendering
system/API rather than a full framework.

Changes:
- Rename title from "Bake: Full-Stack Web Framework" to "Bun Rendering API"
- Replace "Bake" references with "Bun Rendering API"
- Replace "framework" with "rendering system/API" in descriptions
- Update variable names from "customFramework" to "customConfig"
- Clarify this is an experimental rendering API

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-27 05:33:30 +00:00
Claude Bot
39513f5f6e Add comprehensive Bake framework documentation
Add detailed documentation for Bake, Bun's experimental full-stack web
framework with React Server Components support. Documents:

- Configuration via bun.app.ts files
- Built-in React framework integration
- File-based routing with Next.js conventions
- React Server Components with client/server separation
- Static site generation capabilities
- Hot module reloading and development features
- Custom framework configuration options
- CLI commands for development and production builds

Based on actual implementation in src/bake/ including server.tsx,
client.tsx, and type definitions from bake.d.ts.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-27 05:30:02 +00: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
55a9cccac0 bun.sh -> bun.com (#20909) 2025-07-10 00:10:43 -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
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
0b5363099b Some docs 2025-06-21 01:00:48 -07:00
Michael H
9811a2b53e docs: minor fix to Bun.deflateSync (#20466) 2025-06-18 12:01:30 -07:00
Joel Shepherd
13c5b0d9cb Added rapidhash algorithm (#20163) 2025-06-03 03:34:35 -07:00
Jarred Sumner
3605531e34 Remove empty page 2025-05-25 12:09:25 -07:00
Jarred Sumner
14b439a115 Fix formatters not running in CI + delete unnecessary files (#19433) 2025-05-08 23:22:16 -07:00
Eckhardt (Kaizen) Dreyer
512dee748b docs: update WebSockets example to use Bun.CookieMap (#19181) 2025-04-24 00:01:03 -07:00
Jarred Sumner
169f9eb1df Too marketing-y 2025-04-16 23:22:41 -07:00
David Legrand
c6701ac174 docs(redis): replace client.disconnect() with client.close() (#19005) 2025-04-14 12:16:17 -07:00
David Legrand
c682925c9c docs(redis): replace client.disconnect() with client.close() (#18978) 2025-04-13 05:42:40 -07:00
Teodor Atroshenko
b38e5e82af docs: add missing static methods of S3Client (#18821)
Co-authored-by: Don Isaac <donald.isaac@gmail.com>
2025-04-10 19:43:17 -07:00
Jarred Sumner
ca8b7fb36e Update redis.md 2025-04-08 04:00:10 -07:00
Jarred Sumner
ad3f367520 Clean up some docs 2025-04-08 03:58:30 -07:00
Jarred Sumner
02023810ba Clean up some docs 2025-04-08 03:57:35 -07:00
Jarred Sumner
ec87a27d87 Introduce Bun.redis - a builtin Redis client for Bun (#18812) 2025-04-08 03:34:00 -07:00
pfg
d9c77be90d node child process maxbuf support (#18293) 2025-04-03 17:03:26 -07:00
HAHALOSAH
934e41ae59 docs: clarify sentence in sql (#18532) [no ci] 2025-03-27 09:55:10 -07:00
pfg
1d655a0232 cookie mistakes (#18513) 2025-03-26 20:51:20 -07:00
Jarred Sumner
7740271359 Update cookie.md 2025-03-26 16:22:57 -07:00
Don Isaac
3af6f7a5fe fix(docs): failing typo (#18510) [no ci] 2025-03-26 16:06:40 -07:00
Jarred Sumner
1bfccf707b Update cookie.md 2025-03-26 15:51:40 -07:00
Jarred Sumner
21853d08de more cookie docs 2025-03-26 15:32:39 -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
Vincent (Wen Yu) Ge
a1690cd708 Trivial formatting fix in S3 docs (#18346) 2025-03-20 20:15:04 -07:00
pfg
2fc19daeec Update spawn docs to add timeout and resourceUsage (#18204) 2025-03-14 19:02:22 -07:00
Meghan Denny
3eec297282 js: no longer provide our own 'detect-libc' (#18138) 2025-03-13 12:40:37 -07:00
Meghan Denny
ba7f59355f js: de-class-ify node:net.Socket (#17997) 2025-03-10 23:37:11 -07:00
Alistair Smith
9141337c7d Fix some issues in Bun types (#17424)
Co-authored-by: Michael H <git@riskymh.dev>
2025-03-03 16:04:12 -08:00
Ciro Spaciari
215da32660 fix(docs) fix insert docs and add update + where in (#17728) 2025-02-26 16:03:37 -08:00
daniellionel01
d4c1114f9d Fix Broken Links in http.md (#17662) 2025-02-25 01:27:30 -08:00
Ciro Spaciari
94e5071947 feat(sql) implement sql.file and dynamic passwords support (#17527) 2025-02-21 14:04:15 -08:00
Jarred Sumner
6e45e3bf1e Fixes #17458 2025-02-19 21:00:19 -08:00
190n
9b515d74aa fix(docs): ffi is experimental (#17445) 2025-02-19 20:48:12 -08:00
Ciro Spaciari
99a3b01bd0 fix(sql) calling not tagged throw errors (#17415) 2025-02-17 13:06:27 -08:00
Jarred Sumner
527412626a Make fetch() optional in Bun.serve() when routes are passed (#17401)
Co-authored-by: Pham Minh Triet <92496972+Nanome203@users.noreply.github.com>
2025-02-17 03:25:07 -08:00
Ciro Spaciari
0d1a00fa0f fix(sql) docs (#17389) 2025-02-16 18:59:51 -08:00
Jarred Sumner
636d2459bb Update sql.md 2025-02-16 04:32:27 -08:00
Ciro Spaciari
79afefa488 fix(s3) Support Virtual Hosted-Style endpoints (#17292)
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2025-02-13 19:47:53 -08:00
Jarred Sumner
ea301d7235 More docs on fetch 2025-01-28 15:28:15 -08:00
Jarred Sumner
8c75c777c2 Update http.md 2025-01-28 00:56:56 -08:00