Skip to content

Commit add1c08

Browse files
update to angular 13
1 parent 24ea42d commit add1c08

File tree

8 files changed

+739
-2725
lines changed

8 files changed

+739
-2725
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/.angular/cache
12
.idea/
23
typings/
34
node_modules/

README.md

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

18+
19+
## 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 .
21+
22+
If you use an older version of Angular please use version `2.*`
23+
1824
## Formatting Directive
1925
On the input fields, add the specific directive to format inputs.
2026
All fields must be `type='tel'` in order to support spacing and additional characters

angular.json

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,6 @@
3131
"tsConfig": "tsconfig.spec.json",
3232
}
3333
},
34-
"lint": {
35-
"builder": "@angular-devkit/build-angular:tslint",
36-
"options": {
37-
"tsConfig": [
38-
"projects/angular-cc-library/tsconfig.lib.json",
39-
"projects/angular-cc-library/tsconfig.spec.json"
40-
],
41-
"exclude": [
42-
"**/node_modules/**"
43-
]
44-
}
45-
},
4634
"deploy": {
4735
"builder": "ngx-deploy-npm:deploy",
4836
"options": {
@@ -129,17 +117,6 @@
129117
"browserTarget": "example:build"
130118
}
131119
},
132-
"lint": {
133-
"builder": "@angular-devkit/build-angular:tslint",
134-
"options": {
135-
"tsConfig": [
136-
"projects/example/tsconfig.app.json"
137-
],
138-
"exclude": [
139-
"**/node_modules/**"
140-
]
141-
}
142-
},
143120
"e2e": {
144121
"builder": "@angular-devkit/build-angular:protractor",
145122
"options": {

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-cc-library",
3-
"version": "2.1.3",
3+
"version": "3.0.0",
44
"scripts": {
55
"run:demo": "ng serve example",
66
"build:library": "ng build angular-cc-library --configuration production ",
@@ -12,33 +12,33 @@
1212
},
1313
"private": true,
1414
"dependencies": {
15-
"@angular-builders/jest": "^12.1.2",
16-
"@angular/common": "~12.2.13",
17-
"@angular/compiler": "~12.2.13",
18-
"@angular/core": "~12.2.13",
19-
"@angular/forms": "~12.2.13",
20-
"@angular/platform-browser": "~12.2.13",
21-
"@angular/platform-browser-dynamic": "~12.2.13",
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",
2222
"@types/jest": "^27.0.2",
2323
"jest": "^27.3.1",
2424
"rxjs": "~6.6.3",
2525
"tslib": "^2.1.0",
2626
"zone.js": "~0.11.4"
2727
},
2828
"devDependencies": {
29-
"@angular-devkit/build-angular": "~12.2.13",
30-
"@angular/cli": "~12.2.13",
31-
"@angular/compiler-cli": "~12.2.13",
32-
"@angular/language-service": "~12.2.13",
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",
3333
"@types/node": "^12.11.1",
3434
"codelyzer": "^6.0.0",
3535
"husky": "^4.2.3",
3636
"lint-staged": "^11.2.6",
37-
"ng-packagr": "^12.2.5",
37+
"ng-packagr": "^13.0.3",
3838
"ngx-deploy-npm": "^1.3.2",
3939
"ts-node": "~9.1.1",
4040
"tslint": "~6.1.3",
41-
"typescript": "~4.3.5"
41+
"typescript": "~4.4.4"
4242
},
4343
"lint-staged": {
4444
"*.ts": [

projects/angular-cc-library/package.json

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"declarationMap": false
55
},
66
"angularCompilerOptions": {
7-
"enableIvy": false
7+
"compilationMode": "partial"
88
}
99
}

projects/example/src/polyfills.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,6 @@
1818
* BROWSER POLYFILLS
1919
*/
2020

21-
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
22-
// import 'classlist.js'; // Run `npm install --save classlist.js`.
23-
24-
/**
25-
* Web Animations `@angular/platform-browser/animations`
26-
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
27-
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
28-
*/
29-
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
30-
3121
/**
3222
* By default, zone.js will patch all possible macroTask and DomEvents
3323
* user can disable parts of macroTask/DomEvents patch by setting following flags

0 commit comments

Comments
 (0)