@node-core/utils 6.3.3 → 7.0.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/README.md +2 -5
- package/bin/ncu-ci.js +3 -19
- package/components/git/benchmark.js +112 -0
- package/components/git/land.js +3 -3
- package/components/git/metadata.js +34 -1
- package/components/git/release.js +3 -5
- package/components/git/security.js +258 -27
- package/components/git/v8.js +6 -3
- package/components/metadata.js +75 -7
- package/lib/auth.js +3 -4
- package/lib/backport_session.js +3 -3
- package/lib/benchmark.js +243 -0
- package/lib/cherry_pick.js +32 -11
- package/lib/ci/failure_aggregator.js +16 -20
- package/lib/ci/run_ci.js +1 -1
- package/lib/cli.js +33 -1
- package/lib/config.js +7 -7
- package/lib/file.js +5 -5
- package/lib/landing_session.js +65 -24
- package/lib/links.js +4 -4
- package/lib/pr_checker.js +163 -31
- package/lib/pr_data.js +1 -1
- package/lib/pr_summary.js +1 -1
- package/lib/prepare_release.js +270 -85
- package/lib/prepare_security.js +367 -41
- package/lib/promote_release.js +19 -16
- package/lib/queries/ListSecurityReleasePRs.gql +19 -0
- package/lib/queries/PR.gql +4 -1
- package/lib/request.js +41 -0
- package/lib/run.js +5 -5
- package/lib/security-announcement.js +10 -5
- package/lib/security-release/security-release.js +160 -20
- package/lib/security_blog.js +130 -65
- package/lib/session.js +4 -3
- package/lib/team_info.js +1 -1
- package/lib/update-v8/applyNodeChanges.js +1 -3
- package/lib/update-v8/backport.js +6 -6
- package/lib/update-v8/commitUpdate.js +3 -6
- package/lib/update-v8/common.js +30 -6
- package/lib/update-v8/constants.js +22 -0
- package/lib/update-v8/deps.js +3 -5
- package/lib/update-v8/index.js +14 -5
- package/lib/update-v8/majorUpdate.js +5 -4
- package/lib/update-v8/minorUpdate.js +4 -4
- package/lib/update-v8/updateCrates.js +192 -0
- package/lib/update-v8/updateV8Clone.js +1 -1
- package/lib/update-v8/updateVersionNumbers.js +3 -6
- package/lib/update-v8/util.js +3 -3
- package/lib/update_security_release.js +347 -105
- package/lib/utils.js +5 -5
- package/lib/verbosity.js +3 -3
- package/lib/wpt/index.js +1 -23
- package/package.json +18 -22
- package/bin/get-metadata.js +0 -11
- package/lib/wpt/templates/README.md +0 -16
- package/npm-shrinkwrap.json +0 -20380
package/lib/wpt/index.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
2
|
|
|
3
|
-
import _ from 'lodash';
|
|
4
|
-
|
|
5
3
|
import GitHubTree from '../github/tree.js';
|
|
6
4
|
import {
|
|
7
|
-
writeFile, readJson, writeJson,
|
|
5
|
+
writeFile, readJson, writeJson, removeDirectory
|
|
8
6
|
} from '../file.js';
|
|
9
7
|
import {
|
|
10
8
|
shortSha
|
|
@@ -28,11 +26,6 @@ export class WPTUpdater {
|
|
|
28
26
|
this.assets = [];
|
|
29
27
|
}
|
|
30
28
|
|
|
31
|
-
templates(...args) {
|
|
32
|
-
const file = path.posix.join('templates', ...args);
|
|
33
|
-
return _.template(readFile(new URL(file, import.meta.url)));
|
|
34
|
-
}
|
|
35
|
-
|
|
36
29
|
fixtures(...args) {
|
|
37
30
|
return path.join(this.nodedir, 'test', 'fixtures', 'wpt', ...args);
|
|
38
31
|
}
|
|
@@ -41,10 +34,6 @@ export class WPTUpdater {
|
|
|
41
34
|
return this.fixtures('versions.json');
|
|
42
35
|
}
|
|
43
36
|
|
|
44
|
-
get readmePath() {
|
|
45
|
-
return this.fixtures('README.md');
|
|
46
|
-
}
|
|
47
|
-
|
|
48
37
|
getLocalVersions() {
|
|
49
38
|
return readJson(this.versionsPath);
|
|
50
39
|
}
|
|
@@ -98,12 +87,10 @@ export class WPTUpdater {
|
|
|
98
87
|
}
|
|
99
88
|
|
|
100
89
|
/**
|
|
101
|
-
* @param {string} nodedir
|
|
102
90
|
* @param {Object<string, {commit: string, path: string}>} updated
|
|
103
91
|
*/
|
|
104
92
|
async updateVersions(updated) {
|
|
105
93
|
const versionsPath = this.versionsPath;
|
|
106
|
-
const readmePath = this.readmePath;
|
|
107
94
|
let versions = this.getLocalVersions();
|
|
108
95
|
|
|
109
96
|
this.cli.startSpinner('Updating versions.json ...');
|
|
@@ -116,15 +103,6 @@ export class WPTUpdater {
|
|
|
116
103
|
);
|
|
117
104
|
writeJson(versionsPath, versions);
|
|
118
105
|
this.cli.stopSpinner(`Updated ${versionsPath}`);
|
|
119
|
-
|
|
120
|
-
const urlMap = Object.keys(versions).map(
|
|
121
|
-
(key) => [key, this.getTreeUrl(versions[key].path, versions[key].commit)]
|
|
122
|
-
);
|
|
123
|
-
|
|
124
|
-
this.cli.startSpinner('Updating README ...');
|
|
125
|
-
const readme = this.templates('README.md')({ map: urlMap });
|
|
126
|
-
writeFile(readmePath, readme);
|
|
127
|
-
this.cli.stopSpinner(`Updated ${readmePath}`);
|
|
128
106
|
}
|
|
129
107
|
|
|
130
108
|
async updateLicense() {
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@node-core/utils",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "Utilities for Node.js core collaborators",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
7
|
-
"node": "^
|
|
7
|
+
"node": "^22.22.2 || ^24.15.0 || >=26.0.0"
|
|
8
8
|
},
|
|
9
9
|
"bin": {
|
|
10
|
-
"get-metadata": "bin/get-metadata.js",
|
|
11
10
|
"git-node": "bin/git-node.js",
|
|
12
11
|
"ncu-config": "bin/ncu-config.js",
|
|
13
12
|
"ncu-team": "bin/ncu-team.js",
|
|
@@ -30,45 +29,42 @@
|
|
|
30
29
|
"files": [
|
|
31
30
|
"lib/",
|
|
32
31
|
"bin/",
|
|
33
|
-
"components/"
|
|
34
|
-
"npm-shrinkwrap.json"
|
|
32
|
+
"components/"
|
|
35
33
|
],
|
|
36
34
|
"license": "MIT",
|
|
35
|
+
"bundleDependencies": true,
|
|
37
36
|
"dependencies": {
|
|
38
37
|
"@inquirer/prompts": "^7.4.1",
|
|
39
38
|
"@listr2/prompt-adapter-enquirer": "^2.0.12",
|
|
40
39
|
"@node-core/caritat": "^1.6.0",
|
|
41
40
|
"@pkgjs/nv": "^0.3.0",
|
|
42
41
|
"branch-diff": "^3.1.1",
|
|
43
|
-
"chalk": "^
|
|
42
|
+
"chalk": "^6.0.0",
|
|
44
43
|
"changelog-maker": "^4.4.1",
|
|
45
44
|
"cheerio": "^1.0.0",
|
|
46
|
-
"clipboardy": "^5.0.2",
|
|
47
45
|
"core-validate-commit": "^6.0.0",
|
|
48
46
|
"figures": "^6.1.0",
|
|
49
47
|
"ghauth": "^7.0.1",
|
|
50
48
|
"git-secure-tag": "^2.3.1",
|
|
51
|
-
"js-yaml": "^
|
|
49
|
+
"js-yaml": "^5.2.1",
|
|
52
50
|
"listr2": "^9.0.5",
|
|
53
|
-
"lodash": "^4.17.21",
|
|
54
|
-
"log-symbols": "^7.0.0",
|
|
55
51
|
"ora": "^9.0.0",
|
|
56
|
-
"replace-in-file": "^8.3.0",
|
|
57
52
|
"semver": "^7.7.1",
|
|
58
|
-
"
|
|
59
|
-
"
|
|
53
|
+
"smol-toml": "^1.7.0",
|
|
54
|
+
"undici": "^8.3.0",
|
|
55
|
+
"which": "^7.0.0",
|
|
60
56
|
"yargs": "^18.0.0"
|
|
61
57
|
},
|
|
62
58
|
"devDependencies": {
|
|
63
|
-
"@eslint/js": "^9.
|
|
64
|
-
"@reporters/github": "^1.
|
|
65
|
-
"c8": "^
|
|
66
|
-
"eslint": "^9.
|
|
67
|
-
"eslint-plugin-import": "^2.
|
|
68
|
-
"eslint-plugin-n": "^17.
|
|
69
|
-
"eslint-plugin-promise": "^7.
|
|
59
|
+
"@eslint/js": "^9.39.4",
|
|
60
|
+
"@reporters/github": "^1.12.0",
|
|
61
|
+
"c8": "^12.0.0",
|
|
62
|
+
"eslint": "^9.39.4",
|
|
63
|
+
"eslint-plugin-import": "^2.32.0",
|
|
64
|
+
"eslint-plugin-n": "^17.24.0",
|
|
65
|
+
"eslint-plugin-promise": "^7.3.0",
|
|
70
66
|
"globals": "^17.4.0",
|
|
71
|
-
"neostandard": "^0.
|
|
72
|
-
"sinon": "^
|
|
67
|
+
"neostandard": "^0.13.0",
|
|
68
|
+
"sinon": "^22.0.0"
|
|
73
69
|
}
|
|
74
70
|
}
|
package/bin/get-metadata.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import { fileURLToPath } from 'node:url';
|
|
4
|
-
|
|
5
|
-
import { runAsync } from '../lib/run.js';
|
|
6
|
-
import { setVerbosityFromEnv } from '../lib/verbosity.js';
|
|
7
|
-
|
|
8
|
-
setVerbosityFromEnv();
|
|
9
|
-
|
|
10
|
-
const script = fileURLToPath(new URL('git-node.js', import.meta.url));
|
|
11
|
-
runAsync(process.execPath, [script, 'metadata', ...process.argv.slice(2)]);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# Web Platform Test Fixtures
|
|
2
|
-
|
|
3
|
-
The files in this folder, including this document,
|
|
4
|
-
are generated by [`git node wpt`][].
|
|
5
|
-
|
|
6
|
-
This folder contains a subset of the [Web Platform Tests][] for the
|
|
7
|
-
implementation of Web APIs in Node.js.
|
|
8
|
-
|
|
9
|
-
See [test/wpt](../../wpt/README.md) for information on how these tests are run.
|
|
10
|
-
|
|
11
|
-
Last update:
|
|
12
|
-
<% for (const [path, url] of map) { %>
|
|
13
|
-
- <%= path %>: <%= url %><% } %>
|
|
14
|
-
|
|
15
|
-
[Web Platform Tests]: https://github.com/web-platform-tests/wpt
|
|
16
|
-
[`git node wpt`]: https://github.com/nodejs/node-core-utils/blob/main/docs/git-node.md#git-node-wpt
|