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

Umbrella features for old versions of HTML, CSS and JavaScript #558

Closed
foolip opened this issue Jan 31, 2024 · 4 comments
Closed

Umbrella features for old versions of HTML, CSS and JavaScript #558

foolip opened this issue Jan 31, 2024 · 4 comments

Comments

@foolip
Copy link
Collaborator

foolip commented Jan 31, 2024

It would be useful to have at least these groups to put a lot of widely supported APIs into:

I suspect we'll run into harder cases the newer versions we try to add, and in particular I don't think we should try to categorize new JavaScript features primarily by ECMAScript version, but instead by the specific features. Over time they might melt into a grouping feature, however.

@captainbrosset
Copy link
Contributor

captainbrosset commented Feb 1, 2024

As a way to move fast on things that have been baseline for a long time, I agree that this is a good idea.
But it kind of makes me sad a little bit, because it doesn't achieve one of the goals we have on the README:

web-features is an effort to build a shared catalog of features of the web platform [...] feature definitions, which identify and describe capabilities of the web

If we create 3 huge groups for everything that's been supported everywhere for at least a few years, then we don't really catalog the web platform.
We achieve our goal of making it easy for devs to know what they can use, but we don't achieve our goal of representing a list of features that are organized, roughly sized the same, and that can be browsed to learn what's possible to even do on the web.

@Elchi3
Copy link
Collaborator

Elchi3 commented Feb 1, 2024

I agree with @captainbrosset but I also think that having larger groups for "snapshots" is useful. I think "snapshots groups" and "capability groups" in combination are quite interesting actually. I guess my thought is: Why not have both?

For example, if you have the snapshot groups: ecmascript-3, ecmascript-2018, ecmascript-2024 and the web platform capability group "regular-expressions", you can have:

  • ecmascript-3-regular-expressions
  • ecmascript-2018-regular-expressions
  • ecmascript-2024-regular-expressions

In BCD we could note it like so:

Regex constructor:

"tags": [
  "web-features:ecmascript-3",
  "web-features:regular-expressions"
],

Regex dotAll:

"tags": [
  "web-features:ecmascript-2018",
  "web-features:regular-expressions"
],

Edit: Maybe it would be even better if it the data makes clear what is a capability group and what is a snapshot. The prefix could help with that: "web-features-snapshot:ecmascript-3" and "web-features-capability:regular-expressions", for example.

Also, as you say, snapshot groups are easier to determine than capability groups, because what even is a capability? What does it include?

@foolip
Copy link
Collaborator Author

foolip commented Feb 1, 2024

I made up the term "umbrella feature" here, but I don't think they're like regular features. We shouldn't put hundreds of BCD keys into one mega-feature and have that alongside things like Subgrid or BigInt in a hypothetical dashboard/search/thing.

"Why not have both?" is the right answer I think, and I think @Elchi3's "snapshot groups" (which aren't features) are in the right direction for a solution.

@foolip
Copy link
Collaborator Author

foolip commented Mar 25, 2024

With the approach we've taken with groups and snapshots, as well as "initial support" features, I think this issue is no longer relevant.

@foolip foolip closed this as completed Mar 25, 2024
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

No branches or pull requests

3 participants