@mdn/browser-compat-data 5.2.61 → 5.2.63

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/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.2.61","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.2.63","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
@@ -111,31 +111,14 @@ export interface ReleaseStatement {
111
111
  */
112
112
  export type Identifier = {[key: string]: Identifier} & {__compat?: CompatStatement};
113
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".
114
+ * 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.
121
115
  */
122
116
  export type SupportBlock = Partial<Record<BrowserName, SupportStatement>>;
123
117
  /**
124
118
  * 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.
119
+ * via the `definition` "support_statement".
137
120
  */
138
- export type WebextensionsIdentifier = {[key: string]: Identifier} & {__compat?: CompatStatement};
121
+ export type SupportStatement = SimpleSupportStatement | SimpleSupportStatement[];
139
122
 
140
123
 
141
124
  /**
@@ -162,14 +145,25 @@ export interface CompatStatement {
162
145
  * 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
146
  */
164
147
  source_file?: string;
148
+ support: SupportBlock;
149
+ status?: StatusBlock;
150
+ }
151
+ /**
152
+ * An object containing information about the stability of the feature.
153
+ */
154
+ export interface StatusBlock {
165
155
  /**
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.
156
+ * 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.
167
157
  */
168
- support: SupportBlock;
158
+ experimental: boolean;
169
159
  /**
170
- * An object containing information about the stability of the feature.
160
+ * A boolean value indicating whether the feature is part of an active specification or specification process.
171
161
  */
172
- status?: StatusBlock;
162
+ standard_track: boolean;
163
+ /**
164
+ * 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.
165
+ */
166
+ deprecated: boolean;
173
167
  }
174
168
  /**
175
169
  * This interface was referenced by `CompatDataFile`'s JSON-Schema
@@ -194,6 +188,8 @@ export interface SimpleSupportStatement {
194
188
  alternative_name?: string;
195
189
  /**
196
190
  * An optional array of objects describing flags that must be configured for this browser to support this feature.
191
+ *
192
+ * @minItems 1
197
193
  */
198
194
  flags?: FlagStatement[];
199
195
  /**
@@ -227,24 +223,6 @@ export interface FlagStatement {
227
223
  */
228
224
  value_to_set?: string;
229
225
  }
230
- /**
231
- * This interface was referenced by `CompatDataFile`'s JSON-Schema
232
- * via the `definition` "status_block".
233
- */
234
- export interface StatusBlock {
235
- /**
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.
237
- */
238
- experimental: boolean;
239
- /**
240
- * A boolean value indicating whether the feature is part of an active specification or specification process.
241
- */
242
- standard_track: boolean;
243
- /**
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.
245
- */
246
- deprecated: boolean;
247
- }
248
226
 
249
227
 
250
228
  export interface MetaBlock {