bun - bun-v0.8.0
To install:
curl https://bun.sh/install | bash
# or you can use npm
# npm install -g bun
To upgrade:
bun upgrade
Read Bun v0.8.0's release notes on Bun's blog
What's Changed
- [install] handle
bun add
of existingpeerDependencies
correctly by @alexlamsl in https://github.com/oven-sh/bun/pull/4028 - Running missing scripts exits with non-0 by @YashoSharma in https://github.com/oven-sh/bun/pull/4026
- Bind require.resolve() by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4030
- Fixes #4010 by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4031
- Fixes #4029 and fixes #4022 by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4032
- Fixes #4001 by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4034
- Fix
path.normalize
edge case. by @Hanaasagi in https://github.com/oven-sh/bun/pull/4042 - WASM test analyzer by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4043
- fix iterating headers with
set-cookie
by @dylan-conway in https://github.com/oven-sh/bun/pull/4048 - implement
bun update
by @alexlamsl in https://github.com/oven-sh/bun/pull/4046 - implement fetching data urls by @dylan-conway in https://github.com/oven-sh/bun/pull/4000
- Fix
Bun.hash
functions by @jhmaster2000 in https://github.com/oven-sh/bun/pull/4054 - Add
env
option fornode:worker_threads
by @paperdave in https://github.com/oven-sh/bun/pull/4052 - make dynamically importing bun work by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4055
- Fix
path.format
compatibility issue. by @Hanaasagi in https://github.com/oven-sh/bun/pull/4064 - Fix require("console") #3820 by @paperdave in https://github.com/oven-sh/bun/pull/4073
- Set exports to {} in user-constructed CommonJSModuleRecords by @paperdave in https://github.com/oven-sh/bun/pull/4076
- feat(bun/test): Implement "toSatisfy" & "toIncludeRepeated" (fwup) by @TiranexDev in https://github.com/oven-sh/bun/pull/3651
- worker tests by @paperdave in https://github.com/oven-sh/bun/pull/4058
- feat(bun:test) add support for test.each() and describe.each() by @jecquas in https://github.com/oven-sh/bun/pull/4047
- Fix one of the astro segfaults, also fix bun init version by @paperdave in https://github.com/oven-sh/bun/pull/4079
- update simdutf by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4078
- Fix
XLSX.read
coredump by @Hanaasagi in https://github.com/oven-sh/bun/pull/4086 - Add support for bun --revision by @YashoSharma in https://github.com/oven-sh/bun/pull/4027
- remove non-node node-fallbacks by @paperdave in https://github.com/oven-sh/bun/pull/4082
- Sync bun-polyfills branch by @jhmaster2000 in https://github.com/oven-sh/bun/pull/4081
- add util.formatWithOptions by @paperdave in https://github.com/oven-sh/bun/pull/4090
- bun test: format description of test.each by @jecquas in https://github.com/oven-sh/bun/pull/4092
- Fixes #4062 by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4106
- fs.zig: create temp files with 0o700, not 0o007 by @adtac in https://github.com/oven-sh/bun/pull/4107
- Handle thundering herd of setInterval by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4109
- Fix memory leak in Buffer.toString('base64url') by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4111
- run files without extensions by @dylan-conway in https://github.com/oven-sh/bun/pull/4113
- make
astro build
slightly faster by making fs.realpath actually async, and fix a potential crash in fs.readFile by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4117 - Support TypeScript's
export type * as Foo from 'bar'
by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4125 bun-wasm
fixes & improvements by @jhmaster2000 in https://github.com/oven-sh/bun/pull/4126- Deprecate loading
node_modules.bun
by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4131 - Fix custom config path not working. by @Hanaasagi in https://github.com/oven-sh/bun/pull/4129
- Fix worker event loop ref/unref + leak by @paperdave in https://github.com/oven-sh/bun/pull/4114
- Update Stric guides by @aquapi in https://github.com/oven-sh/bun/pull/4137
- Fix
make setup
by @paperdave in https://github.com/oven-sh/bun/pull/4148 - Make builtins' source origin use a valid url by @paperdave in https://github.com/oven-sh/bun/pull/4152
- fix importing too long of strings by @paperdave in https://github.com/oven-sh/bun/pull/4155
- chore: fix method name typo by @Hanaasagi in https://github.com/oven-sh/bun/pull/4162
- Fix event loop issue with
Bun.connect
by @paperdave in https://github.com/oven-sh/bun/pull/4157 - Update docs our current status of node compatibility by @paperdave in https://github.com/oven-sh/bun/pull/4172
- Create domjit.test.ts by @dylan-conway in https://github.com/oven-sh/bun/pull/4173
- Fix prisma linux generation by @cirospaciari in https://github.com/oven-sh/bun/pull/4150
bun --inspect
by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4158- Add SvelteKit guide by @colinhacks in https://github.com/oven-sh/bun/pull/4180
- Add SolidStart guide by @colinhacks in https://github.com/oven-sh/bun/pull/4182
- Fix leaking .ptr by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4181
- correct guide's bunfig example option by @xxxhussein in https://github.com/oven-sh/bun/pull/4192
- Add Astro guide by @colinhacks in https://github.com/oven-sh/bun/pull/4110
- refactor: move HTMLRewriter to c++ bindings by @bru02 in https://github.com/oven-sh/bun/pull/4193
- Fix(node:fs): add
buffer
parameter infs.read
callback. by @Hanaasagi in https://github.com/oven-sh/bun/pull/4191 - Allow IncomingRequest.req to be overwritten. by @paperdave in https://github.com/oven-sh/bun/pull/4154
- Support Nitro by @paperdave in https://github.com/oven-sh/bun/pull/4098
- Add
util.inspect.custom
support toutil.inspect/Bun.inspect/console.log
by @paperdave in https://github.com/oven-sh/bun/pull/4194 - Remove most C API usages, add debugger pretty printers for
Headers
,URLSearchParams
,FormData
,Worker
,EventTarget
by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4187 - Implement BigIntStats by @paperdave in https://github.com/oven-sh/bun/pull/4208
- feat: add self-closing & can-have-content by @bru02 in https://github.com/oven-sh/bun/pull/4206
- tty
ReadStream
,WriteStream
, and readline rawmode by @dylan-conway in https://github.com/oven-sh/bun/pull/4179 - Add inline sourcemaps when
--inspect
is enabled by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4213 - Fixes #172 by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4220
- Fix crash impacting sharp & resvg by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4221
- Add unsupported (yet) comment to distroless image by @o-az in https://github.com/oven-sh/bun/pull/4210
- Fix(bundler): use different alias mappings based on the target. by @Hanaasagi in https://github.com/oven-sh/bun/pull/4163
- Fix test failures from 3a9a6c63a by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4231
- Implement
--inspect-brk
by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4222 - Fixes #1675 by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4230
- Update README.md by @xxxhussein in https://github.com/oven-sh/bun/pull/4232
- Fix memory leak in
buffer.toString("hex")
by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4235 - Buffer.toString('hex') gets 40x faster by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4237
- Fixes #4089 by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4105
- feat: Implement Bun.inspect.custom by @paperdave in https://github.com/oven-sh/bun/pull/4243
- Implement
napi_ref_threadsafe_function
by @paperdave in https://github.com/oven-sh/bun/pull/4156 - Fix crypto.EC constructor by @paperdave in https://github.com/oven-sh/bun/pull/4242
- Fix(bundler): allow generating exe file in nested path. by @Hanaasagi in https://github.com/oven-sh/bun/pull/4226
- Fix
emitKeyPresses
with backspace + quote by @paperdave in https://github.com/oven-sh/bun/pull/4245 - fetch(stream) add stream support for compressed and uncompressed data by @cirospaciari in https://github.com/oven-sh/bun/pull/4127
- import errors have
code
set toERR_MODULE_NOT_FOUND
andrequire
errors havecode
set toMODULE_NOT_FOUND
by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4244 - Docs and types for v0.8.0 by @colinhacks in https://github.com/oven-sh/bun/pull/4199
- fix stdin stream unref and resuming by @dylan-conway in https://github.com/oven-sh/bun/pull/4250
- fix fsevents and stub for qwikcity by @paperdave in https://github.com/oven-sh/bun/pull/4247
- fix(parser): yield before
]
shouldn't be a syntax error by @paperdave in https://github.com/oven-sh/bun/pull/4264 - Ask for
bun --revision
insteadbun -v
by @xHyroM in https://github.com/oven-sh/bun/pull/4256 - Fix more types. by @xxxhussein in https://github.com/oven-sh/bun/pull/4273
- docs: remove broken DNS docs link by @LapsTimeOFF in https://github.com/oven-sh/bun/pull/4268
- Bunch of streams fixes by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/4251
- Fix ffi type by @codehz in https://github.com/oven-sh/bun/pull/4265
- Update globals.d.ts by @VietnamecDevelopment in https://github.com/oven-sh/bun/pull/4276
New Contributors
- @YashoSharma made their first contribution in https://github.com/oven-sh/bun/pull/4026
- @jhmaster2000 made their first contribution in https://github.com/oven-sh/bun/pull/4054
- @jecquas made their first contribution in https://github.com/oven-sh/bun/pull/4047
- @adtac made their first contribution in https://github.com/oven-sh/bun/pull/4107
- @o-az made their first contribution in https://github.com/oven-sh/bun/pull/4210
- @LapsTimeOFF made their first contribution in https://github.com/oven-sh/bun/pull/4268
- @codehz made their first contribution in https://github.com/oven-sh/bun/pull/4265
- @VietnamecDevelopment made their first contribution in https://github.com/oven-sh/bun/pull/4276
Full Changelog: https://github.com/oven-sh/bun/compare/bun-v0.7.3...bun-v0.8.0
Details
date
Aug. 24, 2023, 12:25 a.m.
name
Bun v0.8.0
type
Minor
official page
👇
Register or login to:
- 🔍View and search all bun releases.
- 🛠️Create and share lists to track your tools.
- 🚨Setup notifications for major, security, feature or patch updates.
- 🚀Much more coming soon!