🚀 Feature Request: Bun Support
Describe the solution
Currently, wrangler init doesn't supports Bun.
I'll add this comment here, since it is related.
It would be nice for miniflare to support bun:sqlite in addition to better-sqlite3.
When I use bun as a package manager, I find it does not install the bindings correctly for better-sqlite3, and D1 queries throw an error as a result.
@timothymiller
It would be nice for miniflare to support bun:sqlite in addition to better-sqlite3. When I use bun as a package manager, I find it does not install the bindings correctly for better-sqlite3, and D1 queries throw an error as a result.
workerd has a native SQL interface and will no longer need the better-sqlite3 (and thus bun:sqlite) dependency in the future.
@timothymiller
It would be nice for miniflare to support bun:sqlite in addition to better-sqlite3. When I use bun as a package manager, I find it does not install the bindings correctly for better-sqlite3, and D1 queries throw an error as a result.
workerdhas a native SQL interface and will no longer need thebetter-sqlite3(and thusbun:sqlite) dependency in the future.
Thank you for providing clarify. Upon further inspection, it seems the opportunity for improvement lies with Drizzle. Their driver for D1 requires better-sqlite3 today. I will get in contact with them.
Thanks for submitting this. I've added a C3 label to this since ultimately this support will need to go there 👍
@timothymiller
It would be nice for miniflare to support bun:sqlite in addition to better-sqlite3. When I use bun as a package manager, I find it does not install the bindings correctly for better-sqlite3, and D1 queries throw an error as a result.
workerdhas a native SQL interface and will no longer need thebetter-sqlite3(and thusbun:sqlite) dependency in the future.
Is this updated workerd package generally available?
I think this should be reopened now that there is windows support maybe? Since the PR didn't end up implementing bun because of no windows support.
with the addition of bun:s3, +1
Bump on the bun:s3, would pair amazing with R2.
We need Bun on Cloudflare workers. This will also be a big benefit for free users as bun is mostly faster, which results in reduced cpu times.
And, will benefit cloudflare as more users will be willing to switch to workers, thus making CF more money