Bun v1.2.22 introduces async stack traces for better debugging, 240x faster postMessage and structuredClone for simple objects, and YAML stringify support. The release includes significant improvements to the MySQL adapter with affectedRows and lastInsertRowid support, better column type handling, and TLS connectivity. The
Table of contents
Async Stack Traces240x faster postMessage and structuredClone for simple objectsBun.YAML.stringifySupport for interactive TTYs after stdin closesBun.SQL improvementsBundler & minifierMonitor event loop delay with perf_hooks.monitorEventLoopDelay()http.Server.prototype.closeIdleConnections() is now implementedbun run now supports --workspacesRFC 6455 compliant WebSocket client subprotocol negotiationConnect to specific Redis databases with Bun.RedisClientBun.redis now supports hget()Faster number handling in Bun's APIsNode.js compatibility improvements:Bundler & minifier improvements:JavaScript runtime improvements:Bun.SQL bugfixes:Shell improvements:bun install improvements:Thanks to 14 contributors!Sort: