Bun: bun-v0.0.41 Release

Release date:
October 30, 2021
Previous version:
bun-v0.0.40 (released October 29, 2021)
Magnitude:
134 Diff Delta
Contributors:
1 total committer
Data confidence:
Commits:

Top Contributors in bun-v0.0.41

Jarred-Sumner

Directory Browser for bun-v0.0.41

We haven't yet finished calculating and confirming the files and directories changed in this release. Please check back soon.

Release Notes Published

To upgrade:

bun upgrade

What's new:

bun run:

bun run ./file.js now supports running JavaScript, TS, TSX, and JSX files using Bun.js. If you pass bun run a filepath to a .js, .jsx, .tsx, or .ts file, it will run it with Bun.js instead of saying "error: Missing script". This is very experimental!

Bun.js

<sup>Bun.js is Bun's JavaScript runtime environment. </sup>

  • Top-level await works now
  • performance.now() is implemented

Bug fixes

  • [.env loader] functions from bash were exported incorrectly due to parsing process environment variables similarly to .env files which is unnecessary. Now process environment variables are passed through without extra parsing
  • fetch() wasn't working due to a silly mistake. That's fixed