Skip to content

Commit e8f6c3c

Browse files
Add support for Angular 15 and bump minor version
1 parent c84cefa commit e8f6c3c

File tree

6 files changed

+2099
-1636
lines changed

6 files changed

+2099
-1636
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@ Angular CC Library - for validation and formating of input parameters
1515
npm install angular-cc-library --save
1616
```
1717

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

22-
If you use an older version of Angular please use version `2.*`
20+
| Angular | Library |
21+
|---------|---------|
22+
| 15.x | 3.1.x |
23+
| 14.x | 3.0.4 |
24+
| 13.x | 3.0.0 |
25+
| 12.x | 2.1.3 |
26+
2327

2428
## Formatting Directive
2529
On the input fields, add the specific directive to format inputs.

package.json

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,45 @@
11
{
22
"name": "angular-cc-library",
3-
"version": "3.0.3",
3+
"version": "3.1.0",
44
"scripts": {
55
"run:demo": "ng serve example",
66
"build:library": "ng build angular-cc-library --configuration production ",
77
"test": "ng test",
88
"lint": "ng lint",
99
"e2e": "ng e2e",
10+
"deploy": "ng deploy angular-cc-library",
1011
"postinstall": "ngcc",
1112
"precommit": "lint-staged"
1213
},
1314
"private": true,
1415
"dependencies": {
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",
16+
"@angular/common": "^15.0.4",
17+
"@angular/compiler": "^15.0.4",
18+
"@angular/core": "^15.0.4",
19+
"@angular/forms": "^15.0.4",
20+
"@angular/platform-browser": "^15.0.4",
21+
"@angular/platform-browser-dynamic": "^15.0.4",
2122
"rxjs": "~6.6.3",
2223
"tslib": "^2.1.0",
2324
"zone.js": "~0.11.4"
2425
},
2526
"devDependencies": {
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",
27+
"@angular-builders/jest": "15.0.0",
28+
"@angular-devkit/build-angular": "^15.0.4",
29+
"@angular/cli": "^15.0.4",
30+
"@angular/compiler-cli": "^15.0.4",
31+
"@angular/language-service": "^15.0.4",
3132
"@types/jest": "^27.5.2",
3233
"@types/node": "^12.11.1",
3334
"codelyzer": "^6.0.0",
3435
"husky": "^4.2.3",
3536
"jest": "28.1.1",
3637
"lint-staged": "^11.2.6",
37-
"ng-packagr": "^14.0.2",
38-
"ngx-deploy-npm": "^1.3.2",
38+
"ng-packagr": "^15.0.3",
39+
"ngx-deploy-npm": "^4.3.10",
3940
"ts-node": "~9.1.1",
4041
"tslint": "~6.1.3",
41-
"typescript": "~4.7.4"
42+
"typescript": "~4.8.4"
4243
},
4344
"lint-staged": {
4445
"*.ts": [

projects/angular-cc-library/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-cc-library",
3-
"version": "3.0.3",
3+
"version": "3.1.0",
44
"description": "angular credit card library",
55
"keywords": [
66
"angular",
@@ -20,11 +20,10 @@
2020
"url": "git+https://github.com/thekip/angular-cc-library.git"
2121
},
2222
"dependencies": {
23-
23+
"tslib": "^2.4.1"
2424
},
2525
"peerDependencies": {
26-
"@angular/common": "13 - 14",
27-
"@angular/core": "13 - 14",
28-
"tslib": "^2.1.0"
26+
"@angular/common": "^15.0.0",
27+
"@angular/core": "^15.0.0"
2928
}
3029
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"compilerOptions": {
44
"outDir": "../../out-tsc/lib",
55
"declarationMap": true,
6-
"target": "es2020",
76
"declaration": true,
87
"inlineSources": true,
98
"types": [],

tsconfig.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,22 @@
1717
"module": "es2020",
1818
"moduleResolution": "node",
1919
"importHelpers": true,
20-
"target": "es2020",
20+
"target": "ES2022",
2121
"lib": [
2222
"es2018",
2323
"dom"
2424
],
2525
"paths": {
26-
"angular-cc-library/*": ["../angular-cc-library/src/*"],
26+
"angular-cc-library/*": [
27+
"../angular-cc-library/src/*"
28+
],
2729
"angular-cc-library": [
2830
"dist/angular-cc-library/angular-cc-library",
2931
"dist/angular-cc-library",
3032
"projects/angular-cc-library/src/public-api.ts"
3133
]
32-
}
34+
},
35+
"useDefineForClassFields": false
3336
},
3437
"angularCompilerOptions": {
3538
"fullTemplateTypeCheck": true,

0 commit comments

Comments
 (0)