---
title: "Bun v1.2.5"
description: "Bun v1.2.5 fixes 75 bugs, adds 69 passing Node.js tests, and nearly rewrites its Node-API implementation, which now passes 98% of Node's js-native-api suite."
url: "https://swe.quest/articles/bun-v1-2-5-0384b8a49ec32571"
canonical: "https://bun.com/blog/bun-v1.2.5"
source: "Bun"
published: "2025-03-11"
difficulty: "medium"
kind: "Release"
reading_minutes: 19
tags: ["javascript","runtimes","frontend"]
---

# Bun v1.2.5

A post on [Bun](https://swe.quest/sources/bun.md), published 2025-03-11, 19 min read, Release. Original: [https://bun.com/blog/bun-v1.2.5](https://bun.com/blog/bun-v1.2.5)

## Summary

Bun v1.2.5 fixes 75 bugs, adds 69 passing Node.js tests, and nearly rewrites its Node-API implementation, which now passes 98% of Node's js-native-api suite. The Node-API work gives each module its own napi\_env, adds null-pointer error handling and detects module API versions. node:crypto Sign/Verify are reimplemented in C++ on BoringSSL (about 34x faster), and Hash/Hmac are now native. The release also adds Bun.CSRF, CSS modules, a Svelte plugin and a rewritten HMR system with import.meta.hot.accept, along with many node:net, timers and child\_process compatibility fixes.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [Runtimes & VMs](https://swe.quest/tags/runtimes.md) (Compilers & runtimes)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)

## Prerequisites

- Node.js core modules ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- JavaScript bundlers ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))

## Keywords

Bun, Node-API, BoringSSL, node:crypto, CSS modules, Svelte, HMR

## Related posts

- [Bun v1.2.6](https://swe.quest/articles/bun-v1-2-6-f72795d94f6eaf67.md): Bun · 2025-03-25 · Medium · 11 min read · JavaScript, Runtimes & VMs, Cryptography, Performance engineering
  Bun v1.2.6 fixes 74 bugs and rewrites more of node:crypto (Cipheriv/Decipheriv, DiffieHellman, ECDH, randomBytes) in native code on BoringSSL, with benchmarks showing AES-256-GCM going from ~1.15 ms to ~3.5 µs per iteration and scrypt from 365 ms to 47 ms. node:http compatibility work makes Express 9% and Fastify 5.4% faster.
- [Bun v1.1.32](https://swe.quest/articles/bun-v1-1-32-2e7ec3e700c85e42.md): Bun · 2024-10-21 · Medium · 3 min read · JavaScript, Runtimes & VMs
  Bun v1.1.32 adds Node's one-shot crypto.hash() (backed by Bun.CryptoHasher.hash()) and fixes 7 bugs.
- [Bun v1.0.10](https://swe.quest/articles/bun-v1-0-10-49e5b151965cc45d.md): Bun · 2023-11-07 · Medium · 5 min read · Runtimes & VMs, JavaScript, Performance engineering, Linux
  Bun v1.0.10 makes node:http 14% faster by building Node.js headers, rawHeaders and url strings directly in native code.
- [Bun v0.3.0](https://swe.quest/articles/bun-v0-3-0-ce34b4df06ef614a.md): Bun · 2022-12-07 · Medium · 8 min read · JavaScript, Runtimes & VMs, Performance engineering
  Bun v0.3.0 focuses on stability and Node.js/Web API compatibility, cutting memory use 3-5x under load by scheduling garbage collection in coordination with the event loop and speeding up TextEncoder.encodeInto() 3x via simdutf.
- [Bun v1.2.16](https://swe.quest/articles/bun-v1-2-16-2fbfbd468574713c.md): Bun · 2025-06-11 · Medium · 5 min read · JavaScript, Runtimes & VMs
  Bun v1.2.16 fixes 73 issues and adds 119 passing Node.js tests.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
