@mdn/browser-compat-data 5.0.0 → 5.0.3
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 +1 -0
- package/data.json +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
- package/types.d.ts +168 -272
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"main":"data.json","exports":{".":"./data.json","./forLegacyNode":"./legacynode.mjs"},"types":"index.ts","name":"@mdn/browser-compat-data","version":"5.0.
|
|
1
|
+
{"main":"data.json","exports":{".":"./data.json","./forLegacyNode":"./legacynode.mjs"},"types":"index.ts","name":"@mdn/browser-compat-data","version":"5.0.3","description":"Browser compatibility data provided by MDN Web Docs","repository":{"type":"git","url":"git+https://github.com/mdn/browser-compat-data.git"},"keywords":["bcd","browser-compat-data","browser","compatibility","data","mdn","mozilla"],"author":"MDN Web Docs","license":"CC0-1.0","bugs":{"url":"https://github.com/mdn/browser-compat-data/issues"},"homepage":"https://github.com/mdn/browser-compat-data#readme"}
|
package/types.d.ts
CHANGED
|
@@ -1,409 +1,305 @@
|
|
|
1
1
|
/* This file is a part of @mdn/browser-compat-data
|
|
2
2
|
* See LICENSE file for more information. */
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
6
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source schema files in
|
|
7
|
+
* schemas/*, and run "npm run gentypes" to regenerate this file.
|
|
8
|
+
*/
|
|
9
|
+
|
|
4
10
|
/**
|
|
5
11
|
* The names of the known browsers.
|
|
6
12
|
*/
|
|
7
|
-
export type
|
|
8
|
-
| 'chrome'
|
|
9
|
-
| 'chrome_android'
|
|
10
|
-
| 'deno'
|
|
11
|
-
| 'edge'
|
|
12
|
-
| 'firefox'
|
|
13
|
-
| 'firefox_android'
|
|
14
|
-
| 'ie'
|
|
15
|
-
| 'nodejs'
|
|
16
|
-
| 'oculus'
|
|
17
|
-
| 'opera'
|
|
18
|
-
| 'opera_android'
|
|
19
|
-
| 'safari'
|
|
20
|
-
| 'safari_ios'
|
|
21
|
-
| 'samsunginternet_android'
|
|
22
|
-
| 'webview_android';
|
|
13
|
+
export type BrowserName = "chrome" | "chrome_android" | "deno" | "edge" | "firefox" | "firefox_android" | "ie" | "nodejs" | "oculus" | "opera" | "opera_android" | "safari" | "safari_ios" | "samsunginternet_android" | "webview_android";
|
|
23
14
|
|
|
24
|
-
export type
|
|
25
|
-
| 'Blink'
|
|
26
|
-
| 'EdgeHTML'
|
|
27
|
-
| 'Gecko'
|
|
28
|
-
| 'Presto'
|
|
29
|
-
| 'Trident'
|
|
30
|
-
| 'WebKit'
|
|
31
|
-
| 'V8';
|
|
32
|
-
|
|
33
|
-
export type BrowserTypes = 'desktop' | 'mobile' | 'xr' | 'server';
|
|
15
|
+
export type VersionValue = string | boolean | null;
|
|
34
16
|
|
|
35
17
|
/**
|
|
36
|
-
*
|
|
18
|
+
* This interface was referenced by `Browsers`'s JSON-Schema
|
|
19
|
+
* via the `definition` "browsers".
|
|
37
20
|
*/
|
|
38
|
-
export
|
|
39
|
-
|
|
40
|
-
|
|
21
|
+
export type Browsers = Record<BrowserName, BrowserStatement>;
|
|
22
|
+
/**
|
|
23
|
+
* This interface was referenced by `Browsers`'s JSON-Schema
|
|
24
|
+
* via the `definition` "browser_type".
|
|
25
|
+
*/
|
|
26
|
+
export type BrowserType = "desktop" | "mobile" | "xr" | "server";
|
|
27
|
+
/**
|
|
28
|
+
* This interface was referenced by `Browsers`'s JSON-Schema
|
|
29
|
+
* via the `definition` "browser_engine".
|
|
30
|
+
*/
|
|
31
|
+
export type BrowserEngine = "Blink" | "EdgeHTML" | "Gecko" | "Presto" | "Trident" | "WebKit" | "V8";
|
|
32
|
+
/**
|
|
33
|
+
* This interface was referenced by `Browsers`'s JSON-Schema
|
|
34
|
+
* via the `definition` "browser_status".
|
|
35
|
+
*/
|
|
36
|
+
export type BrowserStatus = "retired" | "current" | "exclusive" | "beta" | "nightly" | "esr" | "planned";
|
|
37
|
+
|
|
41
38
|
|
|
42
39
|
/**
|
|
43
|
-
*
|
|
40
|
+
* This interface was referenced by `Browsers`'s JSON-Schema
|
|
41
|
+
* via the `definition` "browser_statement".
|
|
44
42
|
*/
|
|
45
43
|
export interface BrowserStatement {
|
|
46
44
|
/**
|
|
47
|
-
* The browser brand name,
|
|
48
|
-
* `"Firefox"`, `"Firefox Android"`, `"Safari"`, `"iOS Safari"`, etc.
|
|
45
|
+
* The browser brand name (e.g. Firefox, Firefox Android, Chrome, etc.).
|
|
49
46
|
*/
|
|
50
47
|
name: string;
|
|
51
|
-
|
|
52
48
|
/**
|
|
53
|
-
* The platform the browser runs on,
|
|
54
|
-
* `"desktop"`, `"mobile"`, `"server"`, etc.
|
|
49
|
+
* The platform the browser runs on (e.g. desktop, mobile, XR, or server engine).
|
|
55
50
|
*/
|
|
56
|
-
type:
|
|
57
|
-
|
|
51
|
+
type: BrowserType;
|
|
58
52
|
/**
|
|
59
|
-
* The upstream browser
|
|
53
|
+
* The upstream browser this browser derives from (e.g. Firefox Android is derived from Firefox, Edge is derived from Chrome).
|
|
60
54
|
*/
|
|
61
|
-
upstream?:
|
|
62
|
-
|
|
55
|
+
upstream?: BrowserName;
|
|
63
56
|
/**
|
|
64
|
-
* Whether the browser supports flags to enable or
|
|
57
|
+
* Whether the browser supports flags to enable or disablle features.
|
|
65
58
|
*/
|
|
66
59
|
accepts_flags?: boolean;
|
|
67
|
-
|
|
68
60
|
/**
|
|
69
61
|
* Whether the browser supports extensions.
|
|
70
62
|
*/
|
|
71
63
|
accepts_webextensions?: boolean;
|
|
72
|
-
|
|
73
64
|
/**
|
|
74
|
-
*
|
|
75
|
-
* (e.g. `"about:config"` for Firefox or `"chrome://flags"` for Chrome).
|
|
65
|
+
* URL of the page where feature flags can be changed (e.g. 'about:config' for Firefox or 'chrome://flags' for Chrome).
|
|
76
66
|
*/
|
|
77
67
|
pref_url?: string;
|
|
78
|
-
|
|
79
68
|
/**
|
|
80
|
-
* The
|
|
81
|
-
* `"Nightly"`, `"Canary"`, `"TP"`, etc.
|
|
69
|
+
* The name of the browser's preview channel (e.g. 'Nightly' for Firefox or 'TP' for Safari).
|
|
82
70
|
*/
|
|
83
|
-
preview_name
|
|
84
|
-
|
|
71
|
+
preview_name?: string;
|
|
85
72
|
/**
|
|
86
73
|
* The known versions of this browser.
|
|
87
74
|
*/
|
|
88
|
-
releases: {
|
|
89
|
-
[version: string]: ReleaseStatement;
|
|
90
|
-
};
|
|
75
|
+
releases: {[version: string]: ReleaseStatement};
|
|
91
76
|
}
|
|
92
|
-
|
|
93
77
|
/**
|
|
94
|
-
*
|
|
78
|
+
* This interface was referenced by `Browsers`'s JSON-Schema
|
|
79
|
+
* via the `definition` "release_statement".
|
|
95
80
|
*/
|
|
96
81
|
export interface ReleaseStatement {
|
|
97
82
|
/**
|
|
98
|
-
* The date on which this version was released
|
|
99
|
-
*
|
|
100
|
-
* Formatted as `YYYY-MM-DD`.
|
|
83
|
+
* The date on which this version was released, formatted as `YYYY-MM-DD`.
|
|
101
84
|
*/
|
|
102
85
|
release_date?: string;
|
|
103
|
-
|
|
104
86
|
/**
|
|
105
|
-
*
|
|
87
|
+
* A link to the release notes or changelog for a given release.
|
|
106
88
|
*/
|
|
107
89
|
release_notes?: string;
|
|
108
|
-
|
|
109
90
|
/**
|
|
110
91
|
* Name of the browser's underlying engine.
|
|
111
92
|
*/
|
|
112
|
-
engine?:
|
|
113
|
-
|
|
93
|
+
engine?: BrowserEngine;
|
|
114
94
|
/**
|
|
115
95
|
* Version of the engine corresponding to the browser version.
|
|
116
96
|
*/
|
|
117
97
|
engine_version?: string;
|
|
118
|
-
|
|
119
98
|
/**
|
|
120
|
-
* A property indicating where in the lifetime cycle this release is in.
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
* - `retired`: This release is no longer supported (EOL).
|
|
124
|
-
* - `current`: This release is the official latest release.
|
|
125
|
-
* - `exclusive`: This is an exclusive release (for example on a flagship device),
|
|
126
|
-
* not generally available.
|
|
127
|
-
* - `beta`: This release will the next official release.
|
|
128
|
-
* - `nightly`: This release is the current alpha / experimental release
|
|
129
|
-
* (like Firefox Nightly, Chrome Canary).
|
|
130
|
-
* - `esr`: This release is an Extended Support Release.
|
|
131
|
-
* - `planned`: This release is planned in the future.
|
|
132
|
-
*/
|
|
133
|
-
status:
|
|
134
|
-
| 'retired'
|
|
135
|
-
| 'current'
|
|
136
|
-
| 'limited'
|
|
137
|
-
| 'beta'
|
|
138
|
-
| 'nightly'
|
|
139
|
-
| 'esr'
|
|
140
|
-
| 'planned';
|
|
99
|
+
* A property indicating where in the lifetime cycle this release is in (e.g. current, retired, beta, nightly).
|
|
100
|
+
*/
|
|
101
|
+
status: BrowserStatus;
|
|
141
102
|
}
|
|
142
103
|
|
|
104
|
+
|
|
143
105
|
/**
|
|
144
|
-
*
|
|
145
|
-
*
|
|
106
|
+
* This interface was referenced by `CompatData`'s JSON-Schema definition
|
|
107
|
+
* via the `patternProperty` "^(?!__compat)(?!webextensions)[a-zA-Z_0-9-$@]*$".
|
|
146
108
|
*
|
|
147
|
-
*
|
|
148
|
-
*
|
|
109
|
+
* This interface was referenced by `CompatData`'s JSON-Schema
|
|
110
|
+
* via the `definition` "identifier".
|
|
149
111
|
*/
|
|
150
|
-
export type
|
|
151
|
-
|
|
152
|
-
|
|
112
|
+
export type Identifier = {[key: string]: Identifier} & {__compat?: CompatStatement};
|
|
113
|
+
/**
|
|
114
|
+
* This interface was referenced by `CompatData`'s JSON-Schema
|
|
115
|
+
* via the `definition` "support_statement".
|
|
116
|
+
*/
|
|
117
|
+
export type SupportStatement = SimpleSupportStatement | SimpleSupportStatement[];
|
|
118
|
+
/**
|
|
119
|
+
* This interface was referenced by `CompatData`'s JSON-Schema
|
|
120
|
+
* via the `definition` "support_block".
|
|
121
|
+
*/
|
|
122
|
+
export type SupportBlock = Partial<Record<BrowserName, SupportStatement>>;
|
|
123
|
+
/**
|
|
124
|
+
* This interface was referenced by `CompatData`'s JSON-Schema
|
|
125
|
+
* via the `definition` "spec_url_value".
|
|
126
|
+
*/
|
|
127
|
+
export type SpecUrlValue = string;
|
|
128
|
+
/**
|
|
129
|
+
* This interface was referenced by `CompatData`'s JSON-Schema
|
|
130
|
+
* via the `definition` "impl_url_value".
|
|
131
|
+
*/
|
|
132
|
+
export type ImplUrlValue = string;
|
|
133
|
+
/**
|
|
134
|
+
* This interface was referenced by `CompatData`'s JSON-Schema
|
|
135
|
+
* via the `definition` "webextensions_identifier".
|
|
136
|
+
* THIS INTERFACE SHOULD NOT BE USED AND MAY BE REMOVED AT ANY TIME; USE THE "Identifier" INTERFACE INSTEAD.
|
|
137
|
+
*/
|
|
138
|
+
export type WebextensionsIdentifier = {[key: string]: Identifier} & {__compat?: CompatStatement};
|
|
153
139
|
|
|
154
|
-
export type VersionValue = string | boolean | null;
|
|
155
140
|
|
|
156
141
|
/**
|
|
157
|
-
*
|
|
142
|
+
* This interface was referenced by `CompatData`'s JSON-Schema definition
|
|
143
|
+
* via the `patternProperty` "^__compat$".
|
|
144
|
+
*
|
|
145
|
+
* This interface was referenced by `CompatData`'s JSON-Schema
|
|
146
|
+
* via the `definition` "compat_statement".
|
|
147
|
+
*/
|
|
148
|
+
export interface CompatStatement {
|
|
149
|
+
/**
|
|
150
|
+
* A string containing a human-readable description of the feature.
|
|
151
|
+
*/
|
|
152
|
+
description?: string;
|
|
153
|
+
/**
|
|
154
|
+
* A URL that points to an MDN reference page documenting the feature. The URL should be language-agnostic.
|
|
155
|
+
*/
|
|
156
|
+
mdn_url?: string;
|
|
157
|
+
/**
|
|
158
|
+
* An optional URL or array of URLs, each of which is for a specific part of a specification in which this feature is defined. Each URL must contain a fragment identifier.
|
|
159
|
+
*/
|
|
160
|
+
spec_url?: string | string[];
|
|
161
|
+
/**
|
|
162
|
+
* The data for the support of each browser, containing a `support_statement` object for each browser identifier with information about versions, prefixes, or alternate names, as well as notes.
|
|
163
|
+
*/
|
|
164
|
+
support: SupportBlock;
|
|
165
|
+
/**
|
|
166
|
+
* An object containing information about the stability of the feature.
|
|
167
|
+
*/
|
|
168
|
+
status?: StatusBlock;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* This interface was referenced by `CompatData`'s JSON-Schema
|
|
172
|
+
* via the `definition` "simple_support_statement".
|
|
158
173
|
*/
|
|
159
174
|
export interface SimpleSupportStatement {
|
|
160
|
-
/**
|
|
161
|
-
*
|
|
162
|
-
* The `boolean` values indicate that a sub-feature is supported
|
|
163
|
-
* (`true`, with the additional meaning that it is unknown in which version support was added)
|
|
164
|
-
* or not supported (`false`).
|
|
165
|
-
*
|
|
166
|
-
* A value of `null` indicates that support information is entirely unknown.
|
|
175
|
+
/**
|
|
176
|
+
* A string (indicating which browser version added this feature), the value true (indicating support added in an unknown version), the value false (indicating the feature is not supported), or the value null (indicating support is unknown).
|
|
167
177
|
*/
|
|
168
178
|
version_added: VersionValue;
|
|
169
|
-
|
|
170
179
|
/**
|
|
171
|
-
*
|
|
172
|
-
* removed in. It may also be a `boolean` value of (`true` or `false`),
|
|
173
|
-
* or the `null` value.
|
|
174
|
-
*
|
|
175
|
-
* Default values:
|
|
176
|
-
* - If `version_added` is set to `true`, `false`, or a string,
|
|
177
|
-
* `version_removed` defaults to `false`.
|
|
178
|
-
* - if `version_added` is set to `null`, the default value
|
|
179
|
-
* of `version_removed` is also `null`.
|
|
180
|
+
* A string, indicating which browser version removed this feature, or the value true, indicating that the feature was removed in an unknown version.
|
|
180
181
|
*/
|
|
181
182
|
version_removed?: VersionValue;
|
|
182
|
-
|
|
183
183
|
/**
|
|
184
|
-
* A prefix to add to the sub-feature name (defaults to empty string).
|
|
185
|
-
*
|
|
186
|
-
* Only non-standard vendor prefixes are permitted.
|
|
187
|
-
*
|
|
188
|
-
* Note that leading and trailing `-` must be included.
|
|
184
|
+
* A prefix to add to the sub-feature name (defaults to empty string). If applicable, leading and trailing '-' must be included.
|
|
189
185
|
*/
|
|
190
186
|
prefix?: string;
|
|
191
|
-
|
|
192
187
|
/**
|
|
193
|
-
*
|
|
194
|
-
* or the prefix is an official non-vendor prefix.
|
|
195
|
-
*
|
|
196
|
-
* (eg. the official `grid-` prefixed aliases for the CSS `*-gap` properties).
|
|
188
|
+
* An alternative name for the feature, for cases where a feature is implemented under an entirely different name and not just prefixed.
|
|
197
189
|
*/
|
|
198
190
|
alternative_name?: string;
|
|
199
|
-
|
|
200
191
|
/**
|
|
201
|
-
* An optional array of objects
|
|
202
|
-
* Usually this array will have one item, but there are cases where two or more flags can be required to activate a feature.
|
|
192
|
+
* An optional array of objects describing flags that must be configured for this browser to support this feature.
|
|
203
193
|
*/
|
|
204
|
-
flags?:
|
|
205
|
-
/**
|
|
206
|
-
* An enum that indicates the flag type:
|
|
207
|
-
* - `preference` a flag the user can set (like in `about:config` in Firefox).
|
|
208
|
-
* - `runtime_flag` a flag to be set before starting the browser.
|
|
209
|
-
*/
|
|
210
|
-
type: 'preference' | 'runtime_flag';
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* A `string` representing the flag or preference to modify.
|
|
214
|
-
*/
|
|
215
|
-
name: string;
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* Property representing the actual value to set the flag to.
|
|
219
|
-
*
|
|
220
|
-
* It is a string, that may be converted to the right type
|
|
221
|
-
* (that is `true` or `false` for a `boolean` value, or `4` for a `number` value).
|
|
222
|
-
*
|
|
223
|
-
* It doesn't need to be enclosed in `<code>` tags.
|
|
224
|
-
*/
|
|
225
|
-
value_to_set?: string;
|
|
226
|
-
}[];
|
|
227
|
-
|
|
194
|
+
flags?: FlagStatement[];
|
|
228
195
|
/**
|
|
229
|
-
* An optional changeset/commit URL for the revision which implemented the feature in the source code, or the URL to the bug tracking the implementation, for the associated browser
|
|
230
|
-
* https://hg.mozilla.org/mozilla-central/rev/, or https://crrev.com/ URL.
|
|
196
|
+
* An optional changeset/commit URL for the revision which implemented the feature in the source code, or the URL to the bug tracking the implementation, for the associated browser.
|
|
231
197
|
*/
|
|
232
|
-
impl_url?: string;
|
|
233
|
-
|
|
198
|
+
impl_url?: string | string[];
|
|
234
199
|
/**
|
|
235
|
-
* A
|
|
236
|
-
* the current specification closely enough to not create major interoperability problems.
|
|
237
|
-
*
|
|
238
|
-
* It defaults to `false` (no interoperability problem expected).
|
|
239
|
-
*
|
|
240
|
-
* If set to `true`, it is recommended to add a note indicating how it diverges from
|
|
241
|
-
* the standard (implements an old version of the standard, for example).
|
|
200
|
+
* A boolean value indicating whether or not the implementation of the sub-feature deviates from the specification in a way that may cause compatibility problems. It defaults to false (no interoperability problems expected). If set to true, it is recommended that you add a note explaining how it diverges from the standard (such as that it implements an old version of the standard, for example).
|
|
242
201
|
*/
|
|
243
|
-
partial_implementation?:
|
|
244
|
-
|
|
202
|
+
partial_implementation?: true;
|
|
245
203
|
/**
|
|
246
|
-
*
|
|
247
|
-
* additional information. If there is only one entry in the array,
|
|
248
|
-
* the array must be omitted.
|
|
249
|
-
*
|
|
250
|
-
* The `<code>` and `<a>` HTML elements can be used.
|
|
204
|
+
* A string or array of strings containing additional information.
|
|
251
205
|
*/
|
|
252
206
|
notes?: string | string[];
|
|
253
207
|
}
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
interface IdentifierMeta {
|
|
261
|
-
/**
|
|
262
|
-
* A feature is described by an identifier containing the `__compat` property.
|
|
263
|
-
*
|
|
264
|
-
* In other words, identifiers without `__compat` aren't necessarily features,
|
|
265
|
-
* but help to nest the features properly.
|
|
266
|
-
*
|
|
267
|
-
* When an identifier has a `__compat` block, it represents its basic support,
|
|
268
|
-
* indicating that a minimal implementation of a functionality is included.
|
|
269
|
-
*
|
|
270
|
-
* What it represents exactly depends of the evolution of the feature over time,
|
|
271
|
-
* both in terms of specifications and of browser support.
|
|
272
|
-
*/
|
|
273
|
-
__compat?: CompatStatement;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
export interface CompatStatement {
|
|
277
|
-
/**
|
|
278
|
-
* A string containing a human-readable description of the feature.
|
|
279
|
-
*
|
|
280
|
-
* It is intended to be used as a caption or title and should be kept short.
|
|
281
|
-
*
|
|
282
|
-
* The `<code>` and `<a>` HTML elements can be used.
|
|
283
|
-
*/
|
|
284
|
-
description?: string;
|
|
285
|
-
|
|
208
|
+
/**
|
|
209
|
+
* This interface was referenced by `CompatData`'s JSON-Schema
|
|
210
|
+
* via the `definition` "flag_statement".
|
|
211
|
+
*/
|
|
212
|
+
export interface FlagStatement {
|
|
286
213
|
/**
|
|
287
|
-
*
|
|
288
|
-
*
|
|
289
|
-
* It needs to be a valid URL, and should be the language-neutral URL
|
|
290
|
-
* (e.g. use `https://developer.mozilla.org/docs/Web/CSS/text-align`
|
|
291
|
-
* instead of `https://developer.mozilla.org/en-US/docs/Web/CSS/text-align`).
|
|
214
|
+
* An enum that indicates the flag type.
|
|
292
215
|
*/
|
|
293
|
-
|
|
294
|
-
|
|
216
|
+
type: "preference" | "runtime_flag";
|
|
295
217
|
/**
|
|
296
|
-
*
|
|
297
|
-
*
|
|
298
|
-
* For each browser identifier, it contains a `support_statement` object with
|
|
299
|
-
* information about versions, prefixes, or alternate names, as well as notes.
|
|
218
|
+
* A string giving the name of the flag or preference that must be configured.
|
|
300
219
|
*/
|
|
301
|
-
|
|
302
|
-
|
|
220
|
+
name: string;
|
|
303
221
|
/**
|
|
304
|
-
*
|
|
305
|
-
*
|
|
306
|
-
* Is it a functionality that is standard? Is it stable?
|
|
307
|
-
* Has it been deprecated and shouldn't be used anymore?
|
|
222
|
+
* A string giving the value which the specified flag must be set to for this feature to work.
|
|
308
223
|
*/
|
|
309
|
-
|
|
224
|
+
value_to_set?: string;
|
|
310
225
|
}
|
|
311
|
-
|
|
312
|
-
export interface SupportBlock
|
|
313
|
-
extends Partial<Record<BrowserNames, SupportStatement>>,
|
|
314
|
-
Partial<Record<string, SupportStatement>> {}
|
|
315
|
-
|
|
316
226
|
/**
|
|
317
|
-
*
|
|
227
|
+
* This interface was referenced by `CompatData`'s JSON-Schema
|
|
228
|
+
* via the `definition` "status_block".
|
|
318
229
|
*/
|
|
319
230
|
export interface StatusBlock {
|
|
320
231
|
/**
|
|
321
|
-
*
|
|
322
|
-
* intended to be an addition to the Web platform. Some features are added to
|
|
323
|
-
* conduct tests.
|
|
324
|
-
*
|
|
325
|
-
* Set to `false`, it means the functionality is mature, and no
|
|
326
|
-
* significant incompatible changes are expected in the future.
|
|
232
|
+
* A boolean value that indicates whether this functionality is intended to be an addition to the Web platform. Set to false, it means the functionality is mature, and no significant incompatible changes are expected in the future.
|
|
327
233
|
*/
|
|
328
234
|
experimental: boolean;
|
|
329
|
-
|
|
330
235
|
/**
|
|
331
|
-
*
|
|
332
|
-
* of an active specification or specification process.
|
|
236
|
+
* A boolean value indicating whether the feature is part of an active specification or specification process.
|
|
333
237
|
*/
|
|
334
238
|
standard_track: boolean;
|
|
335
|
-
|
|
336
239
|
/**
|
|
337
|
-
*
|
|
338
|
-
*
|
|
339
|
-
* It might be removed in the future or might only be kept for compatibility purposes.
|
|
340
|
-
* Avoid using this functionality.
|
|
240
|
+
* A boolean value that indicates whether the feature is no longer recommended. It might be removed in the future or might only be kept for compatibility purposes. Avoid using this functionality.
|
|
341
241
|
*/
|
|
342
242
|
deprecated: boolean;
|
|
343
243
|
}
|
|
344
244
|
|
|
345
|
-
export type CompatData = CompatDataBrowsers & CompatDataIdentifiers;
|
|
346
245
|
|
|
347
|
-
interface
|
|
246
|
+
export interface MetaBlock {
|
|
247
|
+
version: string;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export interface CompatData {
|
|
251
|
+
/**
|
|
252
|
+
* Contains metadata for the current BCD information, such as the BCD version.
|
|
253
|
+
*/
|
|
254
|
+
__meta: MetaBlock;
|
|
255
|
+
|
|
348
256
|
/**
|
|
349
|
-
* Contains data for each
|
|
257
|
+
* Contains data for each [Web API](https://developer.mozilla.org/docs/Web/API) interface.
|
|
350
258
|
*/
|
|
351
|
-
|
|
352
|
-
}
|
|
259
|
+
api: Identifier;
|
|
353
260
|
|
|
354
|
-
interface CompatDataIdentifiers
|
|
355
|
-
extends Record<Exclude<string, 'browsers'>, PrimaryIdentifier> {
|
|
356
261
|
/**
|
|
357
|
-
* Contains data for each
|
|
358
|
-
* interface.
|
|
262
|
+
* Contains data for each known and tracked browser/engine.
|
|
359
263
|
*/
|
|
360
|
-
|
|
264
|
+
browsers: Browsers;
|
|
361
265
|
|
|
362
266
|
/**
|
|
363
|
-
* Contains data for [CSS](https://developer.mozilla.org/docs/Web/CSS)
|
|
364
|
-
* properties, selectors, and at-rules.
|
|
267
|
+
* Contains data for [CSS](https://developer.mozilla.org/docs/Web/CSS) properties, selectors, and at-rules.
|
|
365
268
|
*/
|
|
366
|
-
css:
|
|
269
|
+
css: Identifier;
|
|
367
270
|
|
|
368
271
|
/**
|
|
369
|
-
* Contains data for [HTML](https://developer.mozilla.org/docs/Web/HTML)
|
|
370
|
-
* elements, attributes, and global attributes.
|
|
272
|
+
* Contains data for [HTML](https://developer.mozilla.org/docs/Web/HTML) elements, attributes, and global attributes.
|
|
371
273
|
*/
|
|
372
|
-
html:
|
|
274
|
+
html: Identifier;
|
|
373
275
|
|
|
374
276
|
/**
|
|
375
|
-
* Contains data for [HTTP](https://developer.mozilla.org/docs/Web/HTTP)
|
|
376
|
-
* headers, statuses, and methods.
|
|
277
|
+
* Contains data for [HTTP](https://developer.mozilla.org/docs/Web/HTTP) headers, statuses, and methods.
|
|
377
278
|
*/
|
|
378
|
-
http:
|
|
279
|
+
http: Identifier;
|
|
379
280
|
|
|
380
281
|
/**
|
|
381
|
-
* Contains data for [JavaScript](https://developer.mozilla.org/docs/Web/JavaScript)
|
|
382
|
-
* built-in Objects, statement, operators, and other ECMAScript language features.
|
|
282
|
+
* Contains data for [JavaScript](https://developer.mozilla.org/docs/Web/JavaScript) built-in Objects, statement, operators, and other ECMAScript language features.
|
|
383
283
|
*/
|
|
384
|
-
javascript:
|
|
284
|
+
javascript: Identifier;
|
|
385
285
|
|
|
386
286
|
/**
|
|
387
|
-
* Contains data for [MathML](https://developer.mozilla.org/docs/Web/MathML)
|
|
388
|
-
* elements, attributes, and global attributes.
|
|
287
|
+
* Contains data for [MathML](https://developer.mozilla.org/docs/Web/MathML) elements, attributes, and global attributes.
|
|
389
288
|
*/
|
|
390
|
-
mathml:
|
|
289
|
+
mathml: Identifier;
|
|
391
290
|
|
|
392
291
|
/**
|
|
393
|
-
* Contains data for [SVG](https://developer.mozilla.org/docs/Web/SVG)
|
|
394
|
-
* elements, attributes, and global attributes.
|
|
292
|
+
* Contains data for [SVG](https://developer.mozilla.org/docs/Web/SVG) elements, attributes, and global attributes.
|
|
395
293
|
*/
|
|
396
|
-
svg:
|
|
294
|
+
svg: Identifier;
|
|
397
295
|
|
|
398
296
|
/**
|
|
399
|
-
* Contains data for [WebDriver](https://developer.mozilla.org/docs/Web/WebDriver)
|
|
400
|
-
* commands.
|
|
297
|
+
* Contains data for [WebDriver](https://developer.mozilla.org/docs/Web/WebDriver) commands.
|
|
401
298
|
*/
|
|
402
|
-
webdriver:
|
|
299
|
+
webdriver: Identifier;
|
|
403
300
|
|
|
404
301
|
/**
|
|
405
|
-
* Contains data for [WebExtensions](https://developer.mozilla.org/Add-ons/WebExtensions)
|
|
406
|
-
* JavaScript APIs and manifest keys.
|
|
302
|
+
* Contains data for [WebExtensions](https://developer.mozilla.org/Add-ons/WebExtensions) JavaScript APIs and manifest keys.
|
|
407
303
|
*/
|
|
408
|
-
webextensions:
|
|
304
|
+
webextensions: Identifier;
|
|
409
305
|
}
|