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

Adds baseline-browser-mapping to web-features packages #2699

Closed
wants to merge 102 commits into from

Conversation

tonypconway
Copy link

baseline-browser-mapping is a module that makes it easy to retrieve minimum/all browser versions that support a specific Baseline feature set. It also includes a JSON file that maps downstream Chromium browsers to the version of Chromium that they implement. There is an Action that updates this data on a daily basis by parsing UA strings from useragents.io and auto-publishes if there are changes. I will provide and API key and NPM secret for publishing the module privately so they can be added as values in this repo.

conwayt and others added 30 commits November 26, 2024 13:47
Initial commit of README
First set of notes on usage
Add included browser table.
adding Apache 2.0 license
@github-actions github-actions bot added documentation Improvements or additions to documentation tools and infrastructure Project internal tooling, such as linters, GitHub Actions, or repo settings labels Feb 25, 2025
conwayt and others added 8 commits March 6, 2025 14:39
This change replaces the previous simple date-based logic for selecting
feature set-compatible versions to a more sophisticated feature based
selection logic using web-features.  This ensures that older browser
versions will be included if they fully support the targeted feature
set. Also fixes a bug in the version comparison function.
baseline-browser-mapping now uses web-features to select accurate minimum browser
@tonypconway
Copy link
Author

@ddbeck FYI when you come back - I've updated this now to use web-features for selecting minimum versions.

@tonypconway
Copy link
Author

@rviscomi I've made some changes here to support the suggestions you made i.e. using a single function with an options object, and I've updated the README to reflect that. I've also got a PR open on bl2bl to support this change: web-platform-dx/bl2bl#4

Would be very grateful if you could take a look.

Copy link
Contributor

@rviscomi rviscomi left a comment

Choose a reason for hiding this comment

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

Tested out the beta version locally and it seems to be working great. Just one small DX suggestion.

@tonypconway
Copy link
Author

As discussed at webdx CG on 13th March 2025, I'm withdrawing this PR in favour of baseline-browser-mapping living in its own repo to allow for quicker updates and reduce noise in web-features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation tools and infrastructure Project internal tooling, such as linters, GitHub Actions, or repo settings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants