@mdn/browser-compat-data 5.0.1 → 5.1.0
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/package.json +1 -1
- package/types.d.ts +171 -271
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.1.0","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,309 @@
|
|
|
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 `BrowserDataFile`'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 `BrowserDataFile`'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 `BrowserDataFile`'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 `BrowserDataFile`'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 `BrowserDataFile`'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
71
|
preview_name?: string;
|
|
84
|
-
|
|
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 `BrowserDataFile`'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 `CompatDataFile`'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 `CompatDataFile`'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 `CompatDataFile`'s JSON-Schema
|
|
115
|
+
* via the `definition` "support_statement".
|
|
116
|
+
*/
|
|
117
|
+
export type SupportStatement = SimpleSupportStatement | SimpleSupportStatement[];
|
|
118
|
+
/**
|
|
119
|
+
* This interface was referenced by `CompatDataFile`'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 `CompatDataFile`'s JSON-Schema
|
|
125
|
+
* via the `definition` "spec_url_value".
|
|
126
|
+
*/
|
|
127
|
+
export type SpecUrlValue = string;
|
|
128
|
+
/**
|
|
129
|
+
* This interface was referenced by `CompatDataFile`'s JSON-Schema
|
|
130
|
+
* via the `definition` "impl_url_value".
|
|
131
|
+
*/
|
|
132
|
+
export type ImplUrlValue = string;
|
|
133
|
+
/**
|
|
134
|
+
* This interface was referenced by `CompatDataFile`'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 `CompatDataFile`'s JSON-Schema definition
|
|
143
|
+
* via the `patternProperty` "^__compat$".
|
|
144
|
+
*
|
|
145
|
+
* This interface was referenced by `CompatDataFile`'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 path to the file that defines this feature in browser-compat-data, relative to the repository root. Useful for guiding potential contributors towards the correct file to edit. This is automatically generated at build time and should never manually be specified.
|
|
163
|
+
*/
|
|
164
|
+
source_file?: string;
|
|
165
|
+
/**
|
|
166
|
+
* 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.
|
|
167
|
+
*/
|
|
168
|
+
support: SupportBlock;
|
|
169
|
+
/**
|
|
170
|
+
* An object containing information about the stability of the feature.
|
|
171
|
+
*/
|
|
172
|
+
status?: StatusBlock;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* This interface was referenced by `CompatDataFile`'s JSON-Schema
|
|
176
|
+
* via the `definition` "simple_support_statement".
|
|
158
177
|
*/
|
|
159
178
|
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.
|
|
179
|
+
/**
|
|
180
|
+
* 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
181
|
*/
|
|
168
182
|
version_added: VersionValue;
|
|
169
|
-
|
|
170
183
|
/**
|
|
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`.
|
|
184
|
+
* A string, indicating which browser version removed this feature, or the value true, indicating that the feature was removed in an unknown version.
|
|
180
185
|
*/
|
|
181
186
|
version_removed?: VersionValue;
|
|
182
|
-
|
|
183
187
|
/**
|
|
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.
|
|
188
|
+
* A prefix to add to the sub-feature name (defaults to empty string). If applicable, leading and trailing '-' must be included.
|
|
189
189
|
*/
|
|
190
190
|
prefix?: string;
|
|
191
|
-
|
|
192
191
|
/**
|
|
193
|
-
*
|
|
194
|
-
* or the prefix is an official non-vendor prefix.
|
|
195
|
-
*
|
|
196
|
-
* (eg. the official `grid-` prefixed aliases for the CSS `*-gap` properties).
|
|
192
|
+
* An alternative name for the feature, for cases where a feature is implemented under an entirely different name and not just prefixed.
|
|
197
193
|
*/
|
|
198
194
|
alternative_name?: string;
|
|
199
|
-
|
|
200
195
|
/**
|
|
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.
|
|
196
|
+
* An optional array of objects describing flags that must be configured for this browser to support this feature.
|
|
203
197
|
*/
|
|
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
|
-
|
|
198
|
+
flags?: FlagStatement[];
|
|
228
199
|
/**
|
|
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.
|
|
200
|
+
* 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
201
|
*/
|
|
232
|
-
impl_url?: string;
|
|
233
|
-
|
|
202
|
+
impl_url?: string | string[];
|
|
234
203
|
/**
|
|
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).
|
|
204
|
+
* 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
205
|
*/
|
|
243
|
-
partial_implementation?:
|
|
244
|
-
|
|
206
|
+
partial_implementation?: true;
|
|
245
207
|
/**
|
|
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.
|
|
208
|
+
* A string or array of strings containing additional information.
|
|
251
209
|
*/
|
|
252
210
|
notes?: string | string[];
|
|
253
211
|
}
|
|
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
|
-
|
|
212
|
+
/**
|
|
213
|
+
* This interface was referenced by `CompatDataFile`'s JSON-Schema
|
|
214
|
+
* via the `definition` "flag_statement".
|
|
215
|
+
*/
|
|
216
|
+
export interface FlagStatement {
|
|
286
217
|
/**
|
|
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`).
|
|
218
|
+
* An enum that indicates the flag type.
|
|
292
219
|
*/
|
|
293
|
-
|
|
294
|
-
|
|
220
|
+
type: "preference" | "runtime_flag";
|
|
295
221
|
/**
|
|
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.
|
|
222
|
+
* A string giving the name of the flag or preference that must be configured.
|
|
300
223
|
*/
|
|
301
|
-
|
|
302
|
-
|
|
224
|
+
name: string;
|
|
303
225
|
/**
|
|
304
|
-
*
|
|
305
|
-
*
|
|
306
|
-
* Is it a functionality that is standard? Is it stable?
|
|
307
|
-
* Has it been deprecated and shouldn't be used anymore?
|
|
226
|
+
* A string giving the value which the specified flag must be set to for this feature to work.
|
|
308
227
|
*/
|
|
309
|
-
|
|
228
|
+
value_to_set?: string;
|
|
310
229
|
}
|
|
311
|
-
|
|
312
|
-
export interface SupportBlock
|
|
313
|
-
extends Partial<Record<BrowserNames, SupportStatement>>,
|
|
314
|
-
Partial<Record<string, SupportStatement>> {}
|
|
315
|
-
|
|
316
230
|
/**
|
|
317
|
-
*
|
|
231
|
+
* This interface was referenced by `CompatDataFile`'s JSON-Schema
|
|
232
|
+
* via the `definition` "status_block".
|
|
318
233
|
*/
|
|
319
234
|
export interface StatusBlock {
|
|
320
235
|
/**
|
|
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.
|
|
236
|
+
* 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
237
|
*/
|
|
328
238
|
experimental: boolean;
|
|
329
|
-
|
|
330
239
|
/**
|
|
331
|
-
*
|
|
332
|
-
* of an active specification or specification process.
|
|
240
|
+
* A boolean value indicating whether the feature is part of an active specification or specification process.
|
|
333
241
|
*/
|
|
334
242
|
standard_track: boolean;
|
|
335
|
-
|
|
336
243
|
/**
|
|
337
|
-
*
|
|
338
|
-
*
|
|
339
|
-
* It might be removed in the future or might only be kept for compatibility purposes.
|
|
340
|
-
* Avoid using this functionality.
|
|
244
|
+
* 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
245
|
*/
|
|
342
246
|
deprecated: boolean;
|
|
343
247
|
}
|
|
344
248
|
|
|
345
|
-
export type CompatData = CompatDataBrowsers & CompatDataIdentifiers;
|
|
346
249
|
|
|
347
|
-
interface
|
|
250
|
+
export interface MetaBlock {
|
|
251
|
+
version: string;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export interface CompatData {
|
|
255
|
+
/**
|
|
256
|
+
* Contains metadata for the current BCD information, such as the BCD version.
|
|
257
|
+
*/
|
|
258
|
+
__meta: MetaBlock;
|
|
259
|
+
|
|
348
260
|
/**
|
|
349
|
-
* Contains data for each
|
|
261
|
+
* Contains data for each [Web API](https://developer.mozilla.org/docs/Web/API) interface.
|
|
350
262
|
*/
|
|
351
|
-
|
|
352
|
-
}
|
|
263
|
+
api: Identifier;
|
|
353
264
|
|
|
354
|
-
interface CompatDataIdentifiers
|
|
355
|
-
extends Record<Omit<string, 'browsers'>, PrimaryIdentifier> {
|
|
356
265
|
/**
|
|
357
|
-
* Contains data for each
|
|
358
|
-
* interface.
|
|
266
|
+
* Contains data for each known and tracked browser/engine.
|
|
359
267
|
*/
|
|
360
|
-
|
|
268
|
+
browsers: Browsers;
|
|
361
269
|
|
|
362
270
|
/**
|
|
363
|
-
* Contains data for [CSS](https://developer.mozilla.org/docs/Web/CSS)
|
|
364
|
-
* properties, selectors, and at-rules.
|
|
271
|
+
* Contains data for [CSS](https://developer.mozilla.org/docs/Web/CSS) properties, selectors, and at-rules.
|
|
365
272
|
*/
|
|
366
|
-
css:
|
|
273
|
+
css: Identifier;
|
|
367
274
|
|
|
368
275
|
/**
|
|
369
|
-
* Contains data for [HTML](https://developer.mozilla.org/docs/Web/HTML)
|
|
370
|
-
* elements, attributes, and global attributes.
|
|
276
|
+
* Contains data for [HTML](https://developer.mozilla.org/docs/Web/HTML) elements, attributes, and global attributes.
|
|
371
277
|
*/
|
|
372
|
-
html:
|
|
278
|
+
html: Identifier;
|
|
373
279
|
|
|
374
280
|
/**
|
|
375
|
-
* Contains data for [HTTP](https://developer.mozilla.org/docs/Web/HTTP)
|
|
376
|
-
* headers, statuses, and methods.
|
|
281
|
+
* Contains data for [HTTP](https://developer.mozilla.org/docs/Web/HTTP) headers, statuses, and methods.
|
|
377
282
|
*/
|
|
378
|
-
http:
|
|
283
|
+
http: Identifier;
|
|
379
284
|
|
|
380
285
|
/**
|
|
381
|
-
* Contains data for [JavaScript](https://developer.mozilla.org/docs/Web/JavaScript)
|
|
382
|
-
* built-in Objects, statement, operators, and other ECMAScript language features.
|
|
286
|
+
* Contains data for [JavaScript](https://developer.mozilla.org/docs/Web/JavaScript) built-in Objects, statement, operators, and other ECMAScript language features.
|
|
383
287
|
*/
|
|
384
|
-
javascript:
|
|
288
|
+
javascript: Identifier;
|
|
385
289
|
|
|
386
290
|
/**
|
|
387
|
-
* Contains data for [MathML](https://developer.mozilla.org/docs/Web/MathML)
|
|
388
|
-
* elements, attributes, and global attributes.
|
|
291
|
+
* Contains data for [MathML](https://developer.mozilla.org/docs/Web/MathML) elements, attributes, and global attributes.
|
|
389
292
|
*/
|
|
390
|
-
mathml:
|
|
293
|
+
mathml: Identifier;
|
|
391
294
|
|
|
392
295
|
/**
|
|
393
|
-
* Contains data for [SVG](https://developer.mozilla.org/docs/Web/SVG)
|
|
394
|
-
* elements, attributes, and global attributes.
|
|
296
|
+
* Contains data for [SVG](https://developer.mozilla.org/docs/Web/SVG) elements, attributes, and global attributes.
|
|
395
297
|
*/
|
|
396
|
-
svg:
|
|
298
|
+
svg: Identifier;
|
|
397
299
|
|
|
398
300
|
/**
|
|
399
|
-
* Contains data for [WebDriver](https://developer.mozilla.org/docs/Web/WebDriver)
|
|
400
|
-
* commands.
|
|
301
|
+
* Contains data for [WebDriver](https://developer.mozilla.org/docs/Web/WebDriver) commands.
|
|
401
302
|
*/
|
|
402
|
-
webdriver:
|
|
303
|
+
webdriver: Identifier;
|
|
403
304
|
|
|
404
305
|
/**
|
|
405
|
-
* Contains data for [WebExtensions](https://developer.mozilla.org/Add-ons/WebExtensions)
|
|
406
|
-
* JavaScript APIs and manifest keys.
|
|
306
|
+
* Contains data for [WebExtensions](https://developer.mozilla.org/Add-ons/WebExtensions) JavaScript APIs and manifest keys.
|
|
407
307
|
*/
|
|
408
|
-
webextensions:
|
|
308
|
+
webextensions: Identifier;
|
|
409
309
|
}
|