Skip to content

Commit

Permalink
Make Baseline status required (#899)
Browse files Browse the repository at this point in the history
  • Loading branch information
foolip authored May 2, 2024
1 parent 51b0f19 commit 073575c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions feature-group-definitions/compute-pressure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ spec: https://w3c.github.io/compute-pressure/
usage_stats: https://chromestatus.com/metrics/feature/timeline/popularity/3899
status:
baseline: false
support: {}
7 changes: 6 additions & 1 deletion schemas/defs.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@
"type": "object"
}
},
"required": [
"baseline",
"support"
],
"type": "object"
},
"usage_stats": {
Expand All @@ -154,7 +158,8 @@
"name",
"description",
"description_html",
"spec"
"spec",
"status"
],
"type": "object"
}
Expand Down
6 changes: 3 additions & 3 deletions types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface FeatureData {
/** caniuse.com identifier */
caniuse?: string | [string, string, ...string[]];
/** Whether a feature is considered a "baseline" web platform feature and when it achieved that status */
status?: SupportStatus;
status: SupportStatus;
/** Sources of support data for this feature */
compat_features?: string[];
/** Usage stats */
Expand All @@ -27,13 +27,13 @@ type BaselineHighLow = "high" | "low";

interface SupportStatus {
/** Whether the feature is Baseline (low substatus), Baseline (high substatus), or not (false) */
baseline?: BaselineHighLow | false;
baseline: BaselineHighLow | false;
/** Date the feature achieved Baseline low status */
baseline_low_date?: string;
/** Date the feature achieved Baseline high status */
baseline_high_date?: string;
/** Browser versions that most-recently introduced the feature */
support?: {
support: {
[K in browserIdentifier]?: string;
};
}
Expand Down

0 comments on commit 073575c

Please sign in to comment.