bun
v1.2.0

Bun 1.2: Built-in S3 and PostgreSQL Support

Bun 1.2 adds native S3 client and PostgreSQL driver, reducing external dependencies for common operations.

January 12, 20254 min

Bun 1.2: Built-in S3 and PostgreSQL Support

Bun continues to expand its built-in functionality with native database and cloud storage support.

Native S3 Client

No more aws-sdk for simple S3 operations:

javascript
import { S3Client } from "bun";

const client = new S3Client({

region: "us-east-1", });

await client.putObject({ Bucket: "my-bucket", Key: "file.txt", Body: "Hello, World!", });

PostgreSQL Driver

Built-in PostgreSQL support with excellent performance:

javascript
import { sql } from "bun";

const users = await sqlSELECT * FROM users;

#

2x Faster npm Install

Package installation is now twice as fast, making CI/CD pipelines significantly quicker.

Bun is becoming a serious contender in the JavaScript runtime space.

Key Highlights

  • New features for developers
  • Performance improvements
  • Recommended for migration
Note
Before upgrading, we recommend reviewing the breaking changes in the official documentation.

Automate your release announcements

Shiplit turns GitHub releases into posts for Twitter, LinkedIn and Threads in seconds.