Files
bun.sh/docs/api
Claude Bot 38117fb07d docs: update documentation for recent API additions
Adds comprehensive documentation for features introduced in recent releases:

## CLI Commands & Features
- Enhanced `bun pm pkg` subcommands (get/set/delete/fix)
- `bun install --linker=isolated` for pnpm-style installs
- `bun audit` filtering flags (--audit-level, --prod, --ignore)
- Security Scanner API for vulnerability scanning
- Fixed examples in `bun why` command docs

## Testing APIs
- `expectTypeOf` for TypeScript type-level testing
- New mock return value matchers: `toHaveReturnedWith`, `toHaveLastReturnedWith`, `toHaveNthReturnedWith`
- `mock.clearAllMocks()` for global mock state management

## Runtime & Build APIs
- ReadableStream convenience methods (`.text()`, `.json()`, `.bytes()`, `.blob()`)
- WebSocket `permessage-deflate` compression support
- `Math.sumPrecise` high-precision summation
- Enhanced `Bun.build()` compile API with cross-platform targets
- Ahead-of-time bundling for HTML imports in server-side code

All examples tested and verified working in Bun v1.2.21.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-01 08:04:33 +00:00
..
2025-07-10 00:10:43 -07:00
2025-07-10 00:10:43 -07:00
2024-09-26 13:47:09 -07:00
2025-03-26 20:51:20 -07:00
2025-07-10 00:10:43 -07:00
2025-08-11 18:42:55 -07:00
2025-02-19 20:48:12 -08:00
2025-07-10 00:10:43 -07:00
2023-02-23 17:13:30 -08:00
2025-07-10 00:10:43 -07:00
2025-06-03 03:34:35 -07:00
2025-01-13 02:15:17 -08:00
2025-04-16 23:22:41 -07:00
2025-07-10 00:10:43 -07:00
2025-08-23 06:57:00 -07:00
2024-09-06 13:26:20 -07:00
2025-01-17 22:08:07 -08:00
2025-08-17 17:33:51 -07:00
2025-08-23 18:13:53 -07:00