Skip to content

Commit 31429ea

Browse files
crisbetoPawel Kozlowski
authored andcommitted
feat(core): support TypeScript 4.8 (#47038)
Adds support for TypeScript 4.8 and resolves some issues that came up as a result of the update. Most of the issues came from some changes in TypeScript where the `decorators` and `modifiers` properties were removed from most node types, and were combined into a single `modifiers` array. Since we need to continue supporting TS 4.6 and 4.7 until v15, I ended up creating a new `ngtsc/ts_compatibility` directory to make it easier to reuse the new backwards-compatible code. PR Close #47038
1 parent 75df404 commit 31429ea

File tree

97 files changed

+30177
-23782
lines changed

Some content is hidden

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

97 files changed

+30177
-23782
lines changed

.bazelignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ integration/cli-hello-world-ivy-compat/node_modules
1818
integration/cli-hello-world-ivy-i18n/node_modules
1919
integration/cli-hello-world-ivy-minimal/node_modules
2020
integration/cli-hello-world-lazy/node_modules
21+
integration/cli-hello-world-ts-47/node_modules
2122
integration/dynamic-compiler/node_modules
2223
integration/hello_world__closure/node_modules
2324
integration/hello_world__systemjs_umd/node_modules
@@ -47,6 +48,7 @@ integration/cli-hello-world-ivy-compat/.yarn_local_cache
4748
integration/cli-hello-world-ivy-i18n/.yarn_local_cache
4849
integration/cli-hello-world-ivy-minimal/.yarn_local_cache
4950
integration/cli-hello-world-lazy/.yarn_local_cache
51+
integration/cli-hello-world-ts-47/.yarn_local_cache
5052
integration/dynamic-compiler/.yarn_local_cache
5153
integration/hello_world__closure/.yarn_local_cache
5254
integration/hello_world__systemjs_umd/.yarn_local_cache

integration/animations/BUILD.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ load("//integration:index.bzl", "ng_integration_test")
22

33
ng_integration_test(
44
name = "test",
5+
# Pinned temporarily until the CLI is updated to support TS 4.8.
6+
pinned_npm_packages = ["typescript"],
57
setup_chromium = True,
68
track_payload_size = "animations",
79
)

integration/animations/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@
4242
"protractor": "file:../../node_modules/protractor",
4343
"ts-node": "8.3.0",
4444
"tslint": "5.18.0",
45-
"typescript": "file:../../node_modules/typescript"
45+
"typescript": "~4.7.2"
4646
}
4747
}

0 commit comments

Comments
 (0)