---
title: "Bun v1.1.39"
description: "Bun v1.1.39 introduces bun.lock, a human-readable text lockfile that improves git diffs and works with tools like Dependabot and Renovate, and makes cached bun install 30% faster."
url: "https://swe.quest/articles/bun-v1-1-39-87acf329d791d87e"
canonical: "https://bun.com/blog/bun-v1.1.39"
source: "Bun"
published: "2024-12-17"
difficulty: "medium"
kind: "Release"
reading_minutes: 9
tags: ["javascript","runtimes","build-systems","testing","memory-management"]
---

# Bun v1.1.39

A post on [Bun](https://swe.quest/sources/bun.md), published 2024-12-17, 9 min read, Release. Original: [https://bun.com/blog/bun-v1.1.39](https://bun.com/blog/bun-v1.1.39)

## Summary

Bun v1.1.39 introduces bun.lock, a human-readable text lockfile that improves git diffs and works with tools like Dependabot and Renovate, and makes cached bun install 30% faster. It adds streaming fetch() request bodies (chunked transfer encoding, or Content-Length when the size is known) and a zero-copy native onBeforeParse plugin API for Bun.build(), written in Rust via napi.rs, that runs in Bun's threadpool. Other changes include inline snapshot tests in bun:test, heap snapshots that count native memory, a 15% peak-RSS reduction for churned WebSocket server connections, full Node test-suite parity for string\_decoder, punycode and querystring, and a WebKit upgrade bringing Error.isError and a 44% faster String.prototype.at.

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)
- [Build systems](https://swe.quest/tags/build-systems.md) (Engineering practices)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [Memory management](https://swe.quest/tags/memory-management.md) (Compilers & runtimes)

## Prerequisites

- JavaScript runtimes ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- npm package management ([easy posts on Engineering management](https://swe.quest/tags/engineering-management.md?difficulty=easy))

## Keywords

Bun, bun.lock, Bun.build, napi.rs, JavaScriptCore, bun:test, fetch

## Related posts

- [Bun v1.1.40](https://swe.quest/articles/bun-v1-1-40-9a3067ef2dfd320e.md): Bun · 2024-12-18 · Medium · 2 min read · JavaScript, Runtimes & VMs, Build systems
  Bun v1.1.40 fixes 14 bugs and adds an \`install.saveTextLockfile\` option in bunfig.toml so the text-based \`bun.lock\` format can be the default ahead of Bun v1.2.
- [Bun v1.1.34](https://swe.quest/articles/bun-v1-1-34-d8b685a5be9be177.md): Bun · 2024-11-02 · Medium · 7 min read · JavaScript, Runtimes & VMs, Build systems
  Bun v1.1.34 fixes 64 bugs and adds Bun.randomUUIDv7() for sortable, database-friendly IDs, more aggressive garbage collection while idle in the event loop to cut memory in long-running processes, and Node-API type tagging (napi\_type\_tag\_object/napi\_check\_object\_type\_tag) that unblocks tree-sitter.
- [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.3.1](https://swe.quest/articles/bun-v1-3-1-ee365f019ab94793.md): Bun · 2025-10-22 · Medium · 9 min read · JavaScript, Runtimes & VMs, Build systems, Testing, Developer tools
  Bun v1.3.1 makes \`bun build\` up to 2x faster for symlink-heavy projects (isolated linker, pnpm).
- [Bun's new text-based lockfile](https://swe.quest/articles/bun-s-new-text-based-lockfile-e3afd1bb6d635a28.md): Bun · 2024-12-17 · Medium · 5 min read · Build systems, JavaScript, Performance engineering, Zig
  Bun v1.1.39 introduces bun.lock, a JSONC text lockfile enabled via \`bun install --save-text-lockfile\`, replacing the hard-to-review binary bun.lockb and planned as the default in Bun v1.2.

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)
