bun-v0.1.8
版本发布时间: 2022-08-11 16:18:30
oven-sh/bun最新发布版本:bun-v1.1.38(2024-11-29 19:55:48)
To upgrade:
bun upgrade
To install:
curl https://bun.sh/install | bash
If you have any problems upgrading
Run the install script (you can run it multiple times):
curl https://bun.sh/install | bash
What's new
A huge thank you to @zhuzilin for all their help on this release. @zhuzilin fixed 4 crashes!
bun link
lets you symlink a folder to node_modules. It works like npm link.
fs.copyFileSync
gets 2x to 10x faster:
require.resolve
works at runtime now instead of only build-time
WebSocket
is more reliable now. Previously the garbage collector would attempt to free it when the socket was still open 🙉
bun:ffi
's toBuffer
and toArrayBuffer
functions now support a function pointer to a destructor so that native code can perform cleanup without needing to go through a FinalizationRegistry
.
console.log
TypedArray
logs the value for the type (instead of in bytes 🙈)
console.log(MessageEvent
) is more useful now
More:
-
setInterval
wouldn't cause the process to stay alive 😢 and now that is fixed thanks to @zhuzilin - Log error on unhandled rejected promises by @zhuzilin in https://github.com/oven-sh/bun/pull/1010
- Log error on uncaught exceptions in event loop
-
bun install
gets asymlink
backend, which you probably don't want to use in most cases. It's used internally if you dofile:./
as a dependency, which some packages do -
process.revision
returns the git sha used to build bun
Bug fixes
- build issue caused "Illegal instruction" error to return - that is fixed now
- [wiptest] fix calling toBe in describe by @zhuzilin in https://github.com/oven-sh/bun/pull/1000
- Re-register setInterval to VM after completion by @zhuzilin in https://github.com/oven-sh/bun/pull/1014
- Fix segfault for query().all() with more than 64 properties by @zhuzilin in https://github.com/oven-sh/bun/pull/1025
- Update example Next app to 12.2 by @TiKevin83 in https://github.com/oven-sh/bun/pull/1033
- Fix static require by setting the state machine manually by @zhuzilin in https://github.com/oven-sh/bun/pull/1034
- #941 fix by @JL102 in https://github.com/oven-sh/bun/pull/998
Typos:
- refactor(src/install): clap readability fixes by @ryanrussell in https://github.com/oven-sh/bun/pull/1024
Misc:
- fix compiling error on linux by @zhuzilin in https://github.com/oven-sh/bun/pull/1027
Full Changelog: https://github.com/oven-sh/bun/compare/bun-v0.1.7...bun-v0.1.8
1、 bun-darwin-aarch64-profile.zip 14.11MB
2、 bun-darwin-aarch64.zip 12.7MB
3、 bun-darwin-x64-baseline-profile.zip 16.2MB
4、 bun-darwin-x64-baseline.zip 15.73MB
5、 bun-darwin-x64-profile.zip 16.58MB
6、 bun-darwin-x64.zip 16.13MB
7、 bun-linux-aarch64-profile.zip 55.21MB
8、 bun-linux-aarch64.zip 29.54MB
9、 bun-linux-x64-baseline-profile.zip 55.86MB
10、 bun-linux-x64-baseline.zip 31.29MB
11、 bun-linux-x64-profile.zip 56.36MB
12、 bun-linux-x64.zip 31.66MB