Skip to content

[Snyk] Security upgrade @angular/cli from 18.2.12 to 21.1.5 - #194

Open
snyk-io[bot] wants to merge 1 commit into
masterfrom
snyk-fix-bb27127126b07aaec888dd45a57438cb
Open

[Snyk] Security upgrade @angular/cli from 18.2.12 to 21.1.5#194
snyk-io[bot] wants to merge 1 commit into
masterfrom
snyk-fix-bb27127126b07aaec888dd45a57438cb

Conversation

@snyk-io

@snyk-io snyk-io Bot commented Feb 24, 2026

Copy link
Copy Markdown

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.

Snyk changed the following file(s):

  • chargebee-js-angular/package.json
  • chargebee-js-angular/package-lock.json

Vulnerabilities that will be fixed with an upgrade:

Issue Score
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-AJV-15274295
  685  

Breaking Change Risk

Merge Risk: High

Notice: This assessment is enhanced by AI.


Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Regular Expression Denial of Service (ReDoS)

…-lock.json to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-AJV-15274295
@snyk-io

snyk-io Bot commented Feb 24, 2026

Copy link
Copy Markdown
Author

Merge Risk: High

This is a major upgrade spanning three versions (v19, v20, v21) of Angular and introduces significant breaking changes, new architectural defaults, and tooling updates. Manual intervention and thorough testing will be required.

Key Breaking Changes:

  • v21: Vitest is the New Default Test Runner: The CLI now defaults to Vitest for new projects, replacing Karma. Existing projects with custom Karma configurations (karma.conf.js) will require migration. An experimental schematic is available (ng generate @angular/core:karma-to-vitest) to assist with this transition.

  • v20: Node.js v18 Support Dropped: Angular v20 and later require Node.js v20 or higher. Support for Node.js 18 has been removed.

  • v20: Testing API Changes: TestBed.get() has been removed and must be replaced with TestBed.inject(). Additionally, ng-reflect-* attributes are no longer generated in development mode, which may break tests that relied on them for querying elements.

  • v19: Standalone Components by Default: Components, directives, and pipes are now generated as standalone by default. Projects that still use NgModules must explicitly set standalone: false in the component decorator.

Other Notable Changes:

  • Zoneless by Default (v21): New applications are now generated without zone.js by default, marking a shift to a more modern, signals-based change detection system.
  • HttpClient Included by Default (v21): HttpClient is now provided automatically, often removing the need to import HttpClientModule.
  • Control Flow Syntax: The classic *ngIf and *ngFor structural directives are now deprecated in favor of the new @if and @for block syntax.

Recommendation: This upgrade involves fundamental changes to testing, component architecture, and dependencies. Allocate significant time for migration, especially for the testing infrastructure changes from Karma to Vitest. Use the ng update command to automatically apply code migrations where possible, but expect to perform manual code adjustments and a full regression test.

Notice 🤖: This content was augmented using artificial intelligence. AI-generated content may contain errors and should be reviewed for accuracy before use.

@snyk-io

snyk-io Bot commented Feb 24, 2026

Copy link
Copy Markdown
Author

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@hivel-marco

hivel-marco Bot commented Feb 24, 2026

Copy link
Copy Markdown

Secrets found in the following files: chargebee-js-angular/package-lock.json
PII found in the following files: chargebee-js-angular/package-lock.json

  • chargebee-js-angular/package.json
    PR has too many lines changed - Skipping review. Please keep lines changed under 2000 for high quality reviews

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.

0 participants