-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Conversation
a2cdc32
to
43215e8
Compare
There was a problem hiding this 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 tailoredtsconfig.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" |
There was a problem hiding this comment.
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.
"entryFile": "./.src/index.ts" | |
"entryFile": "./src/index.ts" |
Copilot uses AI. Check for mistakes.
import { ContextMenuComponent } from './components/menu/menu.component' | ||
import { ContextMenuSearchComponent } from './components/search/search.component' | ||
import { ContextMenuItemComponent } from './components/item/item.component' |
There was a problem hiding this comment.
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.
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.
@martinzima thanks for the contribution! |
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!