node-abi 3.3.0 → 3.7.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.
@@ -29,6 +29,10 @@ jobs:
29
29
  docker:
30
30
  - image: circleci/node:14
31
31
  <<: *steps-test
32
+ test-linux-16:
33
+ docker:
34
+ - image: circleci/node:16
35
+ <<: *steps-test
32
36
 
33
37
  release:
34
38
  docker:
@@ -46,12 +50,14 @@ workflows:
46
50
  - test-linux-10
47
51
  - test-linux-12
48
52
  - test-linux-14
53
+ - test-linux-16
49
54
  - release:
50
55
  requires:
51
56
  - test-linux-10
52
57
  - test-linux-12
53
58
  - test-linux-14
59
+ - test-linux-16
54
60
  filters:
55
61
  branches:
56
62
  only:
57
- - master
63
+ - main
package/.releaserc.json CHANGED
@@ -5,5 +5,5 @@
5
5
  "@continuous-auth/semantic-release-npm",
6
6
  "@semantic-release/github"
7
7
  ],
8
- "branches": [ "master" ]
8
+ "branches": [ "main" ]
9
9
  }
package/abi_registry.json CHANGED
@@ -164,9 +164,16 @@
164
164
  },
165
165
  {
166
166
  "abi": "99",
167
- "future": true,
167
+ "future": false,
168
168
  "lts": false,
169
169
  "runtime": "electron",
170
170
  "target": "16.0.0-alpha.1"
171
+ },
172
+ {
173
+ "abi": "101",
174
+ "future": false,
175
+ "lts": false,
176
+ "runtime": "electron",
177
+ "target": "17.0.0-alpha.1"
171
178
  }
172
179
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-abi",
3
- "version": "3.3.0",
3
+ "version": "3.7.0",
4
4
  "description": "Get the Node ABI for a given target and runtime, and vice versa.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/test/index.js CHANGED
@@ -41,6 +41,7 @@ test('getTarget calculates correct Electron target', function (t) {
41
41
  t.equal(getTarget('50', 'electron'), '1.4.0')
42
42
  t.equal(getTarget('76', 'electron'), '8.0.0')
43
43
  t.equal(getTarget('82', 'electron'), '10.0.0')
44
+ t.equal(getTarget('89', 'electron'), '13.0.0')
44
45
  t.end()
45
46
  })
46
47
 
@@ -99,9 +100,12 @@ test('getAbi calculates correct Node ABI', function (t) {
99
100
  test('getAbi calculates correct Electron ABI', function (t) {
100
101
  t.throws(function () { getAbi(undefined, 'electron') })
101
102
  t.throws(function () { getAbi(getNextTarget('electron'), 'electron') })
102
- t.equal(getAbi('14.0.0', 'electron'), '89')
103
+ t.equal(getAbi('15.0.0-beta.1', 'electron'), '89')
103
104
  t.equal(getAbi('14.1.1', 'electron'), '97')
104
- t.equal(getAbi('10.0.0-beta.1', 'electron'), '82')
105
+ t.equal(getAbi('14.0.0', 'electron'), '89')
106
+ t.equal(getAbi('13.0.0', 'electron'), '89')
107
+ t.equal(getAbi('12.0.0', 'electron'), '87')
108
+ t.equal(getAbi('11.0.0', 'electron'), '85')
105
109
  t.equal(getAbi('10.0.0', 'electron'), '82')
106
110
  t.equal(getAbi('9.0.0', 'electron'), '80')
107
111
  t.equal(getAbi('8.0.0', 'electron'), '76')