Skip to content

Commit c995ed5

Browse files
alan-agius4clydin
authored andcommitted
feat(@angular/cli): support TypeScript 4.6
Adds support for TypeScript 4.6.
1 parent 0b55bab commit c995ed5

File tree

16 files changed

+5128
-3180
lines changed

16 files changed

+5128
-3180
lines changed

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -64,21 +64,21 @@
6464
},
6565
"devDependencies": {
6666
"@ampproject/remapping": "1.1.1",
67-
"@angular/animations": "13.1.3",
67+
"@angular/animations": "13.3.0-rc.0",
6868
"@angular/cdk": "13.1.3",
69-
"@angular/common": "13.1.3",
70-
"@angular/compiler": "13.1.3",
71-
"@angular/compiler-cli": "13.1.3",
72-
"@angular/core": "13.1.3",
69+
"@angular/common": "13.3.0-rc.0",
70+
"@angular/compiler": "13.3.0-rc.0",
71+
"@angular/compiler-cli": "13.3.0-rc.0",
72+
"@angular/core": "13.3.0-rc.0",
7373
"@angular/dev-infra-private": "https://github.com/angular/dev-infra-private-builds.git#3a34722a82fb0e8cd3fa00dfc5476767a35e021a",
74-
"@angular/forms": "13.1.3",
75-
"@angular/localize": "13.1.3",
74+
"@angular/forms": "13.3.0-rc.0",
75+
"@angular/localize": "13.3.0-rc.0",
7676
"@angular/material": "13.1.3",
77-
"@angular/platform-browser": "13.1.3",
78-
"@angular/platform-browser-dynamic": "13.1.3",
79-
"@angular/platform-server": "13.1.3",
80-
"@angular/router": "13.1.3",
81-
"@angular/service-worker": "13.1.3",
77+
"@angular/platform-browser": "13.3.0-rc.0",
78+
"@angular/platform-browser-dynamic": "13.3.0-rc.0",
79+
"@angular/platform-server": "13.3.0-rc.0",
80+
"@angular/router": "13.3.0-rc.0",
81+
"@angular/service-worker": "13.3.0-rc.0",
8282
"@babel/core": "7.16.12",
8383
"@babel/generator": "7.16.8",
8484
"@babel/helper-annotate-as-pure": "7.16.7",
@@ -215,7 +215,7 @@
215215
"tree-kill": "1.2.2",
216216
"ts-node": "^10.0.0",
217217
"tslib": "2.3.1",
218-
"typescript": "4.5.5",
218+
"typescript": "4.6.2",
219219
"verdaccio": "5.5.1",
220220
"verdaccio-auth-memory": "^10.0.0",
221221
"webpack": "5.67.0",

packages/angular_devkit/architect/src/architect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ function _createJobHandlerFromBuilderInfo(
100100
value: {
101101
...output.value,
102102
...(target ? { target } : 0),
103-
} as json.JsonObject,
103+
} as unknown as json.JsonObject,
104104
};
105105
} else {
106106
return output;

packages/angular_devkit/architect/src/schedule-by-name.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export async function scheduleByName(
9494
...output,
9595
...(options.target ? { target: options.target } : 0),
9696
info,
97-
} as BuilderOutput),
97+
} as unknown as BuilderOutput),
9898
),
9999
shareReplay(),
100100
);

packages/angular_devkit/build_angular/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@
7575
"esbuild": "0.14.22"
7676
},
7777
"peerDependencies": {
78-
"@angular/compiler-cli": "^13.0.0",
79-
"@angular/localize": "^13.0.0",
80-
"@angular/service-worker": "^13.0.0",
78+
"@angular/compiler-cli": "^13.0.0 || ^13.3.0-rc.0",
79+
"@angular/localize": "^13.0.0 || ^13.3.0-rc.0",
80+
"@angular/service-worker": "^13.0.0 || ^13.3.0-rc.0",
8181
"karma": "^6.3.0",
8282
"ng-packagr": "^13.0.0",
8383
"protractor": "^7.0.0",
8484
"tailwindcss": "^2.0.0 || ^3.0.0",
85-
"typescript": ">=4.4.3 <4.6"
85+
"typescript": ">=4.4.3 <4.7"
8686
},
8787
"peerDependenciesMeta": {
8888
"@angular/localize": {

packages/angular_devkit/build_optimizer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"dependencies": {
1313
"source-map": "0.7.3",
1414
"tslib": "2.3.1",
15-
"typescript": "4.5.5"
15+
"typescript": "4.6.2"
1616
},
1717
"peerDependencies": {
1818
"webpack": "^5.30.0"

packages/angular_devkit/schematics_cli/blank/project-files/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"dependencies": {
1616
"@angular-devkit/core": "^<%= coreVersion %>",
1717
"@angular-devkit/schematics": "^<%= schematicsVersion %>",
18-
"typescript": "~4.5.2"
18+
"typescript": "~4.6.2"
1919
},
2020
"devDependencies": {
2121
"@types/node": "^12.11.1",

packages/angular_devkit/schematics_cli/schematic/files/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"dependencies": {
1616
"@angular-devkit/core": "^<%= coreVersion %>",
1717
"@angular-devkit/schematics": "^<%= schematicsVersion %>",
18-
"typescript": "~4.5.2"
18+
"typescript": "~4.6.2"
1919
},
2020
"devDependencies": {
2121
"@types/node": "^12.11.1",

packages/ngtools/webpack/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
"dependencies": {},
2424
"peerDependencies": {
2525
"@angular/compiler-cli": "^13.0.0",
26-
"typescript": ">=4.4.3 <4.6",
26+
"typescript": ">=4.4.3 <4.7",
2727
"webpack": "^5.30.0"
2828
},
2929
"devDependencies": {
3030
"@angular-devkit/core": "0.0.0-PLACEHOLDER",
31-
"@angular/compiler": "13.1.3",
32-
"@angular/compiler-cli": "13.1.3",
33-
"typescript": "4.5.5",
31+
"@angular/compiler": "13.3.0-rc.0",
32+
"@angular/compiler-cli": "13.3.0-rc.0",
33+
"typescript": "4.6.2",
3434
"webpack": "5.67.0"
3535
}
3636
}

packages/ngtools/webpack/src/transformers/replace_resources_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ describe('@ngtools/webpack transformers', () => {
9393
let AppComponent = class AppComponent {
9494
constructor() { this.title = 'app'; }
9595
};
96-
AppComponent = (0, tslib_1.__decorate)([
96+
AppComponent = tslib_1.__decorate([
9797
(0, core_1.Component)({
9898
selector: 'app-root',
9999
template: require("./app.component.html?ngResource"),

packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/BUILD.bazel

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
load("//tools:defaults.bzl", "ts_library")
22

3-
# files fetched on 2021-12-10 from
4-
# https://github.com/microsoft/TypeScript/releases/tag/v4.5.2
3+
# files fetched on 2022-03-11 from
4+
# https://github.com/microsoft/TypeScript/releases/tag/v4.6.2
5+
6+
# Commands to download:
7+
# curl https://raw.githubusercontent.com/microsoft/TypeScript/v4.6.2/lib/typescript.d.ts -o packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript.d.ts
8+
# curl https://raw.githubusercontent.com/microsoft/TypeScript/v4.6.2/lib/typescript.js -o packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript.js
9+
510
licenses(["notice"]) # Apache 2.0
611

712
exports_files([

0 commit comments

Comments
 (0)