Skip to content

Commit fa04894

Browse files
crisbetothePunderWoman
authored andcommitted
feat(core): drop support for TypeScript 4.0 and 4.1 (angular#41158)
Drops support for TypeScript 4.0 and 4.1 across the repo. The typings check for 4.1 was kept in order to ensure that we don't break g3. PR Close angular#41158
1 parent 59ef409 commit fa04894

File tree

7 files changed

+3
-132
lines changed

7 files changed

+3
-132
lines changed

integration/BUILD.bazel

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,6 @@ INTEGRATION_TESTS = {
8585
"service-worker-schema": {},
8686
"side-effects": {"tags": ["no-ivy-aot"]},
8787
"terser": {},
88-
"typings_test_ts40": {
89-
# Special case for `typings_test_ts40` test as we want to pin
90-
# `typescript` at version 4.0.x for that test and not link to the
91-
# root @npm//typescript package.
92-
"pinned_npm_packages": ["typescript"],
93-
},
9488
"typings_test_ts41": {
9589
# Special case for `typings_test_ts41` test as we want to pin
9690
# `typescript` at version 4.1.x for that test and not link to the

integration/typings_test_ts40/include-all.ts

Lines changed: 0 additions & 69 deletions
This file was deleted.

integration/typings_test_ts40/package.json

Lines changed: 0 additions & 28 deletions
This file was deleted.

integration/typings_test_ts40/tsconfig.json

Lines changed: 0 additions & 26 deletions
This file was deleted.

packages/bazel/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"@angular/compiler-cli": "0.0.0-PLACEHOLDER",
2929
"@bazel/typescript": ">=1.0.0",
3030
"terser": "^4.3.1",
31-
"typescript": ">=4.0 <4.3",
31+
"typescript": ">=4.2.3 <4.3",
3232
"rollup": ">=1.20.0",
3333
"rollup-plugin-commonjs": ">=9.0.0",
3434
"rollup-plugin-node-resolve": ">=4.2.0",

packages/compiler-cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
},
3030
"peerDependencies": {
3131
"@angular/compiler": "0.0.0-PLACEHOLDER",
32-
"typescript": ">=4.0 <4.3"
32+
"typescript": ">=4.2.3 <4.3"
3333
},
3434
"engines": {
3535
"node": ">=10.0"

packages/compiler-cli/src/typescript_support.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {compareVersions} from './diagnostics/typescript_version';
1515
* Note: this check is disabled in g3, search for
1616
* `angularCompilerOptions.disableTypeScriptVersionCheck` config param value in g3.
1717
*/
18-
const MIN_TS_VERSION = '4.0.0';
18+
const MIN_TS_VERSION = '4.2.3';
1919

2020
/**
2121
* Supremum of supported TypeScript versions

0 commit comments

Comments
 (0)