Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update TypeScript to 5.7.3 #7549

Merged
merged 2 commits into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@dprint/formatter": "^0.4.1",
"@dprint/json": "^0.19.4",
"@dprint/markdown": "^0.17.8",
"@dprint/typescript": "^0.93.0",
"@dprint/typescript": "^0.93.3",
"@microsoft/api-extractor": "^7.48.0",
"@monorepo-utils/workspaces-to-typescript-project-references": "^2.10.4",
"@tsconfig/node18": "^18.2.4",
Expand All @@ -54,7 +54,7 @@
"@zwave-js/core": "workspace:*",
"@zwave-js/eslint-plugin": "workspace:*",
"@zwave-js/flash": "workspace:*",
"@zwave-js/fmt": "^1.0.2",
"@zwave-js/fmt": "^1.0.3",
"@zwave-js/host": "workspace:*",
"@zwave-js/maintenance": "workspace:*",
"@zwave-js/nvmedit": "workspace:*",
Expand All @@ -68,7 +68,7 @@
"commitizen": "^4.3.1",
"cz-conventional-changelog": "^3.3.0",
"del-cli": "^6.0.0",
"dprint": "^0.47.5",
"dprint": "^0.48.0",
"eslint": "^9.12.0",
"eslint-plugin-unicorn": "^56.0.1",
"eslint-plugin-unused-imports": "patch:eslint-plugin-unused-imports@npm%3A4.1.4#~/.yarn/patches/eslint-plugin-unused-imports-npm-4.1.4-a7d7c7cdf3.patch",
Expand All @@ -81,11 +81,11 @@
"reflect-metadata": "^0.2.2",
"semver": "^7.6.3",
"source-map-support": "^0.5.21",
"ts-morph": "^24.0.0",
"ts-patch": "3.2.1",
"ts-morph": "^25.0.0",
"ts-patch": "3.3.0",
"tsx": "^4.19.2",
"turbo": "2.3.3",
"typescript": "5.6.3",
"typescript": "5.7.3",
"typescript-eslint": "^8.19.0",
"vitest": "^2.1.4",
"xml2js": "^0.6.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/cc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"del-cli": "^6.0.0",
"es-main": "^1.3.0",
"tsx": "^4.19.2",
"typescript": "5.6.3",
"typescript": "5.7.3",
"vitest": "^2.1.4"
}
}
2 changes: 1 addition & 1 deletion packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"sinon": "^19.0.2",
"ts-pegjs": "patch:ts-pegjs@npm%3A4.2.1#~/.yarn/patches/ts-pegjs-npm-4.2.1-0f567a1059.patch",
"tsx": "^4.19.2",
"typescript": "5.6.3",
"typescript": "5.7.3",
"vitest": "^2.1.4",
"xml2js": "^0.6.2",
"yargs": "^17.7.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
"del-cli": "^6.0.0",
"sinon": "^19.0.2",
"tsx": "^4.19.2",
"typescript": "5.6.3",
"typescript": "5.7.3",
"vitest": "^2.1.4"
}
}
2 changes: 1 addition & 1 deletion packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@
"eslint": "^9.12.0",
"eslint-compat-utils": "^0.6.4",
"eslint-plugin-jsonc": "^2.16.0",
"typescript": "5.6.3"
"typescript": "5.7.3"
}
}
2 changes: 1 addition & 1 deletion packages/flash/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@
"@types/node": "^18.19.63",
"@types/yargs": "^17.0.33",
"del-cli": "^6.0.0",
"typescript": "5.6.3"
"typescript": "5.7.3"
}
}
2 changes: 1 addition & 1 deletion packages/host/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@
"@microsoft/api-extractor": "^7.48.0",
"@types/node": "^18.19.63",
"del-cli": "^6.0.0",
"typescript": "5.6.3"
"typescript": "5.7.3"
}
}
10 changes: 5 additions & 5 deletions packages/maintenance/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,26 +42,26 @@
"@dprint/formatter": "^0.4.1",
"@dprint/json": "^0.19.4",
"@dprint/markdown": "^0.17.8",
"@dprint/typescript": "^0.93.0",
"@dprint/typescript": "^0.93.3",
"@types/globrex": "^0.1.4",
"@types/node": "^18.19.63",
"@types/yargs": "^17.0.33",
"@zwave-js/core": "workspace:*",
"@zwave-js/fmt": "^1.0.2",
"@zwave-js/fmt": "^1.0.3",
"@zwave-js/shared": "workspace:*",
"ansi-colors": "^4.1.3",
"cli-highlight": "^2.1.11",
"del-cli": "^6.0.0",
"dprint": "^0.47.5",
"dprint": "^0.48.0",
"es-main": "^1.3.0",
"execa": "^5.1.1",
"globrex": "^0.1.2",
"json5": "^2.2.3",
"piscina": "^4.7.0",
"reflect-metadata": "^0.2.2",
"ts-morph": "^24.0.0",
"ts-morph": "^25.0.0",
"tsx": "^4.19.2",
"typescript": "5.6.3",
"typescript": "5.7.3",
"yargs": "^17.7.2"
}
}
2 changes: 1 addition & 1 deletion packages/nvmedit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"@types/yargs": "^17.0.33",
"del-cli": "^6.0.0",
"tsx": "^4.19.2",
"typescript": "5.6.3",
"typescript": "5.7.3",
"vitest": "^2.1.4"
}
}
2 changes: 1 addition & 1 deletion packages/serial/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"del-cli": "^6.0.0",
"sinon": "^19.0.2",
"tsx": "^4.19.2",
"typescript": "5.6.3",
"typescript": "5.7.3",
"vitest": "^2.1.4"
}
}
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"del-cli": "^6.0.0",
"sinon": "^19.0.2",
"tsx": "^4.19.2",
"typescript": "5.6.3",
"typescript": "5.7.3",
"vitest": "^2.1.4"
}
}
2 changes: 1 addition & 1 deletion packages/testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"del-cli": "^6.0.0",
"triple-beam": "*",
"tsx": "^4.19.2",
"typescript": "5.6.3",
"typescript": "5.7.3",
"winston-transport": "^4.8.0"
}
}
4 changes: 2 additions & 2 deletions packages/transformers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
"cpy-cli": "^5.0.0",
"del-cli": "^6.0.0",
"execa": "^5.1.1",
"ts-morph": "^24.0.0",
"ts-morph": "^25.0.0",
"tsutils": "^3.21.0",
"typescript": "5.6.3",
"typescript": "5.7.3",
"vitest": "^2.1.4"
}
}
4 changes: 2 additions & 2 deletions packages/transformers/src/validateArgs/transformDecorators.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path from "node:path";
import { type PluginConfig } from "ts-patch";
import ts, { type TransformerExtras } from "typescript";
import { type PluginConfig, type TransformerExtras } from "ts-patch";
import ts from "typescript";

/**
* Transformer to replace @validateArgs() calls with the version
Expand Down
16 changes: 9 additions & 7 deletions packages/transformers/src/validateArgs/transformProgram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -582,17 +582,19 @@ Unable to find import specifier for class ${param.typeName}.`,
& tsm.ModifierFlags.Ambient);

if (isAmbient) {
if (isInterface) {
if (symbolName === "Date") {
return `v.date(${ctx})`;
}
if (symbolName === "Uint8Array") {
return `v.uint8array(${ctx})`;
}
if (isInterface && symbolName === "Date") {
return `v.date(${ctx})`;
}

const structure = variableDeclaration?.getStructure();

if (
structure?.name === "Uint8Array"
&& structure.type === "Uint8ArrayConstructor"
) {
return `v.uint8array(${ctx})`;
}

if (
structure?.name === "Map"
&& structure.type === "MapConstructor"
Expand Down
2 changes: 1 addition & 1 deletion packages/zwave-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
"mockdate": "^3.0.5",
"sinon": "^19.0.2",
"tsx": "^4.19.2",
"typescript": "5.6.3",
"typescript": "5.7.3",
"vitest": "^2.1.4"
}
}
Loading
Loading