To install:
curl https://bun.sh/install | bash
# or you can use npm
# npm install -g bun
To upgrade:
bun upgrade
Read Bun v0.7.2's release notes on Bun's blog
What's Changed
- Typo spawn.md by @jhormanrus in #3875
- fix: small error by @0xflotus in #3878
- docs: fixed small errors by @0xflotus in #3879
- Make
bun:jsc
memoryUsage more accurate by @Jarred-Sumner in #3876 - ref(bun/test): Refractor 'toBeTypeOf()' + Move some tests by @TiranexDev in #3885
- Fix coredump when reading an empty file(
node:stream:createReadStream
) by @Hanaasagi in #3882 - Fix memory leak by @Jarred-Sumner in #3887
- Fix issue with file loader by @Jarred-Sumner in #3889
- docs(bun/install): Mention {pre|post}prepare by @TiranexDev in #3890
- Support
bun .
to run the entry point by @Jarred-Sumner in #3891 - FIx Uint8Array to a ReadableStream code snippet by @audothomas in #3895
- Fix memory leak in response.clone(), further reduce memory usage of Request & Response by @Jarred-Sumner in #3902
- Update arraybuffer-to-buffer.md by @xxxhussein in #3906
- Add ecosystem guides by @colinhacks in #3847
- throw error if node module does not exist by @sirenkovladd in #3913
- Fix prisma.md typo by @emlez in #3921
- add
BroadcastChannel
by @dylan-conway in #3922 - Fix expanding on .env files by @cirospaciari in #3918
- Fix some flaky tests by @cirospaciari in #3919
- fix(fetch) clean declare structs by @cirospaciari in #3929
- Update streams.md - typo by @vjpr in #3926
- Fix path_watcher by @cirospaciari in #3920
- Fixes #3931 by @Jarred-Sumner in #3933
- Rewrite built-in modules to use CommonJS over ESM by @paperdave in #3814
- Implement
node:diagnostics_channel
by @Electroid in #3934 - Implement
node:worker_threads
by @Jarred-Sumner in #3923 - Remove module and browser conditions by @paperdave in #3935
- Fix http write by @paperdave in #3939
- Dave/removedeprecation by @paperdave in #3938
- typo by @paperdave in #3941
- Fix the value encoding in
path.extname
. by @Hanaasagi in #3949 - Minor optimization: Avoid extra copying when the chunk has only one element. by @Hanaasagi in #3946
- [install] fix stale
bun.lockb
on workspaces by @alexlamsl in #3945 - Bunch of fixes by @Electroid in #3516
- Fix edge case in
path.relative
. by @Hanaasagi in #3952 - allow bundling builtins for browser by @dylan-conway in #3959
- More guides and fixing links by @colinhacks in #3960
New Contributors
- @jhormanrus made their first contribution in #3875
- @audothomas made their first contribution in #3895
- @emlez made their first contribution in #3921
Full Changelog: bun-v0.7.1...bun-v0.7.2