electron-to-chromium 1.3.6 → 1.3.10

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 CHANGED
@@ -2,13 +2,13 @@
2
2
 
3
3
  This repository provides a mapping of Electron versions to the Chromium version that it uses.
4
4
 
5
- This package is used in [Browserslist](https://github.com/ai/browserslist), so you can use e.g. `electron >= 1.4` in [Autoprefixer](https://github.com/postcss/autoprefixer), [Stylelint](https://github.com/stylelint/stylelint), [babel-present-env](https://github.com/babel/babel-preset-env) and [eslint-plugin-compat](https://github.com/amilajack/eslint-plugin-compat).
5
+ This package is used in [Browserslist](https://github.com/ai/browserslist), so you can use e.g. `electron >= 1.4` in [Autoprefixer](https://github.com/postcss/autoprefixer), [Stylelint](https://github.com/stylelint/stylelint), [babel-preset-env](https://github.com/babel/babel-preset-env) and [eslint-plugin-compat](https://github.com/amilajack/eslint-plugin-compat).
6
6
 
7
7
  ## Install
8
8
  Install using `npm install electron-to-chromium`.
9
9
 
10
10
  ## Usage
11
- to include electron-to-chromium, require it:
11
+ To include Electron-to-Chromium, require it:
12
12
 
13
13
  ```js
14
14
  var e2c = require('electron-to-chromium');
@@ -17,8 +17,8 @@ var e2c = require('electron-to-chromium');
17
17
  ### Properties
18
18
  The Electron-to-Chromium object has 4 properties to use:
19
19
 
20
- #### versions
21
- An object of key-value pairs with a _major_ Electron version as the key, and the respective major Chromium version as the value.
20
+ #### `versions`
21
+ An object of key-value pairs with a _major_ Electron version as the key, and the corresponding major Chromium version as the value.
22
22
 
23
23
  ```js
24
24
  var versions = e2c.versions;
@@ -26,8 +26,8 @@ console.log(versions['1.4']);
26
26
  // returns "53"
27
27
  ```
28
28
 
29
- #### fullVersions
30
- An object of key-value pairs with a Electron version as the key, and the respective full Chromium version as the value.
29
+ #### `fullVersions`
30
+ An object of key-value pairs with a Electron version as the key, and the corresponding full Chromium version as the value.
31
31
 
32
32
  ```js
33
33
  var versions = e2c.fullVersions;
@@ -35,8 +35,8 @@ console.log(versions['1.4.11']);
35
35
  // returns "53.0.2785.143"
36
36
  ```
37
37
 
38
- #### chromiumVersions
39
- An object of key-value pairs with a _major_ Chromium version as the key, and the respective major Electron version as the value.
38
+ #### `chromiumVersions`
39
+ An object of key-value pairs with a _major_ Chromium version as the key, and the corresponding major Electron version as the value.
40
40
 
41
41
  ```js
42
42
  var versions = e2c.chromiumVersions;
@@ -44,18 +44,19 @@ console.log(versions['54']);
44
44
  // returns "1.4"
45
45
  ```
46
46
 
47
- #### fullChromiumVersions
48
- An object of key-value pairs with a Chromium version as the key, and an array of the respective major Electron versions as the value.
47
+ #### `fullChromiumVersions`
48
+ An object of key-value pairs with a Chromium version as the key, and an array of the corresponding major Electron versions as the value.
49
49
 
50
50
  ```js
51
51
  var versions = e2c.fullChromiumVersions;
52
52
  console.log(versions['54.0.2840.101']);
53
53
  // returns ["1.5.1", "1.5.0"]
54
54
  ```
55
+ ### Functions
55
56
 
56
- #### electronToChromium(query)
57
+ #### `electronToChromium(query)`
57
58
  Arguments:
58
- * Query: string or number, required. A major or full electron version.
59
+ * Query: string or number, required. A major or full Electron version.
59
60
 
60
61
  A function that returns the corresponding Chromium version for a given Electron function. Returns a string.
61
62
 
@@ -80,9 +81,9 @@ var chromeVersion = e2c.electronToChromium('9000');
80
81
  // chromeVersion is undefined
81
82
  ```
82
83
 
83
- #### chromiumToElectron(query)
84
+ #### `chromiumToElectron(query)`
84
85
  Arguments:
85
- * Query: string or number, required. A major or full chromium version.
86
+ * Query: string or number, required. A major or full Chromium version.
86
87
 
87
88
  Returns a string with the corresponding Electron version for a given Chromium query.
88
89
 
@@ -100,7 +101,6 @@ var electronVersions = e2c.chromiumToElectron('56.0.2924.87');
100
101
  // electronVersions is ["1.6.3", "1.6.2", "1.6.1", "1.6.0"]
101
102
  ```
102
103
 
103
-
104
104
  If a query does not match an Electron version, it will return `undefined`.
105
105
 
106
106
  ```js
@@ -108,15 +108,15 @@ var electronVersion = e2c.chromiumToElectron('10');
108
108
  // chromeVersion is undefined
109
109
  ```
110
110
 
111
- #### electronToBrowserList(query) **DEPRECATED**
111
+ #### `electronToBrowserList(query)` **DEPRECATED**
112
112
  Arguments:
113
113
  * Query: string or number, required. A major Electron version.
114
114
 
115
115
  _**Deprecated**: Browserlist already includes electron-to-chromium._
116
116
 
117
- A function that returns a [Browserlist](https://github.com/ai/browserslist) query that matches the given major Electron version. Returns a string.
117
+ A function that returns a [Browserslist](https://github.com/ai/browserslist) query that matches the given major Electron version. Returns a string.
118
118
 
119
- If you provide it with a major Electron version, it will return a Browserlist query string that matches the chromium capabilities:
119
+ If you provide it with a major Electron version, it will return a Browserlist query string that matches the Chromium capabilities:
120
120
 
121
121
  ```js
122
122
  var query = e2c.electronToBrowserList('1.4');
@@ -130,27 +130,28 @@ var query = e2c.electronToBrowserList('9000');
130
130
  // query is undefined
131
131
  ```
132
132
 
133
- ### importing just versions, fullVersions, chromiumVersions and fullChromiumVersions
134
- all list can be imported on their own, if file-size is a concern.
133
+ ### Importing just versions, fullVersions, chromiumVersions and fullChromiumVersions
134
+ All lists can be imported on their own, if file size is a concern.
135
135
 
136
- ### versions
136
+ #### `versions`
137
137
 
138
138
  ```js
139
139
  var versions = require('electron-to-chromium/versions');
140
140
  ```
141
141
 
142
- ### fullVersions
142
+ #### `fullVersions`
143
143
 
144
144
  ```js
145
145
  var fullVersions = require('electron-to-chromium/full-versions');
146
146
  ```
147
- ### chromiumVersions
147
+
148
+ #### `chromiumVersions`
148
149
 
149
150
  ```js
150
151
  var chromiumVersions = require('electron-to-chromium/chromium-versions');
151
152
  ```
152
153
 
153
- ### fullChromiumVersions
154
+ #### `fullChromiumVersions`
154
155
 
155
156
  ```js
156
157
  var fullChromiumVersions = require('electron-to-chromium/full-chromium-versions');
@@ -161,4 +162,4 @@ This package will be updated with each new Electron release.
161
162
 
162
163
  To update the list, run `npm run build.js`. Requires internet access as it downloads from the canonical list of Electron versions.
163
164
 
164
- to verify correct behaviour, run `npm test`;
165
+ To verify correct behaviour, run `npm test`.
@@ -13,5 +13,6 @@ module.exports = {
13
13
  "52": "1.3",
14
14
  "53": "1.4",
15
15
  "54": "1.4",
16
- "56": "1.6"
16
+ "56": "1.6",
17
+ "58": "1.7"
17
18
  };
@@ -1,4 +1,19 @@
1
1
  module.exports = {
2
+ "58.0.3029.110": [
3
+ "1.7.0"
4
+ ],
5
+ "56.0.2924.87": [
6
+ "1.6.9",
7
+ "1.6.8",
8
+ "1.6.7",
9
+ "1.6.6",
10
+ "1.6.5",
11
+ "1.6.4",
12
+ "1.6.3",
13
+ "1.6.2",
14
+ "1.6.1",
15
+ "1.6.0"
16
+ ],
2
17
  "52.0.2743.82": [
3
18
  "1.3.15",
4
19
  "1.3.14",
@@ -14,16 +29,6 @@ module.exports = {
14
29
  "1.3.1",
15
30
  "1.3.0"
16
31
  ],
17
- "56.0.2924.87": [
18
- "1.6.7",
19
- "1.6.6",
20
- "1.6.5",
21
- "1.6.4",
22
- "1.6.3",
23
- "1.6.2",
24
- "1.6.1",
25
- "1.6.0"
26
- ],
27
32
  "53.0.2785.143": [
28
33
  "1.4.16",
29
34
  "1.4.15",
package/full-versions.js CHANGED
@@ -1,4 +1,7 @@
1
1
  module.exports = {
2
+ "1.7.0": "58.0.3029.110",
3
+ "1.6.9": "56.0.2924.87",
4
+ "1.6.8": "56.0.2924.87",
2
5
  "1.3.15": "52.0.2743.82",
3
6
  "1.6.7": "56.0.2924.87",
4
7
  "1.6.6": "56.0.2924.87",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electron-to-chromium",
3
- "version": "1.3.6",
3
+ "version": "1.3.10",
4
4
  "description": "Provides a list of electron-to-chromium version mappings",
5
5
  "main": "index.js",
6
6
  "files": [
package/versions.js CHANGED
@@ -1,6 +1,7 @@
1
1
  module.exports = {
2
- "1.3": "52",
2
+ "1.7": "58",
3
3
  "1.6": "56",
4
+ "1.3": "52",
4
5
  "1.4": "53",
5
6
  "1.5": "54",
6
7
  "1.2": "51",