bun v0.0.66 #100
Jarred-Sumner
announced in
Announcements
bun v0.0.66
#100
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
To upgrade:
These changes are since bun v0.0.56 (the previous release notes 13 days ago)
TLDR:
bun install
when packages aren't downloadedbun install
(but still more work to do!)bun install:
~25% faster when downloading lots of new packages. devDependencies were incorrectly being prioritized.
Plus:
bun add @scoped/package
works now>=
ranges for package versions work correctly nowbun install
would error witherror: SystemResources
. This is an issue with thememlock
limit that impacts io_uring. Now bun lowers memlock usage when this error returns until it finds a value that worksbun install
will delete the lockfile/tmp
was mounted on a different filesystem, extracting packages failed witherror: RenameAcrossMountPoints
. Now bun tests if it can rename files from the temporary directory to the cache directory and chooses a different temporary directory if it cannotbun run
bun dev
Improved filesystem watcher reliability on Linux
bun now handles atomic file updates better in the filesystem watcher. To filesystem watchers, atomic file updates appear as a delete followed by a new file being moved to an existing directory. bun previously only noticed the delete. Most editors do not save atomically, but if vim swapfiles are enabled or if using replit, this may help.
Improved support for reverse-proxying bun
Due to same-origin policy, bun's HMR needs to use absolute URLs that match what the browser expects. Previously, to proxy bun you had to pass
--origin
tobun dev
and it would maybe still not work forhttps
. Now bun reads headers proxies send & what browsers send to determine which protocol, host, and/or origin is expected.Misc:
@tailwind
is not supported instead of on every single request to that .css filebun-framework-next
fetch()
in SSR. This is fixedURL
polyfill broke navigation in some cases. Now there is a URL polyfill. Eventually, bun.js will have this as a builtin implemented in native code.bun.js
bun.argv
which returnsstring[]
containing the CLI arguments used to open the currently running process. It is basically process.argvbun bun
DevContainer
If you're interested in contributing to bun, you can now use a VSCode DevContainer to quickly setup the dev environment. Note that it currently requires at least 11 GB of ram in the dockerized OS to compile debug builds of bun.
Docker
bun now has automatic docker releases for Linux AMD64 compiled on every push to
main
. The tag name isjarredsumner/bun:${gitSHA}
Zig upgrade
bun is now using the latest version of Zig and LLVM 13, instead of a hacky patched version of Zig. This was a large change affecting basically every file in bun.
JavaScript Parser
5% faster JavaScript parser
Crash reporter
If bun crashes, it reports a little more metadata now and (on macOS) save a crash report to disk.
Sublime Text plugin for bun.lockb
@alexkuz wrote a Sublime Text plugin that opens bun.lockb (the lockfile for
bun install
) as a yarn.lock file and adds syntax highlighting. Thank you @alexkuz!GitHub: https://github.com/alexkuz/sublime-yarn-lock
Thanks
Bun
withbun
This discussion was created from the release bun v0.0.66.
Beta Was this translation helpful? Give feedback.
All reactions