node-semvers 0.4.19 → 0.5.2

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.
@@ -0,0 +1,11 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: npm
4
+ directory: '/'
5
+ schedule:
6
+ interval: daily
7
+ - package-ecosystem: 'github-actions'
8
+ directory: '/'
9
+ schedule:
10
+ # Check for updates to GitHub Actions every weekday
11
+ interval: 'daily'
@@ -0,0 +1,22 @@
1
+ name: CI
2
+ on:
3
+ - push
4
+ - pull_request
5
+ jobs:
6
+ test:
7
+ name: Node.js ${{ matrix.node-version }} ${{ matrix.os }}
8
+ runs-on: ${{ matrix.os }}
9
+ strategy:
10
+ matrix:
11
+ node: ['latest']
12
+ os: [ubuntu-latest, windows-latest, macOS-latest]
13
+ steps:
14
+ - uses: actions/checkout@v2
15
+ - uses: actions/setup-node@v2.4.1
16
+ with:
17
+ node-version: ${{ matrix.node-version }}
18
+ - run: git config --global user.name "Github Actions"
19
+ - run: git config --global user.email "actions@users.noreply.github.com"
20
+ - run: npm ci
21
+ - run: npm run lint
22
+ - run: npm run test:engines
package/lib/constants.js CHANGED
@@ -3,5 +3,5 @@ var path = require('path');
3
3
  module.exports = {
4
4
  CACHE_DIRECTORY: path.resolve(path.join(__dirname, '..', '.cache')),
5
5
  DISTS_URL: 'https://nodejs.org/dist/index.json',
6
- SCHEDULES_URL: 'https://raw.githubusercontent.com/nodejs/Release/master/schedule.json',
6
+ SCHEDULES_URL: 'https://cdn.jsdelivr.net/gh/nodejs/Release@main/schedule.json',
7
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-semvers",
3
- "version": "0.4.19",
3
+ "version": "0.5.2",
4
4
  "description": "Utilities for managing versions of node including looking up codenames",
5
5
  "keywords": [
6
6
  "node",
@@ -26,33 +26,35 @@
26
26
  "postinstall": "node bin/cache.js",
27
27
  "lint": "eslint .",
28
28
  "prepublishOnly": "dtd \"npm run lint\" \"depcheck\"",
29
- "test": "mocha-compat test/spec/**/*.test.js --no-timeouts"
29
+ "test": "mocha-compat test/spec/**/*.test.js --no-timeouts",
30
+ "test:engines": "nvu engines npm test"
30
31
  },
31
32
  "dependencies": {
32
33
  "exit": "^0.1.2",
33
- "fetch-json-cache": "^0.1.7",
34
+ "fetch-json-cache": "^0.1.10",
34
35
  "getopts-compat": "^2.2.5",
35
36
  "isarray": "^2.0.5",
36
37
  "semver": "^5.7.1"
37
38
  },
38
39
  "devDependencies": {
39
- "babel-eslint": "^10.1.0",
40
+ "@typescript-eslint/parser": "^5.30.0",
40
41
  "cr": "^0.1.0",
41
- "cross-spawn-cb": "^0.3.1",
42
- "depcheck": "^0.9.2",
43
- "dis-dat": "^0.1.3",
42
+ "cross-spawn-cb": "^0.5.2",
43
+ "depcheck": "^1.4.3",
44
+ "dis-dat": "^0.1.5",
44
45
  "eslint": "^6.8.0",
45
46
  "eslint-config-prettier": "^6.11.0",
46
47
  "eslint-config-standard": "^14.1.1",
47
- "eslint-plugin-import": "^2.21.2",
48
+ "eslint-plugin-import": "^2.22.0",
48
49
  "eslint-plugin-node": "^11.1.0",
49
50
  "eslint-plugin-promise": "^4.2.1",
50
51
  "eslint-plugin-standard": "^4.0.1",
51
52
  "mocha-compat": "^3.5.5",
52
- "prettier": "^2.0.5",
53
+ "node-version-use": "^0.2.2",
54
+ "prettier": "^2.7.1",
53
55
  "rimraf": "^2.7.1"
54
56
  },
55
57
  "engines": {
56
- "node": ">=0.8.0"
58
+ "node": ">=0.8"
57
59
  }
58
60
  }