web-features 3.5.0 → 3.6.0-dev-20251021123639-ef0d4ea
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -5
- package/data.json +1 -1
- package/data.schema.json +1 -1
- package/package.json +2 -2
- package/types.quicktype.d.ts +1 -2
package/README.md
CHANGED
|
@@ -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
|
-
|
|
70
|
-
|
|
71
|
-
|
|
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,7 +82,6 @@ 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
|
|
@@ -90,6 +89,9 @@ It has the following properties:
|
|
|
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
|
|
104
105
|
|