Bun v0.0.42 #48
Jarred-Sumner
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
To upgrade:
bun run
bun run
now has tab completions for zsh and fish that showscripts
from package.json and bins fromnode_modules/.bin
.Install:
Going forward,
bun upgrade
also updates completions, so you shouldn't have to do that again.Bun.js
Bun now has a builtin
"supports-color"
polyfill, the package used bychalk
to detect ANSI color support.The TypeScript in this screenshot runs 2x faster in Bun.js than in Node.js:
Other stuff:
node-fetch
&isomorphic-fetch
polyfills work now. When an npm package importsnode-fetch
, Bun.js will automatically replace it with Bun's native implementation.Bun.sleep(ms)
lets you synchronously sleep. No promisesexport default
(thank you @evanwashere for flagging)JavaScript Lexer
\0
(and added an integration test)Misc
--version
now prints a newline at the end-v
is now shorthand for--version
-u
is now shorthand for--origin
. Might rename that to--url
in a future release.This discussion was created from the release Bun v0.0.42.
Beta Was this translation helpful? Give feedback.
All reactions