Skip to content

Commit ad4b803

Browse files
committed
build: update to TypeScript 5.7
Updates the repo to use TypeScript 5.7.
1 parent aed726f commit ad4b803

File tree

12 files changed

+5834
-3168
lines changed

12 files changed

+5834
-3168
lines changed

goldens/public-api/angular_devkit/schematics/index.api.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,8 @@ export interface CreateFileAction extends ActionBase {
206206
export class DelegateTree implements Tree_2 {
207207
constructor(_other: Tree_2);
208208
// (undocumented)
209+
[x: symbol]: () => this;
210+
// (undocumented)
209211
get actions(): Action[];
210212
// (undocumented)
211213
apply(action: Action, strategy?: MergeStrategy): void;
@@ -518,6 +520,8 @@ export class HostSink extends SimpleSinkBase {
518520
export class HostTree implements Tree_2 {
519521
constructor(_backend?: virtualFs.ReadonlyHost<{}>);
520522
// (undocumented)
523+
[x: symbol]: () => this;
524+
// (undocumented)
521525
get actions(): Action[];
522526
// (undocumented)
523527
apply(action: Action, strategy?: MergeStrategy): void;

package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -52,23 +52,23 @@
5252
},
5353
"devDependencies": {
5454
"@ampproject/remapping": "2.3.0",
55-
"@angular/animations": "19.0.1",
55+
"@angular/animations": "19.1.0-next.0",
5656
"@angular/bazel": "patch:@angular/bazel@https%3A//github.com/angular/bazel-builds.git%23commit=07617f0f8540d27f8895b1820a6f994e1e5b7277#~/.yarn/patches/@angular-bazel-https-9848736cf4.patch",
5757
"@angular/build-tooling": "https://github.com/angular/dev-infra-private-build-tooling-builds.git#41d5efafd8094da3c8455e1b54b381e346d0c7a9",
58-
"@angular/cdk": "19.0.0",
59-
"@angular/common": "19.0.1",
60-
"@angular/compiler": "19.0.1",
61-
"@angular/compiler-cli": "19.0.1",
62-
"@angular/core": "19.0.1",
63-
"@angular/forms": "19.0.1",
64-
"@angular/localize": "19.0.1",
65-
"@angular/material": "19.0.0",
58+
"@angular/cdk": "19.1.0-next.0",
59+
"@angular/common": "19.1.0-next.0",
60+
"@angular/compiler": "19.1.0-next.0",
61+
"@angular/compiler-cli": "19.1.0-next.0",
62+
"@angular/core": "19.1.0-next.0",
63+
"@angular/forms": "19.1.0-next.0",
64+
"@angular/localize": "19.1.0-next.0",
65+
"@angular/material": "19.1.0-next.0",
6666
"@angular/ng-dev": "https://github.com/angular/dev-infra-private-ng-dev-builds.git#47ccf2ca29307997c021994c859c03c71fae686e",
67-
"@angular/platform-browser": "19.0.1",
68-
"@angular/platform-browser-dynamic": "19.0.1",
69-
"@angular/platform-server": "19.0.1",
70-
"@angular/router": "19.0.1",
71-
"@angular/service-worker": "19.0.1",
67+
"@angular/platform-browser": "19.1.0-next.0",
68+
"@angular/platform-browser-dynamic": "19.1.0-next.0",
69+
"@angular/platform-server": "19.1.0-next.0",
70+
"@angular/router": "19.1.0-next.0",
71+
"@angular/service-worker": "19.1.0-next.0",
7272
"@babel/core": "7.26.0",
7373
"@babel/generator": "7.26.2",
7474
"@babel/helper-annotate-as-pure": "7.25.9",
@@ -168,7 +168,7 @@
168168
"magic-string": "0.30.14",
169169
"mini-css-extract-plugin": "2.9.2",
170170
"mrmime": "2.0.0",
171-
"ng-packagr": "19.0.1",
171+
"ng-packagr": "19.1.0-next.0",
172172
"npm": "^10.8.1",
173173
"npm-package-arg": "12.0.0",
174174
"npm-pick-manifest": "10.0.0",
@@ -202,7 +202,7 @@
202202
"tree-kill": "1.2.2",
203203
"ts-node": "^10.9.1",
204204
"tslib": "2.8.1",
205-
"typescript": "5.6.3",
205+
"typescript": "5.7.2",
206206
"undici": "6.21.0",
207207
"unenv": "^1.10.0",
208208
"verdaccio": "6.0.2",

packages/angular/build/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"less": "^4.2.0",
5858
"postcss": "^8.4.0",
5959
"tailwindcss": "^2.0.0 || ^3.0.0",
60-
"typescript": ">=5.5 <5.7"
60+
"typescript": ">=5.5 <5.8"
6161
},
6262
"peerDependenciesMeta": {
6363
"@angular/localize": {

packages/angular/ssr/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
"@angular/router": "^19.0.0"
2323
},
2424
"devDependencies": {
25-
"@angular/common": "19.0.1",
26-
"@angular/compiler": "19.0.1",
27-
"@angular/core": "19.0.1",
28-
"@angular/platform-browser": "19.0.1",
29-
"@angular/platform-server": "19.0.1",
30-
"@angular/router": "19.0.1",
25+
"@angular/common": "19.1.0-next.0",
26+
"@angular/compiler": "19.1.0-next.0",
27+
"@angular/core": "19.1.0-next.0",
28+
"@angular/platform-browser": "19.1.0-next.0",
29+
"@angular/platform-server": "19.1.0-next.0",
30+
"@angular/router": "19.1.0-next.0",
3131
"@bazel/runfiles": "^5.8.1"
3232
},
3333
"sideEffects": false,

packages/angular_devkit/build_angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"ng-packagr": "^19.0.0",
8383
"protractor": "^7.0.0",
8484
"tailwindcss": "^2.0.0 || ^3.0.0",
85-
"typescript": ">=5.5 <5.7"
85+
"typescript": ">=5.5 <5.8"
8686
},
8787
"peerDependenciesMeta": {
8888
"@angular/localize": {

packages/angular_devkit/core/node/host.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class NodeJsAsyncHost implements virtualFs.Host<Stats> {
7171

7272
read(path: Path): Observable<virtualFs.FileBuffer> {
7373
return observableFrom(fsPromises.readFile(getSystemPath(path))).pipe(
74-
map((buffer) => new Uint8Array(buffer).buffer as virtualFs.FileBuffer),
74+
map((buffer) => new Uint8Array(buffer).buffer),
7575
);
7676
}
7777

@@ -169,7 +169,7 @@ export class NodeJsSyncHost implements virtualFs.Host<Stats> {
169169
return new Observable((obs) => {
170170
const buffer = readFileSync(getSystemPath(path));
171171

172-
obs.next(new Uint8Array(buffer).buffer as virtualFs.FileBuffer);
172+
obs.next(new Uint8Array(buffer).buffer);
173173
obs.complete();
174174
});
175175
}

packages/ngtools/webpack/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
"homepage": "https://github.com/angular/angular-cli/tree/main/packages/ngtools/webpack",
2323
"peerDependencies": {
2424
"@angular/compiler-cli": "^19.0.0",
25-
"typescript": ">=5.5 <5.7",
25+
"typescript": ">=5.5 <5.8",
2626
"webpack": "^5.54.0"
2727
},
2828
"devDependencies": {
2929
"@angular-devkit/core": "0.0.0-PLACEHOLDER",
30-
"@angular/compiler": "19.0.1",
31-
"@angular/compiler-cli": "19.0.1",
32-
"typescript": "5.6.3",
30+
"@angular/compiler": "19.1.0-next.0",
31+
"@angular/compiler-cli": "19.1.0-next.0",
32+
"typescript": "5.7.2",
3333
"webpack": "5.96.1"
3434
}
3535
}

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

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

3-
# files fetched on 2024-09-10 from
4-
# https://github.com/microsoft/TypeScript/releases/tag/v5.6.2
3+
# files fetched on 2024-11-28 from
4+
# https://github.com/microsoft/TypeScript/releases/tag/v5.7.2
55

66
# Commands to download:
7-
# curl https://raw.githubusercontent.com/microsoft/TypeScript/v5.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/v5.6.2/lib/typescript.js -o packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript.js
7+
# curl https://raw.githubusercontent.com/microsoft/TypeScript/v5.7.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/v5.7.2/lib/typescript.js -o packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript.js
99

1010
licenses(["notice"]) # Apache 2.0
1111

0 commit comments

Comments
 (0)