Skip to content

Commit 1767168

Browse files
committed
feat: upgrade to node24
1 parent abdae27 commit 1767168

File tree

7 files changed

+35
-40
lines changed

7 files changed

+35
-40
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ inputs:
3939
description: Specify a static string to use instead of a random distinct ID.
4040

4141
runs:
42-
using: node20
42+
using: node24
4343
main: dist/index.mjs

esbuild.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { analyzeMetafile, build } from "esbuild";
1515
bundle: true,
1616
format: "esm",
1717
platform: "node",
18-
target: ["node20"],
18+
target: ["node24"],
1919
treeShaking: true,
2020
// Ensure require is properly defined: https://github.com/evanw/esbuild/issues/1921
2121
banner: {

mise.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[tools]
2-
node = "20.19.5"
2+
node = "24.11.1"
33
pnpm = "10.22.0"

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@
3535
"devDependencies": {
3636
"@eslint/js": "9.39.1",
3737
"@octokit/types": "16.0.0",
38-
"@opentf/std": "^0.13.0",
3938
"@total-typescript/ts-reset": "0.6.1",
40-
"@types/node": "20.19.25",
39+
"@types/node": "24.10.1",
4140
"@typescript-eslint/eslint-plugin": "8.46.4",
4241
"@typescript-eslint/parser": "8.46.4",
4342
"@vitest/coverage-v8": "4.0.8",

pnpm-lock.yaml

Lines changed: 21 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/test-utils/logging.mock.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as core from "@actions/core";
2-
import { symDiff } from "@opentf/std";
32
import { type MockInstance, vi, expect } from "vitest";
43

54
// Consuming test suites must first call:
@@ -72,9 +71,7 @@ function assertOnlyCalledInner(
7271
}
7372

7473
// Once Node 22 is LTS, this can be:
75-
// const diff = coreLogMockSet.symmetricDifference(new Set(coreLogMocks));
76-
77-
const notCalled = symDiff([[...coreLogMockSet], coreLogMocks]);
74+
const notCalled = coreLogMockSet.symmetricDifference(new Set(coreLogMocks));
7875
for (const logMock of notCalled) {
7976
expect(logMock).not.toHaveBeenCalled();
8077
}

tsconfig.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
{
22
"compilerOptions": {
3-
"target": "es2023",
3+
"target": "es2024",
44
"module": "nodenext",
55
"noEmit": true,
66

7+
"lib": [
8+
"es2024",
9+
"ESNext.Array",
10+
"ESNext.Collection",
11+
"ESNext.Iterator",
12+
"ESNext.Promise"
13+
],
14+
715
"outDir": "lib",
816
"rootDir": "src",
917

0 commit comments

Comments
 (0)