bun - bun-v0.6.11


This is a follow up to address a bug when creating the release build that broke napi in Bun v0.6.10. This also fixes a bug with util.callbackify (thanks @Hanaasagi) and with the "node:module" module missing a couple functions.

To install:

curl https://bun.sh/install | bash
# or you can use npm
# npm install -g bun

To upgrade:

bun upgrade

Full Changelog: https://github.com/oven-sh/bun/compare/bun-v0.6.10...bun-v0.6.11

Read Bun v0.6.10's release notes on Bun's blog

What's Changed

  • fix TS5096 by @xxxhussein in https://github.com/oven-sh/bun/pull/3256
  • mock type changes by @colinhacks in https://github.com/oven-sh/bun/pull/3305
  • Add typedefs for Bun.argv by @paperdave in https://github.com/oven-sh/bun/pull/3302
  • Make Bun.argv the same as process.argv by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/3310
  • [Bun.serve] fix Bun.serve argument check by @cirospaciari in https://github.com/oven-sh/bun/pull/3314
  • Tweak CommonJS output by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/3320
  • Fix typo in run.md by @kbrgl in https://github.com/oven-sh/bun/pull/3331
  • don't remove const declaration if referenced before declaration by @dylan-conway in https://github.com/oven-sh/bun/pull/3337
  • Set the publishToSelf option to true by @lpinca in https://github.com/oven-sh/bun/pull/3343
  • feat(test/types): Add types for toBeOdd & toBeEven by @TiranexDev in https://github.com/oven-sh/bun/pull/3344
  • [eventsource] SSE Client by @cirospaciari in https://github.com/oven-sh/bun/pull/3074
  • minor build diffs by @alexlamsl in https://github.com/oven-sh/bun/pull/3349
  • Fix a bunch of bugs by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/3352
  • Fix bug that breaks bunx prisma init when node is not installed by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/3362
  • feat(bun/test): Impl. "toBeArray", "toBeArrayOfSize" & "toBeTypeOf" by @TiranexDev in https://github.com/oven-sh/bun/pull/3316
  • implement more of V8's stack trace API by @kvakil in https://github.com/oven-sh/bun/pull/3359
  • Cleanup fs.utimesSync by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/3363
  • Docs for DOM testing and FileSink by @colinhacks in https://github.com/oven-sh/bun/pull/3330
  • enable asymmetric matchers in expect.toEqual, expect.toStrictEqual, and expect.toHaveProperty by @dylan-conway in https://github.com/oven-sh/bun/pull/3367
  • record jsx factory symbols in classic mode by @dylan-conway in https://github.com/oven-sh/bun/pull/3360
  • Improve error message for error.DependencyLoop by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/3368
  • Fix crash with .env files that are exactly 159 bytes long by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/3369
  • Update module resolution order docs by @aplr in https://github.com/oven-sh/bun/pull/3372
  • finish implementing JSMockFunction prototype + lots of expect test organizing by @paperdave in https://github.com/oven-sh/bun/pull/3304
  • upgrade zig to v0.11.0-dev.3737+9eb008717 by @dylan-conway in https://github.com/oven-sh/bun/pull/3374
  • Fix CommonJS usages of bun:test by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/3378
  • revamp dotEnv parser by @alexlamsl in https://github.com/oven-sh/bun/pull/3347
  • fix tests for expect() by @alexlamsl in https://github.com/oven-sh/bun/pull/3384
  • expect().resolves and expect().rejects by @Electroid in https://github.com/oven-sh/bun/pull/3318
  • [fix] c_ares.resolve by @cirospaciari in https://github.com/oven-sh/bun/pull/3388
  • Make node-fallbacks build as esm not cjs / Fix node-fetch by @paperdave in https://github.com/oven-sh/bun/pull/3377
  • Add vi.spyOn and clean up some mock function binding calls by @paperdave in https://github.com/oven-sh/bun/pull/3376
  • [feat] fs.watch by @cirospaciari in https://github.com/oven-sh/bun/pull/3249
  • Rewrite Bun's runtime CommonJS loader by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/3379
  • Reliability bugfix for WebSocket by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/3394
  • Speculative fix for regression causing hang with install --production by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/3400
  • [install] fix hang in bun install --production by @alexlamsl in https://github.com/oven-sh/bun/pull/3406
  • Fix the parameters of WriteStream constructor. by @Hanaasagi in https://github.com/oven-sh/bun/pull/3402
  • [fs.watch] fix reference/deinit by @cirospaciari in https://github.com/oven-sh/bun/pull/3396
  • Support reading embedded files in compiled executables by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/3405
  • Add support for install with --frozen-lockfile by @tiagotex in https://github.com/oven-sh/bun/pull/3365
  • chore: update lol-html version by @bru02 in https://github.com/oven-sh/bun/pull/3356
  • Use bun.String in mkdir by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/3404
  • Fixes #3334 by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/3401
  • Fix test failures in import.meta by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/3403
  • implement _nodeModulePaths and require.main.paths by @dylan-conway in https://github.com/oven-sh/bun/pull/3411
  • [install] support trustedDependencies by @alexlamsl in https://github.com/oven-sh/bun/pull/3288
  • Implement writev & readv by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/3419
  • Runtime support for __esModule annotations by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/3393
  • .randomInt() support by @lenovouser in https://github.com/oven-sh/bun/pull/3357
  • [bun install] Implement --exact flag by @Jarred-Sumner in https://github.com/oven-sh/bun/pull/3409
  • docs: add troubleshooting section to installation page by @no-stack-dub-sack in https://github.com/oven-sh/bun/pull/3389
  • fix overwriting jsx development setting in configureLinker by @dylan-conway in https://github.com/oven-sh/bun/pull/3420
  • webpack test and add empty prototype prop to module by @dylan-conway in https://github.com/oven-sh/bun/pull/3421
  • Fix spying on something twice by @paperdave in https://github.com/oven-sh/bun/pull/3422

New Contributors

  • @xxxhussein made their first contribution in https://github.com/oven-sh/bun/pull/3256
  • @kbrgl made their first contribution in https://github.com/oven-sh/bun/pull/3331
  • @aplr made their first contribution in https://github.com/oven-sh/bun/pull/3372
  • @Hanaasagi made their first contribution in https://github.com/oven-sh/bun/pull/3402
  • @tiagotex made their first contribution in https://github.com/oven-sh/bun/pull/3365
  • @bru02 made their first contribution in https://github.com/oven-sh/bun/pull/3356
  • @lenovouser made their first contribution in https://github.com/oven-sh/bun/pull/3357
  • @no-stack-dub-sack made their first contribution in https://github.com/oven-sh/bun/pull/3389

Full Changelog: https://github.com/oven-sh/bun/compare/bun-v0.6.9...bun-v0.6.10


Details

date
June 27, 2023, 4:34 p.m.
name
Bun v0.6.11
type
Patch
👇
Register or login to:
  • 🔍View and search all bun releases.
  • 🛠️Create and share lists to track your tools.
  • 🚨Setup notifications for major, security, feature or patch updates.
  • 🚀Much more coming soon!
Continue with GitHub
Continue with Google
or