Skip to content

Commit af16290

Browse files
authored
Merge pull request #186 from dhensby/pulls/node24
feat!: upgrade to use node24
2 parents 89b11a0 + 28f08b4 commit af16290

File tree

11 files changed

+26
-26
lines changed

11 files changed

+26
-26
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ outputs:
3232
instance-name:
3333
description: 'The instance name for the SQL Server.'
3434
runs:
35-
using: 'node20'
35+
using: 'node24'
3636
main: 'lib/main/index.js'

lib/main/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@
3333
"@semantic-release/github": "^10.3.5",
3434
"@semantic-release/npm": "^12.0.2",
3535
"@semantic-release/release-notes-generator": "^14.1.0",
36-
"@tsconfig/node20": "^20.1.6",
36+
"@tsconfig/node24": "^24.0.1",
3737
"@types/chai": "^4.3.5",
3838
"@types/js-yaml": "^4.0.9",
3939
"@types/mocha": "^10.0.10",
40-
"@types/node": "^20.19.18",
40+
"@types/node": "^24.6.0",
4141
"@types/sinon": "^17.0.4",
4242
"@types/sinon-chai": "^3.2.9",
4343
"@typescript-eslint/eslint-plugin": "^8.45.0",

src/crypto.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { createHash } from 'crypto';
2-
import { createReadStream } from 'fs';
1+
import { createHash } from 'node:crypto';
2+
import { createReadStream } from 'node:fs';
33

44
/**
55
* Generate a sha256 hash of a file from its path.

src/install.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { basename, dirname, join as joinPaths } from 'path';
2-
import { readFile } from 'fs/promises';
1+
import { basename, dirname, join as joinPaths } from 'node:path';
2+
import { readFile } from 'node:fs/promises';
33
import * as core from '@actions/core';
44
import * as exec from '@actions/exec';
55
import * as tc from '@actions/tool-cache';

src/installers/installer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { basename, dirname, extname, join as joinPaths } from 'path';
1+
import { basename, dirname, extname, join as joinPaths } from 'node:path';
22
import * as core from '@actions/core';
33
import * as tc from '@actions/tool-cache';
44
import * as io from '@actions/io';

src/installers/msi-installer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { join as joinPaths } from 'path';
1+
import { join as joinPaths } from 'node:path';
22
import * as core from '@actions/core';
33
import * as tc from '@actions/tool-cache';
44
import * as exec from '@actions/exec';

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as core from '@actions/core';
33
import * as tc from '@actions/tool-cache';
44
import * as io from '@actions/io';
55
import * as http from '@actions/http-client';
6-
import { basename, extname, dirname, join as joinPaths } from 'path';
6+
import { basename, extname, dirname, join as joinPaths } from 'node:path';
77
import { VersionConfig } from './versions';
88
import { generateFileHash } from './crypto';
99
import * as glob from '@actions/glob';

test/install.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import fs from 'fs/promises';
1+
import fs from 'node:fs/promises';
22
import * as core from '@actions/core';
33
import * as tc from '@actions/tool-cache';
44
import * as exec from '@actions/exec';

0 commit comments

Comments
 (0)