Skip to content

Commit 0611e1f

Browse files
Migrate to node 24 (#46)
1 parent 9f20b4e commit 0611e1f

15 files changed

Lines changed: 327 additions & 202 deletions

File tree

common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"author": "Developer Express Inc.",
55
"license": "MIT",
66
"engines": {
7-
"node": ">=20.0.0"
7+
"node": ">=24.15.0"
88
},
99
"main": "lib/index.js",
1010
"scripts": {

get-changed-files/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ inputs:
1717

1818

1919
runs:
20-
using: node20
20+
using: node24
2121
main: dist/index.js
2222

2323
outputs:

get-changed-files/dist/index.js

Lines changed: 62 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"use strict";
88

99
Object.defineProperty(exports, "__esModule", ({ value: true }));
10-
exports.execCommand = void 0;
10+
exports.execCommand = execCommand;
1111
const exec_1 = __nccwpck_require__(6932);
1212
async function execCommand(command) {
1313
const { stdout, stderr, exitCode } = await (0, exec_1.getExecOutput)(command);
@@ -16,7 +16,6 @@ async function execCommand(command) {
1616
}
1717
return stdout.trim();
1818
}
19-
exports.execCommand = execCommand;
2019

2120

2221
/***/ }),
@@ -46,13 +45,12 @@ exports.outputs = {
4645
"use strict";
4746

4847
Object.defineProperty(exports, "__esModule", ({ value: true }));
49-
exports.ensureDir = void 0;
48+
exports.ensureDir = ensureDir;
5049
const fs_1 = __nccwpck_require__(9896);
5150
const path_1 = __nccwpck_require__(6928);
5251
function ensureDir(path) {
5352
(0, fs_1.mkdirSync)((0, path_1.dirname)(path), { recursive: true });
5453
}
55-
exports.ensureDir = ensureDir;
5654

5755

5856
/***/ }),
@@ -107,15 +105,25 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
107105
}) : function(o, v) {
108106
o["default"] = v;
109107
});
110-
var __importStar = (this && this.__importStar) || function (mod) {
111-
if (mod && mod.__esModule) return mod;
112-
var result = {};
113-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
114-
__setModuleDefault(result, mod);
115-
return result;
116-
};
108+
var __importStar = (this && this.__importStar) || (function () {
109+
var ownKeys = function(o) {
110+
ownKeys = Object.getOwnPropertyNames || function (o) {
111+
var ar = [];
112+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
113+
return ar;
114+
};
115+
return ownKeys(o);
116+
};
117+
return function (mod) {
118+
if (mod && mod.__esModule) return mod;
119+
var result = {};
120+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
121+
__setModuleDefault(result, mod);
122+
return result;
123+
};
124+
})();
117125
Object.defineProperty(exports, "__esModule", ({ value: true }));
118-
exports.filterPaths = void 0;
126+
exports.filterPaths = filterPaths;
119127
const core = __importStar(__nccwpck_require__(1751));
120128
const minimatch_1 = __nccwpck_require__(4804);
121129
const NEGATION = '!';
@@ -131,7 +139,6 @@ function filterPaths(paths, patterns) {
131139
core.info(`${filteredPaths.length} filtered paths: ${JSON.stringify(filteredPaths, undefined, 2)}`);
132140
return filteredPaths;
133141
}
134-
exports.filterPaths = filterPaths;
135142
function filterPathsImpl(paths, patterns) {
136143
return paths.filter(path => {
137144
return patterns.reduce((prevResult, pattern) => {
@@ -166,15 +173,26 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
166173
}) : function(o, v) {
167174
o["default"] = v;
168175
});
169-
var __importStar = (this && this.__importStar) || function (mod) {
170-
if (mod && mod.__esModule) return mod;
171-
var result = {};
172-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
173-
__setModuleDefault(result, mod);
174-
return result;
175-
};
176+
var __importStar = (this && this.__importStar) || (function () {
177+
var ownKeys = function(o) {
178+
ownKeys = Object.getOwnPropertyNames || function (o) {
179+
var ar = [];
180+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
181+
return ar;
182+
};
183+
return ownKeys(o);
184+
};
185+
return function (mod) {
186+
if (mod && mod.__esModule) return mod;
187+
var result = {};
188+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
189+
__setModuleDefault(result, mod);
190+
return result;
191+
};
192+
})();
176193
Object.defineProperty(exports, "__esModule", ({ value: true }));
177-
exports.getChangedFiles = exports.getPrRevisionRange = void 0;
194+
exports.getPrRevisionRange = getPrRevisionRange;
195+
exports.getChangedFiles = getChangedFiles;
178196
const core = __importStar(__nccwpck_require__(1751));
179197
const github_1 = __nccwpck_require__(1011);
180198
const common_utils_1 = __nccwpck_require__(4514);
@@ -185,7 +203,6 @@ async function getPrRevisionRange() {
185203
return r;
186204
});
187205
}
188-
exports.getPrRevisionRange = getPrRevisionRange;
189206
async function getPrRevisionRangeImpl() {
190207
switch (github_1.context.eventName) {
191208
case 'pull_request':
@@ -213,7 +230,6 @@ async function getChangedFiles(token) {
213230
return files;
214231
});
215232
}
216-
exports.getChangedFiles = getChangedFiles;
217233
async function getChangedFilesImpl(token) {
218234
try {
219235
const octokit = (0, github_1.getOctokit)(token);
@@ -258,13 +274,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
258274
}) : function(o, v) {
259275
o["default"] = v;
260276
});
261-
var __importStar = (this && this.__importStar) || function (mod) {
262-
if (mod && mod.__esModule) return mod;
263-
var result = {};
264-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
265-
__setModuleDefault(result, mod);
266-
return result;
267-
};
277+
var __importStar = (this && this.__importStar) || (function () {
278+
var ownKeys = function(o) {
279+
ownKeys = Object.getOwnPropertyNames || function (o) {
280+
var ar = [];
281+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
282+
return ar;
283+
};
284+
return ownKeys(o);
285+
};
286+
return function (mod) {
287+
if (mod && mod.__esModule) return mod;
288+
var result = {};
289+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
290+
__setModuleDefault(result, mod);
291+
return result;
292+
};
293+
})();
268294
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
269295
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
270296
return new (P || (P = Promise))(function (resolve, reject) {
@@ -2517,7 +2543,7 @@ const Context = __importStar(__nccwpck_require__(9833));
25172543
const Utils = __importStar(__nccwpck_require__(8187));
25182544
// octokit + plugins
25192545
const core_1 = __nccwpck_require__(536);
2520-
const plugin_rest_endpoint_methods_1 = __nccwpck_require__(2287);
2546+
const plugin_rest_endpoint_methods_1 = __nccwpck_require__(7477);
25212547
const plugin_paginate_rest_1 = __nccwpck_require__(6602);
25222548
exports.context = new Context.Context();
25232549
const baseUrl = Utils.getApiBaseUrl();
@@ -36567,7 +36593,7 @@ paginateRest.VERSION = VERSION;
3656736593

3656836594
/***/ }),
3656936595

