Skip to content

Commit 5656727

Browse files
committed
Angular 21.1 #11932
1 parent 82bdad1 commit 5656727

File tree

7 files changed

+840
-1036
lines changed

7 files changed

+840
-1036
lines changed

package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@
2222
},
2323
"private": true,
2424
"dependencies": {
25-
"@angular/cdk": "^20.2.10",
26-
"@angular/common": "^20.3.7",
27-
"@angular/compiler": "^20.3.7",
28-
"@angular/core": "^20.3.7",
29-
"@angular/forms": "^20.3.7",
30-
"@angular/localize": "^20.3.7",
31-
"@angular/material": "^20.2.10",
32-
"@angular/platform-browser": "^20.3.7",
33-
"@angular/router": "^20.3.7",
25+
"@angular/cdk": "^21.1.1",
26+
"@angular/common": "^21.1.1",
27+
"@angular/compiler": "^21.1.1",
28+
"@angular/core": "^21.1.1",
29+
"@angular/forms": "^21.1.1",
30+
"@angular/localize": "^21.1.1",
31+
"@angular/material": "^21.1.1",
32+
"@angular/platform-browser": "^21.1.1",
33+
"@angular/router": "^21.1.1",
3434
"@apollo/client": "^3.13.7",
3535
"@ecodev/natural-layout": "^2.0.2",
3636
"@graphql-tools/mock": "^9.0.25",
@@ -57,14 +57,14 @@
5757
"zone.js": "~0.15.1"
5858
},
5959
"devDependencies": {
60-
"@angular/build": "^20.3.7",
61-
"@angular/cli": "^20.3.7",
62-
"@angular/compiler-cli": "^20.3.7",
63-
"@angular/language-service": "^20.3.7",
60+
"@angular/build": "^21.1.1",
61+
"@angular/cli": "^21.1.1",
62+
"@angular/compiler-cli": "^21.1.1",
63+
"@angular/language-service": "^21.1.1",
6464
"@playwright/test": "^1.55.0",
6565
"@types/jasmine": "~5.1.9",
6666
"@types/node": "^22.14.1",
67-
"angular-eslint": "^20.2.0",
67+
"angular-eslint": "^21.1.0",
6868
"eslint": "^9.24.0",
6969
"jasmine-core": "~5.10.0",
7070
"jasmine-spec-reporter": "~7.0.0",
@@ -73,7 +73,7 @@
7373
"karma-coverage": "^2.2.1",
7474
"karma-jasmine": "~5.1.0",
7575
"karma-jasmine-html-reporter": "^2.1.0",
76-
"ng-packagr": "^20.3.0",
76+
"ng-packagr": "^21.1.0",
7777
"postcss": "^8.5.6",
7878
"prettier": "3.6.2",
7979
"prettier-plugin-css-order": "^2.1.2",

projects/natural-editor/tsconfig.lib.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
"outDir": "../../out-tsc/lib",
66
"declaration": true,
77
"declarationMap": true,
8-
"inlineSources": true,
9-
"lib": ["dom", "ES2022"]
8+
"inlineSources": true
109
},
1110
"exclude": ["**/*.spec.ts"]
1211
}

projects/natural/src/lib/directives/http-prefix.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function ensureHttpPrefix(value: string | null): string | null {
2525
@Directive({
2626
selector: '[naturalHttpPrefix]',
2727
host: {
28-
'(ngModelChange)': 'httpize($event)',
28+
'(ngModelChange)': 'httpize($any($event))',
2929
},
3030
})
3131
export class NaturalHttpPrefixDirective {

projects/natural/tsconfig.lib.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"declaration": true,
66
"inlineSources": true,
77
"types": [],
8-
"lib": ["dom", "ES2022"],
98
"declarationMap": true
109
},
1110
"angularCompilerOptions": {

src/app/list/list.component.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,13 @@ describe('Demo ListComponent', () => {
7070
}).compileComponents();
7171
});
7272

73-
// eslint-disable-next-line @typescript-eslint/require-await
7473
beforeEach(async () => {
7574
fixture = TestBed.createComponent(ListComponent);
7675
component = fixture.componentInstance;
7776

7877
router = TestBed.inject(Router);
7978
persistenceService = TestBed.inject(NaturalPersistenceService);
80-
router.navigateByUrl('/my/home;cat=123/list-a;dog=456');
79+
await router.navigateByUrl('/my/home;cat=123/list-a;dog=456');
8180
});
8281

8382
it('should be created', () => {

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"skipLibCheck": true,
1717
"isolatedModules": true,
1818
"typeRoots": ["node_modules/@types"],
19-
"lib": ["ES2022", "dom"],
2019
"paths": {
2120
"@ecodev/natural": ["projects/natural/src/public-api"],
2221
"@ecodev/natural-editor": ["projects/natural-editor/src/public-api"]

0 commit comments

Comments
 (0)