To upgrade:
bun upgradeTo install:
curl https://bun.sh/install | bashIf you have any problems upgrading
Run the install script (you can run it multiple times):
curl https://bun.sh/install | bashWhat's new
bun init quickly start a new, empty project that uses Bun (similar to npm init). bun init is a new subcommand in bun.

bun install now supports private npm registries & scoped (authenticated) packages
Thank you @soneymathew for your help with this.

bun install now supports lifecycle hooks for project-level package.json (not dependencies)

It runs postinstall scripts for your app's package.json, but ignores dependencies lifecycle hooks. This lets you use husky, lint-staged, and other postinstall-dependent packages tools
More new stuff:
expressis partially supported, thanks to @zhuzilin and @evanwashere. There is a lot more work to be done - it's not fast yet and it logs a spurious error on request, but it is better than not workingbun createnow lets you specify a start command so that you can say how to run the program in the outputprocess.revisionhas the git sha that bun was built with
Breaking changes
- bun install will invalidate the lockfiles on upgrade if it exists. Unfortunately, this is necessary to support private/scoped package installs
Bug fixes
- Fix a handful of crashes that occurred in rare cases in Bun.Transpiler,
bun:ffiand a couple other places thanks to @sno2 Buffer.isBufferno longer checks thatthisis theBufferconstructorBun.Transpilerno longer does bun-specific transforms when it shouldn't- Make internal APIs that iterate through JS objects more reliable @sno2 in
#974 - Fix u32 jsNumber cast by @zhuzilin in
#964 - fix import in http polyfill by @zhuzilin in
#973 - fix path.normalize on ... by @zhuzilin in
#966 - allow setting status code in Response.redirect by @zhuzilin in
#985 - Fix for bearer tokens missing from request headers on bun install step by @soneymathew in
#991 - Fix of panic in threads while downloading scoped packages by @soneymathew in
#992 - feat(util): export util.TextDecoder by @xHyroM in
#990 - Fixed bugs in
latin1andbinaryencodings in bun'sBufferimplementation
Misc:
- fix(makefile) fix devcontainer rule by @zhuzilin in
#957 - refactor: create a high-level property iterator by @sno2 in
#972 - fix(makefile): mkdir DEBUG_OBJ_DIR before compiling bindings by @zhuzilin in
#975 - Convert landing page to zero-JS Next.js application. by @leerob in
#945 - benchmarks(sqlite): invalid northwind database url by @xHyroM in
#989 - Update README for development help by @JL102 in
#982