You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds support for TypeScript 4.4. High-level overview of the changes made in this PR:
* Bumps the various packages to `[email protected]` and `[email protected]`.
* The `useUnknownInCatchVariables` compiler option has been disabled so that we don't have to cast error objects explicitly everywhere.
* TS now passes in a third argument to the `__spreadArray` call inside child class constructors. I had to update a couple of places in the runtime and ngcc to be able to pick up the calls correctly.
* TS now generates code like `(0, foo)(arg1, arg2)` for imported function calls. I had to update a few of our tests to account for it. See microsoft/TypeScript#44624.
* Our `ngtsc` test setup calls the private `matchFiles` function from TS. I had to update our usage, because a new parameter was added.
* There was one place where we were setting the readonly `hasTrailingComma` property. I updated the usage to pass in the value when constructing the object instead.
* Some browser types were updated which meant that I had to resolve some trivial type errors.
* The downlevel decorators tranform was running into an issue where the Closure synthetic comments were being emitted twice. I've worked around it by recreating the class declaration node instead of cloning it.
Copy file name to clipboardExpand all lines: package.json
+5-3
Original file line number
Diff line number
Diff line change
@@ -147,9 +147,9 @@
147
147
"terser": "^4.4.0",
148
148
"tmp": "0.2.1",
149
149
"tsickle": "0.38.1",
150
-
"tslib": "^2.2.0",
150
+
"tslib": "^2.3.0",
151
151
"tslint": "6.1.3",
152
-
"typescript": "~4.3.4",
152
+
"typescript": "~4.4.2",
153
153
"xhr2": "0.2.1",
154
154
"yargs": "^17.0.0"
155
155
},
@@ -191,6 +191,7 @@
191
191
"// 4": "Overwrite graceful-fs to a version that does not rely on the 'natives' package. This fixes gulp for >= 10.13, more information: #28213",
192
192
"// 5": "Ensure a single version of webdriver-manager so it is hoisted as the integration tests depend on it being found at ../../node_modules/webdriver-manager",
193
193
"// 6": "Ensure that `@babel/*` packages match the below versions to avoid conflicts with `types/babel__*`",
194
+
"// 7": "TypeScript has to be resolved to 4.4 temporarily until @microsoft/api-extractor is updated",
0 commit comments