---
title: "Bun v1.2.6"
description: "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."
url: "https://swe.quest/articles/bun-v1-2-6-f72795d94f6eaf67"
canonical: "https://bun.com/blog/bun-v1.2.6"
source: "Bun"
published: "2025-03-25"
difficulty: "medium"
kind: "Release"
reading_minutes: 11
tags: ["javascript","runtimes","cryptography","performance"]
---

# Bun v1.2.6

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

## Summary

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. Other changes include hkdf and prime functions, initial node:test support backed by bun:test, a timeout option for Bun.spawn, PostgreSQL connections over Unix sockets in Bun.SQL, vm.compileFunction, module.children, and many Node.js 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)
- [Cryptography](https://swe.quest/tags/cryptography.md) (Security)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

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

## Keywords

Bun, node:crypto, BoringSSL, Bun.SQL, node:test, Express, Fastify

## Related posts

- [Bun v1.2.5](https://swe.quest/articles/bun-v1-2-5-0384b8a49ec32571.md): Bun · 2025-03-11 · Medium · 19 min read · JavaScript, Runtimes & VMs, Frontend
  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.
- [Bun v0.2.2](https://swe.quest/articles/bun-v0-2-2-758afa2db2ef7788.md): Bun · 2022-10-27 · Medium · 5 min read · JavaScript, Runtimes & VMs, Networking
  Bun v0.2.2 adds a TCP/TLS socket API for clients and servers.
- [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 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.1.16](https://swe.quest/articles/bun-v1-1-16-73af18d20e38e0ab.md): Bun · 2024-06-23 · Medium · 6 min read · JavaScript, Runtimes & VMs, Testing, Build systems
  Bun v1.1.16 fixes 41 bugs and adds lcov output for \`bun test --coverage\`, configurable in bunfig.toml.

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)
