Skip to content

Commit 8f7fe89

Browse files
committed
build: update to TypeScript 6 stable
Updates to the stable version of TypeScript 6.
1 parent f98cc82 commit 8f7fe89

File tree

16 files changed

+2770
-1978
lines changed

16 files changed

+2770
-1978
lines changed

MODULE.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ use_repo(npm, "npm")
174174
rules_ts_ext = use_extension("@aspect_rules_ts//ts:extensions.bzl", "ext")
175175
rules_ts_ext.deps(
176176
name = "angular_cli_npm_typescript",
177-
# Obtained by: npm info typescript@6.0.1-rc dist.integrity
178-
ts_integrity = "sha512-7XlzYb+p/7YxX6qSOzwB4mxVFRdAgWWkj1PgAZ+jzldeuFV6Z77vwFbNxHsUXAL/bhlWY2jCT8shLwDJR8337g==",
179-
ts_version = "6.0.1-rc",
177+
# Obtained by: npm info typescript@6.0.2 dist.integrity
178+
ts_integrity = "sha512-bGdAIrZ0wiGDo5l8c++HWtbaNCWTS4UTv7RaTH/ThVIgjkveJt83m74bBHMJkuCbslY8ixgLBVZJIOiQlQTjfQ==",
179+
ts_version = "6.0.2",
180180
)
181181
use_repo(rules_ts_ext, **{"npm_typescript": "angular_cli_npm_typescript"})
182182

MODULE.bazel.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
"semver": "7.7.4",
129129
"source-map-support": "0.5.21",
130130
"tslib": "2.8.1",
131-
"typescript": "6.0.1-rc",
131+
"typescript": "6.0.2",
132132
"undici": "7.24.5",
133133
"unenv": "^1.10.0",
134134
"verdaccio": "6.3.2",

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.9.2"
18+
"typescript": "~6.0.2"
1919
},
2020
"devDependencies": {
2121
"@types/node": "^20.17.19",

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"compilerOptions": {
33
"lib": ["es2018", "dom"],
44
"declaration": true,
5-
"module": "commonjs",
6-
"moduleResolution": "node",
5+
"module": "node16",
6+
"moduleResolution": "node16",
77
"noEmitOnError": true,
88
"noFallthroughCasesInSwitch": true,
99
"noImplicitAny": true,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
"@types/node": "^20.17.19",
2121
"@types/jasmine": "~6.0.0",
2222
"jasmine": "~6.1.0",
23-
"typescript": "~5.9.2"
23+
"typescript": "~6.0.2"
2424
}
2525
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"lib": ["es2018", "dom"],
44
"module": "commonjs",
5-
"moduleResolution": "node",
5+
"moduleResolution": "bundler",
66
"noEmitOnError": true,
77
"noFallthroughCasesInSwitch": true,
88
"noImplicitAny": true,

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": "workspace:0.0.0-PLACEHOLDER",
3030
"@angular/compiler": "22.0.0-next.3",
3131
"@angular/compiler-cli": "22.0.0-next.3",
32-
"typescript": "6.0.1-rc",
32+
"typescript": "6.0.2",
3333
"webpack": "5.105.4"
3434
}
3535
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
load("@aspect_rules_js//js:defs.bzl", "js_library")
22

3-
# files fetched on 2025-08-01
3+
# files fetched on 2026-03-25
44

55
# Commands to update from node_modules:
66
# cp node_modules/typescript/lib/typescript.d.ts packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript.d.ts

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

Lines changed: 69 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ License at http://www.apache.org/licenses/LICENSE-2.0
77
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
88
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
99
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10-
MERCHANTABLITY OR NON-INFRINGEMENT.
10+
MERCHANTABILITY OR NON-INFRINGEMENT.
1111

