@node-core/utils 6.4.0 → 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.
Files changed (56) hide show
  1. package/README.md +2 -5
  2. package/bin/ncu-ci.js +3 -19
  3. package/components/git/benchmark.js +112 -0
  4. package/components/git/land.js +3 -3
  5. package/components/git/metadata.js +34 -1
  6. package/components/git/release.js +3 -5
  7. package/components/git/security.js +258 -27
  8. package/components/git/v8.js +6 -3
  9. package/components/metadata.js +75 -7
  10. package/lib/auth.js +3 -4
  11. package/lib/backport_session.js +3 -3
  12. package/lib/benchmark.js +243 -0
  13. package/lib/cherry_pick.js +32 -11
  14. package/lib/ci/failure_aggregator.js +16 -20
  15. package/lib/ci/run_ci.js +1 -1
  16. package/lib/cli.js +25 -1
  17. package/lib/config.js +7 -7
  18. package/lib/file.js +5 -5
  19. package/lib/landing_session.js +65 -24
  20. package/lib/links.js +4 -4
  21. package/lib/pr_checker.js +163 -31
  22. package/lib/pr_data.js +1 -1
  23. package/lib/pr_summary.js +1 -1
  24. package/lib/prepare_release.js +270 -85
  25. package/lib/prepare_security.js +312 -46
  26. package/lib/promote_release.js +19 -16
  27. package/lib/queries/ListSecurityReleasePRs.gql +19 -0
  28. package/lib/queries/PR.gql +4 -1
  29. package/lib/request.js +41 -0
  30. package/lib/run.js +5 -5
  31. package/lib/security-announcement.js +10 -5
  32. package/lib/security-release/security-release.js +160 -20
  33. package/lib/security_blog.js +130 -65
  34. package/lib/session.js +4 -3
  35. package/lib/team_info.js +1 -1
  36. package/lib/update-v8/applyNodeChanges.js +1 -3
  37. package/lib/update-v8/backport.js +6 -6
  38. package/lib/update-v8/commitUpdate.js +3 -6
  39. package/lib/update-v8/common.js +30 -6
  40. package/lib/update-v8/constants.js +5 -0
  41. package/lib/update-v8/deps.js +3 -5
  42. package/lib/update-v8/index.js +14 -5
  43. package/lib/update-v8/majorUpdate.js +5 -4
  44. package/lib/update-v8/minorUpdate.js +4 -4
  45. package/lib/update-v8/updateCrates.js +192 -0
  46. package/lib/update-v8/updateV8Clone.js +1 -1
  47. package/lib/update-v8/updateVersionNumbers.js +3 -6
  48. package/lib/update-v8/util.js +3 -3
  49. package/lib/update_security_release.js +347 -105
  50. package/lib/utils.js +5 -5
  51. package/lib/verbosity.js +3 -3
  52. package/lib/wpt/index.js +1 -23
  53. package/package.json +18 -22
  54. package/bin/get-metadata.js +0 -11
  55. package/lib/wpt/templates/README.md +0 -16
  56. 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, readFile, removeDirectory
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": "6.4.0",
3
+ "version": "7.0.0",
4
4
  "description": "Utilities for Node.js core collaborators",
5
5
  "type": "module",
6
6
  "engines": {
7
- "node": "^20.19.0 || ^22.20.0 || >=24.10.0"
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": "^5.4.1",
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": "^4.1.0",
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
- "undici": "^7.7.0",
59
- "which": "^6.0.0",
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.24.0",
64
- "@reporters/github": "^1.7.2",
65
- "c8": "^10.1.3",
66
- "eslint": "^9.24.0",
67
- "eslint-plugin-import": "^2.31.0",
68
- "eslint-plugin-n": "^17.17.0",
69
- "eslint-plugin-promise": "^7.2.1",
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.12.1",
72
- "sinon": "^21.0.0"
67
+ "neostandard": "^0.13.0",
68
+ "sinon": "^22.0.0"
73
69
  }
74
70
  }
@@ -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