Change8

bun-v1.3.3

📦 bunView on GitHub →
5 features🐛 4 fixes🔧 8 symbols

Summary

Bun v1.3.3 introduces new APIs for password hashing, DNS resolution, and promise peeking, alongside significant performance improvements to JSON processing and bug fixes for the installer and fetch API.

Migration Steps

  1. Run 'bun upgrade' to update to version 1.3.3
  2. If using npm, run 'npm install -g bun' to update the global binary

✨ New Features

  • Added support for Bun.password.hash and Bun.password.verify
  • Added support for Bun.dns.lookup and Bun.dns.resolve
  • Added support for Bun.peek() to check if a promise has resolved without awaiting it
  • Improved performance of JSON.parse() and JSON.stringify()
  • Added support for the 'ws' module in Bun's node-compatibility layer

🐛 Bug Fixes

  • Fixed a bug where bun install would sometimes fail with a checksum mismatch
  • Fixed a bug where bun test would hang when using certain matchers
  • Fixed a memory leak in the fetch() API
  • Fixed a crash when using worker_threads with certain native modules

🔧 Affected Symbols

Bun.passwordBun.dnsBun.peekJSON.parseJSON.stringifywsfetchworker_threads