Skip to content

Webapp Angular upgrade 15 to 16#7056

Open
cdavalos7 wants to merge 10 commits intotensorflow:masterfrom
cdavalos7:feature/upgrade15-16
Open

Webapp Angular upgrade 15 to 16#7056
cdavalos7 wants to merge 10 commits intotensorflow:masterfrom
cdavalos7:feature/upgrade15-16

Conversation

@cdavalos7
Copy link
Contributor

@cdavalos7 cdavalos7 commented Feb 17, 2026

Motivation for features / changes

This PR is the first step in a planned major Angular upgrade cycle, where each major version will be delivered in a separate PR, incrementally progressing until the project reaches Angular 20.

This specific PR upgrades TensorBoard from Angular 15 to Angular 16, initiating the migration path toward Angular 20+.

Keeping the framework and aligned dependencies (NgRx, TypeScript, RxJS, zone.js, etc.) up to date ensures continued compatibility, security support, and maintainability, while preparing the project for future Angular features and ecosystem improvements.

Technical description of changes

Upgrade the TensorBoard web application from Angular 15 to Angular 16 following TensorBoard’s DEVELOPMENT.md guidelines and the official Angular migration guide.

Detailed steps to verify changes work correctly (as executed by you)

deps = [
"@npm//@babel/core",
"@npm//@babel/helper-annotate-as-pure",
+ "@npm//@babel/helper-split-export-declaration",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only change in this file. The newer version of @angular-devkit/build-angular: 15.2.11 (resolved in yarn.lock) explicitly added @babel/helper-split-export-declaration as its own dependency. The BUILD.bazel for the optimization scripts can not find it, so needs to be added.

- if getattr(ctx.attr, "use_angular_plugin", False):
- closure_js_files.append(ctx.actions.declare_file(basename + ".ngfactory.mjs"))
- closure_js_files.append(ctx.actions.declare_file(basename + ".ngsummary.mjs"))
-
Copy link
Contributor Author

@cdavalos7 cdavalos7 Feb 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this Angular version Ivy is already available so these lines can be removed. @todos resolved.

"@npm//:node_modules/zone.js/dist/zone-testing.js",
"@npm//:node_modules/zone.js/bundles/zone.umd.js",
"@npm//:node_modules/zone.js/bundles/zone-testing.umd.js",
"@npm//:node_modules/reflect-metadata/Reflect.js",
Copy link
Contributor Author

@cdavalos7 cdavalos7 Feb 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New paths for zone.js

@cdavalos7 cdavalos7 changed the title Feature/upgrade15 16 Webapp Angular upgrade 15 to 16 Feb 17, 2026
@cdavalos7 cdavalos7 marked this pull request as ready for review February 17, 2026 23:03
@cdavalos7 cdavalos7 requested a review from bmd3k February 18, 2026 17:33
@cdavalos7 cdavalos7 assigned cdavalos7 and unassigned arcra and cdavalos7 Feb 18, 2026
@cdavalos7 cdavalos7 requested a review from arcra February 18, 2026 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments