Skip to content

Commit fe0c635

Browse files
johnmckay-rewardtimofei-iatsenko
authored andcommitted
update to angular 14
1 parent add1c08 commit fe0c635

File tree

7 files changed

+3961
-3780
lines changed

7 files changed

+3961
-3780
lines changed

angular.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,5 @@
131131
}
132132
}
133133
}
134-
},
135-
"defaultProject": "angular-cc-library"
134+
}
136135
}

package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,38 +12,38 @@
1212
},
1313
"private": true,
1414
"dependencies": {
15-
"@angular-builders/jest": "^13.0.0-beta.0",
16-
"@angular/common": "~13.0.0",
17-
"@angular/compiler": "~13.0.0",
18-
"@angular/core": "~13.0.0",
19-
"@angular/forms": "~13.0.0",
20-
"@angular/platform-browser": "~13.0.0",
21-
"@angular/platform-browser-dynamic": "~13.0.0",
22-
"@types/jest": "^27.0.2",
23-
"jest": "^27.3.1",
15+
"@angular/common": "^14.0.3",
16+
"@angular/compiler": "^14.0.3",
17+
"@angular/core": "^14.0.3",
18+
"@angular/forms": "^14.0.3",
19+
"@angular/platform-browser": "^14.0.3",
20+
"@angular/platform-browser-dynamic": "^14.0.3",
2421
"rxjs": "~6.6.3",
2522
"tslib": "^2.1.0",
2623
"zone.js": "~0.11.4"
2724
},
2825
"devDependencies": {
29-
"@angular-devkit/build-angular": "~13.0.1",
30-
"@angular/cli": "~13.0.1",
31-
"@angular/compiler-cli": "~13.0.0",
32-
"@angular/language-service": "~13.0.0",
26+
"@angular-builders/jest": "14.0.0",
27+
"@angular-devkit/build-angular": "^14.0.2",
28+
"@angular/cli": "^14.0.2",
29+
"@angular/compiler-cli": "^14.0.3",
30+
"@angular/language-service": "^14.0.3",
31+
"@types/jest": "^27.5.2",
3332
"@types/node": "^12.11.1",
3433
"codelyzer": "^6.0.0",
3534
"husky": "^4.2.3",
35+
"jest": "28.1.1",
3636
"lint-staged": "^11.2.6",
37-
"ng-packagr": "^13.0.3",
37+
"ng-packagr": "^14.0.2",
3838
"ngx-deploy-npm": "^1.3.2",
3939
"ts-node": "~9.1.1",
4040
"tslint": "~6.1.3",
41-
"typescript": "~4.4.4"
41+
"typescript": "~4.7.4"
4242
},
4343
"lint-staged": {
4444
"*.ts": [
4545
"tslint --fix",
4646
"git add"
4747
]
4848
}
49-
}
49+
}

projects/angular-cc-library/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323

2424
},
2525
"peerDependencies": {
26-
"@angular/common": "13",
27-
"@angular/core": "13",
26+
"@angular/common": "13 - 14",
27+
"@angular/core": "13 - 14",
2828
"tslib": "^2.1.0"
2929
}
3030
}

projects/angular-cc-library/tsconfig.lib.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"compilerOptions": {
44
"outDir": "../../out-tsc/lib",
55
"declarationMap": true,
6-
"target": "es2015",
6+
"target": "es2020",
77
"declaration": true,
88
"inlineSources": true,
99
"types": [],

projects/example/src/app/app.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Component, OnInit } from '@angular/core';
2-
import { Validators, FormGroup, FormBuilder } from '@angular/forms';
2+
import { Validators, UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';
33
import { CreditCardValidators, CreditCard } from 'angular-cc-library';
44
import { defer } from 'rxjs';
55
import { map } from 'rxjs/operators';
@@ -9,13 +9,13 @@ import { map } from 'rxjs/operators';
99
templateUrl: './app.component.html',
1010
})
1111
export class AppComponent implements OnInit {
12-
public demoForm: FormGroup;
12+
public demoForm: UntypedFormGroup;
1313
public submitted = false;
1414

1515
public type$ = defer(() => this.demoForm.get('creditCard').valueChanges)
1616
.pipe(map((num: string) => CreditCard.cardType(num)));
1717

18-
constructor(private fb: FormBuilder) {}
18+
constructor(private fb: UntypedFormBuilder) {}
1919

2020
public ngOnInit() {
2121
this.demoForm = this.fb.group({
@@ -31,7 +31,7 @@ export class AppComponent implements OnInit {
3131
}
3232
}
3333

34-
public onSubmit(demoForm: FormGroup) {
34+
public onSubmit(demoForm: UntypedFormGroup) {
3535
this.submitted = true;
3636
console.log(demoForm.value);
3737
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"module": "es2020",
1818
"moduleResolution": "node",
1919
"importHelpers": true,
20-
"target": "es2015",
20+
"target": "es2020",
2121
"lib": [
2222
"es2018",
2323
"dom"

0 commit comments

Comments
 (0)