Read Bun v0.6.4's release notes on Bun's blog
To install:
curl https://bun.sh/install | bash
# or you can use npm
# npm install -g bun
To upgrade:
bun upgrade
What's Changed
- [node:http] 443 should default to https when no protocol is informed by @cirospaciari in #3008
- Write out builtins with TypeScript + Minify them by @paperdave in #2999
- [node:http] Fix return type for
getHeader()
by @Jarred-Sumner in #3007 - [node:tls] fix marking requestCert on
tls
module by @cirospaciari in #3012 - Fix
Bun.connect()
types by @paperdave in #3013 - fix extra/ArbitraryModuleNamespaceIdentifiers2 by @paperdave in #3016
- Support setting a timezone with
process.env.TZ
andBun.env.TZ
by @Jarred-Sumner in #3018 - [bun:test] Fix async/done-based test.todo by @Jarred-Sumner in #3015
- check if key from
exports
can be printed as an identifier by @dylan-conway in #3032 - Update
bun init
and document partial support fornode:vm
by @paperdave in #3014 - Add pkg-config as a build requirement by @llimllib in #3027
- Fix incorrect URL in loaders.md by @Kruithne in #3025
- Implement
bun test --timeout
by @Electroid in #3040 - extend test time-outs by @alexlamsl in #3048
- Implement
require.cache
by @Jarred-Sumner in #3045 - Fixes #3031 by @Jarred-Sumner in #3041
- [bun:FileSystemRouter] add more validations on parameters by @cirospaciari in #3053
- fix setting
jsxImportSource
,jsxFactory
, andjsxFragmentFactory
by @dylan-conway in #3057 - [server.fetch] call when using Request object by @cirospaciari in #3051
- Load
.env.test
, set NODE_ENV=test inbun test
, load.env.{test,production,development}.local
by @Jarred-Sumner in #3037 - Support
with { type: "macro"}
inbun build
by @Jarred-Sumner in #3059 - Fix sqlite serialize example by @Dialga in #3063
- [stream] fix flush by @cirospaciari in #3073
- jsx runtime from env by @dylan-conway in #3076
- [install] fix
.bin
linking by @alexlamsl in #3067 - docs: add a bit more info on Elysia by @capaj in #3062
- Fix crash in test.todo + remove JSC C API usages in bun:test by @Jarred-Sumner in #3079
- [fetch] change response allocator by @cirospaciari in #3086
- Pretty formatter for
Headers
&URLSearchParams
by @Jarred-Sumner in #3081 - Implement
expect().toBeEmpty()
by @Electroid in #3060
New Contributors
- @llimllib made their first contribution in #3027
- @Dialga made their first contribution in #3063
- @capaj made their first contribution in #3062
Full Changelog: bun-v0.6.3...bun-v0.6.4