Bun v0.0.41
To upgrade:
bun upgradeWhat'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
Bun.js is Bun's JavaScript runtime environment.
- 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
.envfiles 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