Skip to content

Commit

Permalink
Ng15 (#144)
Browse files Browse the repository at this point in the history
* Update ng15

* Update ng15
  • Loading branch information
czeckd authored Nov 22, 2022
1 parent 875ee56 commit 77e7e15
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 36 deletions.
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 14 service and component that provides a
The **angular-svg-icon** is an Angular 15 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 14, use [email protected]
- For Angular 13, use [email protected]
- For Angular 12, use [email protected]
- For Angular 11, use [email protected]
Expand Down
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "svg-icon",
"description": "Angular 14 component and service for inlining SVGs allowing them to be easily styled with CSS.",
"version": "14.0.0",
"description": "Angular 15 component and service for inlining SVGs allowing them to be easily styled with CSS.",
"version": "15.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": "^14.0.1",
"@angular/common": "^14.0.1",
"@angular/compiler": "^14.0.1",
"@angular/core": "^14.0.1",
"@angular/forms": "^14.0.1",
"@angular/platform-browser": "^14.0.1",
"@angular/platform-browser-dynamic": "^14.0.1",
"@angular/router": "^14.0.1",
"@angular/animations": "^15.0.0",
"@angular/common": "^15.0.0",
"@angular/compiler": "^15.0.0",
"@angular/core": "^15.0.0",
"@angular/forms": "^15.0.0",
"@angular/platform-browser": "^15.0.0",
"@angular/platform-browser-dynamic": "^15.0.0",
"@angular/router": "^15.0.0",
"rxjs": "~6.6.3",
"tslib": "^2.3.1",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "^14.0.1",
"@angular/cli": "^14.0.1",
"@angular/compiler-cli": "^14.0.1",
"@angular-devkit/build-angular": "^15.0.0",
"@angular/cli": "^15.0.0",
"@angular/compiler-cli": "^15.0.0",
"@types/jasmine": "~4.0.0",
"@types/node": "^12.11.1",
"jasmine-core": "~4.1.0",
Expand All @@ -49,7 +49,7 @@
"karma-coverage": "~2.2.0",
"karma-jasmine": "~5.0.0",
"karma-jasmine-html-reporter": "~1.7.0",
"ng-packagr": "^14.0.2",
"typescript": "~4.7.3"
"ng-packagr": "^15.0.0",
"typescript": "~4.8.4"
}
}
8 changes: 4 additions & 4 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 14 component and service for inlining SVGs allowing them to be easily styled with CSS.",
"version": "14.0.0",
"description": "Angular 15 component and service for inlining SVGs allowing them to be easily styled with CSS.",
"version": "15.0.0",
"repository": {
"type": "git",
"url": "https://github.com/czeckd/angular-svg-icon.git"
Expand All @@ -14,8 +14,8 @@
"icon"
],
"peerDependencies": {
"@angular/core": ">=14.0.0",
"@angular/common": ">=14.0.0",
"@angular/core": ">=15.0.0",
"@angular/common": ">=15.0.0",
"rxjs": ">=6.6.3"
},
"dependencies": {
Expand Down
6 changes: 0 additions & 6 deletions projects/angular-svg-icon/src/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,13 @@ import {
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';

declare const require: any;

// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
}
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);

/**
* Get typed object as a jasmine spy, so each method of the spied object is changed to a jasmyne.Spy type!
Expand Down
1 change: 0 additions & 1 deletion projects/angular-svg-icon/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
6 changes: 0 additions & 6 deletions src/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,10 @@ import {
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';

declare const require: any;

// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
}
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);
7 changes: 4 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"removeComments": false,
"noImplicitAny": true,
"suppressImplicitAnyIndexErrors": true,
"target": "es2020",
"target": "ES2022",
"typeRoots": [
"node_modules/@types"
],
Expand All @@ -24,13 +24,14 @@
"dom"
],
"paths": {
"angular-svg-icon": [
"angular-svg-icon": [
"dist/angular-svg-icon"
],
"angular-svg-icon/*": [
"dist/angular-svg-icon/*"
]
}
},
"useDefineForClassFields": false
},
"angularCompilerOptions": {
"strictInjectionParameters": true,
Expand Down

0 comments on commit 77e7e15

Please sign in to comment.