Bun 1.2 released with better Node.js compatibility, S3 API & SQL client boost performance
Bun 1.2 introduces significant updates to improve Node.js compatibility, performance, and developer experience. This release focuses on proactive refactoring to achieve full Node.js compatibility, with over 90% of key module tests passing. By running the Node.js test suite with every change, Bun reduces bugs significantly.
A standout feature is Bun.s3, a built-in API for S3-compatible object storage, supporting operations like reading, writing, and deleting files in S3 buckets. This aligns with Bun's cloud-first approach, enhancing scalability and reliability. Additionally, Bun 1.2 expands its database support with Bun.sql, a built-in SQL client for PostgreSQL, and plans for MySQL support.
Package management improvements include Bun serving as a fast npm-compatible manager and the introduction of bun.lock, a text-based lockfile format using JSONC to simplify diffs and reduce merge conflicts. Performance enhancements include a boost to HTTP performance, with the Express framework running up to 3x faster compared to Node.js. Looking forward, Bun aims to add MySQL support and achieve full Node.js compatibility, focusing on performance and developer-friendly tools.