Open Jarred-Sumner opened 2 years ago
this seems like a lot of work... wow
Can't wait for full npm-like config support. We are using our own npm registry, and the current build time is 40-60 minutes. If it will be at least 10 minutes this will be a game-changer!
I am waiting for the stable version of the bun. What change bun in the javascript world.
Also waiting for the stable version. So exciting! I bet it's going to take a lot of time though. The scope of this project is much larger than what Node attempts to solve.
can someone confirm that right now I can't use the package mysql2
? It throws me an error because it depends on TLS package and on NET package, and I think they were not implemented yet in Bun, but I am not sure.
still missing websocket server support
Can a tinitiny docker image be placed somewhere in there? 👀
Can't wait for Windows support... I'll be anxiously awaiting it until it's out. 😅
still missing websocket server support
Dito
Are you planning to support http2?
Are you planning to support http2?
HTTP/3 is on https://github.com/oven-sh/bun/issues/159 so I would say HTTP/2 will likely be added before that
Are you planning to support http2?
HTTP/3 is on #159 so I would say HTTP/2 will likely be added before that
I would say that http3 on roadmap is more about quic protocol and there is no straight inheritance between http3 and http2, so maybe support of http2 needs to be marked explicitly.
Motivated to see a stable version ASAP
Promising ! Any roadmap on a progressive translation ?
When is the support for windows coming? Cant wait for it.
I would say that http3 on roadmap is more about quic protocol and there is no straight inheritance between http3 and http2, so maybe support of http2 needs to be marked explicitly.
Another vote for HTTP/2 as it's a prerequisite to gRPC support.
Any plans to create a desktop app like electron?
When is the support for windows coming? Cant wait for it.
https://github.com/oven-sh/bun/issues/43 you can use WSL for now
When is the support for windows coming? Cant wait for it.
43 you can use WSL for now
I don't use WSL. Node.js and Deno support Windows natively; why can't Bun?
On the topic of CSS parsing, transpilation, minification, etc., what's your stance on dependencies? Do you want to reimplement everything yourself, or would you consider using an embeddable library? If so, I'd love to collaborate with you on embedding Parcel CSS in Bun. It's implemented in Rust, but if we added a C API, I think Bun could call into it pretty easily. It may also work via Bun's napi support, but that would probably be slower. It's about 4x faster than esbuild on benchmarks, minifying over 2 million lines of code per second on a single thread. You can find more info in the announcement blog post from February, though it's gotten even faster since then. Would be cool to work together, and I'm happy to help support how I can.
One thought re: minification, please include a way to exclude class/parameter (on both function and constructor args, and incl. subkeys)/function names from minification as it makes certain dependency injection patterns impossible.
Traditionally, many of the existing DI libraries would use Function.toString() and then use some regex to pull out the fn name & args, but given the reason that is needed and how hacky it is, this may be an opportunity for bun to create a better solution ahead of time, for example by exposing the pre-minified function/class names + argument names programmatically such that they are available at runtime. Note that they much be able to be retrieved before the function is called or class is instantiated.
How about full support for NestJS? Looking forward to it.
[ ] read resolutions
from package.json
Bun should move toward full support for nestjs.
Are there any plans for bun language server? Deno provides one: https://deno.land/manual@v1.29.1/advanced/language_server/overview, so I thought bun might do as well
Bun === GOAT
Setup a donations button!!
As an Electron
or Tauri
alternative.
Maybe should consider to build single-file executable files. .exe
or .msi
for windows and .dmg
and .pkg
for macos.
Would love to eventually see support for Qwik. Down the line would be willing to help with the effort too.
Would love to eventually see support for Qwik. Down the line would be willing to help with the effort too.
Yes!!!!!!!!!!!!!!!!! Qwik + Bun === GOAT
Some cool dependency injection would be nice, such as https://www.npmjs.com/package/node-dependency-injection without decorators and making possible configuring yml files for each enviroment, for example. Keep that absolute good work! Love it <3
Would a linter/formatter be considered in the future? An alternative to eslint that'd use Bun's parser, would be faster and would have a better plugin/config format?
when can have a tool with bundle analyzer?It's like webpack-bundle-analyzer。 https://github.com/webpack-contrib/webpack-bundle-analyzer
of course , Providing 'stats.json' files is also possible
For me the main blockers are:
renderToPipeableStream
what about native path alias support?
path
and baseUrl
in tsconfig.json.@ceopaludetto
For me the main blockers are:
- Remix with
renderToPipeableStream
React docs statement about renderToPipeableStream
:
This API is specific to Node.js. Environments with Web Streams, like Deno and modern edge runtimes, should use renderToReadableStream instead.
Here is example of remix + bun repo https://github.com/jacob-ebey/bun-remix
@ceopaludetto
For me the main blockers are:
- Remix with
renderToPipeableStream
React docs statement about
renderToPipeableStream
:This API is specific to Node.js. Environments with Web Streams, like Deno and modern edge runtimes, should use renderToReadableStream instead.
Here is example of remix + bun repo https://github.com/jacob-ebey/bun-remix
Yeah I found that. Also I get turborepo to work by simulating yarn usage:
workspaces
field in package.json
(https://bun.sh/docs/install/workspaces)--yarn
flag will generate a yarn.lock
file):
bun install --yarn
packageManager
field in package.json
to yarn
(you should have yarn
installed in the $PATH):
"packageManager": "yarn@1.22.19"
--skip-infer
, e.g.:
bun turbo build --skip-infer
Turbo will only use yarn
to generate the package graph, but the packages resolution will be handled by bun. This is a workaround until this issue get fixed https://github.com/vercel/turbo/issues/4762
Please integrate parcel with bun, as some of the problems on the web world are solved very well by them
what about web cache api?
Is there a roadmap of for v1.0 release? Would like to know what's going to be completed for v1.0. Thanks!
amazing!!!
"Supporting both https: and http: imports" - Once this feature is up and running, it has the potential to give Deno a tough run
@Jarred-Sumner, hi, it would be great to update roadmap
When can we get HMR for Frontend dev server?
@Jarred-Sumner Are there any plans for adding custom ts ast transformers?
Hi, Kindly revise this roadmap to reflect the release of Bun 1.0, or alternatively, create a new roadmap for Bun 2.0.
Hi, is there any development on support for Windows? Been very excited to switch from NodeJs to Bun 👀
Hi, is there any development on support for Windows? Been very excited to switch from NodeJs to Bun 👀
Bun 1.0 did launch with windows support.
@KingCh1ll lots of development - in here:
Any plan to make remote cache available for building with CI in the future?
Amazing work guys, truly beautiful. Tried it out on my existing NextJS app works no issues. Looking forward for better support to make use of all the buntastic benefits
this has not been updated post Bun 1.0, we will update it soon.
This tracks the current near-term plans for Bun.
Edge bundling
With bundle-time functions, static analysis goes dynamic. Objects returned by functions executed at bundle-time are injected into the AST. This makes dead-code elimination work a lot better.
I expect this to spawn a new generation of bundle-time JavaScript frameworks.
But first, a lot more needs to be built.
Main blockers
JavaScript minifier
"sideEffects"
from package.jsonWeb Bundler (production-focused, instead of development-focused)):
const
TypeScript enum supportCSS parser:
Bun.Transpiler
support for CSS<style jsx>
supportOnce complete, the next step is integration with the HTTP server and other Bun APIs
Efficient bundling format
Cache builds into a binary archive format with metadata designed for fast random access,
splice()
, andsendfile()
support. Outside of the edge runtime, these will work as a single-file JavaScript executable internally holding many files.Instances of Bun will need to know what bundle(s) they're serving. From there, instead of going through a filesystem, we can serve static requests directly from the bundle and dynamic requests will bundle on-demand, potentially importing code from statically-bundled code.
[x]
Bundle
API (not finalized yet)Bundle.prototype.resolve(path): string
APIBundle.prototype.build(entryPoint, context): Response
APIBundle.prototype.generate(entryPoints, options): Promise<Bundle>
API[ ]
JSNode
AST APIBundle
Server-side rendering
Bundle
,JSNode
, and other Bun APIsRuntime
.vue
,.svelte
,.scss
imports and more.onLoad
API in bun.jsonResolve
API in bun.jsbunfig.toml
onLoad
plugins from native librariesonResolve
plugins from native librarieshttps:
andhttp:
imports. This includes a disk cache possibly integrated into the bundling format.data:
importsblob:
imports & URLs (URL.createObjectURL
,URL.revokeObjectURL
)Edge Runtime
Slimmer, linux-only build of bun.js:
bun install
Usability & Developer Experience
bun
REPL with transpiler-enabled support for async/await, typescript and ES Modules (those are not supported byeval
usually)npx
@types/bun
npm packageEcosystem
Web Compatibility
[ ] Web Streams
fetch
Request
Response
Blob
Bun.serve
(HTTP server)HTMLRewriter
TextEncoderStream
TextDecoderStream
CompressionStream
DecompressionStream
[x]
FormData
fetch
[x]
Web Worker
supportpostMessage
from WebKitBroadcastChannel
from WebKitMessageChannel
from WebKitstructuredClone
from WebKit[x] Import WebCrypto implementation from WebKit/Safari into bun.js
[ ] Support
OffscreenCanvas
API,ImageBitmap
for 2D graphics. This may use WebKit's implementation or it might use Skianote: after a little testing, performance of safari's web streams implementation is similar to deno and much faster than node 18. I expect the final result to be faster than deno because bun's TextEncoder/TextDecoder & Blob implementation seems generally faster than safari's
Security
fetch
. Right now, it doesn't.Windows support
Node.js Compatibility
child_process
support"fs"
"net"
module"crypto"
polyfill should use hardware-accelerated crypto for better performance"buffer"
implementationrequire
implementation that natively supports ESM (rather than via transpiler). This would involve subclassingAbstractModuleRecord
in JSC. This would better support lazy-loading CommonJS modules.Reliability
fetch
implementation:ActiveDOMObject
from WebKit so that all native objects can be suspended & terminatedMisc
bun install