Skip to content

Commit cd4e900

Browse files
authored
chore(release): update to angular 21 (#149)
* chore(release): update to angular 21
1 parent 4cc74de commit cd4e900

File tree

12 files changed

+7447
-5963
lines changed

12 files changed

+7447
-5963
lines changed

apps/docs/src/app/app.config.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ import { docDemoDisplayerProcessor } from './shared/processors/doc-demo-displaye
44
import { provideFlowbiteThemeConfig } from 'flowbite-angular/theme-toggle';
55

66
import { provideHttpClient, withFetch, withInterceptorsFromDi } from '@angular/common/http';
7-
import { type ApplicationConfig } from '@angular/core';
7+
import { provideZoneChangeDetection, type ApplicationConfig } from '@angular/core';
88
import { provideClientHydration } from '@angular/platform-browser';
9-
import { provideAnimations } from '@angular/platform-browser/animations';
109
import { provideRouter, withInMemoryScrolling } from '@angular/router';
1110
import {
1211
NG_DOC_DEFAULT_PAGE_PROCESSORS,
@@ -23,7 +22,6 @@ import { provideNgDocContext } from '@ng-doc/generated';
2322
export const appConfig: ApplicationConfig = {
2423
providers: [
2524
// #region NgDoc
26-
provideAnimations(),
2725
provideNgDocContext(),
2826
provideNgDocApp({
2927
shiki: {
@@ -42,6 +40,7 @@ export const appConfig: ApplicationConfig = {
4240
provideMainPageProcessor(NG_DOC_DEFAULT_PAGE_PROCESSORS),
4341
providePageProcessor(docDemoDisplayerProcessor),
4442
// #endregion
43+
provideZoneChangeDetection(),
4544
provideClientHydration(),
4645
provideRouter(
4746
appRoutes,

apps/docs/src/main.server.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
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(AppComponent, config, context);
79

810
export default bootstrap;

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/navbar/src/navbar-brand/navbar-brand.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { twMerge } from 'tailwind-merge';
1717
providers: [provideFlowbiteNavbarBrandState()],
1818
host: {
1919
'[class]': `theme().host.root`,
20-
'[attr.type]': 'button',
20+
type: 'button',
2121
},
2222
})
2323
export class NavbarBrand {

libs/flowbite-angular/package.json

Lines changed: 4 additions & 4 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",
34+
"@angular/cdk": ">=21.0.0 < 22.0.0",
35+
"@angular/core": ">=21.0.0 < 22.0.0",
3636
"@ng-icons/core": "^31.3.0",
37-
"@ng-primitives/state": ">=0.57.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/tools/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
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",
11-
"tslib": "^2.3.0"
9+
"@nx/angular": "22.3.3",
10+
"@nx/devkit": "22.3.3",
11+
"tslib": "^2.8.1"
1212
},
1313
"generators": "./generators.json"
1414
}

libs/tools/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "../../tsconfig.base.json",
33
"compilerOptions": {
4-
"module": "commonjs"
4+
"module": "preserve"
55
},
66
"files": [],
77
"include": [],

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: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -27,89 +27,89 @@
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.8",
31+
"@angular/cdk": "21.0.6",
32+
"@angular/common": "21.0.8",
33+
"@angular/compiler": "21.0.8",
34+
"@angular/core": "21.0.8",
35+
"@angular/forms": "21.0.8",
36+
"@angular/platform-browser": "21.0.8",
37+
"@angular/platform-browser-dynamic": "21.0.8",
38+
"@angular/platform-server": "21.0.8",
39+
"@angular/router": "21.0.8",
40+
"@angular/ssr": "21.0.5",
4141
"@floating-ui/dom": "^1.6.0",
42-
"@ng-doc/app": "20.1.0",
43-
"@ng-doc/builder": "20.1.0",
44-
"@ng-doc/core": "20.1.0",
45-
"@ng-doc/ui-kit": "20.1.0",
42+
"@ng-doc/app": "21.0.0",
43+
"@ng-doc/builder": "21.0.0",
44+
"@ng-doc/core": "21.0.0",
45+
"@ng-doc/ui-kit": "21.0.0",
4646
"@ng-icons/core": "^31.3.0",
47-
"@ng-primitives/state": "0.78.0",
48-
"@nx/devkit": "21.2.2",
47+
"@ng-primitives/state": "^0.90.0",
48+
"@nx/devkit": "22.3.3",
4949
"@tailwindcss/postcss": "^4.0.0",
5050
"express": "4.18.3",
51-
"ng-primitives": "0.86.0",
51+
"ng-primitives": "^0.90.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.5",
60+
"@angular-devkit/core": "21.0.5",
61+
"@angular-devkit/schematics": "21.0.5",
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.5",
66+
"@angular/compiler-cli": "21.0.8",
67+
"@angular/language-service": "21.0.8",
6868
"@commitlint/cli": "18.6.1",
6969
"@commitlint/config-conventional": "18.6.3",
7070
"@ianvs/prettier-plugin-sort-imports": "4.4.0",
71-
"@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",
71+
"@ng-doc/keywords-loaders": "21.0.0",
72+
"@nx/angular": "22.3.3",
73+
"@nx/eslint": "22.3.3",
74+
"@nx/eslint-plugin": "22.3.3",
75+
"@nx/js": "22.3.3",
76+
"@nx/plugin": "22.3.3",
77+
"@nx/storybook": "22.3.3",
78+
"@nx/web": "22.3.3",
79+
"@nx/workspace": "22.3.3",
80+
"@schematics/angular": "21.0.5",
81+
"@storybook/addon-docs": "10.1.11",
82+
"@storybook/addon-themes": "10.1.11",
83+
"@storybook/angular": "10.1.11",
8484
"@swc-node/register": "~1.9.1",
8585
"@swc/cli": "~0.6.0",
8686
"@swc/core": "~1.5.7",
8787
"@swc/helpers": "~0.5.11",
8888
"@types/express": "4.17.14",
89-
"@types/node": "18.16.9",
89+
"@types/node": "25.0.6",
9090
"@typescript-eslint/eslint-plugin": "7.18.0",
9191
"@typescript-eslint/parser": "7.18.0",
9292
"@typescript-eslint/utils": "7.18.0",
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.11",
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.3",
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.11",
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)