Bun
Backend & InfraIncredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
Release History
View all versions →bun-v1.4.0Bun v1.4 has been released, with installation and upgrade instructions provided. The release notes thank numerous community contributors for their bug fixes and contributions since Bun v1.3.
consolidation-step-7-greenThis release is a work-in-progress (WIP) update, specifically step 7 of a larger effort related to 'sweep-wip2'. It focuses on taking a snapshot before a capability raise resume.
consolidation-step-5-green1 fixFixed an issue where the bun_s3_signing::error/Error was not being routed correctly. The error is now routed via the s3_signing mount path.
consolidation-step-4-green1 fixDropped the package-rename dependency and applied sed scripts from previous versions (4.2, 4.4, 4.5, 4.6).
consolidation-step-3-green1 fixThis release drops package-rename dependencies and applies seds for versions 2.4, 2.5, and 3.6.
consolidation-step-1-green1 fixRegenerated stale build/debug/codegen rust outputs to ensure consistency.
bun-v1.3.14Bun v1.3.14 release includes contributions from 11 community members. Installation and upgrade instructions are provided.
freebsd-smoke-test-1777016712This release contains a temporary artifact intended solely for smoke testing PR #29676 and should be deleted after testing is complete.
bun-v1.3.13Bun v1.3.13 has been released, with installation and upgrade instructions provided. The release acknowledges contributions from 8 community members.
bun-v1.3.12Bun v1.3.12 has been released with installation and upgrade instructions provided. The release acknowledges contributions from 8 community members.
bun-v1.3.11Bun v1.3.11 is a maintenance release with thanks to 15 contributors. Installation and upgrade instructions are provided.
bun-v1.3.10Bun v1.3.10 has been released, with installation and upgrade instructions provided. Further details are available on the Bun blog.
bun-v1.3.9Bun version 1.3.9 has been released, with installation and upgrade instructions provided. Further details are available on the Bun blog.
bun-v1.3.8Bun v1.3.8 release notes are available on the official blog, focusing on minor updates and thanking contributors.
bun-v1.3.7Bun v1.3.7 is released, with installation and upgrade instructions provided. Further details are available on the official blog.
bun-v1.3.6Bun v1.3.6 has been released, thanking 23 contributors for their work. Installation and upgrade instructions are provided.
bun-v1.3.5Bun v1.3.5 is a maintenance release featuring contributions from 10 developers. Detailed changes are documented on the official Bun blog.
bun-v1.3.4Bun v1.3.4 is a maintenance release featuring contributions from 14 developers. Detailed changes are documented on the official Bun blog.
bun-v1.3.34 fixes5 featuresBun 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.
bun-v1.3.2Bun v1.3.2 is a maintenance release featuring contributions from 18 developers. Detailed changes and improvements are documented in the official release blog post.
bun-v1.3.11 fixBun v1.3.1 is a maintenance release featuring bug fixes identified through fuzzing and contributions from 15 community members.
bun-v1.3.03 fixes6 featuresBun v1.3 introduces the Bun Shell, a cross-platform solution for executing shell scripts within JavaScript, alongside significant performance improvements for Windows and enhanced framework support.
bun-v1.2.23Bun v1.2.23 is a maintenance release featuring contributions from 16 developers. Detailed changes are documented in the official blog post.
bun-v1.2.22Bun v1.2.22 is a maintenance release featuring contributions from 14 developers. Detailed changes are documented on the official Bun blog.
bun-v1.2.21Bun v1.2.21 is a maintenance release involving contributions from 23 developers. Detailed changes are documented on the official Bun blog.
Common Errors
DOMException3 reportsDOMException errors in Bun often arise from issues with asynchronous operations like network requests or timeouts not being handled gracefully, leading to abrupt aborts or unhandled rejections. To fix this, ensure all asynchronous operations have proper error handling, including explicit AbortController usage for network requests and robust unhandled rejection listeners, to prevent process termination.
DataCloneError2 reportsDataCloneError in Bun generally arises when attempting to transfer objects between contexts (like worker threads or WASM) that contain non-transferable or non-clonable data, such as functions, native objects, or circular references. To resolve this, either restructure your data to exclude these problematic elements before transferring or leverage structured cloning alternatives allowing custom handling of specific data types that are not natively clonable in Bun. Ensure that you are only transferring plain JavaScript objects, arrays, and primitive values when using the default cloning mechanism.
AbortError2 reportsThis error commonly arises when an asynchronous operation, like a child process spawn or file read, is prematurely cancelled via an AbortSignal but the underlying operation doesn't correctly recognize or propagate this abortion as an AbortError. To fix this, ensure that when cancelling async operations with an AbortSignal, the relevant Bun APIs are updated or patched to catch the signal and throw an actual AbortError, or explicitly handle the non-AbortError thrown to treat it as a cancellation.
ZodFlattenedError1 reportZodFlattenedError in bun often stems from malformed JSON within a package's `package.json` file, usually an unterminated string or missing comma. Inspect your project and dependency `package.json` files for JSON syntax errors using a linter or online validator, and correct the mistakes to resolve the issue. Consider running `bun install` with a specific registry mirror using the `--registry` option as a temporary workaround to bypass problematic package versions if the error lies in an external dependency.
GenerateContentTypesError1 reportThe "GenerateContentTypesError" in Bun often arises from incorrect or missing type definitions, especially after upgrading. Try deleting your `node_modules` folder and running `bun install` to ensure all dependencies and their associated types are correctly installed and linked. If the error persists, verify all your imports are accurate, and that no circular dependencies are present.
InvalidAccessError1 reportInvalidAccessError in Bun often arises when attempting DOM manipulation or accessing browser APIs outside of a proper browser environment or before the DOM is fully loaded. Ensure that your DOM-related operations are wrapped within `document.addEventListener('DOMContentLoaded', function(){ /* code here */ });` or executed within a browser context (if you intended to run browser code). If you're running code intended for Node, replace browser-specific code with Node equivalents or use a library like `jsdom` for a simulated environment.
Related Backend & Infra Packages
Production-Grade Container Scheduling and Management
Node.js JavaScript runtime ✨🐢🚀✨
Promise based HTTP client for the browser and node.js
A modern runtime for JavaScript and TypeScript.
Deliver web apps with confidence 🚀
Free and Open Source, Distributed, RESTful Search Engine
Subscribe to Updates
Get notified when new versions are released