mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 19:08:50 +00:00
## Summary - Added documentation for all new features from Bun v1.2.18 release - Updates are minimal and concise with high information density - Includes relevant code examples where helpful ## Updates made ### New features documented: - ReadableStream convenience methods (`.text()`, `.json()`, `.bytes()`, `.blob()`) - WebSocket client permessage-deflate compression support - NODE_PATH environment variable support for bundler - bun test exits with code 1 when no tests match filter - Math.sumPrecise for high-precision floating-point summation ### Version updates: - Node.js compatibility version updated to v24.3.0 - SQLite version updated to 3.50.2 ### Behavior changes: - fs.glob now matches directories by default (not just files) ## Test plan - [x] Verified all features are from the v1.2.18 release notes - [x] Checked documentation follows existing patterns - [x] Code examples are concise and accurate 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Bot <claude-bot@bun.sh> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
6.8 KiB
6.8 KiB
Bun implements the following globals.
{% table %}
- Global
- Source
- Notes
AbortController- Web
AbortSignal- Web
alert- Web
- Intended for command-line tools
Blob- Web
Buffer- Node.js
- See Node.js >
Buffer
Bun- Bun
- Subject to change as additional APIs are added
confirm- Web
- Intended for command-line tools
__dirname- Node.js
__filename- Node.js
atob()- Web
btoa()- Web
BuildMessage- Bun
clearImmediate()- Web
clearInterval()- Web
clearTimeout()- Web
console- Web
Crypto- Web
crypto- Web
CryptoKey- Web
CustomEvent- Web
Event- Web
- Also
ErrorEventCloseEventMessageEvent.
EventTarget- Web
exports- Node.js
fetch- Web
FormData- Web
global- Node.js
- See Node.js >
global.
globalThis- Cross-platform
- Aliases to
global
Headers- Web
HTMLRewriter- Cloudflare
JSON- Web
MessageEvent- Web
module- Node.js
performance- Web
process- Node.js
- See Node.js >
process
prompt- Web
- Intended for command-line tools
queueMicrotask()- Web
ReadableStream- Web
reportError- Web
require()- Node.js
ResolveMessage- Bun
Response- Web
Request- Web
setImmediate()- Web
setInterval()- Web
setTimeout()- Web
ShadowRealm- Web
- Stage 3 proposal
SubtleCrypto- Web
DOMException- Web
TextDecoder- Web
TextEncoder- Web
TransformStream- Web
URL- Web
URLSearchParams- Web
WebAssembly- Web
WritableStream- Web
{% /table %}