MyGit

bun-v0.0.72

oven-sh/bun

版本发布时间: 2022-03-17 10:11:48

oven-sh/bun最新发布版本:bun-v1.1.38(2024-11-29 19:55:48)

To upgrade:

bun upgrade

What's new

This release adds source maps for JS output, several web APIs to bun.js (and HTMLRewriter), parser support for ES2022 syntax, improves parsing speed for long strings, makes bun dev 10% faster on macOS and fixes a lot of crashes.

Note: the WASM build is not quite ready yet, but I'm working on it! The main thing I'm uncertain of is whether to release it with Bun.Transpiler as the API, or with a partially-implemented esbuild-compatible API. So if you would like to use it and have opinions there, do say

bun.js

Thanks to source maps, errors in bun.js show the source code instead of the transpiled code now:

image
Previously, it looked like this

Note the incorrect line numbers and the missing if (true) branch – bun's transpiler removed the dead code, but that can make it harder to read the code

image

New APIs:

Misc:

bun dev

bun install

bun run

bun create

JavaScript Transpiler

Bun.Transpiler:

Infrastructural changes

I started using the debug build of mimalloc, bun's memory allocator for the debug builds of bun and that uncovered a few otherwise difficult-to-reproduce crashes

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

1、 bun-darwin-aarch64.dSYM.tar.gz 16.59MB

2、 bun-darwin-aarch64.zip 10.78MB

3、 bun-darwin-x64.dSYM.tar.gz 18.29MB

4、 bun-darwin-x64.zip 13.02MB

5、 bun-linux-x64.zip 25.18MB

查看:2022-03-17发行的版本