Skip to content

Conversation

TerranceKhumalo-absa
Copy link
Collaborator

@TerranceKhumalo-absa TerranceKhumalo-absa commented Aug 29, 2025

Upgrade to Angular 20 and TypeDoc Fixes

Summary

This pull request upgrades the project to Angular 20 and addresses issues related to TypeDoc compatibility. The primary focus was to ensure the project is aligned with the latest Angular version while maintaining compatibility with TypeDoc for API documentation generation.

Resolves #431


Changes

Angular Upgrade

  • Upgraded the project to Angular 20.2.1.
  • Updated all Angular dependencies in package.json to their respective Angular 20 versions.
  • Updated zone.js to ^0.15.0 and rxjs to ~7.8.1 for compatibility with Angular 20.

TypeDoc Fixes

  • Upgraded TypeDoc to ^0.28.10.
  • Refactored the api-generator.js script to handle breaking changes introduced in TypeDoc 0.28.x:
    • Added support for extracting object-literal type aliases from the children array.
    • Improved handling of index signatures (e.g., { [key: string]: number }).
    • Fixed serialization of function type aliases.
    • Ensured compatibility with both older and newer TypeDoc reflection models.

Other Improvements

  • Updated tsconfig.json:
    • Set "moduleResolution": "bundler" for better compatibility with modern ES module packages.
    • Enabled "esModuleInterop" and "allowSyntheticDefaultImports" for smoother imports.
  • Fixed Cypress test imports to use import * as path from 'path'; for compatibility with ES modules.
  • Updated SCSS files to ensure consistent styling for PrimeNG components, including fixing small dropdown icons in the tree table.

Release Notes:

  • Angular 20 Upgrade: Updated the project to Angular 20 for improved performance and compatibility.
  • TypeDoc Compatibility: Fixed API generator script to work with TypeDoc 0.28.x.
  • Resolved issues with TypeDoc not generating value fields for object-literal type aliases and function type aliases.
  • Fixed dropdown icon size in the tree table component.

korel-san
korel-san previously approved these changes Sep 4, 2025
Copy link
Collaborator

@lukasmatta lukasmatta left a comment

Choose a reason for hiding this comment

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

Great job 👏

lukasmatta
lukasmatta previously approved these changes Sep 15, 2025
Copy link
Collaborator

@lukasmatta lukasmatta left a comment

Choose a reason for hiding this comment

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

good job!

lukasmatta
lukasmatta previously approved these changes Sep 15, 2025
@TerranceKhumalo-absa TerranceKhumalo-absa dismissed lukasmatta’s stale review September 15, 2025 10:54

The merge-base changed after approval.

lukasmatta
lukasmatta previously approved these changes Sep 15, 2025
@TerranceKhumalo-absa TerranceKhumalo-absa dismissed lukasmatta’s stale review September 15, 2025 10:59

The merge-base changed after approval.

korel-san
korel-san previously approved these changes Sep 15, 2025
@TerranceKhumalo-absa TerranceKhumalo-absa dismissed korel-san’s stale review September 15, 2025 11:05

The merge-base changed after approval.

- Updated Angular packages to version 20.2.1 in package.json.
- Updated PrimeNG to version 20.0.1 and added new PrimeUI dependencies.
- Updated TypeScript to version 5.9.2 and tslib to version 2.8.1.
- Removed outdated package-lock.json for cps-ui-kit.
- Updated cps-ui-kit package.json to version 20.0.0 and aligned peer dependencies with Angular 20.x.
- Refactored various JSON API data files to remove generic types and improve type definitions.
- Updated SCSS files to use the new `@use` syntax for importing variables.
- Made minor adjustments to component templates and styles for better compatibility with updated libraries.
- Adjusted TypeScript configuration to use bundler module resolution.
- Added 'angle-left' and 'angle-right' icons to the icons.svg file.
- Updated cps-icon.component.ts to include new icon names.
- Replaced existing paginator icons in cps-tree-table.component.html with new cps-icon components for better consistency and maintainability.
@lukasmatta lukasmatta force-pushed the feature/431-angular-upgrade branch from 3712835 to d2ac8b1 Compare September 15, 2025 11:19
@lukasmatta lukasmatta merged commit c2770d7 into master Sep 15, 2025
2 checks passed
@lukasmatta lukasmatta deleted the feature/431-angular-upgrade branch September 15, 2025 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update to Angular 20
3 participants