Skip to content

feat(core): adds angular 20 support #123

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 15 commits into from
May 28, 2025
Merged

feat(core): adds angular 20 support #123

merged 15 commits into from
May 28, 2025

Conversation

pavankjadda
Copy link
Contributor

No description provided.

- Created a new `karma.conf.js` file to configure Karma for testing.
- Integrated Jasmine framework and Angular DevKit for testing support.
- Added plugins for Chrome launcher, coverage reporting, and HTML reporting.
- Configured coverage reporter to output results in the `./coverage/ng-kit` directory.
- Set up reporters for progress and Jasmine HTML output.
- Enabled automatic restart on file changes during testing.
@pavankjadda pavankjadda requested a review from Copilot May 28, 2025 17:07
@pavankjadda pavankjadda self-assigned this May 28, 2025
@pavankjadda pavankjadda added the feature New Feature label May 28, 2025
Copy link

netlify bot commented May 28, 2025

Deploy Preview for ng-kit ready!

Name Link
🔨 Latest commit ad0d42e
🔍 Latest deploy log https://app.netlify.com/projects/ng-kit/deploys/683742c6648cbd0008920825
😎 Deploy Preview https://deploy-preview-123--ng-kit.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR upgrades the project’s Angular dependencies from version 19 to 20 while also refactoring a few components to adopt newer Angular features and improved type safety.

  • Removed deprecated test setup code
  • Applied explicit type annotations and updated component imports
  • Adjusted configuration files (package.json, angular.json, ESLint) and documentation for Angular 20 support

Reviewed Changes

Copilot reviewed 54 out of 54 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
projects/ng-kit-demo/src/test-setup.ts Removed jest preset import for testing setup
projects/ng-kit-demo/src/app/snack-bar-demo/snack-bar-demo.component.ts Minor template formatting fix
projects/ng-kit-demo/src/app/progress-state-demo/progress-state-demo.component.ts Added OnPush change detection; removed CommonModule import
projects/ng-kit-demo/src/app/progress-state-demo/progress-state-demo.component.html Updated Angular control flow syntax (@if)
projects/ng-kit-demo/src/app/edit-svg-icon-demo/edit-svg-icon-demo.component.ts Minor styles formatting update
projects/ng-kit-demo/src/app/directives-demo/directives-demo.component.ts Added explicit type annotation for click() method
projects/ng-kit-demo/src/app/buttons-demo/buttons-demo.component.ts Added type annotations and renamed unused parameter
projects/ng-kit-demo/src/app/autocomplete-demo/autocomplete-demo.component.ts & .html Formatting updates and minor refactoring in display logic
projects/ng-kit-demo/src/app/app.config.ts Updated and reordered imports
projects/ng-kit-demo/src/app/app.component.ts Minor formatting update
projects/ng-kit-demo/src/app/alert-demo/alert-demo.component.ts Minor formatting update
projects/ng-kit-demo/eslint.config.js Added updated ESLint configuration for TS and HTML
projects/ng-kit-demo/.eslintrc.json Removed redundant ESLint configuration
package.json Upgraded Angular packages from 19 to 20 and updated devDependencies
eslint.config.js Added updated ESLint configuration
angular.json Added schematics configuration for Angular components
README.md Updated build instructions from nx to pnpm
.github/copilot-instructions.md Updated instructions; note discrepancy in Angular version
.eslintrc.json Removed obsolete configuration file
Comments suppressed due to low confidence (2)

projects/ng-kit-demo/src/test-setup.ts:1

  • The removal of the Jest preset import may affect test configuration if Jest is still being used. Please verify that the testing environment is configured properly after this change.
import 'jest-preset-angular/setup-jest';

projects/ng-kit-demo/src/app/progress-state-demo/progress-state-demo.component.ts:7

  • The removal of CommonModule from the component's imports should be confirmed as intentional, ensuring that all necessary directives (e.g. ngIf in templates) remain available via alternative global imports or Angular's new control flow features.
imports: [CommonModule, SavePrimaryButtonComponent, AlertComponent],

@@ -1,5 +1,7 @@
We use latest Angular and TypeScript for our angular development. Always show examples and reference the latest version of Angular and TypeScript in your responses. If in doubt, use docs from https://angular.dev/overview
Always use latest Angular (at present 19) version and TypeScript for our angular development. Always show examples and reference the latest version of Angular in your responses. If in doubt, use docs from https://angular.dev/overview
Copy link
Preview

Copilot AI May 28, 2025

Choose a reason for hiding this comment

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

Since this PR upgrades Angular to version 20, update the instruction to reflect Angular 20 to avoid confusion for future development.

Copilot uses AI. Check for mistakes.

@pavankjadda pavankjadda merged commit 2d73b8b into main May 28, 2025
7 checks passed
Copy link

🎉 This PR is included in version 19.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant