By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Bun 1.2 Improves Node Compatibility and Adds Postgres Client
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > News > Bun 1.2 Improves Node Compatibility and Adds Postgres Client
News

Bun 1.2 Improves Node Compatibility and Adds Postgres Client

News Room
Last updated: 2025/04/01 at 8:32 PM
News Room Published 1 April 2025
Share
SHARE

The Bun team recently released Bun v1.2, with major progress regarding compatibility with Node.js, a key component of Bun’s value proposition. Bun 1.2 also now has a built-in S3 object storage API and a built-in Postgres client that comes in addition to the existing built-in SQLite client.

Bun, designed as a drop-in replacement for Node.js, has Node.js compatibility as a core target feature. With Bun 1.2, the team now measures that compatibility by running the Node.js test suite on every change to the code. Core Node modules such as path, os, string_decoder, puny_code, query_string, url, events, stream, fs, and more now pass 90% of the Node.js test suite.

The release reports however that the Node.js test suite could not be run as is, as it is specific to Node.js idiosyncrasies. For instance, the test suite checks the exact Node.js string of error messages, which may change between releases. Some tests also relied on internal Node.js details. As a result, the Bun team ported the Node test suite to Bun, for instance replacing error strings with error codes so Bun has the freedom to add helpful details to the error messages.

Bun v1.2 also adds support for the node:http2 module to create HTTP/2 servers, with a purported 2x speed improvement vs. the same module as part of the Node.js distribution. Bun v1.2 additionally adds support for node:dgram (UDP sockets management), node:cluster (spawning new Bun instances), and node:zlib.

Importantly, Bun 1.2 adds built-in support for S3. Bun developers can now read, write, and delete files from an S3 bucket using APIs that are compatible with Web standards like Blob. The release note explained:

Decoupling storage from compute prevents an entire class of reliability issues: low disk space, high p95 response times from busy I/O, and security issues with shared file storage.


S3 is the defacto-standard for object storage in the cloud. The S3 APIs are implemented by a variety of cloud services, including Amazon S3, Google Cloud Storage, Cloudflare R2, and dozens more.

Bun S3’s native client touts 5x speed improvement when downloading files vs. packages like @aws-sdk/client-s3 with Node.js.

Bun 1.2 additionally expands support for SQL databases and contributes Bun.sql, a built-in SQL client with Postgres support. The new client comes to complement the existing built-in SQ_Lite_ client.

SQLite fits a wide variety of use cases. As Wesley Aptekar-Cassels argued on his blog:

On the whole, I think using SQLite is a good tradeoff for a lot of projects, including web apps that expect to have a potentially large number of users. As long as you don’t expect to need tens of thousands of small writes per second, thousands of large writes, or long-lived write transactions, it’s highly likely that SQLite will support your use case. It significantly reduces complexity and operational burden and eases testing, with the primary downside that it’s somewhat harder to get levels of availability and uptime that almost no one needs in the first place.

Postgres support means Bun developers also have a built-in option for those heavy use cases when SQLite is no longer a good fit. The client is written in native code with optimizations including automatic prepared statements, query pipelining, connection pooling, and structure caching. The release note claims up to 50% speed improvement when reading rows vs, using the most popular Postgres clients with Node.js.

By introducing built-in support for popular data stores like S3 and Postgres, Bun strives to accommodate further the demands of production applications for scalable, cloud-native solutions with fewer external dependencies.

Bun v1.2 is a large release with plenty of additional and important features. Developers are invited to review the full release note.

Bun is written in Zig and uses WebKit’s JavaScriptCore for its JavaScript engine. Bun 1.0 was released in September 2023

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article Huawei enters phone sales war with Oppo and Xiaomi · TechNode
Next Article Yakima County sees surge in overdose tracking with new software
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

I Tried Out Dyson’s New PencilVac. Here’s What You Need to Know
Gadget
Nexchain Crypto Presale is Now at Stage 13 | HackerNoon
Computing
Newspaper apologizes for AI-generated summer reading list with nonexistent books
News
How Long Does It Take To Process a Transaction in Ethereum? | HackerNoon
Computing

You Might also Like

News

Newspaper apologizes for AI-generated summer reading list with nonexistent books

2 Min Read
News

Innocn 49Q1R 49-inch OLED monitor review: A display of strange decisions

17 Min Read
News

Hot battery deals for all budgets and needs: Anker, GRECELL, and CUKTECH

9 Min Read
News

‘Are you joking?’ – Kay Adams in awkward Matt LaFleur interview mistake

2 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?