Skip to content

Conversation

queengooborg
Copy link
Contributor

@queengooborg queengooborg commented Jun 19, 2024

This PR adds the Bun runtime to BCD and tracks the data.

The initial data was generated with the help of the runtime-compat project, a project that uses the mdn-bcd-collector to collect test results for JavaScript runtimes.

The release data was obtained by a script written by @alii, which has been integrated into the release updater workflow.

Special thanks to the Bun team for all of their assistance!


Fixes #18484.
Closes #27625.

@github-actions github-actions bot added data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API data:js Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript data:browsers Data about browsers (versions, release dates, etc). This data is used for validation. data:wasm Compat data for Web Assembly features. https://developer.mozilla.org/en-US/docs/WebAssembly labels Jun 19, 2024
@github-actions github-actions bot added the schema Isses or pull requests regarding the JSON schema files used in this project. label Jul 8, 2024
@nektro
Copy link

nektro commented Sep 27, 2024

is there anything needed to push this along/fill out more data? happy to pitch in if it'd help

@queengooborg
Copy link
Contributor Author

This is just a proof of concept right now, and is awaiting owner consensus to add!

Copy link
Contributor

github-actions bot commented Oct 8, 2024

This pull request has merge conflicts that must be resolved before it can be merged.

@github-actions github-actions bot added the merge conflicts 🚧 This PR needs to merge latest "main" branch to resolve a merge conflict or other issue. label Oct 8, 2024
@github-actions github-actions bot removed the merge conflicts 🚧 This PR needs to merge latest "main" branch to resolve a merge conflict or other issue. label Nov 18, 2024
@caugner
Copy link
Contributor

caugner commented Dec 10, 2024

Since Bun is currently covered by runtime-compat, I would suggest closing this PR for now.

@queengooborg
Copy link
Contributor Author

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.

@queengooborg queengooborg added the semver-minor-bump A change that adds a new, non-potentially-breaking feature for consumers label Jan 11, 2025
Copy link
Contributor

This pull request has merge conflicts that must be resolved before it can be merged.

@github-actions github-actions bot added the merge conflicts 🚧 This PR needs to merge latest "main" branch to resolve a merge conflict or other issue. label Jan 16, 2025
@github-actions github-actions bot added size:xl [PR only] >1000 LoC changed and removed merge conflicts 🚧 This PR needs to merge latest "main" branch to resolve a merge conflict or other issue. labels Feb 17, 2025
@github-actions github-actions bot added the merge conflicts 🚧 This PR needs to merge latest "main" branch to resolve a merge conflict or other issue. label Apr 15, 2025
Copy link
Contributor

This pull request has merge conflicts that must be resolved before it can be merged.

@connerlphillippi
Copy link

@caugner bumping this, we would really love it if your team added support!

@queengooborg
Copy link
Contributor Author

I've opened #27599 for automating the release data for all JavaScript runtimes!

Regarding documentation about updating Bun data, we don't really have that for any runtime that we track in BCD? I do think that's a good idea since we talk about using the mdn-bcd-collector for browsers, but we don't really talk about using runtime-compat for Node.js and Deno yet, and we should probably hold off on documenting it until RCD has been updated to run on all runtime versions, not just the latest!

@Elchi3
Copy link
Member

Elchi3 commented Aug 18, 2025

I've opened #27599 for automating the release data for all JavaScript runtimes!

Thanks!

Regarding documentation about updating Bun data, we don't really have that for any runtime that we track in BCD? I do think that's a good idea since we talk about using the mdn-bcd-collector for browsers, but we don't really talk about using runtime-compat for Node.js and Deno yet, and we should probably hold off on documenting it until RCD has been updated to run on all runtime versions, not just the latest!

Could be that we don't have that for deno and node but the guidelines have become stricter (see #27213). The goal here is to not add new runtimes/browsers to BCD anymore that outdate quickly. We still need to fix that for node and deno but for new additions (bun), it makes sense to have a plan from the start.

@queengooborg
Copy link
Contributor Author

I have just opened an OWD project proposal regarding this, to establish a proper plan for not only automatically testing Bun, but Node.js and Deno as well (since I think that a plan for one is a plan for all): openwebdocs/project#229

@github-actions github-actions bot added infra Infrastructure issues (npm, GitHub Actions, releases) of this project scripts Issues or pull requests regarding the scripts in scripts/. labels Aug 26, 2025
@queengooborg
Copy link
Contributor Author

As we discussed in our weekly meeting, I have pulled the changes from #27625 into this PR, so that everything is added all in one go!

Copy link
Contributor

@caugner caugner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (ran npm run diff:flat on this branch), just one nit.

@caugner caugner changed the title Add Bun to BCD feat(browsers): Add Bun to BCD Aug 26, 2025
@caugner caugner merged commit 596ddab into mdn:main Aug 26, 2025
6 of 7 checks passed
@caugner caugner changed the title feat(browsers): Add Bun to BCD feat(browsers): add Bun to BCD Aug 26, 2025
@mdn-bot mdn-bot mentioned this pull request Aug 26, 2025
@alii
Copy link
Contributor

alii commented Aug 26, 2025

Thank you everyone! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API data:browsers Data about browsers (versions, release dates, etc). This data is used for validation. data:js Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript data:wasm Compat data for Web Assembly features. https://developer.mozilla.org/en-US/docs/WebAssembly docs Issues or pull requests regarding the documentation of this project. infra Infrastructure issues (npm, GitHub Actions, releases) of this project schema Isses or pull requests regarding the JSON schema files used in this project. scripts Issues or pull requests regarding the scripts in scripts/. semver-minor-bump A change that adds a new, non-potentially-breaking feature for consumers size:xl [PR only] >1000 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Bun runtime to BCD
6 participants