Skip to content

Commit c250320

Browse files
foolipddbeck
andauthored
Reduce dist files to only the additional generated data (#1162)
The duplication of data across source and dist means that any changes to the source require regenerating dist. This frequently slows down work as this needs to be done in a checkout. Most commonly, an updated description from a code review suggestion results in failing checks because the dist file is out of sync. The new approach is that a dist file will only contain `compat_features` when they are sourced from BCD, and only contain `status` when it is computed as opposed to manually maintained. Also take the opportunity to rename dist files to .yml.dist. The built packages/web-features/index.json is unchanged. Co-authored-by: Daniel D. Beck <[email protected]>
1 parent f1ebf69 commit c250320

File tree

406 files changed

+1786
-4994
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

406 files changed

+1786
-4994
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
features/*.yml.dist linguist-language=YAML

.github/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
- changed-files:
33
- all-globs-to-any-file:
44
- "features/*.yml"
5-
- "!features/*.dist.yml"
5+
- "!features/*.yml.dist"

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
!GOVERNANCE.md
66

77
!/features/*.yml
8-
/features/*.dist.yml
8+
/features/*.yml.dist
99

1010
!/packages/compute-baseline/**
1111
!/packages/web-features/**
Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Generated from: abortable-fetch.yml
22
# Do not edit this file by hand. Edit the source file instead!
33

4-
name: Abortable fetch
5-
description: If you construct a fetch request with an `AbortSignal`, you can cancel the request.
6-
spec: https://fetch.spec.whatwg.org/#ref-for-dom-request-signal%E2%91%A1
74
status:
85
baseline: high
96
baseline_low_date: 2019-03-25
@@ -16,6 +13,3 @@ status:
1613
firefox_android: "57"
1714
safari: "12.1"
1815
safari_ios: "12.2"
19-
compat_features:
20-
- api.fetch.init_signal_parameter
21-
- api.Request.signal

features/aborting.dist.yml renamed to features/aborting.yml.dist

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# Generated from: aborting.yml
22
# Do not edit this file by hand. Edit the source file instead!
33

4-
name: AbortController and AbortSignal
5-
description: The `AbortController` and `AbortSignal` APIs allow you to cancel an ongoing operation, such as a `fetch()` request.
6-
spec: https://dom.spec.whatwg.org/#aborting-ongoing-activities
7-
caniuse: abortcontroller
84
status:
95
baseline: high
106
baseline_low_date: 2019-03-25
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Generated from: abortsignal-any.yml
22
# Do not edit this file by hand. Edit the source file instead!
33

4-
name: AbortSignal.any()
5-
description: The `AbortSignal.any()` static method combines an iterable of abort signals into a single signal, with the abort reason taken from the first signal to abort.
6-
spec: https://dom.spec.whatwg.org/#dom-abortsignal-any
74
status:
85
baseline: low
96
baseline_low_date: 2024-03-19
@@ -15,5 +12,3 @@ status:
1512
firefox_android: "124"
1613
safari: "17.4"
1714
safari_ios: "17.4"
18-
compat_features:
19-
- api.AbortSignal.any_static

features/abs-sign.dist.yml renamed to features/abs-sign.yml.dist

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Generated from: abs-sign.yml
22
# Do not edit this file by hand. Edit the source file instead!
33

4-
name: abs() and sign()
5-
description: The `abs()` and `sign()` CSS functions compute the absolute value or the sign of the input.
6-
spec: https://drafts.csswg.org/css-values-4/#sign-funcs
74
status:
85
baseline: false
96
support:

features/accent-color.dist.yml renamed to features/accent-color.yml.dist

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# Generated from: accent-color.yml
22
# Do not edit this file by hand. Edit the source file instead!
33

4-
name: accent-color
5-
description: The `accent-color` CSS property sets a color for checkboxes, radio buttons, and other form controls.
6-
spec: https://drafts.csswg.org/css-ui-4/#widget-accent
7-
usage_stats: https://chromestatus.com/metrics/css/timeline/popularity/695
84
status:
95
baseline: low
106
baseline_low_date: 2022-03-14

features/anchor-positioning.dist.yml renamed to features/anchor-positioning.yml.dist

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# Generated from: anchor-positioning.yml
22
# Do not edit this file by hand. Edit the source file instead!
33

4-
name: Anchor positioning
5-
description: Anchor positioning places an element based on the position of another element. For example, you can place a tooltip next to the content it references.
6-
spec: https://drafts.csswg.org/css-anchor-position-1/#anchoring
7-
caniuse: css-anchor-positioning
84
status:
95
baseline: false
106
support:

features/animation-composition.dist.yml renamed to features/animation-composition.yml.dist

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# Generated from: animation-composition.yml
22
# Do not edit this file by hand. Edit the source file instead!
33

4-
name: animation-composition
5-
description: The `animation-composition` CSS property chooses how to combine animations that affect the same property.
6-
spec: https://drafts.csswg.org/css-animations-2/#animation-composition
7-
usage_stats: https://chromestatus.com/metrics/css/timeline/popularity/743
84
status:
95
baseline: low
106
baseline_low_date: 2023-07-04

0 commit comments

Comments
 (0)