node-abi 2.26.0 → 2.30.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.
package/.travis.yml CHANGED
@@ -5,13 +5,11 @@ cache:
5
5
  notifications:
6
6
  email: false
7
7
  node_js:
8
+ - '14'
9
+ - '12'
8
10
  - '10'
9
11
  - '9'
10
12
  - '8'
11
- - '6'
12
- - '4'
13
- - '0.12'
14
- - '0.10'
15
13
  after_success:
16
14
  - npm run travis-deploy-once "npm run semantic-release"
17
15
  branches:
package/abi_registry.json CHANGED
@@ -108,7 +108,7 @@
108
108
  },
109
109
  {
110
110
  "abi": "89",
111
- "future": true,
111
+ "future": false,
112
112
  "lts": false,
113
113
  "runtime": "electron",
114
114
  "target": "13.0.0-beta.2"
package/index.js CHANGED
@@ -4,7 +4,13 @@ function getNextTarget (runtime, targets) {
4
4
  if (targets == null) targets = allTargets
5
5
  var latest = targets.filter(function (t) { return t.runtime === runtime }).slice(-1)[0]
6
6
  var increment = runtime === 'electron' ? 'minor' : 'major'
7
- return semver.inc(latest.target, increment)
7
+ var next = semver.inc(latest.target, increment)
8
+ // Electron releases appear in the registry in their beta form, sometimes there is
9
+ // no active beta line. During this time we need to double bump
10
+ if (runtime === 'electron' && semver.parse(latest.target).prerelease.length) {
11
+ next = semver.inc(next, 'major')
12
+ }
13
+ return next
8
14
  }
9
15
 
10
16
  function getAbi (target, runtime) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-abi",
3
- "version": "2.26.0",
3
+ "version": "2.30.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": {