Commit 35f2b3f
authored
feat: update to angular v21 (#561)
Closes: #552
---
## Changes by Nx Migrations (automatic)
| Change | Migration | Reason |
|--------|-----------|--------|
| `module: "preserve"`, `moduleResolution: "bundler"` |
`update-module-resolution-22-2-0` | Aligns with esbuild/Vite build
system |
| `lib: ["dom", "es2022"]` | `update-typescript-lib-22-2-0` | Enables
ES2022 features |
| `isolatedModules: true` in tsconfig.spec.json |
`set-isolated-modules-22-3-0` | Required by modern bundlers |
| `tsConfig` in project.json | `set-tsconfig-option` | Explicit path for
reliability |
| `BootstrapContext` in main.server.ts |
`add-bootstrap-context-to-server-main` | Angular 21 SSR requirement |
---
## Changes by Storybook 10 Migration (automatic)
| Change | Reason |
|--------|--------|
| `module.exports` → `export default` | Storybook 10 requires ESM |
| `addon-essentials` → `addon-docs` | Essential features now in core |
| Added `docs: { autodocs: true }` | New autodocs config format |
---
## Manual Changes for Storybook 10
| Change | Reason |
|--------|--------|
| `type: "module"` in library package.json | Avoids ESM warnings |
| `jsx: "react"`, `skipLibCheck: true` in .storybook/tsconfig.json |
Fixes MDX/JSX compilation errors |
| `declarations` → `imports` in stories | Angular 20+ components are
standalone by default |
| Removed `@storybook/core-server` | Incompatible with Storybook 10 |
---
## Manual Changes for Angular 21
| Change | Reason |
|--------|--------|
| Peer dependencies → `^21.1.0` | Library requires Angular 21+ |
---
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Chores**
* Upgraded Angular framework and dependencies from version 20 to 21.1.2
for improved compatibility and stability.
* Updated build tooling, development dependencies, and project
configurations to align with Angular 21 ecosystem standards.
* Enhanced Storybook setup and TypeScript compilation configuration.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 631e924 commit 35f2b3f
14 files changed
Lines changed: 9146 additions & 12868 deletions
File tree
- apps/ngu-carousel-example
- src
- libs/ngu/carousel
- .storybook
- src/lib
- ngu-item
- ngu-tile
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
4 | 7 | | |
5 | 8 | | |
6 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
5 | 8 | | |
6 | 9 | | |
7 | 10 | | |
| |||
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | | - | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | | - | |
18 | | - | |
19 | | - | |
| 18 | + | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
28 | | - | |
| 27 | + | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
| |||
Lines changed: 14 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
8 | 16 | | |
9 | | - | |
| 17 | + | |
10 | 18 | | |
11 | 19 | | |
12 | 20 | | |
| |||
Lines changed: 14 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
8 | 16 | | |
9 | | - | |
| 17 | + | |
10 | 18 | | |
11 | 19 | | |
12 | 20 | | |
| |||
0 commit comments