1212
See the Apache Version 2.0 License for specific language governing permissions
1313
and limitations under the License.
@@ -2530,6 +2530,7 @@ declare namespace ts {
25302530
Node = "node",
25312531
/** @deprecated Renamed to `Node10` */
25322532
NodeJs = "node",
2533+
/** @deprecated */
25332534
Node10 = "node10",
25342535
Node16 = "node16",
25352536
NodeNext = "nodenext",
@@ -2542,6 +2543,7 @@ declare namespace ts {
25422543
export enum ScriptTarget {
25432544
/** @deprecated */
25442545
ES3 = "es3",
2546+
/** @deprecated */
25452547
ES5 = "es5",
25462548
ES6 = "es6",
25472549
ES2015 = "es2015",
@@ -2554,9 +2556,11 @@ declare namespace ts {
25542556
ES2022 = "es2022",
25552557
ES2023 = "es2023",
25562558
ES2024 = "es2024",
2559+
ES2025 = "es2025",
25572560
ESNext = "esnext",
25582561
JSON = "json",
25592562
Latest = "esnext",
2563+
LatestStandard = "es2025",
25602564
}
25612565
}
25622566
namespace typingsInstaller {
@@ -3646,7 +3650,7 @@ declare namespace ts {
36463650
readDirectory(rootDir: string, extensions: readonly string[], excludes: readonly string[] | undefined, includes: readonly string[] | undefined, depth?: number): string[];
36473651
}
36483652
}
3649-
const versionMajorMinor = "5.9";
3653+
const versionMajorMinor = "6.0";
36503654
/** The version of the TypeScript compiler release */
36513655
const version: string;
36523656
/**
@@ -5907,7 +5911,6 @@ declare namespace ts {
59075911
*/
59085912
interface SourceFileLike {
59095913
readonly text: string;
5910-
languageVariant?: LanguageVariant;
59115914
}
59125915
interface SourceFileLike {
59135916
getLineAndCharacterOfPosition(pos: number): LineAndCharacter;
@@ -5926,14 +5929,7 @@ declare namespace ts {
59265929
libReferenceDirectives: readonly FileReference[];
59275930
languageVariant: LanguageVariant;
59285931
isDeclarationFile: boolean;
5929-
/**
5930-
* lib.d.ts should have a reference comment like
5931-
*
5932-
* /// <reference no-default-lib="true"/>
5933-
*
5934-
* If any other file has this comment, it signals not to include lib.d.ts
5935-
* because this containing file is intended to act as a default library.
5936-
*/
5932+
/** @deprecated Always false. Use a Program to determine if a file is a lib file. */
59375933
hasNoDefaultLib: boolean;
59385934
languageVersion: ScriptTarget;
59395935
/**
@@ -6598,53 +6594,53 @@ declare namespace ts {
65986594
enum TypeFlags {
65996595
Any = 1,
66006596
Unknown = 2,
6601-
String = 4,
6602-
Number = 8,
6603-
Boolean = 16,
6604-
Enum = 32,
6605-
BigInt = 64,
6606-
StringLiteral = 128,
6607-
NumberLiteral = 256,
6608-
BooleanLiteral = 512,
6609-
EnumLiteral = 1024,
6610-
BigIntLiteral = 2048,
6611-
ESSymbol = 4096,
6612-
UniqueESSymbol = 8192,
6613-
Void = 16384,
6614-
Undefined = 32768,
6615-
Null = 65536,
6616-
Never = 131072,
6617-
TypeParameter = 262144,
6618-
Object = 524288,
6619-
Union = 1048576,
6620-
Intersection = 2097152,
6621-
Index = 4194304,
6622-
IndexedAccess = 8388608,
6623-
Conditional = 16777216,
6624-
Substitution = 33554432,
6625-
NonPrimitive = 67108864,
6626-
TemplateLiteral = 134217728,
6627-
StringMapping = 268435456,
6628-
Literal = 2944,
6629-
Unit = 109472,
6630-
Freshable = 2976,
6631-
StringOrNumberLiteral = 384,
6632-
PossiblyFalsy = 117724,
6633-
StringLike = 402653316,
6634-
NumberLike = 296,
6635-
BigIntLike = 2112,
6636-
BooleanLike = 528,
6637-
EnumLike = 1056,
6638-
ESSymbolLike = 12288,
6639-
VoidLike = 49152,
6640-
UnionOrIntersection = 3145728,
6641-
StructuredType = 3670016,
6642-
TypeVariable = 8650752,
6643-
InstantiableNonPrimitive = 58982400,
6644-
InstantiablePrimitive = 406847488,
6645-
Instantiable = 465829888,
6646-
StructuredOrInstantiable = 469499904,
6647-
Narrowable = 536624127,
6597+
Undefined = 4,
6598+
Null = 8,
6599+
Void = 16,
6600+
String = 32,
6601+
Number = 64,
6602+
BigInt = 128,
6603+
Boolean = 256,
6604+
ESSymbol = 512,
6605+
StringLiteral = 1024,
6606+
NumberLiteral = 2048,
6607+
BigIntLiteral = 4096,
6608+
BooleanLiteral = 8192,
6609+
UniqueESSymbol = 16384,
6610+
EnumLiteral = 32768,
6611+
Enum = 65536,
6612+
NonPrimitive = 131072,
6613+
Never = 262144,
6614+
TypeParameter = 524288,
6615+
Object = 1048576,
6616+
Index = 2097152,
6617+
TemplateLiteral = 4194304,
6618+
StringMapping = 8388608,
6619+
Substitution = 16777216,
6620+
IndexedAccess = 33554432,
6621+
Conditional = 67108864,
6622+
Union = 134217728,
6623+
Intersection = 268435456,
6624+
Literal = 15360,
6625+
Unit = 97292,
6626+
Freshable = 80896,
6627+
StringOrNumberLiteral = 3072,
6628+
PossiblyFalsy = 15868,
6629+
StringLike = 12583968,
6630+
NumberLike = 67648,
6631+
BigIntLike = 4224,
6632+
BooleanLike = 8448,
6633+
EnumLike = 98304,
6634+
ESSymbolLike = 16896,
6635+
VoidLike = 20,
6636+
UnionOrIntersection = 402653184,
6637+
StructuredType = 403701760,
6638+
TypeVariable = 34078720,
6639+
InstantiableNonPrimitive = 117964800,
6640+
InstantiablePrimitive = 14680064,
6641+
Instantiable = 132644864,
6642+
StructuredOrInstantiable = 536346624,
6643+
Narrowable = 536575971,
66486644
}
66496645
type DestructuringPattern = BindingPattern | ObjectLiteralExpression | ArrayLiteralExpression;
66506646
interface Type {
@@ -6951,13 +6947,17 @@ declare namespace ts {
69516947
Message = 3,
69526948
}
69536949
enum ModuleResolutionKind {
6950+
/** @deprecated */
69546951
Classic = 1,
69556952
/**
69566953
* @deprecated
69576954
* `NodeJs` was renamed to `Node10` to better reflect the version of Node that it targets.
69586955
* Use the new name or consider switching to a modern module resolution target.
69596956
*/
69606957
NodeJs = 2,
6958+
/**
6959+
* @deprecated
6960+
*/
69616961
Node10 = 2,
69626962
Node16 = 3,
69636963
NodeNext = 99,
@@ -7020,6 +7020,7 @@ declare namespace ts {
70207020
allowUnreachableCode?: boolean;
70217021
allowUnusedLabels?: boolean;
70227022
alwaysStrict?: boolean;
7023+
/** @deprecated */
70237024
baseUrl?: string;
70247025
/** @deprecated */
70257026
charset?: string;
@@ -7033,6 +7034,7 @@ declare namespace ts {
70337034
disableSourceOfProjectReferenceRedirect?: boolean;
70347035
disableSolutionSearching?: boolean;
70357036
disableReferencedProjectLoad?: boolean;
7037+
/** @deprecated */
70367038
downlevelIteration?: boolean;
70377039
emitBOM?: boolean;
70387040
emitDecoratorMetadata?: boolean;
@@ -7150,10 +7152,14 @@ declare namespace ts {
71507152
[option: string]: CompilerOptionsValue | undefined;
71517153
}
71527154
enum ModuleKind {
7155+
/** @deprecated */
71537156
None = 0,
71547157
CommonJS = 1,
7158+
/** @deprecated */
71557159
AMD = 2,
7160+
/** @deprecated */
71567161
UMD = 3,
7162+
/** @deprecated */
71577163
System = 4,
71587164
ES2015 = 5,
71597165
ES2020 = 6,
@@ -7205,6 +7211,7 @@ declare namespace ts {
72057211
enum ScriptTarget {
72067212
/** @deprecated */
72077213
ES3 = 0,
7214+
/** @deprecated */
72087215
ES5 = 1,
72097216
ES2015 = 2,
72107217
ES2016 = 3,
@@ -7216,9 +7223,11 @@ declare namespace ts {
72167223
ES2022 = 9,
72177224
ES2023 = 10,
72187225
ES2024 = 11,
7226+
ES2025 = 12,
72197227
ESNext = 99,
72207228
JSON = 100,
72217229
Latest = 99,
7230+
LatestStandard = 12,
72227231
}
72237232
enum LanguageVariant {
72247233
Standard = 0,
@@ -9320,7 +9329,7 @@ declare namespace ts {
93209329
* Given a set of options, returns the set of type directive names
93219330
* that should be included for this program automatically.
93229331
* This list could either come from the config file,
9323-
* or from enumerating the types root + initial secondary types lookup location.
9332+
* and/or from enumerating the types root + initial secondary types lookup location given "*" compat wildcard.
93249333
* More type directives might appear in the program later as a result of loading actual source files;
93259334
* this list is only the set of defaults that are implicitly included.
93269335
*/
@@ -10039,6 +10048,7 @@ declare namespace ts {
1003910048
libReferenceDirectives: FileReference[];
1004010049
importedFiles: FileReference[];
1004110050
ambientExternalModules?: string[];
10051+
/** @deprecated Always false. Use a Program to determine if a file is a lib file. */
1004210052
isLibFile: boolean;
1004310053
}
1004410054
interface HostCancellationToken {

0 commit comments

Comments
 (0)