To install:
curl https://bun.sh/install | bash
To upgrade:
bun upgrade
Read Bun v0.5.0's release notes on Bun's blog
All the PRs
- [install] use default URL when only auth token is specified by @alexlamsl in #1664
- [install] use specified base URL as default fallback within scopes by @alexlamsl in #1665
- [install] specify
auth-type
by @alexlamsl in #1667 - emit
206 Partial Content
only for partial response by @alexlamsl in #1670 - [bundler] fix logging verbosity by @alexlamsl in #1671
- Upgrade to latest Zig by @Jarred-Sumner in #1610
- log object string correctly by @alexlamsl in #1674
- Fix devcontainer (tested) by @srh in #1680
- [jest] fix and improve hooks by @alexlamsl in #1689
- Update ffi.d.ts by @lucifer1004 in #1694
- clean up
Promise
handling by @alexlamsl in #1697 - fix lingering process by dead sockets by @alexlamsl in #1700
- implement
net.Socket
by @alexlamsl in #1701 - fix double
resolve()
in test by @alexlamsl in #1707 - [socket] handle
connectError
by @alexlamsl in #1705 - [streams] speed up
Readable
in some cases by @alexlamsl in #1708 - 10x faster
new Buffer
by @Jarred-Sumner in #1717 - Support non-classes in node:net by @Jarred-Sumner in #1712
- buffer list clean-ups by @alexlamsl in #1721
- implement
expect().toThrow()
by @alexlamsl in #1727 - Fix Bun.serve typings by @u9g in #1714
- improve
.toThrow()
compatibility with Jest by @alexlamsl in #1728 - fix
onConnectError()
error propagation by @alexlamsl in #1730 - [socket] fix double-free in
finalize()
by @alexlamsl in #1731 - Report unhandled promise rejection on exit by @Jarred-Sumner in #1734
- lazily create buffer/string slices by @alexlamsl in #1735
- fix typo in install.sh by @eltociear in #1737
- Implement DNS module by @Jarred-Sumner in #1691
- feat(node:readline): add node:readline and node:readline/promises by @ThatOneBro in #1738
- refactor(readline/promises): re-export readline.promises from readline by @ThatOneBro in #1748
- Fix missing c-ares dep in dev build by @jiaz in #1754
- use
strings.hasPrefixComptime()
by @alexlamsl in #1755 - Implement Buffer swap16, swap32, swap64 by @malcolmstill in #1659
- Disable reading the
browser
field when targeting Bun's runtime by @Jarred-Sumner in #1763 - Types update by @colinhacks in #1761
- fix(bun-test): test title in results by @ethanburrell in #1753
- reset string decoder on end by @dylan-conway in #1782
- 0 initialize remaining indexes in array by @dylan-conway in #1783
- set remaining indexes in buffer list
consume()
by @dylan-conway in #1785 - support installation of NPM workspaces by @alexlamsl in #1764
- fix bugs by @alexlamsl in #1795
- fix life-cycle script execution by @alexlamsl in #1799
- fix handler reset in
Server.reload()
by @alexlamsl in #1801 - [Response] reject HTTP status code correctly by @alexlamsl in #1800
- Publish bun-types@canary by @colinhacks in #1767
- fix(readline/promises): new Interface() -> new PromisesInterface() by @ThatOneBro in #1818
- Add types for
readline
,tls
,net
by @colinhacks in #1817 - feat(cli): Support
HTTPS_PROXY
,HTTP_PROXY
, andNO_PROXY
#1440 by @cirospaciari in #1814
New Contributors
- @srh made their first contribution in #1680
- @lucifer1004 made their first contribution in #1694
- @u9g made their first contribution in #1714
- @jiaz made their first contribution in #1754
- @malcolmstill made their first contribution in #1659
Full Changelog: bun-v0.4.0...bun-v0.5.0