Bun 1.1 Achieves Full Node.js Compatibility

by Ada
Last updated on May 24, 2024

Bun 1.1 Achieves Full Node.js Compatibility

Bun has released version 1.1, achieving full compatibility with Node.js while maintaining its reputation for exceptional speed and integrated developer tools.

Node.js Compatibility Milestone

Bun 1.1 now passes 100% of Node.js's built-in module tests, meaning you can run virtually any Node.js application on Bun without modifications.

This includes full support for:

  • All built-in Node.js modules
  • Native addons and C++ modules
  • Popular npm packages
  • Node.js-specific APIs

Performance Leadership

Benchmarks show Bun continuing to outperform Node.js and Deno in most scenarios:

  • 4x faster HTTP server performance
  • 3x faster package installation
  • 2x faster JavaScript execution

Improved Windows Support

Windows users now have first-class support with the same performance characteristics as macOS and Linux, making Bun a viable option for cross-platform development.

Built-in Testing Improvements

The integrated test runner has been enhanced with better snapshot testing, improved coverage reporting, and faster test execution.

Bundler Enhancements

Bun's built-in bundler now supports more advanced features like code splitting and tree shaking, making it a complete replacement for tools like webpack and esbuild.