Skip to content

Commit 69fd84c

Browse files
committed
chore: update to angular 21
Waiting for ng-doc to update
1 parent 4cc74de commit 69fd84c

File tree

11 files changed

+4400
-3238
lines changed

11 files changed

+4400
-3238
lines changed

apps/docs/src/main.server.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
import { AppComponent } from './app/app.component';
22
import { config } from './app/app.config.server';
33

4+
import type { BootstrapContext } from '@angular/platform-browser';
45
import { bootstrapApplication } from '@angular/platform-browser';
56

6-
const bootstrap = () => bootstrapApplication(AppComponent, config);
7+
const bootstrap = (context: BootstrapContext) =>
8+
bootstrapApplication(
9+
AppComponent,
10+
{ ...config, providers: [provideZoneChangeDetection(), ...config.providers] },
11+
context
12+
);
713

814
export default bootstrap;

apps/docs/src/main.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@ import { AppComponent } from './app/app.component';
22
import { appConfig } from './app/app.config';
33
import { environment } from './environments/environment';
44

5-
import { enableProdMode } from '@angular/core';
5+
import { enableProdMode, provideZoneChangeDetection } from '@angular/core';
66
import { bootstrapApplication } from '@angular/platform-browser';
77

88
if (environment.production) {
99
enableProdMode();
1010
}
1111

12-
bootstrapApplication(AppComponent, appConfig).catch((e) => console.log(e));
12+
bootstrapApplication(AppComponent, {
13+
...appConfig,
14+
providers: [provideZoneChangeDetection(), ...appConfig.providers],
15+
}).catch((e) => console.log(e));

apps/docs/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
"noImplicitReturns": true,
2020
"noFallthroughCasesInSwitch": true,
2121
"target": "ES2022",
22-
"esModuleInterop": true
22+
"esModuleInterop": true,
23+
"module": "preserve",
24+
"moduleResolution": "bundler"
2325
},
2426
"angularCompilerOptions": {
2527
"strictInjectionParameters": true,

apps/storybook/.storybook/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// This file has been automatically migrated to valid ESM format by Storybook.
12
import type { StorybookConfig } from '@storybook/angular';
23

34
import { createRequire } from 'node:module';
@@ -10,7 +11,7 @@ const config: StorybookConfig = {
1011
staticDirs: ['../public'],
1112
addons: [getAbsolutePath('@storybook/addon-themes'), getAbsolutePath('@storybook/addon-docs')],
1213
framework: {
13-
name: '@storybook/angular',
14+
name: getAbsolutePath('@storybook/angular'),
1415
options: {},
1516
},
1617
docs: {

libs/flowbite-angular/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@
3131
}
3232
},
3333
"peerDependencies": {
34-
"@angular/cdk": ">=20.0.0 < 21.0.0",
35-
"@angular/core": ">=20.0.0 < 21.0.0",
36-
"@ng-icons/core": "^31.3.0",
37-
"@ng-primitives/state": ">=0.57.0",
34+
"@angular/cdk": ">=21.0.0 < 22.0.0",
35+
"@angular/core": ">=21.0.0 < 22.0.0",
36+
"@ng-icons/core": ">=33.0.0",
37+
"@ng-primitives/state": ">=0.90.0",
3838
"@tailwindcss/postcss": "^4.0.0",
39-
"ng-primitives": ">=0.57.0",
39+
"ng-primitives": ">=0.90.0",
4040
"rxjs": "^7.4.0",
4141
"tailwind-merge": "2.5.5",
4242
"tailwindcss": "^4.0.0"

libs/flowbite-angular/project.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@
1010
"executor": "@nx/angular:package",
1111
"outputs": ["{workspaceRoot}/dist/libs/flowbite-angular"],
1212
"options": {
13-
"project": "libs/flowbite-angular/ng-package.json"
13+
"project": "libs/flowbite-angular/ng-package.json",
14+
"tsConfig": "libs/flowbite-angular/tsconfig.lib.json"
1415
},
1516
"configurations": {
1617
"production": {
1718
"tsConfig": "libs/flowbite-angular/tsconfig.lib.prod.json"
1819
},
19-
"development": {
20-
"tsConfig": "libs/flowbite-angular/tsconfig.lib.json"
21-
}
20+
"development": {}
2221
},
2322
"defaultConfiguration": "production"
2423
},

libs/flowbite-angular/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
"noPropertyAccessFromIndexSignature": true,
1818
"noImplicitReturns": true,
1919
"noFallthroughCasesInSwitch": true,
20-
"target": "ES2022"
20+
"target": "ES2022",
21+
"module": "preserve",
22+
"moduleResolution": "bundler"
2123
},
2224
"angularCompilerOptions": {
2325
"strictInjectionParameters": true,

libs/tools/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"main": "./src/index.js",
77
"types": "./src/index.d.ts",
88
"dependencies": {
9-
"@nx/angular": "21.2.2",
10-
"@nx/devkit": "21.2.2",
9+
"@nx/angular": "22.3.1",
10+
"@nx/devkit": "22.3.1",
1111
"tslib": "^2.3.0"
1212
},
1313
"generators": "./generators.json"

nx.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@
105105
}
106106
},
107107
"projects": ["flowbite-angular"],
108-
"releaseTagPattern": "flowbite-angular@v{version}"
108+
"releaseTag": {
109+
"pattern": "flowbite-angular@v{version}"
110+
}
109111
}
110112
}

