Skip to content

Commit

Permalink
build: update to TypeScript 5.7
Browse files Browse the repository at this point in the history
Updates the repo to use TypeScript 5.7.
  • Loading branch information
crisbeto committed Nov 28, 2024
1 parent aed726f commit cded890
Show file tree
Hide file tree
Showing 11 changed files with 5,832 additions and 3,166 deletions.
4 changes: 4 additions & 0 deletions goldens/public-api/angular_devkit/schematics/index.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ export interface CreateFileAction extends ActionBase {
export class DelegateTree implements Tree_2 {
constructor(_other: Tree_2);
// (undocumented)
[x: symbol]: () => this;
// (undocumented)
get actions(): Action[];
// (undocumented)
apply(action: Action, strategy?: MergeStrategy): void;
Expand Down Expand Up @@ -518,6 +520,8 @@ export class HostSink extends SimpleSinkBase {
export class HostTree implements Tree_2 {
constructor(_backend?: virtualFs.ReadonlyHost<{}>);
// (undocumented)
[x: symbol]: () => this;
// (undocumented)
get actions(): Action[];
// (undocumented)
apply(action: Action, strategy?: MergeStrategy): void;
Expand Down
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,23 +52,23 @@
},
"devDependencies": {
"@ampproject/remapping": "2.3.0",
"@angular/animations": "19.0.1",
"@angular/animations": "19.1.0-next.0",
"@angular/bazel": "patch:@angular/bazel@https%3A//github.com/angular/bazel-builds.git%23commit=07617f0f8540d27f8895b1820a6f994e1e5b7277#~/.yarn/patches/@angular-bazel-https-9848736cf4.patch",
"@angular/build-tooling": "https://github.com/angular/dev-infra-private-build-tooling-builds.git#41d5efafd8094da3c8455e1b54b381e346d0c7a9",
"@angular/cdk": "19.0.0",
"@angular/common": "19.0.1",
"@angular/compiler": "19.0.1",
"@angular/compiler-cli": "19.0.1",
"@angular/core": "19.0.1",
"@angular/forms": "19.0.1",
"@angular/localize": "19.0.1",
"@angular/material": "19.0.0",
"@angular/cdk": "19.1.0-next.0",
"@angular/common": "19.1.0-next.0",
"@angular/compiler": "19.1.0-next.0",
"@angular/compiler-cli": "19.1.0-next.0",
"@angular/core": "19.1.0-next.0",
"@angular/forms": "19.1.0-next.0",
"@angular/localize": "19.1.0-next.0",
"@angular/material": "19.1.0-next.0",
"@angular/ng-dev": "https://github.com/angular/dev-infra-private-ng-dev-builds.git#47ccf2ca29307997c021994c859c03c71fae686e",
"@angular/platform-browser": "19.0.1",
"@angular/platform-browser-dynamic": "19.0.1",
"@angular/platform-server": "19.0.1",
"@angular/router": "19.0.1",
"@angular/service-worker": "19.0.1",
"@angular/platform-browser": "19.1.0-next.0",
"@angular/platform-browser-dynamic": "19.1.0-next.0",
"@angular/platform-server": "19.1.0-next.0",
"@angular/router": "19.1.0-next.0",
"@angular/service-worker": "19.1.0-next.0",
"@babel/core": "7.26.0",
"@babel/generator": "7.26.2",
"@babel/helper-annotate-as-pure": "7.25.9",
Expand Down Expand Up @@ -168,7 +168,7 @@
"magic-string": "0.30.14",
"mini-css-extract-plugin": "2.9.2",
"mrmime": "2.0.0",
"ng-packagr": "19.0.1",
"ng-packagr": "19.1.0-next.0",
"npm": "^10.8.1",
"npm-package-arg": "12.0.0",
"npm-pick-manifest": "10.0.0",
Expand Down Expand Up @@ -202,7 +202,7 @@
"tree-kill": "1.2.2",
"ts-node": "^10.9.1",
"tslib": "2.8.1",
"typescript": "5.6.3",
"typescript": "5.7.2",
"undici": "6.21.0",
"unenv": "^1.10.0",
"verdaccio": "6.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/angular/build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"less": "^4.2.0",
"postcss": "^8.4.0",
"tailwindcss": "^2.0.0 || ^3.0.0",
"typescript": ">=5.5 <5.7"
"typescript": ">=5.5 <5.8"
},
"peerDependenciesMeta": {
"@angular/localize": {
Expand Down
12 changes: 6 additions & 6 deletions packages/angular/ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
"@angular/router": "^19.0.0"
},
"devDependencies": {
"@angular/common": "19.0.1",
"@angular/compiler": "19.0.1",
"@angular/core": "19.0.1",
"@angular/platform-browser": "19.0.1",
"@angular/platform-server": "19.0.1",
"@angular/router": "19.0.1",
"@angular/common": "19.1.0-next.0",
"@angular/compiler": "19.1.0-next.0",
"@angular/core": "19.1.0-next.0",
"@angular/platform-browser": "19.1.0-next.0",
"@angular/platform-server": "19.1.0-next.0",
"@angular/router": "19.1.0-next.0",
"@bazel/runfiles": "^5.8.1"
},
"sideEffects": false,
Expand Down
2 changes: 1 addition & 1 deletion packages/angular_devkit/build_angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"ng-packagr": "^19.0.0",
"protractor": "^7.0.0",
"tailwindcss": "^2.0.0 || ^3.0.0",
"typescript": ">=5.5 <5.7"
"typescript": ">=5.5 <5.8"
},
"peerDependenciesMeta": {
"@angular/localize": {
Expand Down
4 changes: 2 additions & 2 deletions packages/angular_devkit/core/node/host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class NodeJsAsyncHost implements virtualFs.Host<Stats> {

read(path: Path): Observable<virtualFs.FileBuffer> {
return observableFrom(fsPromises.readFile(getSystemPath(path))).pipe(
map((buffer) => new Uint8Array(buffer).buffer as virtualFs.FileBuffer),
map((buffer) => new Uint8Array(buffer).buffer),
);
}

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

obs.next(new Uint8Array(buffer).buffer as virtualFs.FileBuffer);
obs.next(new Uint8Array(buffer).buffer);
obs.complete();
});
}
Expand Down
8 changes: 4 additions & 4 deletions packages/ngtools/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
"homepage": "https://github.com/angular/angular-cli/tree/main/packages/ngtools/webpack",
"peerDependencies": {
"@angular/compiler-cli": "^19.0.0",
"typescript": ">=5.5 <5.7",
"typescript": ">=5.5 <5.8",
"webpack": "^5.54.0"
},
"devDependencies": {
"@angular-devkit/core": "0.0.0-PLACEHOLDER",
"@angular/compiler": "19.0.1",
"@angular/compiler-cli": "19.0.1",
"typescript": "5.6.3",
"@angular/compiler": "19.1.0-next.0",
"@angular/compiler-cli": "19.1.0-next.0",
"typescript": "5.7.2",
"webpack": "5.96.1"
}
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
load("//tools:defaults.bzl", "ts_library")

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

# Commands to download:
# 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
# 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
# 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
# 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

licenses(["notice"]) # Apache 2.0

Expand Down
Loading

0 comments on commit cded890

Please sign in to comment.