Skip to content

Commit

Permalink
feat(misc): add support for typescript 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
leosvelperez committed Mar 15, 2024
1 parent cf7f165 commit da3ff5e
Show file tree
Hide file tree
Showing 12 changed files with 487 additions and 329 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@
"tsconfig-paths-webpack-plugin": "4.0.0",
"typedoc": "0.25.12",
"typedoc-plugin-markdown": "3.17.1",
"typescript": "~5.3.2",
"typescript": "~5.4.2",
"unist-builder": "^4.0.0",
"unzipper": "^0.10.11",
"url-loader": "^4.1.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/devkit/src/utils/versions.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const typescriptVersion = '~5.3.2';
export const typescriptVersion = '~5.4.2';
2 changes: 1 addition & 1 deletion packages/eslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@nx/js": "file:../js",
"eslint": "^8.0.0",
"tslib": "^2.3.0",
"typescript": "~5.3.2"
"typescript": "~5.4.2"
},
"peerDependenciesMeta": {
"js-yaml": {
Expand Down
13 changes: 13 additions & 0 deletions packages/js/migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,19 @@
"alwaysAddToPackageJson": false
}
}
},
"18.2.0": {
"version": "18.2.0-beta.0",
"x-prompt": "Do you want to update to TypeScript v5.4?",
"requires": {
"typescript": ">=5.3.0 <5.4.0"
},
"packages": {
"typescript": {
"version": "~5.4.2",
"alwaysAddToPackageJson": false
}
}
}
}
}
2 changes: 1 addition & 1 deletion packages/js/src/utils/versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const typesNodeVersion = '18.16.9';
export const verdaccioVersion = '^5.0.4';

// Typescript
export const typescriptVersion = '~5.3.2';
export const typescriptVersion = '~5.4.2';
/**
* The minimum version is currently determined from the lowest version
* that's supported by the lowest Angular supported version, e.g.
Expand Down
5 changes: 1 addition & 4 deletions packages/nx/src/command-line/release/utils/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -403,10 +403,7 @@ export function parseGitCommit(commit: RawGitCommit): GitCommit | null {
const affectedFiles = Array.from(
commit.body.matchAll(ChangedFileRegex)
).reduce(
(
prev,
[fullLine, changeType, file1, file2]: [string, string, string, string?]
) =>
(prev, [fullLine, changeType, file1, file2]: RegExpExecArray) =>
// file2 only exists for some change types, such as renames
file2 ? [...prev, file1, file2] : [...prev, file1],
[] as string[]
Expand Down
2 changes: 1 addition & 1 deletion packages/nx/src/plugins/js/versions.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const typescriptVersion = '~5.3.2';
export const typescriptVersion = '~5.4.2';
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ exports[`@nx/storybook:configuration for Storybook v7 dependencies should add an
"storybook": "^7.5.3",
"ts-jest": "^29.1.0",
"ts-node": "10.9.1",
"typescript": "~5.3.2",
"typescript": "~5.4.2",
},
"name": "@proj/source",
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ exports[`lib should add vue, vite and vitest to package.json 1`] = `
"eslint-plugin-vue": "^9.16.1",
"jsdom": "~22.1.0",
"prettier": "^2.6.2",
"typescript": "~5.3.2",
"typescript": "~5.4.2",
"vite": "~5.0.0",
"vitest": "^1.3.1",
"vue-tsc": "^1.8.8",
Expand Down
13 changes: 13 additions & 0 deletions packages/workspace/migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,19 @@
"version": "~5.3.2"
}
}
},
"18.2.0": {
"version": "18.2.0-beta.0",
"x-prompt": "Do you want to update to TypeScript v5.4?",
"requires": {
"typescript": ">=5.3.0 <5.4.0"
},
"packages": {
"typescript": {
"version": "~5.4.2",
"alwaysAddToPackageJson": false
}
}
}
}
}
2 changes: 1 addition & 1 deletion packages/workspace/src/utils/versions.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const nxVersion = require('../../package.json').version;

export const typescriptVersion = '~5.3.2';
export const typescriptVersion = '~5.4.2';

// TODO: remove when preset generation is reworked and
// deps are not installed from workspace
Expand Down
769 changes: 452 additions & 317 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

0 comments on commit da3ff5e

Please sign in to comment.