-
Notifications
You must be signed in to change notification settings - Fork 49
chore(release): update to angular 21 #149
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,14 @@ | ||
| import { AppComponent } from './app/app.component'; | ||
| import { config } from './app/app.config.server'; | ||
|
|
||
| import type { BootstrapContext } from '@angular/platform-browser'; | ||
| import { bootstrapApplication } from '@angular/platform-browser'; | ||
|
|
||
| const bootstrap = () => bootstrapApplication(AppComponent, config); | ||
| const bootstrap = (context: BootstrapContext) => | ||
| bootstrapApplication( | ||
| AppComponent, | ||
| { ...config, providers: [provideZoneChangeDetection(), ...config.providers] }, | ||
| context | ||
| ); | ||
|
|
||
| export default bootstrap; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,12 +31,12 @@ | |
| } | ||
| }, | ||
| "peerDependencies": { | ||
| "@angular/cdk": ">=20.0.0 < 21.0.0", | ||
| "@angular/core": ">=20.0.0 < 21.0.0", | ||
| "@ng-icons/core": "^31.3.0", | ||
| "@ng-primitives/state": ">=0.57.0", | ||
| "@angular/cdk": ">=21.0.0 < 22.0.0", | ||
| "@angular/core": ">=21.0.0 < 22.0.0", | ||
| "@ng-icons/core": ">=33.0.0", | ||
| "@ng-primitives/state": ">=0.90.0", | ||
| "@tailwindcss/postcss": "^4.0.0", | ||
| "ng-primitives": ">=0.57.0", | ||
| "ng-primitives": ">=0.90.0", | ||
| "rxjs": "^7.4.0", | ||
|
Comment on lines
+34
to
40
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Verify peer dependency versions exist and check compatibility
echo "=== Checking @ng-icons/core versions ==="
npm view @ng-icons/core versions --json | jq -r '.[] | select(test("^33\\."))'
echo -e "\n=== Checking @ng-icons/core peerDependencies ==="
npm view @ng-icons/core@33.0.0 peerDependencies --json
echo -e "\n=== Checking ng-primitives versions ==="
npm view ng-primitives versions --json | jq -r '.[] | select(test("^0\\.9[0-9]\\."))'
echo -e "\n=== Checking ng-primitives peerDependencies ==="
npm view ng-primitives@0.90.0 peerDependencies --json 2>/dev/null || echo "Version 0.90.0 not found"
echo -e "\n=== Checking @ng-primitives/state versions ==="
npm view @ng-primitives/state versions --json | jq -r '.[] | select(test("^0\\.9[0-9]\\."))'
echo -e "\n=== Checking @ng-primitives/state peerDependencies ==="
npm view @ng-primitives/state@0.90.0 peerDependencies --json 2>/dev/null || echo "Version 0.90.0 not found"Repository: themesberg/flowbite-angular Length of output: 781 Add missing peer dependency: @angular/forms. The versions of @ng-icons/core (33.x), @ng-primitives/state (0.90.0), and ng-primitives (0.90.0) are all available and compatible with Angular 21. However, ng-primitives 0.90.0 requires @angular/forms as a peer dependency, which is currently missing from package.json and must be added. 🤖 Prompt for AI Agents |
||
| "tailwind-merge": "2.5.5", | ||
| "tailwindcss": "^4.0.0" | ||
|
|
||
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.
Missing import for
provideZoneChangeDetection.The bootstrap function uses
provideZoneChangeDetection()on Line 10, but this function is not imported. This will cause a runtime error.🔎 Proposed fix
import { AppComponent } from './app/app.component'; import { config } from './app/app.config.server'; import type { BootstrapContext } from '@angular/platform-browser'; -import { bootstrapApplication } from '@angular/platform-browser'; +import { bootstrapApplication } from '@angular/platform-browser'; +import { provideZoneChangeDetection } from '@angular/core'; const bootstrap = (context: BootstrapContext) => bootstrapApplication( AppComponent, { ...config, providers: [provideZoneChangeDetection(), ...config.providers] }, context );🤖 Prompt for AI Agents