@mdn/browser-compat-data 5.0.1 → 5.0.2
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 +184 -270
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.2","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,323 @@
|
|
|
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';
|
|
23
|
-
|
|
24
|
-
export type BrowserEngines =
|
|
25
|
-
| 'Blink'
|
|
26
|
-
| 'EdgeHTML'
|
|
27
|
-
| 'Gecko'
|
|
28
|
-
| 'Presto'
|
|
29
|
-
| 'Trident'
|
|
30
|
-
| 'WebKit'
|
|
31
|
-
| 'V8';
|
|
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";
|
|
32
14
|
|
|
33
|
-
export type
|
|
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
55
|
upstream?: string;
|
|
62
|
-
|
|
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 `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
|
-
*
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
106
|
+
* This interface was referenced by `CompatData`'s JSON-Schema
|
|
107
|
+
* via the `definition` "support_statement".
|
|
108
|
+
*/
|
|
109
|
+
export type SupportStatement = SimpleSupportStatement | SimpleSupportStatement[];
|
|
110
|
+
/**
|
|
111
|
+
* This interface was referenced by `CompatData`'s JSON-Schema
|
|
112
|
+
* via the `definition` "support_block".
|
|
113
|
+
*/
|
|
114
|
+
export type SupportBlock = Partial<Record<BrowserNames, SupportStatement>>;
|
|
115
|
+
/**
|
|
116
|
+
* This interface was referenced by `CompatData`'s JSON-Schema
|
|
117
|
+
* via the `definition` "spec_url_value".
|
|
118
|
+
*/
|
|
119
|
+
export type SpecUrlValue = string;
|
|
120
|
+
/**
|
|
121
|
+
* This interface was referenced by `CompatData`'s JSON-Schema
|
|
122
|
+
* via the `definition` "impl_url_value".
|
|
149
123
|
*/
|
|
150
|
-
export type
|
|
151
|
-
| SimpleSupportStatement
|
|
152
|
-
| SimpleSupportStatement[];
|
|
124
|
+
export type ImplUrlValue = string;
|
|
153
125
|
|
|
154
|
-
export type VersionValue = string | boolean | null;
|
|
155
126
|
|
|
156
127
|
/**
|
|
157
|
-
*
|
|
128
|
+
* This interface was referenced by `CompatData`'s JSON-Schema definition
|
|
129
|
+
* via the `patternProperty` "^(?!__compat)(?!webextensions)[a-zA-Z_0-9-$@]*$".
|
|
130
|
+
*
|
|
131
|
+
* This interface was referenced by `CompatData`'s JSON-Schema
|
|
132
|
+
* via the `definition` "identifier".
|
|
158
133
|
*/
|
|
159
|
-
export interface
|
|
160
|
-
/**
|
|
134
|
+
export interface Identifier extends Record<Omit<string, '__compat'>, Identifier> {
|
|
135
|
+
/**
|
|
136
|
+
* A feature is described by an identifier containing the `__compat` property.
|
|
161
137
|
*
|
|
162
|
-
*
|
|
163
|
-
* (`true`, with the additional meaning that it is unknown in which version support was added)
|
|
164
|
-
* or not supported (`false`).
|
|
138
|
+
* In other words, identifiers without `__compat` aren't necessarily features, but help to nest the features properly.
|
|
165
139
|
*
|
|
166
|
-
*
|
|
140
|
+
* When an identifier has a `__compat` block, it represents its basic support, indicating that a minimal implementation of a functionality is included.
|
|
141
|
+
*
|
|
142
|
+
* What it represents exactly depends of the evolution of the feature over time, both in terms of specifications and of browser support.
|
|
143
|
+
*/
|
|
144
|
+
__compat?: CompatStatement;
|
|
145
|
+
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* This interface was referenced by `CompatData`'s JSON-Schema definition
|
|
149
|
+
* via the `patternProperty` "^__compat$".
|
|
150
|
+
*
|
|
151
|
+
* This interface was referenced by `CompatData`'s JSON-Schema
|
|
152
|
+
* via the `definition` "compat_statement".
|
|
153
|
+
*/
|
|
154
|
+
export interface CompatStatement {
|
|
155
|
+
/**
|
|
156
|
+
* A string containing a human-readable description of the feature.
|
|
157
|
+
*/
|
|
158
|
+
description?: string;
|
|
159
|
+
/**
|
|
160
|
+
* A URL that points to an MDN reference page documenting the feature. The URL should be language-agnostic.
|
|
161
|
+
*/
|
|
162
|
+
mdn_url?: string;
|
|
163
|
+
/**
|
|
164
|
+
* 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.
|
|
165
|
+
*/
|
|
166
|
+
spec_url?: string | string[];
|
|
167
|
+
/**
|
|
168
|
+
* 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.
|
|
169
|
+
*/
|
|
170
|
+
support: SupportBlock;
|
|
171
|
+
/**
|
|
172
|
+
* An object containing information about the stability of the feature.
|
|
173
|
+
*/
|
|
174
|
+
status?: StatusBlock;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* This interface was referenced by `CompatData`'s JSON-Schema
|
|
178
|
+
* via the `definition` "simple_support_statement".
|
|
179
|
+
*/
|
|
180
|
+
export interface SimpleSupportStatement {
|
|
181
|
+
/**
|
|
182
|
+
* 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
183
|
*/
|
|
168
184
|
version_added: VersionValue;
|
|
169
|
-
|
|
170
185
|
/**
|
|
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`.
|
|
186
|
+
* A string, indicating which browser version removed this feature, or the value true, indicating that the feature was removed in an unknown version.
|
|
180
187
|
*/
|
|
181
188
|
version_removed?: VersionValue;
|
|
182
|
-
|
|
183
189
|
/**
|
|
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.
|
|
190
|
+
* A prefix to add to the sub-feature name (defaults to empty string). If applicable, leading and trailing '-' must be included.
|
|
189
191
|
*/
|
|
190
192
|
prefix?: string;
|
|
191
|
-
|
|
192
193
|
/**
|
|
193
|
-
*
|
|
194
|
-
* or the prefix is an official non-vendor prefix.
|
|
195
|
-
*
|
|
196
|
-
* (eg. the official `grid-` prefixed aliases for the CSS `*-gap` properties).
|
|
194
|
+
* An alternative name for the feature, for cases where a feature is implemented under an entirely different name and not just prefixed.
|
|
197
195
|
*/
|
|
198
196
|
alternative_name?: string;
|
|
199
|
-
|
|
200
197
|
/**
|
|
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.
|
|
198
|
+
* An optional array of objects describing flags that must be configured for this browser to support this feature.
|
|
203
199
|
*/
|
|
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
|
-
|
|
200
|
+
flags?: FlagStatement[];
|
|
228
201
|
/**
|
|
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.
|
|
202
|
+
* 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
203
|
*/
|
|
232
|
-
impl_url?: string;
|
|
233
|
-
|
|
204
|
+
impl_url?: string | string[];
|
|
234
205
|
/**
|
|
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).
|
|
206
|
+
* 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
207
|
*/
|
|
243
|
-
partial_implementation?:
|
|
244
|
-
|
|
208
|
+
partial_implementation?: true;
|
|
245
209
|
/**
|
|
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.
|
|
210
|
+
* A string or array of strings containing additional information.
|
|
251
211
|
*/
|
|
252
212
|
notes?: string | string[];
|
|
253
213
|
}
|
|
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
|
-
|
|
214
|
+
/**
|
|
215
|
+
* This interface was referenced by `CompatData`'s JSON-Schema
|
|
216
|
+
* via the `definition` "flag_statement".
|
|
217
|
+
*/
|
|
218
|
+
export interface FlagStatement {
|
|
286
219
|
/**
|
|
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`).
|
|
220
|
+
* An enum that indicates the flag type.
|
|
292
221
|
*/
|
|
293
|
-
|
|
294
|
-
|
|
222
|
+
type: "preference" | "runtime_flag";
|
|
295
223
|
/**
|
|
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.
|
|
224
|
+
* A string giving the name of the flag or preference that must be configured.
|
|
300
225
|
*/
|
|
301
|
-
|
|
302
|
-
|
|
226
|
+
name: string;
|
|
303
227
|
/**
|
|
304
|
-
*
|
|
305
|
-
*
|
|
306
|
-
* Is it a functionality that is standard? Is it stable?
|
|
307
|
-
* Has it been deprecated and shouldn't be used anymore?
|
|
228
|
+
* A string giving the value which the specified flag must be set to for this feature to work.
|
|
308
229
|
*/
|
|
309
|
-
|
|
230
|
+
value_to_set?: string;
|
|
310
231
|
}
|
|
311
|
-
|
|
312
|
-
export interface SupportBlock
|
|
313
|
-
extends Partial<Record<BrowserNames, SupportStatement>>,
|
|
314
|
-
Partial<Record<string, SupportStatement>> {}
|
|
315
|
-
|
|
316
232
|
/**
|
|
317
|
-
*
|
|
233
|
+
* This interface was referenced by `CompatData`'s JSON-Schema
|
|
234
|
+
* via the `definition` "status_block".
|
|
318
235
|
*/
|
|
319
236
|
export interface StatusBlock {
|
|
320
237
|
/**
|
|
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.
|
|
238
|
+
* 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
239
|
*/
|
|
328
240
|
experimental: boolean;
|
|
329
|
-
|
|
330
241
|
/**
|
|
331
|
-
*
|
|
332
|
-
* of an active specification or specification process.
|
|
242
|
+
* A boolean value indicating whether the feature is part of an active specification or specification process.
|
|
333
243
|
*/
|
|
334
244
|
standard_track: boolean;
|
|
335
|
-
|
|
336
245
|
/**
|
|
337
|
-
*
|
|
338
|
-
*
|
|
339
|
-
* It might be removed in the future or might only be kept for compatibility purposes.
|
|
340
|
-
* Avoid using this functionality.
|
|
246
|
+
* 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
247
|
*/
|
|
342
248
|
deprecated: boolean;
|
|
343
249
|
}
|
|
250
|
+
/**
|
|
251
|
+
* This interface was referenced by `CompatData`'s JSON-Schema
|
|
252
|
+
* via the `definition` "webextensions_identifier".
|
|
253
|
+
*/
|
|
254
|
+
export interface WebextensionsIdentifier {
|
|
255
|
+
__compat?: CompatStatement;
|
|
256
|
+
/**
|
|
257
|
+
* This interface was referenced by `WebextensionsIdentifier`'s JSON-Schema definition
|
|
258
|
+
* via the `patternProperty` "^(?!__compat)[a-zA-Z_0-9-$@]*$".
|
|
259
|
+
*/
|
|
260
|
+
[k: string]: Identifier;
|
|
261
|
+
}
|
|
344
262
|
|
|
345
|
-
export type CompatData = CompatDataBrowsers & CompatDataIdentifiers;
|
|
346
263
|
|
|
347
|
-
interface
|
|
264
|
+
export interface MetaBlock{
|
|
265
|
+
version: string;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export interface CompatData {
|
|
348
269
|
/**
|
|
349
|
-
* Contains
|
|
270
|
+
* Contains metadata for the current BCD information, such as the BCD version.
|
|
350
271
|
*/
|
|
351
|
-
|
|
352
|
-
}
|
|
272
|
+
__meta: MetaBlock;
|
|
353
273
|
|
|
354
|
-
interface CompatDataIdentifiers
|
|
355
|
-
extends Record<Omit<string, 'browsers'>, PrimaryIdentifier> {
|
|
356
274
|
/**
|
|
357
|
-
* Contains data for each [Web API](https://developer.mozilla.org/docs/Web/API)
|
|
358
|
-
* interface.
|
|
275
|
+
* Contains data for each [Web API](https://developer.mozilla.org/docs/Web/API) interface.
|
|
359
276
|
*/
|
|
360
|
-
api:
|
|
277
|
+
api: Identifier;
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Contains data for each known and tracked browser/engine.
|
|
281
|
+
*/
|
|
282
|
+
browsers: Browsers;
|
|
361
283
|
|
|
362
284
|
/**
|
|
363
|
-
* Contains data for [CSS](https://developer.mozilla.org/docs/Web/CSS)
|
|
364
|
-
* properties, selectors, and at-rules.
|
|
285
|
+
* Contains data for [CSS](https://developer.mozilla.org/docs/Web/CSS) properties, selectors, and at-rules.
|
|
365
286
|
*/
|
|
366
|
-
css:
|
|
287
|
+
css: Identifier;
|
|
367
288
|
|
|
368
289
|
/**
|
|
369
|
-
* Contains data for [HTML](https://developer.mozilla.org/docs/Web/HTML)
|
|
370
|
-
* elements, attributes, and global attributes.
|
|
290
|
+
* Contains data for [HTML](https://developer.mozilla.org/docs/Web/HTML) elements, attributes, and global attributes.
|
|
371
291
|
*/
|
|
372
|
-
html:
|
|
292
|
+
html: Identifier;
|
|
373
293
|
|
|
374
294
|
/**
|
|
375
|
-
* Contains data for [HTTP](https://developer.mozilla.org/docs/Web/HTTP)
|
|
376
|
-
* headers, statuses, and methods.
|
|
295
|
+
* Contains data for [HTTP](https://developer.mozilla.org/docs/Web/HTTP) headers, statuses, and methods.
|
|
377
296
|
*/
|
|
378
|
-
http:
|
|
297
|
+
http: Identifier;
|
|
379
298
|
|
|
380
299
|
/**
|
|
381
|
-
* Contains data for [JavaScript](https://developer.mozilla.org/docs/Web/JavaScript)
|
|
382
|
-
* built-in Objects, statement, operators, and other ECMAScript language features.
|
|
300
|
+
* Contains data for [JavaScript](https://developer.mozilla.org/docs/Web/JavaScript) built-in Objects, statement, operators, and other ECMAScript language features.
|
|
383
301
|
*/
|
|
384
|
-
javascript:
|
|
302
|
+
javascript: Identifier;
|
|
385
303
|
|
|
386
304
|
/**
|
|
387
|
-
* Contains data for [MathML](https://developer.mozilla.org/docs/Web/MathML)
|
|
388
|
-
* elements, attributes, and global attributes.
|
|
305
|
+
* Contains data for [MathML](https://developer.mozilla.org/docs/Web/MathML) elements, attributes, and global attributes.
|
|
389
306
|
*/
|
|
390
|
-
mathml:
|
|
307
|
+
mathml: Identifier;
|
|
391
308
|
|
|
392
309
|
/**
|
|
393
|
-
* Contains data for [SVG](https://developer.mozilla.org/docs/Web/SVG)
|
|
394
|
-
* elements, attributes, and global attributes.
|
|
310
|
+
* Contains data for [SVG](https://developer.mozilla.org/docs/Web/SVG) elements, attributes, and global attributes.
|
|
395
311
|
*/
|
|
396
|
-
svg:
|
|
312
|
+
svg: Identifier;
|
|
397
313
|
|
|
398
314
|
/**
|
|
399
|
-
* Contains data for [WebDriver](https://developer.mozilla.org/docs/Web/WebDriver)
|
|
400
|
-
* commands.
|
|
315
|
+
* Contains data for [WebDriver](https://developer.mozilla.org/docs/Web/WebDriver) commands.
|
|
401
316
|
*/
|
|
402
|
-
webdriver:
|
|
317
|
+
webdriver: Identifier;
|
|
403
318
|
|
|
404
319
|
/**
|
|
405
|
-
* Contains data for [WebExtensions](https://developer.mozilla.org/Add-ons/WebExtensions)
|
|
406
|
-
* JavaScript APIs and manifest keys.
|
|
320
|
+
* Contains data for [WebExtensions](https://developer.mozilla.org/Add-ons/WebExtensions) JavaScript APIs and manifest keys.
|
|
407
321
|
*/
|
|
408
|
-
webextensions:
|
|
322
|
+
webextensions: Identifier;
|
|
409
323
|
}
|