Skip to content

Tag javascript.* tree with snapshots - #22211

Merged
Elchi3 merged 1 commit into
mdn:mainfrom
Elchi3:snapshots-groups-bundles
Apr 16, 2024
Merged

Elchi3 merged 1 commit into
mdn:mainfrom
Elchi3:snapshots-groups-bundles

Conversation

@Elchi3

@Elchi3 Elchi3 commented Feb 13, 2024 •

Copy link
Copy Markdown
Member

This is a PR for web-platform-dx/web-features#579

  • It tags the javascript/ folder with ECMAScript snapshots. The snapshots have been determined manually by reading (old) ECMAScript specifications.
  • The idea of higher-level capability groups has been implemented in web-features instead. Features can be associated with a group in a web-feature yaml file.
  • "Bundles" are just features now and over the last few weeks I already submitted features for array, typed-arrays, maps, sets, promises, and more, so they are not part of this PR anymore.

Interesting queries to look at or to review this PR:

Snapshots:

  • npm run traverse -- -t web-features:snapshot:ecmascript-1
  • npm run traverse -- -t web-features:snapshot:ecmascript-3
  • npm run traverse -- -t web-features:snapshot:ecmascript-5
  • npm run traverse -- -t web-features:snapshot:ecmascript-2015
  • npm run traverse -- -t web-features:snapshot:ecmascript-2016
  • ... and more years

Features:

  • npm run traverse -- -t web-features:arrays
  • npm run traverse -- -t web-features:typed-arrays
  • npm run traverse -- -t web-features:array-at
  • npm run traverse -- -t web-features:array-copywithin
  • npm run traverse -- -t web-features:array-fill
  • npm run traverse -- -t web-features:array-find
  • npm run traverse -- -t web-features:array-findlast
  • npm run traverse -- -t web-features:array-flattening
  • npm run traverse -- -t web-features:array-iteration-methods
  • npm run traverse -- -t web-features:array-iterators
  • npm run traverse -- -t web-features:array-from
  • npm run traverse -- -t web-features:array-fromasync
  • npm run traverse -- -t web-features:array-includes
  • npm run traverse -- -t web-features:array-isarray
  • npm run traverse -- -t web-features:array-of
  • npm run traverse -- -t web-features:stable-array-sort
  • npm run traverse -- -t web-features:array-by-copy

@github-actions github-actions Bot added data:js Compatibility data for JavaScript features. https://developer.mozilla.org/docs/Web/JavaScript linter Issue or pull request concerning JSON tests or linting. labels Feb 13, 2024
@Elchi3
Elchi3 force-pushed the snapshots-groups-bundles branch from cbf9375 to 0516ffb Compare February 13, 2024 12:41
@Elchi3

Elchi3 commented Feb 14, 2024

Copy link
Copy Markdown
Member Author

@github-actions github-actions Bot added the merge conflicts 🚧 This PR needs to merge latest "main" branch to resolve a merge conflict or other issue. label Mar 28, 2024
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has merge conflicts that must be resolved before it can be merged.

@github-actions github-actions Bot added merge conflicts 🚧 This PR needs to merge latest "main" branch to resolve a merge conflict or other issue. and removed merge conflicts 🚧 This PR needs to merge latest "main" branch to resolve a merge conflict or other issue. linter Issue or pull request concerning JSON tests or linting. labels Mar 28, 2024
@foolip

foolip commented Mar 28, 2024

Copy link
Copy Markdown
Contributor

@Elchi3 do you want manual review of this? Or is it partly produced by a script that we can trust?

On the tags, going forward I would suggest "web-features:array-at" for a feature, "web-features:group:arrays" for groups, and "web-features:snapshot:ecmascript-2022" for snapshots. We could make it "web-features:feature:array-at" but I feel like that's making the common case more verbose and repetetive.

@Elchi3

Elchi3 commented Mar 28, 2024

Copy link
Copy Markdown
Member Author

@Elchi3 do you want manual review of this? Or is it partly produced by a script that we can trust?

It's not produced by a script. Sorry :) It was me reading old specifications to determine when a feature was first defined.

On the tags, going forward I would suggest "web-features:array-at" for a feature, "web-features:group:arrays" for groups, and "web-features:snapshot:ecmascript-2022" for snapshots. We could make it "web-features:feature:array-at" but I feel like that's making the common case more verbose and repetetive.

I'm happy to make this change and get rid of the "bundle" terminology.

On groups and snapshots: From BCD's perspective, adding group and snapshot tags is useful to allow advanced data querying (and as a contributor you can see at a glance to which group and to which snapshot a BCD feature belongs), but it is also quite some work to add this to all BCD features. So, I wonder if we want those extra tags along with the standard web-features tag or if we are happy with having group and snapshot attached to web-feature yaml files only.

@Elchi3

Elchi3 commented Apr 6, 2024

Copy link
Copy Markdown
Member Author

Actually, I think I would like to land features and snapshots in BCD and leave groups to web-features.

I will update the syntax to be:
"web-features:array-at"
"web-features:snapshot:ecmascript-2022"

@Elchi3 Elchi3 changed the title Draft: Tag javascript.* tree with snapshots, groups, bundles Tag javascript.* tree with snapshots Apr 8, 2024
@github-actions

github-actions Bot commented Apr 8, 2024

Copy link
Copy Markdown
Contributor

This pull request has merge conflicts that must be resolved before it can be merged.

@github-actions github-actions Bot added the merge conflicts 🚧 This PR needs to merge latest "main" branch to resolve a merge conflict or other issue. label Apr 8, 2024
@Elchi3
Elchi3 force-pushed the snapshots-groups-bundles branch from 5550752 to 93cf647 Compare April 15, 2024 15:06
@github-actions github-actions Bot removed the merge conflicts 🚧 This PR needs to merge latest "main" branch to resolve a merge conflict or other issue. label Apr 15, 2024
@Elchi3
Elchi3 force-pushed the snapshots-groups-bundles branch from 93cf647 to 88ae267 Compare April 15, 2024 15:20
@Elchi3
Elchi3 force-pushed the snapshots-groups-bundles branch from 88ae267 to ea8d059 Compare April 15, 2024 17:00
@Elchi3
Elchi3 marked this pull request as ready for review April 15, 2024 17:09
@Elchi3
Elchi3 requested a review from foolip April 15, 2024 17:09

@foolip foolip left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I tried to verify two snapshots and both checked out. I'll trust the rest :)

"mdn_url": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Reflect/deleteProperty",
"spec_url": "https://tc39.es/ecma262/multipage/reflection.html#sec-reflect.deleteproperty",
"tags": [
"web-features:snapshot:ecmascript-2015"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

"__compat": {
"description": "Non-registered symbol as target",
"tags": [
"web-features:snapshot:ecmascript-2023",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@Elchi3

Elchi3 commented Apr 16, 2024

Copy link
Copy Markdown
Member Author

Thanks Philip! I'm merging this so that I can create more ECMAScript web-features. We can always correct things later and there are a few things not yet tagged with a snapshot but I'm confident about this initial data.

@Elchi3
Elchi3 merged commit 3bcd27d into mdn:main Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:js Compatibility data for JavaScript features. https://developer.mozilla.org/docs/Web/JavaScript

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants