From 32a513d6bec51d9f0090b128b3f57ed2db46a2a9 Mon Sep 17 00:00:00 2001 From: escapedcat Date: Fri, 20 Oct 2023 14:16:00 +0200 Subject: [PATCH] chore!: minimum TS version v5 BREAKING CHANGE: drop TS v4 support --- @commitlint/cli/package.json | 2 +- @commitlint/load/package.json | 4 ++-- yarn.lock | 22 ++++++++++++---------- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/@commitlint/cli/package.json b/@commitlint/cli/package.json index b163a73e57..9758737b49 100644 --- a/@commitlint/cli/package.json +++ b/@commitlint/cli/package.json @@ -41,7 +41,7 @@ "@commitlint/utils": "^17.8.1", "@types/lodash.isfunction": "^3.0.8", "@types/lodash.merge": "^4.6.8", - "@types/node": "^14.0.0", + "@types/node": "^20.5.1", "@types/yargs": "^17.0.29", "fs-extra": "^11.0.0", "lodash.merge": "^4.6.2" diff --git a/@commitlint/load/package.json b/@commitlint/load/package.json index 3589cdd002..d587631628 100644 --- a/@commitlint/load/package.json +++ b/@commitlint/load/package.json @@ -48,7 +48,7 @@ "@commitlint/execute-rule": "^17.8.1", "@commitlint/resolve-extends": "^17.8.1", "@commitlint/types": "^17.8.1", - "@types/node": "20.5.1", + "@types/node": "^20.5.1", "chalk": "^4.1.0", "cosmiconfig": "^8.0.0", "cosmiconfig-typescript-loader": "^4.0.0", @@ -57,7 +57,7 @@ "lodash.uniq": "^4.5.0", "resolve-from": "^5.0.0", "ts-node": "^10.8.1", - "typescript": "^4.6.4 || ^5.2.2" + "typescript": "^5.2.2" }, "gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc" } diff --git a/yarn.lock b/yarn.lock index a099f69f1e..03a3286f30 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2051,15 +2051,12 @@ resolved "https://registry.npmjs.org/@types/node/-/node-20.8.2.tgz#d76fb80d87d0d8abfe334fc6d292e83e5524efc4" integrity sha512-Vvycsc9FQdwhxE3y3DzeIxuEJbWGDsnrxvMADzTDF/lcdR9/K+AQIeAghTQsHtotg/q0j3WEOYS/jQgSdWue3w== -"@types/node@20.5.1": - version "20.5.1" - resolved "https://registry.npmjs.org/@types/node/-/node-20.5.1.tgz#178d58ee7e4834152b0e8b4d30cbfab578b9bb30" - integrity sha512-4tT2UrL5LBqDwoed9wZ6N3umC4Yhz3W3FloMmiiG4JwmUJWpie0c7lcnUNd4gtMKuDEO4wRVS8B6Xa0uMRsMKg== - -"@types/node@^14.0.0": - version "14.18.63" - resolved "https://registry.npmjs.org/@types/node/-/node-14.18.63.tgz#1788fa8da838dbb5f9ea994b834278205db6ca2b" - integrity sha512-fAtCfv4jJg+ExtXhvCkCqUKZ+4ok/JQk01qDKhL5BDDoS3AxKXhV5/MAVUZyQnSEd2GT92fkgZl0pz0Q0AzcIQ== +"@types/node@^20.5.1": + version "20.8.7" + resolved "https://registry.npmjs.org/@types/node/-/node-20.8.7.tgz#ad23827850843de973096edfc5abc9e922492a25" + integrity sha512-21TKHHh3eUHIi2MloeptJWALuCu5H7HQTdTrWIFReA8ad+aggoX+lRes3ex7/FtpC+sVUpFMQ+QTfYr74mruiQ== + dependencies: + undici-types "~5.25.1" "@types/normalize-package-data@^2.4.0", "@types/normalize-package-data@^2.4.1": version "2.4.2" @@ -8581,7 +8578,7 @@ typedarray@^0.0.6: resolved "https://registry.npmjs.org/typescript/-/typescript-4.9.4.tgz#a2a3d2756c079abda241d75f149df9d561091e78" integrity sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg== -"typescript@^4.6.4 || ^5.2.2", typescript@^5.2.2: +typescript@^5.2.2: version "5.2.2" resolved "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz#5ebb5e5a5b75f085f22bc3f8460fba308310fa78" integrity sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w== @@ -8601,6 +8598,11 @@ unbox-primitive@^1.0.2: has-symbols "^1.0.3" which-boxed-primitive "^1.0.2" +undici-types@~5.25.1: + version "5.25.3" + resolved "https://registry.npmjs.org/undici-types/-/undici-types-5.25.3.tgz#e044115914c85f0bcbb229f346ab739f064998c3" + integrity sha512-Ga1jfYwRn7+cP9v8auvEXN1rX3sWqlayd4HP7OKk4mZWylEmu3KzXDUGrQUN6Ol7qo1gPvB2e5gX6udnyEPgdA== + unique-filename@^2.0.0: version "2.0.1" resolved "https://registry.npmjs.org/unique-filename/-/unique-filename-2.0.1.tgz#e785f8675a9a7589e0ac77e0b5c34d2eaeac6da2"