Skip to content

Commit 4d466bf

Browse files
crisbetoalan-agius4
authored andcommitted
build: update to TypeScript 5.7
Updates the repo to use TypeScript 5.7.
1 parent 3d1c52b commit 4d466bf

File tree

12 files changed

+5700
-3034
lines changed

12 files changed

+5700
-3034
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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": "7.0.0",
207207
"unenv": "^1.10.0",
208208
"verdaccio": "6.0.2",

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/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": "~5.6.2"
18+
"typescript": "~5.7.2"
1919
},
2020
"devDependencies": {
2121
"@types/node": "^18.18.0",

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": "~5.6.2"
18+
"typescript": "~5.7.2"
1919
},
2020
"devDependencies": {
2121
"@types/node": "^18.18.0",

packages/ngtools/webpack/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"@angular-devkit/core": "0.0.0-PLACEHOLDER",
3030
"@angular/compiler": "19.1.0-next.0",
3131
"@angular/compiler-cli": "19.1.0-next.0",
32-
"typescript": "5.6.3",
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

packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript.d.ts

Lines changed: 82 additions & 22 deletions
Large diffs are not rendered by default.

packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript.js

Lines changed: 5568 additions & 2986 deletions
Large diffs are not rendered by default.

packages/schematics/angular/utility/latest-versions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"rxjs": "~7.8.0",
2424
"tslib": "^2.3.0",
2525
"ts-node": "~10.9.0",
26-
"typescript": "~5.6.2",
26+
"typescript": "~5.7.2",
2727
"zone.js": "~0.15.0"
2828
}
2929
}

0 commit comments

Comments
 (0)