@mdn/browser-compat-data 5.0.2 → 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.
Files changed (3) hide show
  1. package/data.json +1 -1
  2. package/package.json +1 -1
  3. package/types.d.ts +16 -34
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.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"}
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
@@ -52,7 +52,7 @@ export interface BrowserStatement {
52
52
  /**
53
53
  * The upstream browser this browser derives from (e.g. Firefox Android is derived from Firefox, Edge is derived from Chrome).
54
54
  */
55
- upstream?: string;
55
+ upstream?: BrowserName;
56
56
  /**
57
57
  * Whether the browser supports flags to enable or disablle features.
58
58
  */
@@ -102,6 +102,14 @@ export interface ReleaseStatement {
102
102
  }
103
103
 
104
104
 
105
+ /**
106
+ * This interface was referenced by `CompatData`'s JSON-Schema definition
107
+ * via the `patternProperty` "^(?!__compat)(?!webextensions)[a-zA-Z_0-9-$@]*$".
108
+ *
109
+ * This interface was referenced by `CompatData`'s JSON-Schema
110
+ * via the `definition` "identifier".
111
+ */
112
+ export type Identifier = {[key: string]: Identifier} & {__compat?: CompatStatement};
105
113
  /**
106
114
  * This interface was referenced by `CompatData`'s JSON-Schema
107
115
  * via the `definition` "support_statement".
@@ -111,7 +119,7 @@ export type SupportStatement = SimpleSupportStatement | SimpleSupportStatement[]
111
119
  * This interface was referenced by `CompatData`'s JSON-Schema
112
120
  * via the `definition` "support_block".
113
121
  */
114
- export type SupportBlock = Partial<Record<BrowserNames, SupportStatement>>;
122
+ export type SupportBlock = Partial<Record<BrowserName, SupportStatement>>;
115
123
  /**
116
124
  * This interface was referenced by `CompatData`'s JSON-Schema
117
125
  * via the `definition` "spec_url_value".
@@ -122,28 +130,14 @@ export type SpecUrlValue = string;
122
130
  * via the `definition` "impl_url_value".
123
131
  */
124
132
  export type ImplUrlValue = string;
125
-
126
-
127
133
  /**
128
- * This interface was referenced by `CompatData`'s JSON-Schema definition
129
- * via the `patternProperty` "^(?!__compat)(?!webextensions)[a-zA-Z_0-9-$@]*$".
130
- *
131
134
  * This interface was referenced by `CompatData`'s JSON-Schema
132
- * via the `definition` "identifier".
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.
133
137
  */
134
- export interface Identifier extends Record<Omit<string, '__compat'>, Identifier> {
135
- /**
136
- * A feature is described by an identifier containing the `__compat` property.
137
- *
138
- * In other words, identifiers without `__compat` aren't necessarily features, but help to nest the features properly.
139
- *
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
- }
138
+ export type WebextensionsIdentifier = {[key: string]: Identifier} & {__compat?: CompatStatement};
139
+
140
+
147
141
  /**
148
142
  * This interface was referenced by `CompatData`'s JSON-Schema definition
149
143
  * via the `patternProperty` "^__compat$".
@@ -247,21 +241,9 @@ export interface StatusBlock {
247
241
  */
248
242
  deprecated: boolean;
249
243
  }
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
- }
262
244
 
263
245
 
264
- export interface MetaBlock{
246
+ export interface MetaBlock {
265
247
  version: string;
266
248
  }
267
249