package.json

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -27,60 +27,60 @@
2727
"storybook:static-build": "nx run storybook:static-storybook"
2828
},
2929
"dependencies": {
30-
"@angular/animations": "20.0.6",
31-
"@angular/cdk": "20.0.5",
32-
"@angular/common": "20.0.6",
33-
"@angular/compiler": "20.0.6",
34-
"@angular/core": "20.0.6",
35-
"@angular/forms": "20.0.6",
36-
"@angular/platform-browser": "20.0.6",
37-
"@angular/platform-browser-dynamic": "20.0.6",
38-
"@angular/platform-server": "20.0.6",
39-
"@angular/router": "20.0.6",
40-
"@angular/ssr": "20.0.5",
30+
"@angular/animations": "21.0.6",
31+
"@angular/cdk": "21.0.5",
32+
"@angular/common": "21.0.6",
33+
"@angular/compiler": "21.0.6",
34+
"@angular/core": "21.0.6",
35+
"@angular/forms": "21.0.6",
36+
"@angular/platform-browser": "21.0.6",
37+
"@angular/platform-browser-dynamic": "21.0.6",
38+
"@angular/platform-server": "21.0.6",
39+
"@angular/router": "21.0.6",
40+
"@angular/ssr": "21.0.4",
4141
"@floating-ui/dom": "^1.6.0",
4242
"@ng-doc/app": "20.1.0",
4343
"@ng-doc/builder": "20.1.0",
4444
"@ng-doc/core": "20.1.0",
4545
"@ng-doc/ui-kit": "20.1.0",
46-
"@ng-icons/core": "^31.3.0",
46+
"@ng-icons/core": "^33.0.0",
4747
"@ng-primitives/state": "0.78.0",
48-
"@nx/devkit": "21.2.2",
48+
"@nx/devkit": "22.3.1",
4949
"@tailwindcss/postcss": "^4.0.0",
5050
"express": "4.18.3",
5151
"ng-primitives": "0.86.0",
5252
"postcss": "^8.5.3",
5353
"rxjs": "^7.4.0",
5454
"tailwind-merge": "2.5.5",
5555
"tslib": "2.8.1",
56-
"zone.js": "0.15.0"
56+
"zone.js": "0.16.0"
5757
},
5858
"devDependencies": {
59-
"@angular-devkit/architect": "0.2000.5",
60-
"@angular-devkit/core": "20.0.5",
61-
"@angular-devkit/schematics": "20.0.5",
62-
"@angular-eslint/eslint-plugin": "20.1.1",
63-
"@angular-eslint/eslint-plugin-template": "20.1.1",
64-
"@angular-eslint/template-parser": "20.1.1",
65-
"@angular/cli": "~20.0.0",
66-
"@angular/compiler-cli": "20.0.6",
67-
"@angular/language-service": "20.0.6",
59+
"@angular-devkit/architect": "0.2100.4",
60+
"@angular-devkit/core": "21.0.4",
61+
"@angular-devkit/schematics": "21.0.4",
62+
"@angular-eslint/eslint-plugin": "21.1.0",
63+
"@angular-eslint/eslint-plugin-template": "21.1.0",
64+
"@angular-eslint/template-parser": "21.1.0",
65+
"@angular/cli": "~21.0.0",
66+
"@angular/compiler-cli": "21.0.6",
67+
"@angular/language-service": "21.0.6",
6868
"@commitlint/cli": "18.6.1",
6969
"@commitlint/config-conventional": "18.6.3",
7070
"@ianvs/prettier-plugin-sort-imports": "4.4.0",
7171
"@ng-doc/keywords-loaders": "20.1.0",
72-
"@nx/angular": "21.2.2",
73-
"@nx/eslint": "21.2.2",
74-
"@nx/eslint-plugin": "21.2.2",
75-
"@nx/js": "21.2.2",
76-
"@nx/plugin": "21.2.2",
77-
"@nx/storybook": "^21.2.2",
78-
"@nx/web": "21.2.2",
79-
"@nx/workspace": "21.2.2",
80-
"@schematics/angular": "20.0.5",
81-
"@storybook/addon-docs": "9.0.15",
82-
"@storybook/addon-themes": "9.0.15",
83-
"@storybook/angular": "9.0.15",
72+
"@nx/angular": "22.3.1",
73+
"@nx/eslint": "22.3.1",
74+
"@nx/eslint-plugin": "22.3.1",
75+
"@nx/js": "22.3.1",
76+
"@nx/plugin": "22.3.1",
77+
"@nx/storybook": "22.3.1",
78+
"@nx/web": "22.3.1",
79+
"@nx/workspace": "22.3.1",
80+
"@schematics/angular": "21.0.4",
81+
"@storybook/addon-docs": "10.1.10",
82+
"@storybook/addon-themes": "10.1.10",
83+
"@storybook/angular": "10.1.10",
8484
"@swc-node/register": "~1.9.1",
8585
"@swc/cli": "~0.6.0",
8686
"@swc/core": "~1.5.7",
@@ -93,23 +93,23 @@
9393
"eslint": "8.57.0",
9494
"eslint-config-prettier": "10.1.2",
9595
"eslint-plugin-prettier": "5.2.1",
96-
"eslint-plugin-storybook": "9.0.15",
96+
"eslint-plugin-storybook": "10.1.10",
9797
"husky": "9.1.7",
9898
"jsonc-eslint-parser": "2.4.0",
9999
"lint-staged": "15.2.10",
100-
"ng-packagr": "20.0.1",
101-
"nx": "21.2.2",
100+
"ng-packagr": "21.0.1",
101+
"nx": "22.3.1",
102102
"postcss-loader": "8.1.1",
103103
"prettier": "3.4.2",
104104
"prettier-eslint": "16.3.0",
105105
"prettier-plugin-packagejson": "2.5.6",
106106
"prettier-plugin-tailwindcss": "^0.6.11",
107107
"shiki": "1.24.2",
108-
"storybook": "9.0.15",
108+
"storybook": "10.1.10",
109109
"stylelint": "16.12.0",
110110
"stylelint-config-standard": "36.0.1",
111111
"tailwindcss": "^4.0.0",
112112
"ts-node": "10.9.2",
113-
"typescript": "5.8.3"
113+
"typescript": "5.9.3"
114114
}
115115
}

0 commit comments

Comments
 (0)