Skip to content

feat: add support for angular 22#374

Open
Ni55aN wants to merge 1 commit into
mainfrom
feature/angular-22
Open

feat: add support for angular 22#374
Ni55aN wants to merge 1 commit into
mainfrom
feature/angular-22

Conversation

@Ni55aN

@Ni55aN Ni55aN commented Jul 8, 2026

Copy link
Copy Markdown
Member

Description

Adds Angular 22 support.

  • New ng22/ build target with Angular 22, TypeScript 6, and ng-packagr 22
  • Package export via rete-angular-plugin/22 (dist/22)
  • Compatibility patches for Angular 22:
    • replace ComponentFactoryResolver with ViewContainerRef.createComponent() in ConnectionWrapperComponent
    • update reflect.ts (Proxy typing)
    • patches for classic preset, context-menu, minimap, and reroute (standalone components, trackBy in pins template)
  • Update peerDependencies: @angular/* now >= 12 < 23
  • Add build:22 to root build and postinstall scripts

Related Issues

Checklist

  • I have read and followed the contribution guidelines.
  • I have tested my changes locally.
  • I have updated documentation accordingly (if necessary).

Fix connection rendering under Angular 22 OnPush defaults by using
detectChanges in the connection wrapper and Eager CD on the connection component.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Ni55aN Ni55aN force-pushed the feature/angular-22 branch from 6ce2b57 to 019fd93 Compare July 8, 2026 19:48
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.

1 participant