diff --git a/.nvmrc b/.nvmrc index 1d9b783..cabf43b 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -22.12.0 +24 \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 4f27f39..137c155 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "devDependencies": { "@digabi/eslint-config": "^3.3.0", "@digabi/typescript-config": "^1.0.2", - "@types/node": "^22.13.14", + "@types/node": "^24.10.9", "@typescript-eslint/eslint-plugin": "^8.38.0", "@typescript-eslint/parser": "^8.38.0", "eslint": "^8.45.0", @@ -4379,12 +4379,12 @@ } }, "node_modules/@types/node": { - "version": "22.19.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.3.tgz", - "integrity": "sha512-1N9SBnWYOJTrNZCdh/yJE+t910Y128BoyY+zBLWhL3r0TYzlTmFdXrPwHL9DyFZmlEXNQQolTZh3KHV31QDhyA==", + "version": "24.10.9", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.9.tgz", + "integrity": "sha512-ne4A0IpG3+2ETuREInjPNhUGis1SFjv1d5asp8MzEAGtOZeTeHVDOYqOgqfhvseqg/iXty2hjBf1zAOb7RNiNw==", "license": "MIT", "dependencies": { - "undici-types": "~6.21.0" + "undici-types": "~7.16.0" } }, "node_modules/@types/normalize-package-data": { @@ -17991,9 +17991,9 @@ } }, "node_modules/undici-types": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", - "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "version": "7.16.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", + "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", "license": "MIT" }, "node_modules/unique-filename": { @@ -19092,7 +19092,7 @@ }, "packages/typescript-config": { "name": "@digabi/typescript-config", - "version": "1.1.0", + "version": "2.0.0-upgrade-node-24.0", "license": "EUPL-1.2" }, "packages/validation": { diff --git a/package.json b/package.json index c0f08a3..5f52ea4 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "devDependencies": { "@digabi/eslint-config": "^3.3.0", "@digabi/typescript-config": "^1.0.2", - "@types/node": "^22.13.14", + "@types/node": "^24.10.9", "@typescript-eslint/eslint-plugin": "^8.38.0", "@typescript-eslint/parser": "^8.38.0", "eslint": "^8.45.0", diff --git a/packages/crypto-utils/src/index.ts b/packages/crypto-utils/src/index.ts index 1888da8..b7eae89 100644 --- a/packages/crypto-utils/src/index.ts +++ b/packages/crypto-utils/src/index.ts @@ -17,12 +17,12 @@ function isBuffer(bufferOrStream: BufferOrStream): bufferOrStream is Buffer { return Buffer.isBuffer(bufferOrStream) } -export function createAES256EncryptStreamWithIv(key: BufferOrString, iv: BufferOrString): crypto.Cipher { +export function createAES256EncryptStreamWithIv(key: BufferOrString, iv: BufferOrString): crypto.Cipheriv { return crypto.createCipheriv(symmetricAlgo, asBuffer(key), asBuffer(iv)) } // crypto.Cipher -> String -export function createAES256DecryptStreamWithIv(key: BufferOrString, iv: BufferOrString): crypto.Decipher { +export function createAES256DecryptStreamWithIv(key: BufferOrString, iv: BufferOrString): crypto.Decipheriv { return crypto.createDecipheriv(symmetricAlgo, asBuffer(key), asBuffer(iv)) } diff --git a/packages/typescript-config/package.json b/packages/typescript-config/package.json index 2ca484b..597101e 100644 --- a/packages/typescript-config/package.json +++ b/packages/typescript-config/package.json @@ -1,6 +1,6 @@ { "name": "@digabi/typescript-config", - "version": "1.1.0", + "version": "2.0.0-upgrade-node-24.0", "author": "Matriculation Examination Board, Finland", "license": "EUPL-1.2", "repository": { diff --git a/packages/typescript-config/root/tsconfig.json b/packages/typescript-config/root/tsconfig.json index d6b18a2..0731c6d 100644 --- a/packages/typescript-config/root/tsconfig.json +++ b/packages/typescript-config/root/tsconfig.json @@ -1,10 +1,10 @@ { "extends": "../common-tsconfig.json", "compilerOptions": { - "lib": ["es2021"], + "lib": ["es2022"], "module": "commonjs", "noEmit": false, "resolveJsonModule": true, "target": "es2022" } -} \ No newline at end of file +}