Bun v1.0.12 has fixed 24 bugs and made several improvements, including support for 'bun -e', 'bun --env-file', 'server.url', 'import.meta.env', and 'expect.unreachable()', as well as improved CLI help menus. It is an incredibly fast JavaScript runtime, bundler, transpiler, and package manager, all in one.

31m read timeFrom bun.sh
Post cover image
Table of contents
bun -e evaluates a scriptbun --env-file <path> overrides the .env file to loadserver.urlimport.meta.env for accessing environment variablesexpect.unreachable()Improved CLI help outputMacros now support builtin modulesmock.module(...) now supports default exportsmock.module(...) now supports re-exportsFixed: transpiler preserves custom directivesFixed: Dirent.name setter must be a stringFixed: Assertion failures and crashesFixed: potential crash in require() after exception is thrownFixed: ENOENT when using bun install + package-lock.jsonFixed: bun install with a package that contains ~Fixed: Bun does not forward arguments to lifecycle scriptsFixed: Hang in bun:sqlite 's .get() methodFixed: Set-Cookie header capitalization with headers.raw()Fixed: AsyncLocalStorage could not be disabled multiple timesFixed: fs.read() returned incorrect value when promisifiedFixed: bug when missing certain headers in HTTP client responsesFixed: bun install --yarn would occasionally produce invalid YAMLFixed: Allow crypto.subtle to be polyfilledFixed: bun init would contain an invalid .gitignoreFixed: crash in debuggerFixed: sometimes bun install would binlink the wrong versionMiscellaneousThanks to 19 contributors!

Sort: