-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Add Bun to BCD #23440
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
base: main
Are you sure you want to change the base?
Add Bun to BCD #23440
Conversation
is there anything needed to push this along/fill out more data? happy to pitch in if it'd help |
This is just a proof of concept right now, and is awaiting owner consensus to add! |
This pull request has merge conflicts that must be resolved before it can be merged. |
Since Bun is currently covered by runtime-compat, I would suggest closing this PR for now. |
NodeJS and Deno are also covered by runtime-compat, but we include data for both of them in BCD. I think that it's helpful to include Bun's data in BCD especially as there's been lots of consumer interest, and runtime-compat only obtains the data for the latest versions of each runtime. I would like to keep this PR open as a draft as a reminder to come to a decision. |
This pull request has merge conflicts that must be resolved before it can be merged. |
This pull request has merge conflicts that must be resolved before it can be merged. |
@caugner bumping this, we would really love it if your team added support! |
Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs). |
@@ -335,7 +335,7 @@ | |||
], | |||
"support": { | |||
"bun": { | |||
"version_added": "1.0" | |||
"version_added": false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does false
mean here? Only commenting as curious/didn't see it in other cases..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(bun does support the Fetch API! 😄)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
false
means that the feature is unsupported -- in this case, this particular feature is whether the body
property is a readable byte stream. This is the test that's being run. The error message is "ReadableStreamBYOBReader needs a ReadableByteStreamController", which seems to indicate that it's not a byte stream.).
Safari also reports false
for this.
(Don't worry, it's not saying that the entire Response
/ Fetch API is unsupported!)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, thanks for the helpful explanation! (My mistake - I didn't see in the GitHub diff viewer that it was the specific "readable_byte_stream" check 😆)
This PR is a draft of what it would look like to add Bun and its data to BCD, if we desired to do so. Note: this draft is meant to be a proof of concept for #18484.
Releases are obtained from Bun's GitHub repository. Compatibility data is obtained from unjs/runtime-compat.