Files
bun.sh/docs
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
2023-09-07 10:09:09 -07:00
2023-02-23 17:13:30 -08:00
2025-07-10 00:10:43 -07:00
2025-07-10 00:10:43 -07:00