bun v0.0.78 #139
Jarred-Sumner
announced in
Announcements
bun v0.0.78
#139
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
To upgrade:
What's new:
You can now
importfrom"bun"in bun.js. You can still use the globalBun.Before:
After:
This isn't a breaking change – you can still use
Bunas a global same as before.How it works
Bun's JavaScript printer replaces the
"bun"import specifier withglobalThis.Bun.You'll probably want to update types too:
Bug fixes
isFileandisDirectoryfunctions tofs.stat()7cd3d13
!and unary expressions - 4de7978bun bunwith--platform=bunset - 43b1866Bug fixes from v0.0.77
Bun.fileis not found and the error handler is not run, the default status code is now 404Bun.filesent with sendfile and the request aborts or errorsFileBlobsent via sendfile after the callback completes instead of before.tsand.tsxfiles withtext/javascriptmime type by default instead of MPEG2 VideoThis discussion was created from the release bun v0.0.78.
Beta Was this translation helpful? Give feedback.
All reactions