Bun 1.2 Release: Enhanced Node.js Compatibility, Built-in Database & Cloud-Native Features
Bun 1.2 delivers its biggest upgrade yet, boosting Node.js compatibility above 90% for core modules, adding built‑in PostgreSQL and native S3 support that outperforms the AWS SDK, switching to a readable lock file for faster installs, enhancing testing tools, and improving HTTP/2, filesystem, JSON and Windows performance while targeting remaining compatibility gaps.
Bun 1.2, the latest version of the JavaScript runtime, arrives with the most significant update since 1.1, focusing on deeper Node.js compatibility and cloud‑native capabilities.
The team now runs the full Node.js test suite, raising pass rates of core modules such as http , crypto , and dgram above 90%. As a result, Express workloads see roughly a three‑fold speed increase on Bun.
New built‑in services include a PostgreSQL client and native S3 object‑storage support, allowing developers to interact with these services without extra dependencies. Benchmarks show the Bun S3 client is about five times faster than the traditional AWS SDK for Node.js.
The package manager switches its lock file from binary bun.lockb to a readable text bun.lock , improving merge‑conflict handling while delivering a 30% faster bun install .
Testing is enhanced with JUnit and LCOV report generation and inline snapshot tests, making CI/CD integration smoother.
Performance gains span HTTP/2 servers, filesystem operations, JSON parsing, and console output, with notable Windows‑specific improvements.
Looking ahead, Bun aims to close the remaining Node.js compatibility gaps and balance its high performance with long‑term stability.
Java Tech Enthusiast
Sharing computer programming language knowledge, focusing on Java fundamentals, data structures, related tools, Spring Cloud, IntelliJ IDEA... Book giveaways, red‑packet rewards and other perks await!
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.