Bun v1.2.22
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 bundler gains new minification optimizations, JSX side effects preservation, and an onEnd hook for plugins. Additional enhancements cover WebSocket subprotocol negotiation, Redis database selection, HTTP server idle connection management, event loop delay monitoring, and extensive Node.js compatibility fixes across child_process, crypto, N-API, and other modules.