Skip to content

Conversation

@captainbrosset
Copy link
Contributor

The web-features bot which we used during the proposal window uses an outdated version of the web-features data library.
This PR upgrades to 3.6.0, which is the latest version of the library, and fixes the code to account for the breaking changes that came with version 3.

@captainbrosset captainbrosset changed the title Upgrade to web-features 3.0 Upgrade to web-features 3.6.0 Nov 3, 2025
Copy link
Member

@foolip foolip left a comment

Choose a reason for hiding this comment

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

This looks like it'll work, handling renames would be nice, but up to you if you feel like it :)


function getFeature(id) {
const feature = features[id];
if (!feature || feature.kind !== "feature") {
Copy link
Member

Choose a reason for hiding this comment

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

Do you see any benefit from handling moved features? It could be done by returning [id, data] perhaps, so that callers that use the ID could use the new one.

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