Skip to content

Commit

Permalink
update to angular 14
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmckay-reward committed Jun 23, 2022
1 parent add1c08 commit e7824c5
Show file tree
Hide file tree
Showing 7 changed files with 3,961 additions and 3,780 deletions.
3 changes: 1 addition & 2 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,5 @@
}
}
}
},
"defaultProject": "angular-cc-library"
}
}
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,38 +12,38 @@
},
"private": true,
"dependencies": {
"@angular-builders/jest": "^13.0.0-beta.0",
"@angular/common": "~13.0.0",
"@angular/compiler": "~13.0.0",
"@angular/core": "~13.0.0",
"@angular/forms": "~13.0.0",
"@angular/platform-browser": "~13.0.0",
"@angular/platform-browser-dynamic": "~13.0.0",
"@types/jest": "^27.0.2",
"jest": "^27.3.1",
"@angular/common": "^14.0.3",
"@angular/compiler": "^14.0.3",
"@angular/core": "^14.0.3",
"@angular/forms": "^14.0.3",
"@angular/platform-browser": "^14.0.3",
"@angular/platform-browser-dynamic": "^14.0.3",
"rxjs": "~6.6.3",
"tslib": "^2.1.0",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "~13.0.1",
"@angular/cli": "~13.0.1",
"@angular/compiler-cli": "~13.0.0",
"@angular/language-service": "~13.0.0",
"@angular-builders/jest": "14.0.0",
"@angular-devkit/build-angular": "^14.0.2",
"@angular/cli": "^14.0.2",
"@angular/compiler-cli": "^14.0.3",
"@angular/language-service": "^14.0.3",
"@types/jest": "^27.5.2",
"@types/node": "^12.11.1",
"codelyzer": "^6.0.0",
"husky": "^4.2.3",
"jest": "28.1.1",
"lint-staged": "^11.2.6",
"ng-packagr": "^13.0.3",
"ng-packagr": "^14.0.2",
"ngx-deploy-npm": "^1.3.2",
"ts-node": "~9.1.1",
"tslint": "~6.1.3",
"typescript": "~4.4.4"
"typescript": "~4.7.4"
},
"lint-staged": {
"*.ts": [
"tslint --fix",
"git add"
]
}
}
}
4 changes: 2 additions & 2 deletions projects/angular-cc-library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@

},
"peerDependencies": {
"@angular/common": "13",
"@angular/core": "13",
"@angular/common": "14",
"@angular/core": "14",
"tslib": "^2.1.0"
}
}
2 changes: 1 addition & 1 deletion projects/angular-cc-library/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compilerOptions": {
"outDir": "../../out-tsc/lib",
"declarationMap": true,
"target": "es2015",
"target": "es2020",
"declaration": true,
"inlineSources": true,
"types": [],
Expand Down
8 changes: 4 additions & 4 deletions projects/example/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component, OnInit } from '@angular/core';
import { Validators, FormGroup, FormBuilder } from '@angular/forms';
import { Validators, UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';
import { CreditCardValidators, CreditCard } from 'angular-cc-library';
import { defer } from 'rxjs';
import { map } from 'rxjs/operators';
Expand All @@ -9,13 +9,13 @@ import { map } from 'rxjs/operators';
templateUrl: './app.component.html',
})
export class AppComponent implements OnInit {
public demoForm: FormGroup;
public demoForm: UntypedFormGroup;
public submitted = false;

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

constructor(private fb: FormBuilder) {}
constructor(private fb: UntypedFormBuilder) {}

public ngOnInit() {
this.demoForm = this.fb.group({
Expand All @@ -31,7 +31,7 @@ export class AppComponent implements OnInit {
}
}

public onSubmit(demoForm: FormGroup) {
public onSubmit(demoForm: UntypedFormGroup) {
this.submitted = true;
console.log(demoForm.value);
}
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"module": "es2020",
"moduleResolution": "node",
"importHelpers": true,
"target": "es2015",
"target": "es2020",
"lib": [
"es2018",
"dom"
Expand Down
Loading

0 comments on commit e7824c5

Please sign in to comment.