@mdn/browser-compat-data 4.1.19 → 4.2.1
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/data.json +1 -1
- package/index.d.ts +3 -2
- package/package.json +1 -1
- package/types.d.ts +27 -8
package/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
/*
|
|
2
|
-
*
|
|
1
|
+
/* This file is a part of @mdn/browser-compat-data
|
|
2
|
+
* See LICENSE file for more information. */
|
|
3
|
+
|
|
3
4
|
/// <reference path="./types.d.ts"/>
|
|
4
5
|
import { CompatData } from './types';
|
|
5
6
|
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"main":"index.js","name":"@mdn/browser-compat-data","version":"4.1
|
|
1
|
+
{"main":"index.js","name":"@mdn/browser-compat-data","version":"4.2.1","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","types":"index.d.ts"}
|
package/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*
|
|
2
|
-
*
|
|
1
|
+
/* This file is a part of @mdn/browser-compat-data
|
|
2
|
+
* See LICENSE file for more information. */
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The names of the known browsers.
|
|
@@ -13,6 +13,7 @@ export type BrowserNames =
|
|
|
13
13
|
| 'firefox_android'
|
|
14
14
|
| 'ie'
|
|
15
15
|
| 'nodejs'
|
|
16
|
+
| 'oculus'
|
|
16
17
|
| 'opera'
|
|
17
18
|
| 'opera_android'
|
|
18
19
|
| 'safari'
|
|
@@ -29,6 +30,8 @@ export type BrowserEngines =
|
|
|
29
30
|
| 'WebKit'
|
|
30
31
|
| 'V8';
|
|
31
32
|
|
|
33
|
+
export type BrowserTypes = 'desktop' | 'mobile' | 'xr' | 'server';
|
|
34
|
+
|
|
32
35
|
/**
|
|
33
36
|
* The browser namespace.
|
|
34
37
|
*/
|
|
@@ -46,6 +49,28 @@ export interface BrowserStatement {
|
|
|
46
49
|
*/
|
|
47
50
|
name: string;
|
|
48
51
|
|
|
52
|
+
/**
|
|
53
|
+
* The platform the browser runs on, for example:
|
|
54
|
+
* `"desktop"`, `"mobile"`, `"server"`, etc.
|
|
55
|
+
*/
|
|
56
|
+
type: BrowserTypes;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Whether the browser supports flags to enable or disable features.
|
|
60
|
+
*/
|
|
61
|
+
accepts_flags?: boolean;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Whether the browser supports extensions.
|
|
65
|
+
*/
|
|
66
|
+
accepts_webextensions?: boolean;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* An optional string containing the URL of the page where feature flags can be changed
|
|
70
|
+
* (e.g. `"about:config"` for Firefox or `"chrome://flags"` for Chrome).
|
|
71
|
+
*/
|
|
72
|
+
pref_url?: string;
|
|
73
|
+
|
|
49
74
|
/**
|
|
50
75
|
* The preview browser's name, for example:
|
|
51
76
|
* `"Nightly"`, `"Canary"`, `"TP"`, etc.
|
|
@@ -58,12 +83,6 @@ export interface BrowserStatement {
|
|
|
58
83
|
releases: {
|
|
59
84
|
[version: string]: ReleaseStatement;
|
|
60
85
|
};
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* An optional string containing the URL of the page where feature flags can be changed
|
|
64
|
-
* (e.g. `"about:config"` for Firefox or `"chrome://flags"` for Chrome).
|
|
65
|
-
*/
|
|
66
|
-
pref_url?: string;
|
|
67
86
|
}
|
|
68
87
|
|
|
69
88
|
/**
|