Conversation
Updated .gitignore with PLAN.md
- Update ngx-bootstrap to v21 - Update typescript-eslint - Migrate to inject() function (Angular 21) - Update peerDependencies in library
Update to angular 21
There was a problem hiding this comment.
Pull request overview
Upgrades the workspace (demo app + angular-split library) to Angular 21, aligning build tooling/config and refactoring DI usage to Angular’s inject() pattern.
Changes:
- Upgrade Angular/tooling dependencies and switch Angular builders to
@angular/build. - Update TS config to
moduleResolution: "bundler"and refactor components/services to useinject(). - Update library peer dependencies to Angular
>=21and adjust CI Node matrix.
Reviewed changes
Copilot reviewed 16 out of 19 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| tsconfig.json | Switch module resolution to bundler and adjust compiler options formatting. |
| src/main.ts | Adds provideZoneChangeDetection() during app bootstrap. |
| src/app/ui/components/topbar.component.ts | Refactors DI from constructor injection to inject(). |
| src/app/changelog/changelog.service.ts | Refactors DI to inject() while keeping service behavior. |
| src/app/changelog/changelog.component.ts | Refactors DI to inject() and keeps observable wiring. |
| src/app/app.component.ts | Refactors Router DI to inject() and keeps scroll-on-nav behavior. |
| projects/angular-split/tsconfig.lib.json | Switch library TS module resolution to bundler. |
| projects/angular-split/src/lib/split/split.component.ts | Adjusts DOCUMENT import source for library internals. |
| projects/angular-split/src/lib/split-custom-events-behavior.directive.ts | Adjusts DOCUMENT import source for directive internals. |
| projects/angular-split/package.json | Bumps Angular peer dependency floor to >=21. |
| package.json | Upgrades Angular/tooling deps, adds/adjusts wireit scripts, updates ngx-bootstrap version. |
| angular.json | Switches builders to @angular/build:* and adds schematic defaults. |
| CHANGELOG.md | Adds 21.0.0 release notes entry. |
| .gitignore | Adds PLAN.md to ignored files. |
| .github/workflows/tests.yml | Updates CI Node versions tested. |
| .github/workflows/lint.yml | Updates CI Node versions tested. |
| .github/workflows/build.yml | Updates CI Node versions tested. |
| .github/copilot-instructions.md | Adds repo-specific Copilot guidance document. |
Comments suppressed due to low confidence (1)
package.json:174
lib_buildno longer copies LICENSE/README intodist/angular-split, butng-packagrconfig only lists_theme.cssas an asset. This likely means the published package will miss LICENSE/README unless they are added tong-package.jsonassets or the copy step is restored.
"lib_build": {
"command": "ng build angular-split",
"files": [
"projects/angular-split/"
],
"output": [
"dist/angular-split"
]
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@shlomoa Thanks for your PR. |
|
We have still some stuff which are bot v20. For example:
I guess there are more places... Maybe we should align to v20 first and then move to v21 while applying those changes in v21 too? Also the changelog still works weird I think. |
…ular-split into update_to_angular_21
|
Sorry folks, first experience on a github project.
This is not critical for me, but I would like to see this completed successfully. |
|
@shlomoa, I restarted the Copilot review after your changes. It probably will find a couple of nits. Perhaps it is a bit too much to address all of those in this same PR, and I think @Jefiozie has ownership of the StackBlitz to begin with? |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 25 out of 28 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
And I just noticed there are merge conflicts; These should be addressed anyhow. |
# Conflicts: # package-lock.json # package.json # projects/angular-split/tsconfig.lib.json # src/app/app.component.ts # src/app/changelog/changelog.component.ts # tsconfig.json
|
@copilot @SanderElias @Jefiozie |
Moved to angular 21 and ran over all stages properly including manual verification