Skip to content

[Snyk] Security upgrade @angular/platform-server from 14.3.0 to 19.2.21#188

Open
patzeltj wants to merge 1 commit intodevelopfrom
snyk-fix-326f1b785184930a0af6476de086ddf4
Open

[Snyk] Security upgrade @angular/platform-server from 14.3.0 to 19.2.21#188
patzeltj wants to merge 1 commit intodevelopfrom
snyk-fix-326f1b785184930a0af6476de086ddf4

Conversation

@patzeltj
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):

  • package.json
⚠️ Warning
Failed to update the package-lock.json, please update manually before merging.

Vulnerabilities that will be fixed with an upgrade:

Issue Score
high severity Server-side Request Forgery (SSRF)
SNYK-JS-ANGULARPLATFORMSERVER-16097942
  696  

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:

🦉 Server-side Request Forgery (SSRF)

@patzeltj
Copy link
Copy Markdown
Author

Merge Risk: High

This is a major upgrade spanning five versions, from Angular 14 to 19. It introduces a series of significant breaking changes, new APIs, and fundamental architectural shifts. A direct upgrade is not feasible; a sequential, version-by-version migration is required (14->15, 15->16, etc.) to manage the changes.

Key Breaking Changes & Architectural Shifts:

  • Standalone as Default: The application architecture shifts from NgModules to standalone components, directives, and pipes. This is a fundamental change introduced in v14, becoming stable in v15 and the default in v17. Your application bootstrap and structure will need a complete overhaul.

  • Server-Side Rendering (SSR) and Hydration Overhaul: The entire approach to SSR has been modernized.

    • v16 introduced non-destructive hydration, which reuses the server-rendered DOM instead of re-rendering it, preventing screen flicker.
    • v17 integrated SSR more deeply with the new @angular/ssr package.
    • v19 introduced a developer preview of incremental hydration, allowing parts of a page to become interactive on demand.
      This requires rewriting the server configuration and bootstrap process.
  • New Template Control Flow: Angular v17 replaced structural directives like *ngIf and *ngFor with a new, built-in block syntax (@if, @for). Automated migrations via ng update will assist with this, but it's a major syntax change.

  • Build System Modernization: The build toolchain has been replaced. Angular v17 defaults to using Vite and esbuild, resulting in significantly faster build times but requiring updates to angular.json configurations. The separate server builder

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

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