Skip to content

Commit d56e3f4

Browse files
crisbetodylhunn
authored andcommitted
feat(core): support TypeScript 4.5 (#44164)
Adds support for TypeScript 4.5. Includes the following changes: * Bumping the package versions. * Fixing a few calls to `createExportSpecifier` and `createImportSpecifier` that require an extra parameter. * Adding some missing methods to the TS compiler hosts. * Fixing an issue in the TS mocks for the ngcc tests where a regex was too agressive and was trying to match a path like `/node_modules/@typescript/lib-es5`. * Accounting for type-only import specifiers when reporting DI errors (see #43620). Fixes #43620. PR Close #44164
1 parent 0fcf18d commit d56e3f4

44 files changed

Lines changed: 419 additions & 108 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

aio/aio-builds-setup/dockerbuild/scripts-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@
4949
"supertest": "^4.0.2",
5050
"tslint": "^6.1.3",
5151
"tslint-jasmine-noSkipOrFocus": "^1.0.9",
52-
"typescript": "~4.4.2"
52+
"typescript": "~4.5.2"
5353
}
5454
}

aio/aio-builds-setup/dockerbuild/scripts-js/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2563,10 +2563,10 @@ typedarray-to-buffer@^3.1.5:
25632563
dependencies:
25642564
is-typedarray "^1.0.0"
25652565

2566-
typescript@~4.4.2:
2567-
version "4.4.2"
2568-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.2.tgz#6d618640d430e3569a1dfb44f7d7e600ced3ee86"
2569-
integrity sha512-gzP+t5W4hdy4c+68bfcv0t400HVJMMd2+H9B7gae1nQlBzCqvrXX+6GL/b3GAgyTH966pzrZ70/fRjwAtZksSQ==
2566+
typescript@~4.5.2:
2567+
version "4.5.2"
2568+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.2.tgz#8ac1fba9f52256fdb06fb89e4122fa6a346c2998"
2569+
integrity sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw==
25702570

25712571
undefsafe@^2.0.2:
25722572
version "2.0.2"

aio/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175
"ts-node": "^10.0.0",
176176
"tsec": "^0.1.5",
177177
"tslint": "~6.1.3",
178-
"typescript": "~4.4.3",
178+
"typescript": "~4.5.2",
179179
"uglify-js": "^3.13.3",
180180
"unist-util-filter": "^2.0.3",
181181
"unist-util-source": "^3.0.0",

aio/tools/examples/shared/boilerplate/cli-ajs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@
4646
"karma-jasmine-html-reporter": "~1.7.0",
4747
"protractor": "~7.0.0",
4848
"ts-node": "~10.1.0",
49-
"typescript": "~4.4.3"
49+
"typescript": "~4.5.2"
5050
}
5151
}

aio/tools/examples/shared/boilerplate/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@
4343
"karma-jasmine-html-reporter": "~1.7.0",
4444
"protractor": "~7.0.0",
4545
"ts-node": "~10.1.0",
46-
"typescript": "~4.4.3"
46+
"typescript": "~4.5.2"
4747
}
4848
}

aio/tools/examples/shared/boilerplate/elements/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@
4343
"karma-jasmine-html-reporter": "~1.7.0",
4444
"protractor": "~7.0.0",
4545
"ts-node": "~10.1.0",
46-
"typescript": "~4.4.3"
46+
"typescript": "~4.5.2"
4747
}
4848
}

aio/tools/examples/shared/boilerplate/i18n/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@
4646
"karma-jasmine-html-reporter": "~1.7.0",
4747
"protractor": "~7.0.0",
4848
"ts-node": "~10.1.0",
49-
"typescript": "~4.4.3"
49+
"typescript": "~4.5.2"
5050
}
5151
}

aio/tools/examples/shared/boilerplate/service-worker/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@
4343
"karma-jasmine-html-reporter": "~1.7.0",
4444
"protractor": "~7.0.0",
4545
"ts-node": "~10.1.0",
46-
"typescript": "~4.4.3"
46+
"typescript": "~4.5.2"
4747
}
4848
}

aio/tools/examples/shared/boilerplate/systemjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@
6363
"rollup-plugin-commonjs": "^9.2.1",
6464
"rollup-plugin-node-resolve": "^4.0.0",
6565
"rollup-plugin-terser": "^5.3.0",
66-
"typescript": "~4.4.3"
66+
"typescript": "~4.5.2"
6767
}
6868
}

aio/tools/examples/shared/boilerplate/universal/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@
5151
"karma-jasmine-html-reporter": "~1.7.0",
5252
"protractor": "~7.0.0",
5353
"ts-node": "~10.1.0",
54-
"typescript": "~4.4.3"
54+
"typescript": "~4.5.2"
5555
}
5656
}

0 commit comments

Comments
 (0)