bun - bun-v0.5.2


Read Bun v0.5.2's release notes on Bun's blog

This release is a follow up to Bun v0.5 and Bun v0.5.1

To install:

curl https://bun.sh/install | bash
# or you can use npm
# npm install -g bun

To upgrade:

bun upgrade

What's Changed

  • constructor parameter properties are lowered in class expressions by @dylan-conway in https://github.com/oven-sh/bun/pull/1867
  • [semver] parse ^ & ~ expressions correctly by @alexlamsl in https://github.com/oven-sh/bun/pull/1854
  • minor clean-ups by @alexlamsl in https://github.com/oven-sh/bun/pull/1869
  • feat(dns) resolveSrv by @cirospaciari in https://github.com/oven-sh/bun/pull/1870
  • enhancement(fetch): Merge parameters from request parameter with the second parameter for fetch, move verbose and proxy options to second parameter, add non-TLS tests for fetch by @cirospaciari in https://github.com/oven-sh/bun/pull/1862
  • fix constructor statement order by @dylan-conway in https://github.com/oven-sh/bun/pull/1883
  • fix child process node test hang by @dylan-conway in https://github.com/oven-sh/bun/pull/1884
  • fix(Buffer) Fix arguments in buffer.write, fix size returned from buffer.write for utf16, fix size calc for base64, fix calc for hex byte size by @cirospaciari in https://github.com/oven-sh/bun/pull/1881
  • npm install bun by @Electroid in https://github.com/oven-sh/bun/pull/1874
  • support bun link of scoped packages by @alexlamsl in https://github.com/oven-sh/bun/pull/1892
  • support GitHub URLs as dependencies by @alexlamsl in https://github.com/oven-sh/bun/pull/1875
  • Add FileSystemRouter + React example by @scally in https://github.com/oven-sh/bun/pull/1894
  • parse package-spec from CLI correctly by @alexlamsl in https://github.com/oven-sh/bun/pull/1895
  • fix(WebSocket) Fix large packages receive for WS client by @cirospaciari in https://github.com/oven-sh/bun/pull/1909
  • fix websocket hang by @dylan-conway in https://github.com/oven-sh/bun/pull/1910
  • Implement all pending resolve methods in DNS by @cirospaciari in https://github.com/oven-sh/bun/pull/1903
  • fix(Express.js) Express.js try to use function as hostname by @cirospaciari in https://github.com/oven-sh/bun/pull/1914
  • ensure name is allocated with toSliceClone by @dylan-conway in https://github.com/oven-sh/bun/pull/1917
  • [WIP] append GitHub package after fully parsed by @alexlamsl in https://github.com/oven-sh/bun/pull/1911
  • fix(bench): Fix if condition always being true by @u9g in https://github.com/oven-sh/bun/pull/1923
  • fix corner cases with aliased dependencies by @alexlamsl in https://github.com/oven-sh/bun/pull/1927
  • normalise bun add package specifiers by @alexlamsl in https://github.com/oven-sh/bun/pull/1924
  • parse git+https://github.com/ as GitHub URLs by @alexlamsl in https://github.com/oven-sh/bun/pull/1926
  • Support running WASI (WebAssembly) files using bun run by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/1929
  • [bun add] fix more corner cases by @alexlamsl in https://github.com/oven-sh/bun/pull/1930
  • Update README.md by @Ygnys in https://github.com/oven-sh/bun/pull/1934
  • [bunx] fix version parsing by @alexlamsl in https://github.com/oven-sh/bun/pull/1937
  • report invalid input file as test failure by @alexlamsl in https://github.com/oven-sh/bun/pull/1938
  • fix assert() crash by @alexlamsl in https://github.com/oven-sh/bun/pull/1941
  • fix utf16le fill and utf8 partial write of utf16 by @cirospaciari in https://github.com/oven-sh/bun/pull/1943

New Contributors

  • @scally made their first contribution in https://github.com/oven-sh/bun/pull/1894
  • @Ygnys made their first contribution in https://github.com/oven-sh/bun/pull/1934

Full Changelog: https://github.com/oven-sh/bun/compare/bun-v0.5.1...bun-v0.5.2


Details

date
Jan. 31, 2023, 4:05 a.m.
name
Bun v0.5.2
type
Patch
👇
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!
Continue with GitHub
Continue with Google
or