nodejs-dist-indexer 1.6.1 → 1.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.
@@ -0,0 +1,16 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: 'github-actions'
4
+ directory: '/'
5
+ schedule:
6
+ interval: 'daily'
7
+ commit-message:
8
+ prefix: 'chore'
9
+ include: 'scope'
10
+ - package-ecosystem: 'npm'
11
+ directory: '/'
12
+ schedule:
13
+ interval: 'daily'
14
+ commit-message:
15
+ prefix: 'chore'
16
+ include: 'scope'
@@ -0,0 +1,82 @@
1
+ name: Test & Maybe Release
2
+ on: [push, pull_request]
3
+ jobs:
4
+ test:
5
+ strategy:
6
+ fail-fast: false
7
+ matrix:
8
+ node: [20.x, lts/*, current]
9
+ # not quite windows ready, halp! os: [macos-latest, ubuntu-latest, windows-latest]
10
+ os: [macos-latest, ubuntu-latest]
11
+ runs-on: ${{ matrix.os }}
12
+ steps:
13
+ - name: Checkout Repository
14
+ uses: actions/checkout@v4
15
+ with:
16
+ fetch-depth: 0
17
+ - name: Use Node.js ${{ matrix.node }}
18
+ uses: actions/setup-node@v3.8.1
19
+ with:
20
+ node-version: ${{ matrix.node }}
21
+ - name: Set up ghauth config (Ubuntu)
22
+ run: |
23
+ mkdir -p ~/.config/changelog-maker/
24
+ echo '{"user": "nodejs", "token": "'${{ secrets.GITHUB_TOKEN }}'"}' > ~/.config/changelog-maker/config.json
25
+ if: startsWith(matrix.os, 'ubuntu')
26
+
27
+ - name: Set up ghauth config (macOS)
28
+ run: |
29
+ mkdir -p ~/Library/Application\ Support/changelog-maker/
30
+ echo '{"user": "nodejs", "token": "'${{ secrets.GITHUB_TOKEN }}'"}' > ~/Library/Application\ Support/changelog-maker/config.json
31
+ if: startsWith(matrix.os, 'macos')
32
+
33
+ - name: Set up ghauth config (Windows)
34
+ run: |
35
+ mkdir "%LOCALAPPDATA%\changelog-maker\"
36
+ echo {"user": "nodejs", "token": "${{ secrets.GITHUB_TOKEN }}"} > "%LOCALAPPDATA%\changelog-maker\config.json"
37
+ shell: cmd
38
+ if: startsWith(matrix.os, 'windows')
39
+ - name: Install Dependencies
40
+ run: |
41
+ npm install --no-progress
42
+ - name: Run tests
43
+ run: |
44
+ npm config set script-shell bash
45
+ npm run test:ci
46
+ release:
47
+ name: Release
48
+ needs: test
49
+ runs-on: ubuntu-latest
50
+ if: github.event_name == 'push' && github.ref == 'refs/heads/main'
51
+ steps:
52
+ - name: Checkout
53
+ uses: actions/checkout@v4
54
+ with:
55
+ fetch-depth: 0
56
+ - name: Setup Node.js
57
+ uses: actions/setup-node@v3.8.1
58
+ with:
59
+ node-version: lts/*
60
+ - name: Install dependencies
61
+ run: |
62
+ npm install --no-progress --no-package-lock --no-save
63
+ - name: Build
64
+ run: |
65
+ npm run build
66
+ - name: Install plugins
67
+ run: |
68
+ npm install \
69
+ @semantic-release/commit-analyzer \
70
+ conventional-changelog-conventionalcommits \
71
+ @semantic-release/release-notes-generator \
72
+ @semantic-release/npm \
73
+ @semantic-release/github \
74
+ @semantic-release/git \
75
+ @semantic-release/changelog \
76
+ --no-progress --no-package-lock --no-save
77
+ - name: Release
78
+ env:
79
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
80
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
81
+ run: npx semantic-release
82
+
package/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ ## [1.7.0](https://github.com/nodejs/nodejs-dist-indexer/compare/v1.6.1...v1.7.0) (2024-01-31)
2
+
3
+
4
+ ### Features
5
+
6
+ * add x64-debug ([#26](https://github.com/nodejs/nodejs-dist-indexer/issues/26)) ([0b360f6](https://github.com/nodejs/nodejs-dist-indexer/commit/0b360f6aea5ffd8edf44c64c7567fe4beb30529d))
7
+
8
+
9
+ ### Trivial Changes
10
+
11
+ * auto releases ([130854e](https://github.com/nodejs/nodejs-dist-indexer/commit/130854e86609451af844a5bd8c3f3f13864c0785))
package/README.md CHANGED
@@ -41,6 +41,7 @@ OS / architecture / packaging specifiers used in the listings include:
41
41
  * **linux-riscv64**: normally .tar.gz and .tar.xz
42
42
  * **linux-s390x**: normally .tar.gz and .tar.xz
43
43
  * **linux-x64**: normally .tar.gz and .tar.xz
44
+ * **linux-x64-debug**: normally .tar.gz and .tar.xz
44
45
  * **linux-x64-glibc-217**: normally .tar.gz and .tar.xz
45
46
  * **linux-x86**: normally .tar.gz and .tar.xz
46
47
  * **osx-arm64-tar**: normally .tar.gz and .tar.xz
package/dist-indexer.js CHANGED
@@ -87,8 +87,8 @@ function fetch (url, gitref, callback) {
87
87
  const repo = refparts[0] === 'v8-canary'
88
88
  ? 'node-v8'
89
89
  : (/^v0\.\d\./).test(refparts[1])
90
- ? 'node-v0.x-archive'
91
- : 'node'
90
+ ? 'node-v0.x-archive'
91
+ : 'node'
92
92
 
93
93
  url = url.replace('{gitref}', refparts[1])
94
94
  .replace('{repo}', repo) +
@@ -477,7 +477,7 @@ function inspectDir (dir, callback) {
477
477
  callback(null, {
478
478
  version: dir,
479
479
  date: date.toISOString().substring(0, 10),
480
- files: files,
480
+ files,
481
481
  npm: npmVersion,
482
482
  v8: v8Version,
483
483
  uv: uvVersion,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodejs-dist-indexer",
3
- "version": "1.6.1",
3
+ "version": "1.7.0",
4
4
  "description": "An application to create nodejs.org distribution index files: index.json and index.tab",
5
5
  "main": "dist-indexer.js",
6
6
  "author": "Rod Vagg <rod@vagg.org>",
@@ -11,14 +11,16 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "after": "^0.8.2",
14
- "bl": "^4.0.3",
14
+ "bl": "^6.0.10",
15
15
  "hyperquest": "^2.1.3",
16
16
  "map-async": "^0.1.1",
17
- "minimist": "^1.2.5",
18
- "semver": "^7.3.2"
17
+ "minimist": "^1.2.8",
18
+ "semver": "^7.5.4"
19
19
  },
20
20
  "scripts": {
21
+ "build": "true",
21
22
  "lint": "standard",
23
+ "test:ci": "npm run test",
22
24
  "test": "npm run lint && node ls-types.js && node transform-filename.js && node decode-ref.js && node is-security-release.js"
23
25
  },
24
26
  "bin": {
@@ -27,6 +29,87 @@
27
29
  },
28
30
  "preferGlobal": true,
29
31
  "devDependencies": {
30
- "standard": "^14.3.4"
32
+ "standard": "^17.1.0"
33
+ },
34
+ "release": {
35
+ "branches": [
36
+ "main"
37
+ ],
38
+ "plugins": [
39
+ [
40
+ "@semantic-release/commit-analyzer",
41
+ {
42
+ "preset": "conventionalcommits",
43
+ "releaseRules": [
44
+ {
45
+ "breaking": true,
46
+ "release": "major"
47
+ },
48
+ {
49
+ "revert": true,
50
+ "release": "patch"
51
+ },
52
+ {
53
+ "type": "feat",
54
+ "release": "minor"
55
+ },
56
+ {
57
+ "type": "fix",
58
+ "release": "patch"
59
+ },
60
+ {
61
+ "type": "chore",
62
+ "release": "patch"
63
+ },
64
+ {
65
+ "type": "docs",
66
+ "release": "patch"
67
+ },
68
+ {
69
+ "type": "test",
70
+ "release": "patch"
71
+ },
72
+ {
73
+ "scope": "no-release",
74
+ "release": false
75
+ }
76
+ ]
77
+ }
78
+ ],
79
+ [
80
+ "@semantic-release/release-notes-generator",
81
+ {
82
+ "preset": "conventionalcommits",
83
+ "presetConfig": {
84
+ "types": [
85
+ {
86
+ "type": "feat",
87
+ "section": "Features"
88
+ },
89
+ {
90
+ "type": "fix",
91
+ "section": "Bug Fixes"
92
+ },
93
+ {
94
+ "type": "chore",
95
+ "section": "Trivial Changes"
96
+ },
97
+ {
98
+ "type": "docs",
99
+ "section": "Trivial Changes"
100
+ },
101
+ {
102
+ "type": "test",
103
+ "section": "Tests"
104
+ }
105
+ ]
106
+ }
107
+ }
108
+ ],
109
+ "@semantic-release/changelog",
110
+ "@semantic-release/npm",
111
+ "@semantic-release/github",
112
+ "@semantic-release/git"
113
+ ]
31
114
  }
32
115
  }
@@ -41,6 +41,7 @@ const types = {
41
41
  'linux-x64-musl': 'linux-x64-musl',
42
42
  'linux-x64-pointer-compression': 'linux-x64-pointer-compression',
43
43
  'linux-x64-usdt': 'linux-x64-usdt',
44
+ 'linux-x64-debug': 'linux-x64-debug',
44
45
  'win-arm64.7z': 'win-arm64-7z',
45
46
  'win-arm64.zip': 'win-arm64-zip'
46
47
  }
@@ -170,6 +171,8 @@ if (module === require.main) {
170
171
  { file: 'node-v14.13.0-linux-x64-pointer-compression.tar.xz' },
171
172
  { file: 'node-v14.13.0-linux-x64-usdt.tar.gz', type: 'linux-x64-usdt' },
172
173
  { file: 'node-v14.13.0-linux-x64-usdt.tar.xz' },
174
+ { file: 'node-v14.13.0-linux-x64-debug.tar.gz', type: 'linux-x64-debug' },
175
+ { file: 'node-v14.13.0-linux-x64-debug.tar.xz' },
173
176
  { file: 'node-v14.13.0-win-arm64.zip', type: 'win-arm64-zip' },
174
177
  { file: 'node-v14.13.0-win-arm64.7z', type: 'win-arm64-7z' }
175
178
  ]