Bun 1.2 released with better Node.js compatibility, S3 API & SQL client boost performance

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.

by Mauricio B. Holguin

Bun iconBun
  18
  • ...

Bun is a modern JavaScript runtime environment, similar to Node.js and Deno, designed with a focus on speed, TypeScript support, and asynchronous operations. Rated 5, Bun is built from scratch to enhance performance and developer experience. It stands out for its fast execution and seamless TypeScript integration, with Node.js, npm, and Deno as its top alternatives.

No comments so far, maybe you want to be first?
Gu