You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/web-features/README.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,9 +66,9 @@ Most values are ordinary feature objects with names, descriptions, and other dat
66
66
Some features contain redirects to other features.
67
67
You can distinguish between ordinary feature objects and redirects by using the `kind` property:
68
68
69
-
*`"feature"` — ordinary features
70
-
*`"moved"` — the feature has a redirect to a new key
71
-
*`"split"` — the feature has a redirect to two or more keys
69
+
-`"feature"` — ordinary features
70
+
-`"moved"` — the feature has a redirect to a new key
71
+
-`"split"` — the feature has a redirect to two or more keys
72
72
73
73
### Feature objects
74
74
@@ -82,14 +82,16 @@ It has the following properties:
82
82
-`spec` (type: `string[]`): A specification URL or an array of them
83
83
-`status`: Support status data.
84
84
It has the following properties:
85
-
86
85
-`baseline` (type: `"high" | "low" | false`): Whether the feature Baseline widely available, Baseline newly available, or not Baseline
87
86
-`baseline_low_date` (optional, type: `string`): When the feature reached Baseline newly available status
88
87
-`baseline_high_date` (optional, type: `string`): When the feature reached Baseline widely available status
89
88
-`support`: An object representing per-browser support information, showing the version number where each browser first started to support that feature.
90
89
All keys are optional.
91
90
Keys are one of: `"chrome"`, `"chrome_android"`, `"edge"`, `"firefox"`, `"firefox"`, `"firefox_android"`, `"safari"`, `"safari_ios"`.
92
91
Each value is a `string` containing the version number.
92
+
-`by_compat_key` (optional, type: `object`): An object mapping each compat key from the feature's `compat_features` array to its individual support status data.
93
+
Each value follows the same structure as the main `status` object, with `baseline`, `baseline_low_date`, `baseline_high_date`, and `support` properties.
94
+
Only present for features that have `compat_features`.
93
95
94
96
-`group` (optional, type: `string[]`): A `groups` key or an array of them
95
97
-`snapshot` (optional, type: `string[]`): A `snapshots` key or an array of them
@@ -98,7 +100,6 @@ It has the following properties:
98
100
-`compat_features` (optional, type: `string[]`): An array of `@mdn/browser-compat-data` feature key strings.
99
101
-`discouraged` (optional): An object indicating that web developers should avoid using the feature.
100
102
It has the following properties:
101
-
102
103
-`according_to` (type: `string[]`): One or more links to a formal discouragement notice, such as specification text or an intent-to-unship
103
104
-`alternatives` (optional, type: `string[]`): One or more feature IDs (as in `features[alternatives[0]]`) that substitute some or all of this feature's utility
0 commit comments