Skip to content

Commit

Permalink
build: update to TypeScript 5.6 RC
Browse files Browse the repository at this point in the history
Updates the repo to the TypeScript 5.6 RC and narrows down the version to drop support for 5.4, in line with the compiler.
  • Loading branch information
crisbeto authored and alan-agius4 committed Aug 29, 2024
1 parent 5226c53 commit 7f570c5
Show file tree
Hide file tree
Showing 12 changed files with 4,898 additions and 3,626 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
/packages/angular_devkit/schematics_cli/blank/project-files/
/packages/angular_devkit/schematics_cli/blank/schematic-files/
/packages/angular_devkit/schematics_cli/schematic/files/
/packages/schematics/angular/third_party/
/README.md
/CONTRIBUTING.md
.yarn/
Expand Down
6 changes: 3 additions & 3 deletions goldens/public-api/angular_devkit/core/index.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ interface JsonVisitor {

// @public (undocumented)
class LevelCapLogger extends LevelTransformLogger {
constructor(name: string, parent: Logger | null, levelCap: LogLevel);
constructor(name: string, parent: (Logger | null) | undefined, levelCap: LogLevel);
// (undocumented)
readonly levelCap: LogLevel;
// (undocumented)
Expand All @@ -403,7 +403,7 @@ class LevelCapLogger extends LevelTransformLogger {

// @public (undocumented)
class LevelTransformLogger extends Logger {
constructor(name: string, parent: Logger | null, levelTransform: (level: LogLevel) => LogLevel);
constructor(name: string, parent: (Logger | null) | undefined, levelTransform: (level: LogLevel) => LogLevel);
// (undocumented)
createChild(name: string): Logger;
// (undocumented)
Expand Down Expand Up @@ -553,7 +553,7 @@ function parseJsonPointer(pointer: JsonPointer): string[];
// @public (undocumented)
export class PartiallyOrderedSet<T> implements Set<T> {
// (undocumented)
[Symbol.iterator](): Generator<T, void, unknown>;
[Symbol.iterator](): Generator<T, undefined, unknown>;
// (undocumented)
get [Symbol.toStringTag](): 'Set';
// (undocumented)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
"tree-kill": "1.2.2",
"ts-node": "^10.9.1",
"tslib": "2.7.0",
"typescript": "5.5.4",
"typescript": "5.6.1-rc",
"undici": "6.19.8",
"unenv": "^1.10.0",
"verdaccio": "5.32.1",
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 @@ -53,7 +53,7 @@
"less": "^4.2.0",
"postcss": "^8.4.0",
"tailwindcss": "^2.0.0 || ^3.0.0",
"typescript": ">=5.4 <5.6"
"typescript": ">=5.5 <5.7"
},
"peerDependenciesMeta": {
"@angular/localize": {
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 @@ -89,7 +89,7 @@
"ng-packagr": "^19.0.0-next.0",
"protractor": "^7.0.0",
"tailwindcss": "^2.0.0 || ^3.0.0",
"typescript": ">=5.4 <5.6"
"typescript": ">=5.5 <5.7"
},
"peerDependenciesMeta": {
"@angular/localize": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ export class PartiallyOrderedSet<T> implements Set<T> {
throw new CircularDependencyFoundException();
}
}

return undefined;
}

get [Symbol.toStringTag](): 'Set' {
Expand Down
2 changes: 1 addition & 1 deletion packages/angular_devkit/schematics/src/tree/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export class ActionList implements Iterable<Action> {
get length() {
return this._actions.length;
}
[Symbol.iterator]() {
[Symbol.iterator](): IterableIterator<Action> {
return this._actions[Symbol.iterator]();
}
}
Expand Down
4 changes: 2 additions & 2 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-next.0",
"typescript": ">=5.4 <5.6",
"typescript": ">=5.5 <5.7",
"webpack": "^5.54.0"
},
"devDependencies": {
"@angular-devkit/core": "0.0.0-PLACEHOLDER",
"@angular/compiler": "19.0.0-next.2",
"@angular/compiler-cli": "19.0.0-next.2",
"typescript": "5.5.4",
"typescript": "5.6.1-rc",
"webpack": "5.94.0"
}
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
load("//tools:defaults.bzl", "ts_library")

# files fetched on 2024-07-02 from
# https://github.com/microsoft/TypeScript/releases/tag/v5.5.2
# files fetched on 2024-09-29 from
# https://github.com/microsoft/TypeScript/releases/tag/v5.6-rc

# Commands to download:
# curl https://raw.githubusercontent.com/microsoft/TypeScript/v5.5.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.5.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.6-rc/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-rc/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 7f570c5

Please sign in to comment.