36570-
/***/ 2287:
36596+
/***/ 7477:
3657136597
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __nccwpck_require__) => {
3657236598

3657336599
"use strict";
@@ -36580,12 +36606,12 @@ __nccwpck_require__.d(__webpack_exports__, {
3658036606
restEndpointMethods: () => (/* binding */ restEndpointMethods)
3658136607
});
3658236608

36583-
;// CONCATENATED MODULE: ../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@17.0.0_@octokit+core@7.0.6/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/version.js
36609+
;// CONCATENATED MODULE: ../node_modules/.pnpm/@octokit+plugin-rest-endpoi_88f1cfdccbcd12f9bd89a662a3d08bce/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/version.js
3658436610
const VERSION = "17.0.0";
3658536611

3658636612
//# sourceMappingURL=version.js.map
3658736613

36588-
;// CONCATENATED MODULE: ../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@17.0.0_@octokit+core@7.0.6/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js
36614+
;// CONCATENATED MODULE: ../node_modules/.pnpm/@octokit+plugin-rest-endpoi_88f1cfdccbcd12f9bd89a662a3d08bce/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js
3658936615
const Endpoints = {
3659036616
actions: {
3659136617
addCustomLabelsToSelfHostedRunnerForOrg: [
@@ -38879,7 +38905,7 @@ var endpoints_default = Endpoints;
3887938905

3888038906
//# sourceMappingURL=endpoints.js.map
3888138907

38882-
;// CONCATENATED MODULE: ../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@17.0.0_@octokit+core@7.0.6/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js
38908+
;// CONCATENATED MODULE: ../node_modules/.pnpm/@octokit+plugin-rest-endpoi_88f1cfdccbcd12f9bd89a662a3d08bce/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js
3888338909

3888438910
const endpointMethodsMap = /* @__PURE__ */ new Map();
3888538911
for (const [scope, endpoints] of Object.entries(endpoints_default)) {
@@ -39005,7 +39031,7 @@ function decorate(octokit, scope, methodName, defaults, decorations) {
3900539031

3900639032
//# sourceMappingURL=endpoints-to-methods.js.map
3900739033

39008-
;// CONCATENATED MODULE: ../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@17.0.0_@octokit+core@7.0.6/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/index.js
39034+
;// CONCATENATED MODULE: ../node_modules/.pnpm/@octokit+plugin-rest-endpoi_88f1cfdccbcd12f9bd89a662a3d08bce/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/index.js
3900939035

3901039036

3901139037
function restEndpointMethods(octokit) {

get-changed-files/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"author": "Developer Express Inc.",
66
"license": "MIT",
77
"engines": {
8-
"node": ">=20.0.0"
8+
"node": ">=24.15.0"
99
},
1010
"main": "lib/main.js",
1111
"scripts": {

0 commit comments

Comments
 (0)