Skip to content

Commit

Permalink
Merge pull request #139 from czeckd/ng13
Browse files Browse the repository at this point in the history
Update to Angular 13
  • Loading branch information
czeckd authored Nov 5, 2021
2 parents a0a8044 + 5a21c5f commit bbd269d
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 60 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ speed-measure-plugin.json
.history/*

# misc
/.angular/cache
/.sass-cache
/connect.lock
/coverage
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Angular SVG Icon
=========

The **angular-svg-icon** is an Angular 12 service and component that provides a
The **angular-svg-icon** is an Angular 13 service and component that provides a
means to inline SVG files to allow for them to be easily styled by CSS and code.

The service provides an icon registery that loads and caches a SVG indexed by
Expand All @@ -19,6 +19,7 @@ This [demo](https://czeckd.github.io/angular-svg-icon/) shows this module in act
$ npm i angular-svg-icon --save
```
**Note on earlier versions of Angular:**
- For Angular 12, use [email protected]
- For Angular 11, use [email protected]
- For Angular 10, use [email protected]
- For Angular 9, use [email protected]
Expand Down
25 changes: 0 additions & 25 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,19 +118,6 @@
"scripts": []
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"tsconfig.app.json",
"tsconfig.spec.json",
"e2e/tsconfig.json"
],
"exclude": [
"**/node_modules/**"
]
}
},
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
Expand Down Expand Up @@ -170,18 +157,6 @@
"tsConfig": "projects/angular-svg-icon/tsconfig.spec.json",
"karmaConfig": "projects/angular-svg-icon/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/angular-svg-icon/tsconfig.lib.json",
"projects/angular-svg-icon/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
}},
Expand Down
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "svg-icon",
"description": "Angular 12 component for inlining SVGs allowing them to be easily styled with CSS.",
"version": "12.0.0",
"description": "Angular 13 component for inlining SVGs allowing them to be easily styled with CSS.",
"version": "13.0.0",
"repository": {
"type": "git",
"url": "https://github.com/czeckd/angular-svg-icon.git"
Expand All @@ -25,22 +25,22 @@
},
"private": true,
"dependencies": {
"@angular/animations": "~12.0.1",
"@angular/common": "~12.0.1",
"@angular/compiler": "~12.0.1",
"@angular/core": "~12.0.1",
"@angular/forms": "~12.0.1",
"@angular/platform-browser": "~12.0.1",
"@angular/platform-browser-dynamic": "~12.0.1",
"@angular/router": "~12.0.1",
"@angular/animations": "~13.0.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",
"@angular/router": "~13.0.0",
"rxjs": "~6.6.3",
"tslib": "^2.2.0",
"tslib": "^2.3.1",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "~12.0.1",
"@angular/cli": "~12.0.1",
"@angular/compiler-cli": "~12.0.1",
"@angular-devkit/build-angular": "~13.0.1",
"@angular/cli": "~13.0.1",
"@angular/compiler-cli": "~13.0.0",
"@types/jasmine": "~3.6.0",
"@types/node": "^12.11.1",
"jasmine-core": "~3.7.0",
Expand All @@ -49,7 +49,7 @@
"karma-coverage": "~2.0.3",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0",
"ng-packagr": "^12.0.0",
"typescript": "~4.2.3"
"ng-packagr": "^13.0.2",
"typescript": "~4.4.4"
}
}
12 changes: 6 additions & 6 deletions projects/angular-svg-icon/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angular-svg-icon",
"description": "Angular 12 component for inlining SVGs allowing them to be easily styled with CSS.",
"version": "12.0.0",
"description": "Angular 13 component for inlining SVGs allowing them to be easily styled with CSS.",
"version": "13.0.0",
"repository": {
"type": "git",
"url": "https://github.com/czeckd/angular-svg-icon.git"
Expand All @@ -14,11 +14,11 @@
"icon"
],
"peerDependencies": {
"@angular/core": ">=12.0.0",
"@angular/common": ">=12.0.0",
"rxjs": ">=6.6.0"
"@angular/core": ">=13.0.0",
"@angular/common": ">=13.0.0",
"rxjs": ">=6.6.3"
},
"dependencies": {
"tslib": "^2.2.0"
"tslib": "^2.3.1"
}
}
4 changes: 3 additions & 1 deletion projects/angular-svg-icon/src/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ declare const require: any;
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting()
platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
}
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
Expand Down
10 changes: 0 additions & 10 deletions src/polyfills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,6 @@
* BROWSER POLYFILLS
*/

/** IE10 and IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js'; // Run `npm install --save classlist.js`.

/**
* Web Animations `@angular/platform-browser/animations`
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
*/
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.

/**
* By default, zone.js will patch all possible macroTask and DomEvents
* user can disable parts of macroTask/DomEvents patch by setting following flags
Expand Down
4 changes: 3 additions & 1 deletion src/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ declare const require: any;
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting()
platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
}
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
Expand Down

0 comments on commit bbd269d

Please sign in to comment.