MyGit

bun-v0.0.66

oven-sh/bun

版本发布时间: 2022-01-04 15:04:08

oven-sh/bun最新发布版本:bun-v1.1.20(2024-07-13 14:04:45)

To upgrade:

bun upgrade

These changes are since bun v0.0.56 (the previous release notes 13 days ago)

TLDR:

bun install:

~25% faster when downloading lots of new packages. devDependencies were incorrectly being prioritized.

image

Plus:

bun 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 to bun dev and it would maybe still not work for https. Now bun reads headers proxies send & what browsers send to determine which protocol, host, and/or origin is expected.

Misc:

bun-framework-next

bun.js

bun 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 is jarredsumner/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.

image

JavaScript Parser

5% faster JavaScript parser

image

Crash reporter

If bun crashes, it reports a little more metadata now and (on macOS) save a crash report to disk.

image

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!

image

GitHub: https://github.com/alexkuz/sublime-yarn-lock

Thanks

相关地址:原始地址 下载(tar) 下载(zip)

1、 bun-darwin-aarch64.zip 10.25MB

2、 bun-darwin-x64.zip 12.15MB

3、 bun-linux-x64.zip 23.45MB

查看:2022-01-04发行的版本