Bun v1.2.21 introduces major features including unified SQL client support for MySQL, SQLite, and PostgreSQL through Bun.SQL, native YAML parsing, 500x faster string postMessage performance, and a native secrets manager for secure credential storage. The release adds executable compilation via Bun.build() API with cross-platform targets, Windows metadata embedding, and SIMD-accelerated ANSI escape removal. Package management improvements include security scanner API, enhanced audit filtering, optimized lockfile-only installs, and interactive update scrolling. The update fixes 69 issues with extensive Node.js compatibility improvements and bundler optimizations.
Table of contents
Bun.SQL - unified SQL clientNative YAML support500x faster postMessage(string)Bun.secrets - native secrets manager for CLI toolsSecurity Scanner API for bun installbun audit gets new filtering optionsbun install --lockfile-only is much fasterbun update --interactive supports scrollingReduced idle CPU usageBun.build() now supports compiling executablesBun.stripANSI() - SIMD-accelerated ANSI escape removalCodesigned bun.exe for Windowsbunx now supports --packagepackage.json sideEffects now supports glob patternsCustomize User-Agent with the --user-agent flagNode.js compatibility improvementsBundler & parser bugfixesBun.SQL bugfixesbun install bugfixesRuntime bugfixes1 Comment
Sort: