Bun v0.1.11 #1214
Jarred-Sumner
announced in
Announcements
Bun v0.1.11
#1214
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
To 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
In Bun v0.1.11, web framework libraries built on Bun got faster
Benchmark: https://github.com/SaltyAom/bun-http-framework-benchmark
Image credit: @Kapsonfire-DE
Plugin API
Bun's runtime now supports a plugin API.
.svelte
,.vue
,.yaml
,.scss
,.less
and other file extensions that Bun doesn't implement a builtin loader forThe API is loosely based on esbuild's plugin API.
This code snippet lets you import
.mdx
files in Bun:This lets you import
yaml
files:We're planning on supporting browser builds with this plugin API as well (run at transpilation time)
Reliability improvements
Node compatibility:
napi_add_finalizer
f023b89NAPI_MODULE_INIT()
wasn't implemented correctly in Bun and that has been fixedimport assert
andimport process
did not behave as expected (assert
wasn't returning a function). This has been fixed"node:module"
'screateRequire
function wasn't requiring non-napi modules correctlymacOS event loop internals moved to a more reliable polling mechanism:
setTimeout
CPU usage drops by 50% c1734c6 (Before: 90%, After: 33% - still more work to do here)fetch
enough times in quick succession. The race conditions have been fixed.More:
Request
andResponse
in macros e0b35b3clearTimeout
on Linux e6a1209Performance improvements
Bun has a long-term commitment to performance. On macOS, React server-side rendering gets around 2x faster.
Coming up next in performance improvements: a new HTTP server implementation. Not far enough along for this release, but experiments are showing progress.
More PRs
extends
by @yepitschunked in feat: hack in support for tsconfigextends
#1147New Contributors
extends
#1147Full Changelog: bun-v0.1.10...bun-v0.1.11
This discussion was created from the release Bun v0.1.11.
Beta Was this translation helpful? Give feedback.
All reactions