Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bun and Deno support #5428

Open
Ceneka opened this issue Dec 10, 2024 · 2 comments
Open

Bun and Deno support #5428

Ceneka opened this issue Dec 10, 2024 · 2 comments
Labels
feature-request Request for new features to be added

Comments

@Ceneka
Copy link

Ceneka commented Dec 10, 2024

πŸ“‘ I have found these related issues/pull requests

Didn't find related issues

🏷️ Feature Request Type

Deployment, Other

πŸ”– Feature description

Hello,

I was wondering if there are any plans to support Deno and Bun alongside Node.js. Expanding compatibility to these runtime environments could greatly enhance the flexibility and adoption of the tool, and even some performance gains!

If this is something you're open to, I’d be happy to help test or try contribute where needed.

βœ”οΈ Solution

I would love to have the option to use Bun or Deno as their are my main runtime environments

❓ Alternatives

No response

πŸ“ Additional Context

No response

@Ceneka Ceneka added the feature-request Request for new features to be added label Dec 10, 2024
@CommanderStorm
Copy link
Collaborator

If this is something you're open to

Depends on how much work it is.
If its a few imports, yes.
If its a major rewrite of a some subsystem no.
Something in between, maybe.

(Feel free to share what you found here)

@louislam
Copy link
Owner

Unlikely will happen officially, there is no benefit for us to maintain multiple runtimes, we will use more time to deal with it in the future. The situation would be similar to current situation SQLite + MariaDB. There are a few SQL statements won't work on both DBs, we have to handle it and test it with extra efforts.

For unofficial fork or experiment, feel free to try. I think it could possible by removing some unsupported features, since Bun is promoted itself as a Node.js drop-in replacement.

I just have a quick test. It is not able to start the server on both Bun and Deno currently on the master branch.

Bun

bun install
bun server/server.js
  • Knex issues
  • NotImplementedError: perf_hooks.monitorEventLoopDelay is not yet implemented in Bun.

Deno

deno install
deno --unstable-detect-cjs --allow-all server/server.js
  • Knex issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features to be added
Projects
None yet
Development

No branches or pull requests

3 participants