From 5172fec37e3726e2762285d60ff89aea19607175 Mon Sep 17 00:00:00 2001 From: Samuel Bodin <1637651+bodinsamuel@users.noreply.github.com> Date: Mon, 6 Jan 2025 18:23:32 +0100 Subject: [PATCH] chore: upgrade to typescript 5.7.2 --- package-lock.json | 69 +++++++------------------------- package.json | 3 +- packages/cli/package.json | 2 +- packages/connect-ui/package.json | 2 +- packages/database/package.json | 2 +- packages/jobs/package.json | 2 +- packages/persist/package.json | 2 +- packages/runner/package.json | 2 +- packages/server/package.json | 2 +- packages/shared/package.json | 2 +- packages/webapp/package.json | 2 +- packages/webhooks/package.json | 2 +- tsconfig.json | 21 +++++++++- 13 files changed, 44 insertions(+), 69 deletions(-) diff --git a/package-lock.json b/package-lock.json index cf84d39e3ab..d310701f929 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,6 @@ "scripts" ], "devDependencies": { - "@tsconfig/node18-strictest-esm": "1.0.1", "@types/node": "20.12.2", "@typescript-eslint/eslint-plugin": "7.18.0", "@typescript-eslint/parser": "7.18.0", @@ -32,7 +31,7 @@ "rimraf": "6.0.1", "testcontainers": "9.12.0", "tsx": "4.19.0", - "typescript": "5.3.3", + "typescript": "5.7.2", "vitest": "2.1.8" }, "engines": { @@ -12101,11 +12100,6 @@ "version": "1.0.3", "license": "MIT" }, - "node_modules/@tsconfig/node18-strictest-esm": { - "version": "1.0.1", - "dev": true, - "license": "MIT" - }, "node_modules/@types/archiver": { "version": "5.3.2", "dev": true, @@ -32401,17 +32395,6 @@ "version": "2.6.3", "license": "0BSD" }, - "node_modules/ts-json-schema-generator/node_modules/typescript": { - "version": "5.4.5", - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, "node_modules/ts-node": { "version": "10.9.1", "license": "MIT", @@ -32940,8 +32923,9 @@ } }, "node_modules/typescript": { - "version": "5.3.3", - "license": "Apache-2.0", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.2.tgz", + "integrity": "sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -35554,7 +35538,7 @@ "ts-json-schema-generator": "^2.3.0", "ts-node": "^10.9.1", "tsup": "^8.1.0", - "typescript": "^5.3.3", + "typescript": "5.7.2", "zod": "3.23.8" }, "bin": { @@ -35706,7 +35690,7 @@ "tailwind-merge": "2.5.4", "tailwindcss": "3.4.14", "tailwindcss-animate": "1.0.7", - "typescript": "5.5.3", + "typescript": "5.7.2", "vite": "5.4.6", "vite-plugin-svgr": "4.2.0", "zod": "3.23.8", @@ -35777,19 +35761,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "packages/connect-ui/node_modules/typescript": { - "version": "5.5.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.3.tgz", - "integrity": "sha512-/hreyEujaB0w76zKo6717l3L0o/qEUtRgdvUBvlkhoWeOVMjMuHNHk0BRBzikzuGDqNmPQbg5ifMEqsHLiIUcQ==", - "dev": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, "packages/connect-ui/node_modules/zustand": { "version": "5.0.0-rc.2", "resolved": "https://registry.npmjs.org/zustand/-/zustand-5.0.0-rc.2.tgz", @@ -35840,7 +35811,7 @@ "tarn": "3.0.2" }, "devDependencies": { - "typescript": "5.3.3", + "typescript": "5.7.2", "vitest": "2.1.8" } }, @@ -35908,7 +35879,7 @@ "@types/node": "^20.12.2", "nodemon": "3.1.7", "type-fest": "4.26.1", - "typescript": "5.3.3", + "typescript": "5.7.2", "vitest": "2.1.8" } }, @@ -36284,7 +36255,7 @@ "devDependencies": { "@types/node": "20.12.2", "node-fetch": "^3.3.2", - "typescript": "5.3.3", + "typescript": "5.7.2", "vitest": "2.1.8" } }, @@ -36344,7 +36315,7 @@ "@nangohq/types": "file:../types", "@types/connect-timeout": "0.0.39", "@types/node": "20.12.2", - "typescript": "5.3.3", + "typescript": "5.7.2", "vitest": "2.1.8" } }, @@ -36457,7 +36428,7 @@ "get-port": "7.1.0", "nodemon": "3.1.7", "type-fest": "4.26.1", - "typescript": "5.3.3", + "typescript": "5.7.2", "vitest": "2.1.8" }, "engines": { @@ -36599,7 +36570,7 @@ "json-schema": "0.4.0", "knex": "3.1.0", "type-fest": "4.26.1", - "typescript": "^5.3.3", + "typescript": "5.7.2", "vitest": "2.1.8" }, "engines": { @@ -39263,7 +39234,7 @@ "swr": "2.2.5", "tailwind-merge": "2.5.4", "tailwindcss": "3.4.14", - "typescript": "5.3.3", + "typescript": "5.7.2", "vaul": "0.9.1", "web-vitals": "2.1.4", "webpack": "5.94.0", @@ -40304,18 +40275,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "packages/webapp/node_modules/typescript": { - "version": "4.9.5", - "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=4.2.0" - } - }, "packages/webapp/node_modules/yaml": { "version": "1.10.2", "dev": true, @@ -40336,7 +40295,7 @@ }, "devDependencies": { "@nangohq/types": "file:../types", - "typescript": "5.3.3", + "typescript": "5.7.2", "vitest": "2.1.8" } }, diff --git a/package.json b/package.json index f69d7535129..712bb231f5b 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,6 @@ "dev:docker": "docker compose --file dev/docker-compose.dev.yaml up -d" }, "devDependencies": { - "@tsconfig/node18-strictest-esm": "1.0.1", "@types/node": "20.12.2", "@typescript-eslint/eslint-plugin": "7.18.0", "@typescript-eslint/parser": "7.18.0", @@ -74,7 +73,7 @@ "rimraf": "6.0.1", "testcontainers": "9.12.0", "tsx": "4.19.0", - "typescript": "5.3.3", + "typescript": "5.7.2", "vitest": "2.1.8" }, "lint-staged": { diff --git a/packages/cli/package.json b/packages/cli/package.json index f885c4b8cce..1b80c3e510c 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -48,7 +48,7 @@ "ts-json-schema-generator": "^2.3.0", "ts-node": "^10.9.1", "tsup": "^8.1.0", - "typescript": "^5.3.3", + "typescript": "5.7.2", "zod": "3.23.8" }, "devDependencies": { diff --git a/packages/connect-ui/package.json b/packages/connect-ui/package.json index 15e24324cae..b2f60552c72 100644 --- a/packages/connect-ui/package.json +++ b/packages/connect-ui/package.json @@ -37,7 +37,7 @@ "tailwind-merge": "2.5.4", "tailwindcss": "3.4.14", "tailwindcss-animate": "1.0.7", - "typescript": "5.5.3", + "typescript": "5.7.2", "vite": "5.4.6", "vite-plugin-svgr": "4.2.0", "zod": "3.23.8", diff --git a/packages/database/package.json b/packages/database/package.json index 29458a26b00..fe4cf43e04c 100644 --- a/packages/database/package.json +++ b/packages/database/package.json @@ -22,7 +22,7 @@ "tarn": "3.0.2" }, "devDependencies": { - "typescript": "5.3.3", + "typescript": "5.7.2", "vitest": "2.1.8" }, "files": [ diff --git a/packages/jobs/package.json b/packages/jobs/package.json index e5be1593632..5b56d661690 100644 --- a/packages/jobs/package.json +++ b/packages/jobs/package.json @@ -37,7 +37,7 @@ "devDependencies": { "@types/node": "^20.12.2", "nodemon": "3.1.7", - "typescript": "5.3.3", + "typescript": "5.7.2", "type-fest": "4.26.1", "vitest": "2.1.8" } diff --git a/packages/persist/package.json b/packages/persist/package.json index 6971b140ed6..fa2caa585f4 100644 --- a/packages/persist/package.json +++ b/packages/persist/package.json @@ -31,7 +31,7 @@ "devDependencies": { "@types/node": "20.12.2", "node-fetch": "^3.3.2", - "typescript": "5.3.3", + "typescript": "5.7.2", "vitest": "2.1.8" } } diff --git a/packages/runner/package.json b/packages/runner/package.json index bd1f2d8f646..748dbcc712a 100644 --- a/packages/runner/package.json +++ b/packages/runner/package.json @@ -36,7 +36,7 @@ "@nangohq/types": "file:../types", "@types/connect-timeout": "0.0.39", "@types/node": "20.12.2", - "typescript": "5.3.3", + "typescript": "5.7.2", "vitest": "2.1.8" } } diff --git a/packages/server/package.json b/packages/server/package.json index da0a56d7970..de0a50184a6 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -84,7 +84,7 @@ "get-port": "7.1.0", "nodemon": "3.1.7", "type-fest": "4.26.1", - "typescript": "5.3.3", + "typescript": "5.7.2", "vitest": "2.1.8" } } diff --git a/packages/shared/package.json b/packages/shared/package.json index baca3ab1b7e..640eba16544 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -68,7 +68,7 @@ "json-schema": "0.4.0", "knex": "3.1.0", "type-fest": "4.26.1", - "typescript": "^5.3.3", + "typescript": "5.7.2", "vitest": "2.1.8" }, "files": [ diff --git a/packages/webapp/package.json b/packages/webapp/package.json index 0efe7ab4ba8..901a1b4e718 100644 --- a/packages/webapp/package.json +++ b/packages/webapp/package.json @@ -85,7 +85,7 @@ "swr": "2.2.5", "tailwind-merge": "2.5.4", "tailwindcss": "3.4.14", - "typescript": "5.3.3", + "typescript": "5.7.2", "vaul": "0.9.1", "web-vitals": "2.1.4", "webpack": "5.94.0", diff --git a/packages/webhooks/package.json b/packages/webhooks/package.json index a0c390bd425..be71f5ae47e 100644 --- a/packages/webhooks/package.json +++ b/packages/webhooks/package.json @@ -23,7 +23,7 @@ }, "devDependencies": { "@nangohq/types": "file:../types", - "typescript": "5.3.3", + "typescript": "5.7.2", "vitest": "2.1.8" }, "files": [ diff --git a/tsconfig.json b/tsconfig.json index e99a4d94f12..2b9fe4f0e59 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,11 +1,28 @@ { - "extends": "@tsconfig/node18-strictest-esm/tsconfig.json", "compilerOptions": { + "lib": ["es2023"], + "module": "ES2022", + "target": "es2022", "ignoreDeprecations": "5.0", "declaration": true, "sourceMap": true, "composite": true, "checkJs": false, - "importsNotUsedAsValues": "remove" + "importsNotUsedAsValues": "remove", + "strict": true, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "moduleResolution": "node", + "allowUnusedLabels": false, + "allowUnreachableCode": false, + "exactOptionalPropertyTypes": true, + "noFallthroughCasesInSwitch": true, + "noImplicitOverride": true, + "noImplicitReturns": true, + "noPropertyAccessFromIndexSignature": true, + "noUncheckedIndexedAccess": true, + "noUnusedLocals": true, + "noUnusedParameters": true } }