Skip to content

Commit

Permalink
Add support for Angular 15 and bump minor version
Browse files Browse the repository at this point in the history
  • Loading branch information
timofei-iatsenko committed Dec 28, 2022
1 parent c84cefa commit e8f6c3c
Show file tree
Hide file tree
Showing 6 changed files with 2,099 additions and 1,636 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@ Angular CC Library - for validation and formating of input parameters
npm install angular-cc-library --save
```


## Version Compatibility
Version `3.*` and above built with [partial Ivy metadata](https://angular.io/guide/creating-libraries#ensuring-library-version-compatibility) and compatible with Angular >= 13 .

If you use an older version of Angular please use version `2.*`
| Angular | Library |
|---------|---------|
| 15.x | 3.1.x |
| 14.x | 3.0.4 |
| 13.x | 3.0.0 |
| 12.x | 2.1.3 |


## Formatting Directive
On the input fields, add the specific directive to format inputs.
Expand Down
31 changes: 16 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,45 @@
{
"name": "angular-cc-library",
"version": "3.0.3",
"version": "3.1.0",
"scripts": {
"run:demo": "ng serve example",
"build:library": "ng build angular-cc-library --configuration production ",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"deploy": "ng deploy angular-cc-library",
"postinstall": "ngcc",
"precommit": "lint-staged"
},
"private": true,
"dependencies": {
"@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",
"@angular/common": "^15.0.4",
"@angular/compiler": "^15.0.4",
"@angular/core": "^15.0.4",
"@angular/forms": "^15.0.4",
"@angular/platform-browser": "^15.0.4",
"@angular/platform-browser-dynamic": "^15.0.4",
"rxjs": "~6.6.3",
"tslib": "^2.1.0",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@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",
"@angular-builders/jest": "15.0.0",
"@angular-devkit/build-angular": "^15.0.4",
"@angular/cli": "^15.0.4",
"@angular/compiler-cli": "^15.0.4",
"@angular/language-service": "^15.0.4",
"@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": "^14.0.2",
"ngx-deploy-npm": "^1.3.2",
"ng-packagr": "^15.0.3",
"ngx-deploy-npm": "^4.3.10",
"ts-node": "~9.1.1",
"tslint": "~6.1.3",
"typescript": "~4.7.4"
"typescript": "~4.8.4"
},
"lint-staged": {
"*.ts": [
Expand Down
9 changes: 4 additions & 5 deletions projects/angular-cc-library/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-cc-library",
"version": "3.0.3",
"version": "3.1.0",
"description": "angular credit card library",
"keywords": [
"angular",
Expand All @@ -20,11 +20,10 @@
"url": "git+https://github.com/thekip/angular-cc-library.git"
},
"dependencies": {

"tslib": "^2.4.1"
},
"peerDependencies": {
"@angular/common": "13 - 14",
"@angular/core": "13 - 14",
"tslib": "^2.1.0"
"@angular/common": "^15.0.0",
"@angular/core": "^15.0.0"
}
}
1 change: 0 additions & 1 deletion projects/angular-cc-library/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"compilerOptions": {
"outDir": "../../out-tsc/lib",
"declarationMap": true,
"target": "es2020",
"declaration": true,
"inlineSources": true,
"types": [],
Expand Down
9 changes: 6 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,22 @@
"module": "es2020",
"moduleResolution": "node",
"importHelpers": true,
"target": "es2020",
"target": "ES2022",
"lib": [
"es2018",
"dom"
],
"paths": {
"angular-cc-library/*": ["../angular-cc-library/src/*"],
"angular-cc-library/*": [
"../angular-cc-library/src/*"
],
"angular-cc-library": [
"dist/angular-cc-library/angular-cc-library",
"dist/angular-cc-library",
"projects/angular-cc-library/src/public-api.ts"
]
}
},
"useDefineForClassFields": false
},
"angularCompilerOptions": {
"fullTemplateTypeCheck": true,
Expand Down
Loading

0 comments on commit e8f6c3c

Please sign in to comment.