Repository navigation
Add Array and Typed Array features - #624
Conversation
ddbeck
left a comment
There was a problem hiding this comment.
Some questions:
-
How does the snapshot field work? How would I know how to set it, what would be an invalid value, and so on? Some minor documentation would help here.
-
Why isn't the build failing here. It seems to me that
snapshotought to fail schema validation and the fact that it's not troubles me.
The snapshot field was added as an omittable field in #625. Where should I write docs about it? It would be good to have docs for every field in web-features actually. |
Thank you! I missed that one. I agree that we ought to document the fields. I suppose we could start in the README, before building out 'real' docs. But for this field specifically, we could probably start something like |
Co-authored-by: Florian Scholz <[email protected]>
|
Okay, let's go ahead and merge this. I'd like to come back to some of the descriptions, but as long as we don't have a guideline I don't want to ask contributors like @Elchi3 to follow my whims, and slow things down. |
|
Thanks for your hard work on this @Elchi3! Please take whatever path through ECMAScript you prefer, but will note that I was thinking about "collections" as a kind of group containing arrays, sets, weak maps, etc. In the spec it'd be both indexed collections and keyed collections. So adding one more collection type and the group that unites them would be a nice way to gain experience with groups. |
|
Thank you @foolip! :) Yes, let me submit PRs for things that could belong into a "collections" group. array.yml: groups: arrays Which would produce something like: Group: Arrays
Group: Typed Arrays
And then maybe groups.yml defining which groups are valid and how a group relates to a parent group, so that you could also end up with something like this: Group: Collections
Anyway, I will get these thoughts in a new issue. |
|
@Elchi3 that's what I had imagined as well, that all of the features you've added here would belong to an arrays groups, and some of them additionally belong in a typed arrays group. |
This PR adds features related to Arrays and Typed Array.
I also added snapshot fields which was added as a non-published field in #625
There is no way in web-features to mark these bundles belonging to the groups "Arrays", "Typed Arrays", "Iterators", so I haven't done that yet.
(Except for the
nameanddescriptionfields, everything in this PR could have been generated from BCD using mdn/browser-compat-data#22211)