Skip to content

Conversation

alii
Copy link
Contributor

@alii alii commented Jul 21, 2025

Work in progress to support collecting Bun's versions in MDN. These changes are necessary because Bun can add new features in semver patches, which would be important and relevant for BCD to collect.

lib/ua-parser.ts Outdated
data.version = data.fullVersion;
} else {
data.version = getMajorMinorVersion(data.fullVersion);
}

if (data.browser.id == "bun") {
Copy link
Member

Choose a reason for hiding this comment

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

This line and the following two lines were my quick hack to do something similar, but I like your solution much better as it doesn't special-case Bun!

@alii alii changed the title *draft* Support Bun with patch changes Support Bun with patch changes Aug 1, 2025
@alii alii marked this pull request as ready for review August 19, 2025 21:07
@alii alii requested a review from queengooborg August 19, 2025 21:07
Copy link
Member

@queengooborg queengooborg left a comment

Choose a reason for hiding this comment

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

Thank you for your help, @alii!

@queengooborg queengooborg merged commit 26066a5 into openwebdocs:main Aug 19, 2025
2 checks passed
@alii
Copy link
Contributor Author

alii commented Aug 19, 2025

Whoop! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants