@mdn/browser-compat-data 5.0.3 → 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.
Files changed (3) hide show
  1. package/data.json +1 -1
  2. package/package.json +1 -1
  3. package/types.d.ts +22 -18
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.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"}
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
@@ -15,29 +15,29 @@ export type BrowserName = "chrome" | "chrome_android" | "deno" | "edge" | "firef
15
15
  export type VersionValue = string | boolean | null;
16
16
 
17
17
  /**
18
- * This interface was referenced by `Browsers`'s JSON-Schema
18
+ * This interface was referenced by `BrowserDataFile`'s JSON-Schema
19
19
  * via the `definition` "browsers".
20
20
  */
21
21
  export type Browsers = Record<BrowserName, BrowserStatement>;
22
22
  /**
23
- * This interface was referenced by `Browsers`'s JSON-Schema
23
+ * This interface was referenced by `BrowserDataFile`'s JSON-Schema
24
24
  * via the `definition` "browser_type".
25
25
  */
26
26
  export type BrowserType = "desktop" | "mobile" | "xr" | "server";
27
27
  /**
28
- * This interface was referenced by `Browsers`'s JSON-Schema
28
+ * This interface was referenced by `BrowserDataFile`'s JSON-Schema
29
29
  * via the `definition` "browser_engine".
30
30
  */
31
31
  export type BrowserEngine = "Blink" | "EdgeHTML" | "Gecko" | "Presto" | "Trident" | "WebKit" | "V8";
32
32
  /**
33
- * This interface was referenced by `Browsers`'s JSON-Schema
33
+ * This interface was referenced by `BrowserDataFile`'s JSON-Schema
34
34
  * via the `definition` "browser_status".
35
35
  */
36
36
  export type BrowserStatus = "retired" | "current" | "exclusive" | "beta" | "nightly" | "esr" | "planned";
37
37
 
38
38
 
39
39
  /**
40
- * This interface was referenced by `Browsers`'s JSON-Schema
40
+ * This interface was referenced by `BrowserDataFile`'s JSON-Schema
41
41
  * via the `definition` "browser_statement".
42
42
  */
43
43
  export interface BrowserStatement {
@@ -75,7 +75,7 @@ export interface BrowserStatement {
75
75
  releases: {[version: string]: ReleaseStatement};
76
76
  }
77
77
  /**
78
- * This interface was referenced by `Browsers`'s JSON-Schema
78
+ * This interface was referenced by `BrowserDataFile`'s JSON-Schema
79
79
  * via the `definition` "release_statement".
80
80
  */
81
81
  export interface ReleaseStatement {
@@ -103,35 +103,35 @@ export interface ReleaseStatement {
103
103
 
104
104
 
105
105
  /**
106
- * This interface was referenced by `CompatData`'s JSON-Schema definition
106
+ * This interface was referenced by `CompatDataFile`'s JSON-Schema definition
107
107
  * via the `patternProperty` "^(?!__compat)(?!webextensions)[a-zA-Z_0-9-$@]*$".
108
108
  *
109
- * This interface was referenced by `CompatData`'s JSON-Schema
109
+ * This interface was referenced by `CompatDataFile`'s JSON-Schema
110
110
  * via the `definition` "identifier".
111
111
  */
112
112
  export type Identifier = {[key: string]: Identifier} & {__compat?: CompatStatement};
113
113
  /**
114
- * This interface was referenced by `CompatData`'s JSON-Schema
114
+ * This interface was referenced by `CompatDataFile`'s JSON-Schema
115
115
  * via the `definition` "support_statement".
116
116
  */
117
117
  export type SupportStatement = SimpleSupportStatement | SimpleSupportStatement[];
118
118
  /**
119
- * This interface was referenced by `CompatData`'s JSON-Schema
119
+ * This interface was referenced by `CompatDataFile`'s JSON-Schema
120
120
  * via the `definition` "support_block".
121
121
  */
122
122
  export type SupportBlock = Partial<Record<BrowserName, SupportStatement>>;
123
123
  /**
124
- * This interface was referenced by `CompatData`'s JSON-Schema
124
+ * This interface was referenced by `CompatDataFile`'s JSON-Schema
125
125
  * via the `definition` "spec_url_value".
126
126
  */
127
127
  export type SpecUrlValue = string;
128
128
  /**
129
- * This interface was referenced by `CompatData`'s JSON-Schema
129
+ * This interface was referenced by `CompatDataFile`'s JSON-Schema
130
130
  * via the `definition` "impl_url_value".
131
131
  */
132
132
  export type ImplUrlValue = string;
133
133
  /**
134
- * This interface was referenced by `CompatData`'s JSON-Schema
134
+ * This interface was referenced by `CompatDataFile`'s JSON-Schema
135
135
  * via the `definition` "webextensions_identifier".
136
136
  * THIS INTERFACE SHOULD NOT BE USED AND MAY BE REMOVED AT ANY TIME; USE THE "Identifier" INTERFACE INSTEAD.
137
137
  */
@@ -139,10 +139,10 @@ export type WebextensionsIdentifier = {[key: string]: Identifier} & {__compat?:
139
139
 
140
140
 
141
141
  /**
142
- * This interface was referenced by `CompatData`'s JSON-Schema definition
142
+ * This interface was referenced by `CompatDataFile`'s JSON-Schema definition
143
143
  * via the `patternProperty` "^__compat$".
144
144
  *
145
- * This interface was referenced by `CompatData`'s JSON-Schema
145
+ * This interface was referenced by `CompatDataFile`'s JSON-Schema
146
146
  * via the `definition` "compat_statement".
147
147
  */
148
148
  export interface CompatStatement {
@@ -158,6 +158,10 @@ export interface CompatStatement {
158
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
159
  */
160
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;
161
165
  /**
162
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.
163
167
  */
@@ -168,7 +172,7 @@ export interface CompatStatement {
168
172
  status?: StatusBlock;
169
173
  }
170
174
  /**
171
- * This interface was referenced by `CompatData`'s JSON-Schema
175
+ * This interface was referenced by `CompatDataFile`'s JSON-Schema
172
176
  * via the `definition` "simple_support_statement".
173
177
  */
174
178
  export interface SimpleSupportStatement {
@@ -206,7 +210,7 @@ export interface SimpleSupportStatement {
206
210
  notes?: string | string[];
207
211
  }
208
212
  /**
209
- * This interface was referenced by `CompatData`'s JSON-Schema
213
+ * This interface was referenced by `CompatDataFile`'s JSON-Schema
210
214
  * via the `definition` "flag_statement".
211
215
  */
212
216
  export interface FlagStatement {
@@ -224,7 +228,7 @@ export interface FlagStatement {
224
228
  value_to_set?: string;
225
229
  }
226
230
  /**
227
- * This interface was referenced by `CompatData`'s JSON-Schema
231
+ * This interface was referenced by `CompatDataFile`'s JSON-Schema
228
232
  * via the `definition` "status_block".
229
233
  */
230
234
  export interface StatusBlock {