Skip to content

build: update to TypeScript 5.9 #31604

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ http_archive(
load("@aspect_rules_ts//ts:repositories.bzl", "rules_ts_dependencies")

rules_ts_dependencies(
# Obtained by: curl --silent https://registry.npmjs.org/typescript/5.8.3 | jq -r '.dist.integrity'
ts_integrity = "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==",
# Obtained by: curl --silent https://registry.npmjs.org/typescript/5.9.2 | jq -r '.dist.integrity'
ts_integrity = "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==",
ts_version_from = "//:package.json",
)

Expand All @@ -177,6 +177,13 @@ http_archive(
url = "https://github.com/aspect-build/rules_jasmine/releases/download/v2.0.0/rules_jasmine-v2.0.0.tar.gz",
)

http_archive(
name = "jq.bzl",
sha256 = "7b63435aa19cc6a0cfd1a82fbdf2c7a2f0a94db1a79ff7a4469ffa94286261ab",
strip_prefix = "jq.bzl-0.1.0",
url = "https://github.com/bazel-contrib/jq.bzl/releases/download/v0.1.0/jq.bzl-v0.1.0.tar.gz",
)

load("@aspect_rules_jasmine//jasmine:dependencies.bzl", "rules_jasmine_dependencies")

rules_jasmine_dependencies()
Expand All @@ -199,7 +206,7 @@ setup_dependencies_2()

git_repository(
name = "rules_angular",
commit = "652e5b0ef9be65ca738e11d5d01424b64344b466",
commit = "8bf9ae3fa3017ec12877908533001daed9c6ce83",
remote = "https://github.com/devversion/rules_angular.git",
)

Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@
"sass": "1.89.2",
"shelljs": "^0.10.0",
"ts-node": "10.9.2",
"typescript": "~5.8.2"
"typescript": "~5.9.2"
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,14 @@
"tsickle": "0.46.3",
"tslint": "^6.1.3",
"tsutils": "^3.21.0",
"typescript": "5.8.3",
"typescript": "5.9.2",
"vrsource-tslint-rules": "6.0.0",
"yargs": "^18.0.0",
"zx": "^8.0.0"
},
"pnpm": {
"overrides": {
"typescript": "5.8.3"
"typescript": "5.9.2"
},
"onlyBuiltDependencies": [],
"packageExtensions": {
Expand Down
1,770 changes: 686 additions & 1,084 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@ packages:
- src/youtube-player

catalog:
'@angular-devkit/build-angular': 20.2.0-next.0
'@angular-devkit/core': 20.2.0-next.0
'@angular-devkit/schematics': 20.2.0-next.0
'@angular/animations': 20.2.0-next.1
'@angular/build': 20.2.0-next.0
'@angular/cli': 20.2.0-next.0
'@angular/common': 20.2.0-next.1
'@angular/compiler-cli': 20.2.0-next.1
'@angular/compiler': 20.2.0-next.1
'@angular/core': 20.2.0-next.1
'@angular/ssr': 20.2.0-next.0
'@angular/forms': 20.2.0-next.1
'@angular/localize': 20.2.0-next.1
'@angular/platform-browser': 20.2.0-next.1
'@angular/platform-browser-dynamic': 20.2.0-next.1
'@angular/platform-server': 20.2.0-next.1
'@angular/router': 20.2.0-next.1
'@schematics/angular': 20.2.0-next.0
'@angular-devkit/build-angular': 20.2.0-next.1
'@angular-devkit/core': 20.2.0-next.1
'@angular-devkit/schematics': 20.2.0-next.1
'@angular/animations': 20.2.0-next.2
'@angular/build': 20.2.0-next.1
'@angular/cli': 20.2.0-next.1
'@angular/common': 20.2.0-next.2
'@angular/compiler-cli': 20.2.0-next.2
'@angular/compiler': 20.2.0-next.2
'@angular/core': 20.2.0-next.2
'@angular/ssr': 20.2.0-next.1
'@angular/forms': 20.2.0-next.2
'@angular/localize': 20.2.0-next.2
'@angular/platform-browser': 20.2.0-next.2
'@angular/platform-browser-dynamic': 20.2.0-next.2
'@angular/platform-server': 20.2.0-next.2
'@angular/router': 20.2.0-next.2
'@schematics/angular': 20.2.0-next.1
'rxjs': ^6.6.7
2 changes: 1 addition & 1 deletion src/cdk-experimental/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("@npm//:defs.bzl", "npm_link_all_packages")
load("//src/cdk-experimental:config.bzl", "CDK_EXPERIMENTAL_TARGETS")
load("//tools:defaults.bzl", "ng_package", "ts_project")
load("@npm//:defs.bzl", "npm_link_all_packages")

package(default_visibility = ["//visibility:public"])

Expand Down
4 changes: 2 additions & 2 deletions src/cdk/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
load("@aspect_bazel_lib//lib:copy_to_directory.bzl", "copy_to_directory")
load("@npm//:defs.bzl", "npm_link_all_packages")
load("//src/cdk:config.bzl", "CDK_ENTRYPOINTS", "CDK_ENTRYPOINTS_WITH_STYLES", "CDK_SCSS_LIBS", "CDK_TARGETS")
load("//tools:defaults.bzl", "ng_package", "sass_library", "ts_project")
load("@npm//:defs.bzl", "npm_link_all_packages")
load("@aspect_bazel_lib//lib:copy_to_directory.bzl", "copy_to_directory")

package(default_visibility = ["//visibility:public"])

Expand Down
2 changes: 1 addition & 1 deletion src/components-examples/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
load("@npm//:defs.bzl", "npm_link_all_packages")
load("//tools:defaults.bzl", "ng_package", "ng_project")
load("//tools/highlight-files:index.bzl", "highlight_files")
load("//tools/package-docs-content:index.bzl", "package_docs_content")
load(":config.bzl", "ALL_EXAMPLES")
load("@npm//:defs.bzl", "npm_link_all_packages")

package(default_visibility = ["//visibility:public"])

Expand Down
2 changes: 1 addition & 1 deletion src/google-maps/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("//tools:defaults.bzl", "ng_package", "ng_project", "ng_web_test_suite", "ts_project")
load("@aspect_rules_ts//ts:defs.bzl", rules_js_tsconfig = "ts_config")
load("//tools:defaults.bzl", "ng_package", "ng_project", "ng_web_test_suite", "ts_project")

package(default_visibility = ["//visibility:public"])

Expand Down
2 changes: 1 addition & 1 deletion src/material-experimental/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
load("@npm//:defs.bzl", "npm_link_all_packages")
load(
"//src/material-experimental:config.bzl",
"MATERIAL_EXPERIMENTAL_SCSS_LIBS",
"MATERIAL_EXPERIMENTAL_TARGETS",
"MATERIAL_EXPERIMENTAL_TESTING_TARGETS",
)
load("//tools:defaults.bzl", "ng_package", "sass_library", "ts_project")
load("@npm//:defs.bzl", "npm_link_all_packages")

package(default_visibility = ["//visibility:public"])

Expand Down
2 changes: 1 addition & 1 deletion src/material-moment-adapter/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("//tools:defaults.bzl", "ng_package", "ng_project", "ng_web_test_suite", "ts_project")
load("@npm//:defs.bzl", "npm_link_all_packages")
load("//tools:defaults.bzl", "ng_package", "ng_project", "ng_web_test_suite", "ts_project")

package(default_visibility = ["//visibility:public"])

Expand Down
2 changes: 1 addition & 1 deletion src/material/autocomplete/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ ng_project(
name = "autocomplete",
srcs = [
"autocomplete.ts",
"autocomplete-module.ts",
"autocomplete-origin.ts",
"autocomplete-trigger.ts",
"index.ts",
"module.ts",
"public-api.ts",
],
assets = [
Expand Down
2 changes: 1 addition & 1 deletion src/material/autocomplete/autocomplete.zone.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {MatFormField} from '../form-field';
import {MatInputModule} from '../input';
import {MatAutocomplete} from './autocomplete';
import {MatAutocompleteTrigger} from './autocomplete-trigger';
import {MatAutocompleteModule} from './module';
import {MatAutocompleteModule} from './autocomplete-module';

describe('MatAutocomplete Zone.js integration', () => {
// Creates a test component fixture.
Expand Down
2 changes: 1 addition & 1 deletion src/material/autocomplete/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.dev/license
*/

export * from './module';
export * from './autocomplete-module';
export * from './autocomplete';
export * from './autocomplete-origin';
export * from './autocomplete-trigger';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Component} from '@angular/core';
import {MatAutocompleteModule} from '../module';
import {MatAutocompleteModule} from '../autocomplete-module';
import {ComponentFixture, TestBed} from '@angular/core/testing';
import {HarnessLoader} from '@angular/cdk/testing';
import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed';
Expand Down
2 changes: 1 addition & 1 deletion src/material/button/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@ ng_project(
srcs = [
"button.ts",
"button-base.ts",
"button-module.ts",
"fab.ts",
"icon-button.ts",
"index.ts",
"module.ts",
"public-api.ts",
],
assets = [
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/material/button/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
export * from './button';
export * from './fab';
export * from './icon-button';
export * from './module';
export * from './button-module';
export {MAT_BUTTON_CONFIG, MatButtonAppearance, MatButtonConfig} from './button-base';
2 changes: 1 addition & 1 deletion src/material/button/testing/button-harness.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {ComponentFixture, TestBed} from '@angular/core/testing';
import {Platform} from '@angular/cdk/platform';
import {HarnessLoader, parallel} from '@angular/cdk/testing';
import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed';
import {MatButtonModule} from '../module';
import {MatButtonModule} from '../button-module';
import {MatIconModule} from '../../icon';
import {MatIconHarness} from '../../icon/testing';
import {MatButtonHarness} from './button-harness';
Expand Down
2 changes: 1 addition & 1 deletion src/material/card/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ ng_project(
name = "card",
srcs = [
"card.ts",
"card-module.ts",
"index.ts",
"module.ts",
"public-api.ts",
],
assets = [
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/material/card/card.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {ComponentFixture, TestBed} from '@angular/core/testing';
import {Component, Provider, Type, signal} from '@angular/core';
import {MatCardModule} from './module';
import {MatCardModule} from './card-module';
import {MatCard, MAT_CARD_CONFIG, MatCardAppearance} from './card';

describe('MatCard', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/material/card/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
*/

export * from './card';
export * from './module';
export * from './card-module';
2 changes: 1 addition & 1 deletion src/material/card/testing/card-harness.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {Component} from '@angular/core';
import {ComponentFixture, TestBed} from '@angular/core/testing';
import {ComponentHarness, HarnessLoader, parallel} from '@angular/cdk/testing';
import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed';
import {MatCardModule} from '../module';
import {MatCardModule} from '../card-module';
import {MatCardHarness, MatCardSection} from './card-harness';

describe('MatCardHarness', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/material/checkbox/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ ng_project(
srcs = [
"checkbox.ts",
"checkbox-config.ts",
"checkbox-module.ts",
"index.ts",
"module.ts",
"public-api.ts",
],
assets = [
Expand Down
2 changes: 1 addition & 1 deletion src/material/checkbox/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

export * from './checkbox';
export * from './checkbox-config';
export * from './module';
export * from './checkbox-module';
2 changes: 1 addition & 1 deletion src/material/checkbox/testing/checkbox-harness.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {ComponentFixture, TestBed} from '@angular/core/testing';
import {HarnessLoader} from '@angular/cdk/testing';
import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed';
import {FormControl, ReactiveFormsModule} from '@angular/forms';
import {MatCheckboxModule} from '../module';
import {MatCheckboxModule} from '../checkbox-module';
import {MatCheckboxHarness} from './checkbox-harness';

describe('MatCheckboxHarness', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/material/chips/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ ng_project(
"chip-row.ts",
"chip-set.ts",
"chip-text-control.ts",
"chips-module.ts",
"index.ts",
"module.ts",
"public-api.ts",
"tokens.ts",
],
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/material/chips/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export * from './chip-row';
export * from './chip-set';
export * from './chip-listbox';
export * from './chip-grid';
export * from './module';
export * from './chips-module';
export * from './chip-input';
export * from './tokens';
export * from './chip-icons';
Expand Down
1 change: 1 addition & 0 deletions src/material/core/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ ng_project(
"ripple/index.ts",
"ripple/ripple.ts",
"ripple/ripple-event-manager.ts",
"ripple/ripple-module.ts",
"ripple/ripple-ref.ts",
"ripple/ripple-renderer.ts",
],
Expand Down
1 change: 1 addition & 0 deletions src/material/core/option/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ ng_project(
"index.ts",
"optgroup.ts",
"option.ts",
"option-module.ts",
"option-parent.ts",
],
assets = [
Expand Down
14 changes: 1 addition & 13 deletions src/material/core/option/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,7 @@
* found in the LICENSE file at https://angular.dev/license
*/

import {NgModule} from '@angular/core';
import {MatRippleModule} from '../ripple/index';
import {MatPseudoCheckboxModule} from '../selection/index';
import {MatCommonModule} from '../common-behaviors/common-module';
import {MatOption} from './option';
import {MatOptgroup} from './optgroup';

@NgModule({
imports: [MatRippleModule, MatCommonModule, MatPseudoCheckboxModule, MatOption, MatOptgroup],
exports: [MatOption, MatOptgroup],
})
export class MatOptionModule {}

export * from './option-module';
export * from './option';
export * from './optgroup';
export * from './option-parent';
20 changes: 20 additions & 0 deletions src/material/core/option/option-module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/

import {NgModule} from '@angular/core';
import {MatRippleModule} from '../ripple/ripple-module';
import {MatPseudoCheckboxModule} from '../selection/pseudo-checkbox/pseudo-checkbox-module';
import {MatCommonModule} from '../common-behaviors/common-module';
import {MatOption} from './option';
import {MatOptgroup} from './optgroup';

@NgModule({
imports: [MatRippleModule, MatCommonModule, MatPseudoCheckboxModule, MatOption, MatOptgroup],
exports: [MatOption, MatOptgroup],
})
export class MatOptionModule {}
11 changes: 1 addition & 10 deletions src/material/core/ripple/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,7 @@
* found in the LICENSE file at https://angular.dev/license
*/

import {NgModule} from '@angular/core';
import {MatCommonModule} from '../common-behaviors/common-module';
import {MatRipple} from './ripple';

export * from './ripple';
export * from './ripple-ref';
export {RippleRenderer, RippleTarget, defaultRippleAnimationConfig} from './ripple-renderer';

@NgModule({
imports: [MatCommonModule, MatRipple],
exports: [MatRipple, MatCommonModule],
})
export class MatRippleModule {}
export * from './ripple-module';
17 changes: 17 additions & 0 deletions src/material/core/ripple/ripple-module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/

import {NgModule} from '@angular/core';
import {MatCommonModule} from '../common-behaviors/common-module';
import {MatRipple} from './ripple';

@NgModule({
imports: [MatCommonModule, MatRipple],
exports: [MatRipple, MatCommonModule],
})
export class MatRippleModule {}
Loading
Loading