
"Bun, the fast all-in-one JavaScript runtime, has released version 1.3, marking its biggest release yet with comprehensive full-stack development capabilities, unified database APIs, and performance improvements across the runtime. Bun 1.3 introduces zero-configuration frontend development with built-in hot module replacement and React Fast Refresh support. Developers can now run HTML files directly with Bun, which automatically handles JavaScript, CSS, and React transpilation and bundling."
"One of the headline features in Bun 1.3 is Bun.SQL, a unified API supporting MySQL, MariaDB, PostgreSQL, and SQLite with zero external dependencies. The API provides consistent syntax across all database adapters while maintaining high performance through native implementations. An example of the unified syntax is shown below: import { sql, SQL } from "bun"; const postgres = new SQL("postgres://[localhost/mydb](<http://localhost/mydb>)"); const mysql = new SQL("mysql://[localhost/mydb](<http://localhost/mydb>)"); const sqlite = new SQL("sqlite://data.db"); const username = "test_user"; const seniorUsers = await sql`SELECT name, role, username FROM users WHERE username >= ${username}`;"
Bun 1.3 delivers comprehensive full-stack development features, unified database APIs, and runtime performance gains. Zero-configuration frontend development includes built-in hot module replacement, React Fast Refresh, and the ability to run HTML files directly while Bun handles JavaScript, CSS, and React transpilation and bundling. The development server watches the filesystem using platform-specific APIs like kqueue and inotify to provide hot reloading; bun build --production produces optimized bundles for production. Bun.SQL provides a unified, zero-dependency API for MySQL, MariaDB, PostgreSQL, and SQLite with consistent syntax and native implementations for high performance. A built-in Redis client ships with over 7.9x the performance of ioredis and supports standard Redis operations; clusters, streams, and Lua scripting are planned. Community response includes both excitement and concern.
Read at InfoQ
Unable to calculate read time
Collection
[
|
...
]