Commit 6b8763b
authored
AUI-51 / Feat: Upgrade to Angular 21, Vitest, standalone, oxfmt (#1420)
* feat!: update packages to 21, make standalone, switch from jest to vite
- Upgrade all @angular/* packages from v20 to v21
- Replace @angular-builders/jest with @angular/build:unit-test (Vitest runner)
- Upgrade RxJS from v6 to v7, add npm overrides for @hypertrace/hyperdash peer dep
- Make all library and app components/directives/pipes standalone
- Remove deprecated APIs: ComponentFactoryResolver, HttpClientTestingModule, *ngIf/*ngFor
- Replace zone-dependent test utilities (fakeAsync/tick) with Vitest fake timers
- Remove @ngneat/spectator, zone.js, and all Jest-related dependencies
BREAKING CHANGE: Update Angular to v21, RxJS to v7,
make components standalone, switch from Jest to Vitest
* chore: change from prettier to oxfmt
* fix: fix broken test under node 20
* docs: update README for Vitest and fix commit command
* chore: remove check overrides
* test: replace istanbul comments with v8 comments
* test: make test components standalone
* fix: restore RxJS 6 compatibility for Angular 21
Revert the branch to RxJS 6 and align published peer
constraints with upstream hyperdash requirements.
Add a shared Vitest runner config so Angular 21 tests
resolve correctly when RxJS 6 is installed.
* chore: remove redundant standalone directive
* chore: remove redundant standlone metadata
* chore: remove Codecov
* chore: clean up stale tooling artifacts and review findings
- Remove eslint-config-prettier and its ESLint extends entry (replaced by oxfmt)
- Remove ts-node devDependency (no longer needed after Jest→Vitest)
- Remove stale .vscode/launch.json (referenced deleted Jest config)
- Remove emitDecoratorMetadata from tsconfig (unnecessary for Angular)
- Remove duplicate deserialization-manager.service export in public_api
- Remove vestigial standalone param from mockDirective test utility
- Widen rxjs peer dependency to ^6.5.5 || ^7.0.0
- Enable @angular-eslint/prefer-standalone lint rule
- Add non-standalone renderer backward compatibility test
- Add util/ to coverage exclusions (types-only files)
- Update README with Angular 21 prerequisites and RxJS 6+7 support
* fix: filter pre-commit hook to formattable file types
* chore: change to node 22
* chore: migrate from npm to pnpm
Replace npm with pnpm as the package manager across the repo:
- Add packageManager field and pnpm config to package.json
- Add ci script for frozen-lockfile installs
- Update CI workflows to use pnpm with node_modules caching
- Align publish workflow to Node 22
- Replace package-lock.json with pnpm-lock.yaml
- Update CLAUDE.md command references
* fix: approve lmdb and msgpackr-extract build scripts for pnpm
These native addons are transitive dependencies of @parcel/watcher
used by the Angular build toolchain. Without their build scripts
running, native bindings aren't compiled, causing AOT compilation
issues in CI.1 parent b8a57e5 commit 6b8763b
File tree
58 files changed
+13467
-32627
lines changed- .github
- workflows
- .husky
- .vscode
- projects/hyperdash-angular
- src
- configuration
- editor
- model-json
- model
- nested-model
- injectable-wrappers
- deserialization
- model/decorators
- module
- rendering
- api
- test
- src
- app
- example-dash
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
58 files changed
+13467
-32627
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
31 | | - | |
| 30 | + | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | | - | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | | - | |
18 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
19 | 27 | | |
20 | | - | |
21 | | - | |
| 28 | + | |
| 29 | + | |
22 | 30 | | |
23 | 31 | | |
24 | | - | |
| 32 | + | |
25 | 33 | | |
26 | 34 | | |
27 | 35 | | |
| |||
30 | 38 | | |
31 | 39 | | |
32 | 40 | | |
33 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
34 | 45 | | |
35 | 46 | | |
36 | | - | |
37 | | - | |
| 47 | + | |
38 | 48 | | |
39 | | - | |
40 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
41 | 54 | | |
42 | | - | |
43 | | - | |
| 55 | + | |
| 56 | + | |
44 | 57 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 58 | + | |
| 59 | + | |
50 | 60 | | |
51 | 61 | | |
52 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | | - | |
22 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
23 | 31 | | |
24 | | - | |
25 | | - | |
| 32 | + | |
| 33 | + | |
26 | 34 | | |
27 | 35 | | |
28 | | - | |
| 36 | + | |
29 | 37 | | |
30 | 38 | | |
31 | 39 | | |
| |||
36 | 44 | | |
37 | 45 | | |
38 | 46 | | |
39 | | - | |
| 47 | + | |
40 | 48 | | |
41 | 49 | | |
42 | | - | |
| 50 | + | |
43 | 51 | | |
44 | 52 | | |
45 | 53 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
| 25 | + | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
41 | 42 | | |
42 | | - | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
72 | | - | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
| 76 | + | |
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
79 | | - | |
80 | | - | |
| 81 | + | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| |||
0 commit comments