
Bun 1.2 Just Made Node.js Feel Slow — Here's What Changed
Bun 1.2 Dropped and It's a Big Deal Bun 1.2 brought full Node.js compatibility, a built-in S3 client, Postgres driver, and significant performance improvements. If you've been waiting to switch from Node.js, this might be the release that tips you over. What's New 1. Full Node.js Compatibility Bun now passes 90%+ of Node.js test suite. The remaining gaps are edge cases most apps never hit: # Your existing Node.js app probably just works now bun run server.js # Drop-in replacement 2. Built-in S3 Client No more installing @aws-sdk/client-s3 . Bun has it built in: const file = Bun . s3 ( " my-bucket/data.json " ); const data = await file . json (); // Upload await Bun . s3 ( " my-bucket/output.json " ). write ( JSON . stringify ( results )); That's it. No configuration objects, no credential chains, no 50MB SDK. 3. Built-in Postgres import { sql } from " bun " ; const users = await sql `SELECT * FROM users WHERE active = true` ; No pg package. No connection pool setup. Tagged template lit
Continue reading on Dev.to JavaScript
Opens in a new tab




