Skip to content

Add support for Angular 20 #148

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 1 commit into from
Jun 30, 2025
Merged

Conversation

martinzima
Copy link
Contributor

@martinzima martinzima commented Jun 19, 2025

Description

I have added Anguar 20 version. Pretty much everything isthe same as for version 19.

Related Issues

Checklist

Additional Notes

Let me know if anything else needs to be updated!

@Ni55aN Ni55aN requested a review from Copilot June 30, 2025 15:25
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

Adds support for Angular 20 by mirroring the existing v19 setup in a new ng20 sub-package and updating the root configuration.

  • Updated root package.json scripts and peer dependencies to include Angular 20.
  • Introduced an ng20 package with a tailored tsconfig.json, build scripts, and package metadata.
  • Added patch modules for each preset (reroute, minimap, context-menu, classic) to register standalone components under Angular 20.

Reviewed Changes

Copilot reviewed 14 out of 16 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
package.json Include build:20/postinstall entries and extend peerDependencies to <21
ng20/tsconfig.json Define Angular 20 compiler options
ng20/src Symlink reference to the common src directory
ng20/patch/presets/reroute/module.ts Add Rete reroute preset NgModule for Angular 20
ng20/patch/presets/reroute/components/pins/.pins.component.ts Patch pins component imports for reroute preset
ng20/patch/presets/minimap/module.ts Add Rete minimap preset NgModule for Angular 20
ng20/patch/presets/minimap/components/minimap/.minimap.component.ts Patch minimap component imports
ng20/patch/presets/context-menu/module.ts Add Rete context-menu preset NgModule for Angular 20
ng20/patch/presets/context-menu/components/menu/.menu.component.ts Patch menu component imports
ng20/patch/presets/context-menu/components/item/.item.component.ts Patch item component imports
ng20/patch/presets/classic/components/node/.node.component.ts Patch classic node component imports
ng20/patch/module.ts Define root ReteModule NgModule for Angular 20
ng20/package.json Set up ng20 package metadata and devDependencies
ng20/ng-nested.js Configure ng-packagr for nested Angular 20 package
Comments suppressed due to low confidence (1)

ng20/package.json:2

  • No tests were added for the new Angular 20 package—consider introducing unit and e2e tests to verify the build and patched modules work as expected.
  "name": "rete-angular-plugin-ng20",

"$schema": "./node_modules/ng-packagr/ng-package.schema.json",
"dest": "../dist/20",
"lib": {
"entryFile": "./.src/index.ts"
Copy link
Preview

Copilot AI Jun 30, 2025

Choose a reason for hiding this comment

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

The entryFile path references ./.src/index.ts, but the symlink is created as ng20/src. Rename the directory to .src or update this path to ./src/index.ts so packagr can locate the entry file.

Suggested change
"entryFile": "./.src/index.ts"
"entryFile": "./src/index.ts"

Copilot uses AI. Check for mistakes.

Comment on lines +4 to +6
import { ContextMenuComponent } from './components/menu/menu.component'
import { ContextMenuSearchComponent } from './components/search/search.component'
import { ContextMenuItemComponent } from './components/item/item.component'
Copy link
Preview

Copilot AI Jun 30, 2025

Choose a reason for hiding this comment

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

[nitpick] Add semicolons at the end of these import statements (lines 4–6) to match the prevailing project style and avoid lint errors.

Suggested change
import { ContextMenuComponent } from './components/menu/menu.component'
import { ContextMenuSearchComponent } from './components/search/search.component'
import { ContextMenuItemComponent } from './components/item/item.component'
import { ContextMenuComponent } from './components/menu/menu.component';
import { ContextMenuSearchComponent } from './components/search/search.component';
import { ContextMenuItemComponent } from './components/item/item.component';

Copilot uses AI. Check for mistakes.

@Ni55aN Ni55aN changed the base branch from main to angular-20 June 30, 2025 16:39
@Ni55aN Ni55aN merged commit fa4b044 into retejs:angular-20 Jun 30, 2025
2 of 4 checks passed
@Ni55aN
Copy link
Member

Ni55aN commented Jun 30, 2025

@martinzima thanks for the contribution!

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