-
Notifications
You must be signed in to change notification settings - Fork 120
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
Conversation
…stream data is updated
Initial commit of README
First set of notes on usage
Add included browser table.
…nway/web-features into baseline-browser-mapping
adding Apache 2.0 license
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
@ddbeck FYI when you come back - I've updated this now to use web-features for selecting minimum versions. |
@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. |
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.
Tested out the beta version locally and it seems to be working great. Just one small DX suggestion.
packages/baseline-browser-mapping/src/scripts/baseline-browser-versions.ts
Outdated
Show resolved
Hide resolved
As discussed at webdx CG on 13th March 2025, I'm withdrawing this PR in favour of |
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.