From 4bb54a6cd026ef21981aa856f6703585fe94ace2 Mon Sep 17 00:00:00 2001 From: madoar Date: Sun, 11 Aug 2019 17:34:13 +0200 Subject: [PATCH] Update Dependency Versions (#227) - update angular version to angular 8 - update additional dependencies - remove core-js dependency --- karma-shim.js | 1 - package.json | 64 +++++++++---------- .../wizard-completion-step.component.spec.ts | 2 +- .../wizard-navigation-bar.component.spec.ts | 2 +- .../components/wizard-step.component.spec.ts | 2 +- src/lib/components/wizard.component.spec.ts | 2 +- .../completed-step.directive.spec.ts | 2 +- .../enable-back-links.directive.spec.ts | 2 +- .../directives/go-to-step.directive.spec.ts | 2 +- .../directives/next-step.directive.spec.ts | 2 +- .../optional-step.directive.spec.ts | 2 +- .../previous-step.directive.spec.ts | 2 +- .../directives/reset-wizard.directive.spec.ts | 2 +- .../selected-step.directive.spec.ts | 2 +- .../wizard-completion-step.directive.spec.ts | 2 +- .../wizard-step-symbol.directive.spec.ts | 2 +- .../wizard-step-title.directive.spec.ts | 2 +- .../directives/wizard-step.directive.spec.ts | 4 +- .../navigation-mode-selection.spec.ts | 4 +- .../wizard-navigation-allow-forward.spec.ts | 2 +- ...rd-navigation-with-completion-step.spec.ts | 2 +- ...zard-navigation-with-optional-step.spec.ts | 2 +- src/lib/navigation/wizard-navigation.spec.ts | 2 +- src/lib/util/step-id.interface.spec.ts | 2 +- src/lib/util/step-index.interface.spec.ts | 2 +- src/lib/util/step-offset.interface.spec.ts | 2 +- .../wizard-completion-step.interface.spec.ts | 2 +- src/lib/util/wizard-step.interface.spec.ts | 8 +-- src/lib/util/wizard-step.interface.ts | 4 +- src/test.ts | 1 - tsconfig.json | 5 +- tslint.json | 8 +-- 32 files changed, 71 insertions(+), 74 deletions(-) diff --git a/karma-shim.js b/karma-shim.js index 7c894c37..4441783c 100644 --- a/karma-shim.js +++ b/karma-shim.js @@ -1,4 +1,3 @@ -import 'core-js'; import 'zone.js/dist/zone'; import 'zone.js/dist/long-stack-trace-zone'; import 'zone.js/dist/proxy.js'; diff --git a/package.json b/package.json index d6368280..6c4cfbfa 100644 --- a/package.json +++ b/package.json @@ -47,43 +47,41 @@ "e2e": "ng e2e" }, "devDependencies": { - "@angular-devkit/build-angular": "~0.13.0", - "@angular-devkit/build-ng-packagr": "~0.13.0", - "@angular/cli": "~7.3.5", - "@angular/common": "^7.2.8", - "@angular/compiler": "^7.2.8", - "@angular/compiler-cli": "^7.2.8", - "@angular/core": "^7.2.8", - "@angular/forms": "^7.2.8", - "@angular/http": "^7.2.8", - "@angular/language-service": "^7.2.8", - "@angular/platform-browser": "^7.2.8", - "@angular/platform-browser-dynamic": "^7.2.8", - "@angular/router": "^7.2.8", + "@angular-devkit/build-angular": "~0.802.1", + "@angular-devkit/build-ng-packagr": "~0.802.1", + "@angular/cli": "~8.2.1", + "@angular/common": "^8.2.1", + "@angular/compiler": "^8.2.1", + "@angular/compiler-cli": "^8.2.1", + "@angular/core": "^8.2.1", + "@angular/forms": "^8.2.1", + "@angular/language-service": "^8.2.1", + "@angular/platform-browser": "^8.2.1", + "@angular/platform-browser-dynamic": "^8.2.1", + "@angular/router": "^8.2.1", "@earshinov/extract-scss-variables": "^0.1.1", - "@types/jasmine": "~2.8.8", - "@types/jasminewd2": "~2.0.3", - "@types/node": "~8.9.4", - "codelyzer": "~4.3.0", - "core-js": "^2.5.4", - "jasmine-core": "~2.99.1", + "@types/jasmine": "~3.4.0", + "@types/jasminewd2": "~2.0.6", + "@types/node": "~12.7.1", + "codelyzer": "^5.1.0", + "jasmine-core": "~3.4.0", "jasmine-spec-reporter": "~4.2.1", - "karma": "~3.0.0", - "karma-chrome-launcher": "~2.2.0", - "karma-coverage-istanbul-reporter": "~2.0.1", - "karma-jasmine": "~1.1.2", - "karma-jasmine-html-reporter": "^0.2.2", - "ng-packagr": "^4.1.0", + "karma": "~4.2.0", + "karma-chrome-launcher": "~3.0.0", + "karma-coverage-istanbul-reporter": "~2.1.0", + "karma-jasmine": "~2.0.1", + "karma-jasmine-html-reporter": "^1.4.2", + "ng-packagr": "^5.3.0", "node-sass": "^4.12.0", "protractor": "~5.4.0", - "rxjs": "~6.4.0", - "scss-bundle": "^2.5.0", - "ts-node": "~7.0.0", - "tsickle": ">=0.34.0", - "tslib": "^1.9.0", - "tslint": "~5.11.0", - "typescript": "~3.2.4", - "zone.js": "~0.8.29" + "rxjs": "~6.5.2", + "scss-bundle": "^2.5.1", + "ts-node": "~8.3.0", + "tsickle": "^0.36.0", + "tslib": "^1.10.0", + "tslint": "~5.18.0", + "typescript": "~3.5.3", + "zone.js": "~0.9.1" }, "peerDependencies": { "@angular/common": ">= 5" diff --git a/src/lib/components/wizard-completion-step.component.spec.ts b/src/lib/components/wizard-completion-step.component.spec.ts index da448402..68b210d5 100644 --- a/src/lib/components/wizard-completion-step.component.spec.ts +++ b/src/lib/components/wizard-completion-step.component.spec.ts @@ -24,7 +24,7 @@ import {WizardComponent} from './wizard.component'; }) class WizardTestComponent { - @ViewChild(WizardComponent) + @ViewChild(WizardComponent, {static: false}) public wizard: WizardComponent; public isValid: any = true; diff --git a/src/lib/components/wizard-navigation-bar.component.spec.ts b/src/lib/components/wizard-navigation-bar.component.spec.ts index e116ac76..1b191dfa 100644 --- a/src/lib/components/wizard-navigation-bar.component.spec.ts +++ b/src/lib/components/wizard-navigation-bar.component.spec.ts @@ -26,7 +26,7 @@ import {WizardComponent} from './wizard.component'; class WizardTestComponent { public firstStepId = 'step1'; - @ViewChild(WizardComponent) + @ViewChild(WizardComponent, {static: false}) public wizard: WizardComponent; } diff --git a/src/lib/components/wizard-step.component.spec.ts b/src/lib/components/wizard-step.component.spec.ts index ab351fa5..ee9bd84c 100644 --- a/src/lib/components/wizard-step.component.spec.ts +++ b/src/lib/components/wizard-step.component.spec.ts @@ -24,7 +24,7 @@ import {WizardComponent} from './wizard.component'; }) class WizardTestComponent { - @ViewChild(WizardComponent) + @ViewChild(WizardComponent, {static: false}) public wizard: WizardComponent; public isValid: any = true; diff --git a/src/lib/components/wizard.component.spec.ts b/src/lib/components/wizard.component.spec.ts index 580f190f..776ccd64 100644 --- a/src/lib/components/wizard.component.spec.ts +++ b/src/lib/components/wizard.component.spec.ts @@ -34,7 +34,7 @@ class WizardTestComponent implements AfterViewInit { public showStep1 = true; public showStep3 = true; - @ViewChild(WizardComponent) + @ViewChild(WizardComponent, {static: false}) public wizard: WizardComponent; constructor(private _changeDetectionRef: ChangeDetectorRef) { diff --git a/src/lib/directives/completed-step.directive.spec.ts b/src/lib/directives/completed-step.directive.spec.ts index 4f87fb02..61ff58c8 100644 --- a/src/lib/directives/completed-step.directive.spec.ts +++ b/src/lib/directives/completed-step.directive.spec.ts @@ -15,7 +15,7 @@ import {WizardComponent} from '../components/wizard.component'; ` }) class WizardTestComponent { - @ViewChild(WizardComponent) + @ViewChild(WizardComponent, {static: false}) public wizard: WizardComponent; } diff --git a/src/lib/directives/enable-back-links.directive.spec.ts b/src/lib/directives/enable-back-links.directive.spec.ts index eb26c285..92a19723 100644 --- a/src/lib/directives/enable-back-links.directive.spec.ts +++ b/src/lib/directives/enable-back-links.directive.spec.ts @@ -25,7 +25,7 @@ import {WizardComponent} from '../components/wizard.component'; }) class WizardTestComponent { - @ViewChild(WizardComponent) + @ViewChild(WizardComponent, {static: false}) public wizard: WizardComponent; public isValid: any = true; diff --git a/src/lib/directives/go-to-step.directive.spec.ts b/src/lib/directives/go-to-step.directive.spec.ts index e33c5b36..3c9fbaac 100644 --- a/src/lib/directives/go-to-step.directive.spec.ts +++ b/src/lib/directives/go-to-step.directive.spec.ts @@ -41,7 +41,7 @@ import {WizardComponent} from '../components/wizard.component'; }) class WizardTestComponent { - @ViewChild(WizardComponent) + @ViewChild(WizardComponent, {static: false}) public wizard: WizardComponent; public goToSecondStep = 1; diff --git a/src/lib/directives/next-step.directive.spec.ts b/src/lib/directives/next-step.directive.spec.ts index 293c4c27..43f5702b 100644 --- a/src/lib/directives/next-step.directive.spec.ts +++ b/src/lib/directives/next-step.directive.spec.ts @@ -30,7 +30,7 @@ import {WizardComponent} from '../components/wizard.component'; }) class WizardTestComponent { - @ViewChild(WizardComponent) + @ViewChild(WizardComponent, {static: false}) public wizard: WizardComponent; public eventLog: Array = []; diff --git a/src/lib/directives/optional-step.directive.spec.ts b/src/lib/directives/optional-step.directive.spec.ts index f0a3a341..4ed5a220 100644 --- a/src/lib/directives/optional-step.directive.spec.ts +++ b/src/lib/directives/optional-step.directive.spec.ts @@ -23,7 +23,7 @@ import {WizardComponent} from '../components/wizard.component'; }) class WizardTestComponent { - @ViewChild(WizardComponent) + @ViewChild(WizardComponent, {static: false}) public wizard: WizardComponent; } diff --git a/src/lib/directives/previous-step.directive.spec.ts b/src/lib/directives/previous-step.directive.spec.ts index 3b705c57..c12a0850 100644 --- a/src/lib/directives/previous-step.directive.spec.ts +++ b/src/lib/directives/previous-step.directive.spec.ts @@ -29,7 +29,7 @@ import {WizardComponent} from '../components/wizard.component'; }) class WizardTestComponent { - @ViewChild(WizardComponent) + @ViewChild(WizardComponent, {static: false}) public wizard: WizardComponent; public eventLog: Array = []; diff --git a/src/lib/directives/reset-wizard.directive.spec.ts b/src/lib/directives/reset-wizard.directive.spec.ts index ae88d981..920a6715 100644 --- a/src/lib/directives/reset-wizard.directive.spec.ts +++ b/src/lib/directives/reset-wizard.directive.spec.ts @@ -28,7 +28,7 @@ import { checkWizardState } from '../util/test-utils'; }) class WizardTestComponent { - @ViewChild(WizardComponent) + @ViewChild(WizardComponent, {static: false}) public wizard: WizardComponent; public eventLog: Array = []; diff --git a/src/lib/directives/selected-step.directive.spec.ts b/src/lib/directives/selected-step.directive.spec.ts index 5ceb00c7..aeeb7c48 100644 --- a/src/lib/directives/selected-step.directive.spec.ts +++ b/src/lib/directives/selected-step.directive.spec.ts @@ -23,7 +23,7 @@ import {WizardComponent} from '../components/wizard.component'; }) class WizardTestComponent { - @ViewChild(WizardComponent) + @ViewChild(WizardComponent, {static: false}) public wizard: WizardComponent; } diff --git a/src/lib/directives/wizard-completion-step.directive.spec.ts b/src/lib/directives/wizard-completion-step.directive.spec.ts index 2c1deff2..57ec6edd 100644 --- a/src/lib/directives/wizard-completion-step.directive.spec.ts +++ b/src/lib/directives/wizard-completion-step.directive.spec.ts @@ -25,7 +25,7 @@ import {WizardComponent} from '../components/wizard.component'; }) class WizardTestComponent { - @ViewChild(WizardComponent) + @ViewChild(WizardComponent, {static: false}) public wizard: WizardComponent; public isValid: any = true; diff --git a/src/lib/directives/wizard-step-symbol.directive.spec.ts b/src/lib/directives/wizard-step-symbol.directive.spec.ts index bdd3a763..764e9f78 100644 --- a/src/lib/directives/wizard-step-symbol.directive.spec.ts +++ b/src/lib/directives/wizard-step-symbol.directive.spec.ts @@ -24,7 +24,7 @@ import {WizardComponent} from '../components/wizard.component'; ` }) class WizardTestComponent { - @ViewChild(WizardComponent) + @ViewChild(WizardComponent, {static: false}) public wizard: WizardComponent; } diff --git a/src/lib/directives/wizard-step-title.directive.spec.ts b/src/lib/directives/wizard-step-title.directive.spec.ts index ad7c7f5c..0c46574d 100644 --- a/src/lib/directives/wizard-step-title.directive.spec.ts +++ b/src/lib/directives/wizard-step-title.directive.spec.ts @@ -24,7 +24,7 @@ import {WizardComponent} from '../components/wizard.component'; ` }) class WizardTestComponent { - @ViewChild(WizardComponent) + @ViewChild(WizardComponent, {static: false}) public wizard: WizardComponent; } diff --git a/src/lib/directives/wizard-step.directive.spec.ts b/src/lib/directives/wizard-step.directive.spec.ts index b245b4fb..42870b28 100644 --- a/src/lib/directives/wizard-step.directive.spec.ts +++ b/src/lib/directives/wizard-step.directive.spec.ts @@ -24,10 +24,10 @@ import {WizardComponent} from '../components/wizard.component'; }) class WizardTestComponent { - @ViewChild(WizardComponent) + @ViewChild(WizardComponent, {static: false}) public wizard: WizardComponent; - @ViewChild(forwardRef(() => WizardStepTestComponent)) + @ViewChild(forwardRef(() => WizardStepTestComponent), {static: false}) public wizardStepTestComponent; public eventLog: Array = []; diff --git a/src/lib/navigation/navigation-mode-selection.spec.ts b/src/lib/navigation/navigation-mode-selection.spec.ts index 57477029..9bb5e6cc 100644 --- a/src/lib/navigation/navigation-mode-selection.spec.ts +++ b/src/lib/navigation/navigation-mode-selection.spec.ts @@ -22,7 +22,7 @@ class CustomNavigationMode extends BaseNavigationMode { }) class WizardTestComponent { - @ViewChild(WizardComponent) + @ViewChild(WizardComponent, {static: false}) public wizard: WizardComponent; } @@ -38,7 +38,7 @@ class WizardTestComponent { }) class WizardWithCustomNavigationModeComponent { - @ViewChild(WizardComponent) + @ViewChild(WizardComponent, {static: false}) public wizard: WizardComponent; public customNavigationMode: CustomNavigationMode = new CustomNavigationMode(); diff --git a/src/lib/navigation/wizard-navigation-allow-forward.spec.ts b/src/lib/navigation/wizard-navigation-allow-forward.spec.ts index 41e0530a..50074ac1 100644 --- a/src/lib/navigation/wizard-navigation-allow-forward.spec.ts +++ b/src/lib/navigation/wizard-navigation-allow-forward.spec.ts @@ -21,7 +21,7 @@ import {checkWizardState} from '../util/test-utils'; ` }) class WizardTestComponent { - @ViewChild(WizardComponent) + @ViewChild(WizardComponent, {static: false}) public wizard: WizardComponent; } diff --git a/src/lib/navigation/wizard-navigation-with-completion-step.spec.ts b/src/lib/navigation/wizard-navigation-with-completion-step.spec.ts index 44544602..c55eb4ab 100644 --- a/src/lib/navigation/wizard-navigation-with-completion-step.spec.ts +++ b/src/lib/navigation/wizard-navigation-with-completion-step.spec.ts @@ -21,7 +21,7 @@ import {checkWizardState} from '../util/test-utils'; ` }) class WizardTestComponent { - @ViewChild(WizardComponent) + @ViewChild(WizardComponent, {static: false}) public wizard: WizardComponent; } diff --git a/src/lib/navigation/wizard-navigation-with-optional-step.spec.ts b/src/lib/navigation/wizard-navigation-with-optional-step.spec.ts index df9c35bc..32a86657 100644 --- a/src/lib/navigation/wizard-navigation-with-optional-step.spec.ts +++ b/src/lib/navigation/wizard-navigation-with-optional-step.spec.ts @@ -21,7 +21,7 @@ import {checkWizardState} from '../util/test-utils'; ` }) class WizardTestComponent { - @ViewChild(WizardComponent) + @ViewChild(WizardComponent, {static: false}) public wizard: WizardComponent; } diff --git a/src/lib/navigation/wizard-navigation.spec.ts b/src/lib/navigation/wizard-navigation.spec.ts index 618f18fd..91aadbe5 100644 --- a/src/lib/navigation/wizard-navigation.spec.ts +++ b/src/lib/navigation/wizard-navigation.spec.ts @@ -21,7 +21,7 @@ import {checkWizardState} from '../util/test-utils'; ` }) class WizardTestComponent { - @ViewChild(WizardComponent) + @ViewChild(WizardComponent, {static: false}) public wizard: WizardComponent; } diff --git a/src/lib/util/step-id.interface.spec.ts b/src/lib/util/step-id.interface.spec.ts index 3afbd86f..a9c6c691 100644 --- a/src/lib/util/step-id.interface.spec.ts +++ b/src/lib/util/step-id.interface.spec.ts @@ -34,7 +34,7 @@ import { checkWizardState } from './test-utils'; }) class WizardTestComponent { - @ViewChild(WizardComponent) + @ViewChild(WizardComponent, {static: false}) public wizard: WizardComponent; public canExit = true; diff --git a/src/lib/util/step-index.interface.spec.ts b/src/lib/util/step-index.interface.spec.ts index c407e071..f32defcb 100644 --- a/src/lib/util/step-index.interface.spec.ts +++ b/src/lib/util/step-index.interface.spec.ts @@ -34,7 +34,7 @@ import { checkWizardState } from './test-utils'; }) class WizardTestComponent { - @ViewChild(WizardComponent) + @ViewChild(WizardComponent, {static: false}) public wizard: WizardComponent; public canExit = true; diff --git a/src/lib/util/step-offset.interface.spec.ts b/src/lib/util/step-offset.interface.spec.ts index ed597194..34720040 100644 --- a/src/lib/util/step-offset.interface.spec.ts +++ b/src/lib/util/step-offset.interface.spec.ts @@ -34,7 +34,7 @@ import { checkWizardState } from './test-utils'; }) class WizardTestComponent { - @ViewChild(WizardComponent) + @ViewChild(WizardComponent, {static: false}) public wizard: WizardComponent; public canExit = true; diff --git a/src/lib/util/wizard-completion-step.interface.spec.ts b/src/lib/util/wizard-completion-step.interface.spec.ts index adfffcf6..43726b8d 100644 --- a/src/lib/util/wizard-completion-step.interface.spec.ts +++ b/src/lib/util/wizard-completion-step.interface.spec.ts @@ -24,7 +24,7 @@ import {WizardComponent} from '../components/wizard.component'; }) class WizardTestComponent { - @ViewChild(WizardComponent) + @ViewChild(WizardComponent, {static: false}) public wizard: WizardComponent; public isValid: any = true; diff --git a/src/lib/util/wizard-step.interface.spec.ts b/src/lib/util/wizard-step.interface.spec.ts index d8e2f075..6310cd91 100644 --- a/src/lib/util/wizard-step.interface.spec.ts +++ b/src/lib/util/wizard-step.interface.spec.ts @@ -29,16 +29,16 @@ class WizardTestComponent { public canExit: any = true; - @ViewChild(WizardComponent) + @ViewChild(WizardComponent, {static: false}) public wizard: WizardComponent; - @ViewChild('firstStep') + @ViewChild('firstStep', {static: false}) public firstStep: WizardStep; - @ViewChild('secondStep') + @ViewChild('secondStep', {static: false}) public secondStep: WizardStep; - @ViewChild('thirdStep') + @ViewChild('thirdStep', {static: false}) public thirdStep: WizardStep; public eventLog: Array = []; diff --git a/src/lib/util/wizard-step.interface.ts b/src/lib/util/wizard-step.interface.ts index f27db185..e0cfb37d 100644 --- a/src/lib/util/wizard-step.interface.ts +++ b/src/lib/util/wizard-step.interface.ts @@ -15,14 +15,14 @@ export abstract class WizardStep { * This title is then shown inside the navigation bar. * Compared to `stepTitle` this property can contain any html content and not only plain text */ - @ContentChild(WizardStepTitleDirective) + @ContentChild(WizardStepTitleDirective, {static: false}) public stepTitleTemplate: WizardStepTitleDirective; /** * A step symbol property that, if defined, overrides `navigationSymbol`. * Allows to display arbitrary content as a step symbol instead of plain text. */ - @ContentChild(WizardStepSymbolDirective) + @ContentChild(WizardStepSymbolDirective, {static: false}) public stepSymbolTemplate: WizardStepSymbolDirective; /** diff --git a/src/test.ts b/src/test.ts index e11ff1c9..978c64fb 100644 --- a/src/test.ts +++ b/src/test.ts @@ -1,6 +1,5 @@ // This file is required by karma.conf.js and loads recursively all the .spec and framework files -import 'core-js/es7/reflect'; import 'zone.js/dist/zone'; import 'zone.js/dist/zone-testing'; import { getTestBed } from '@angular/core/testing'; diff --git a/tsconfig.json b/tsconfig.json index e5845191..7ddc6e76 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,15 +2,16 @@ "compileOnSave": false, "compilerOptions": { "baseUrl": "./", + "downlevelIteration": true, "importHelpers": true, "outDir": "./dist/out-tsc", "sourceMap": true, "declaration": false, - "module": "es2015", + "module": "esnext", "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, - "target": "es5", + "target": "es2015", "typeRoots": [ "node_modules/@types" ], diff --git a/tslint.json b/tslint.json index d0b7f272..5f80eb8c 100644 --- a/tslint.json +++ b/tslint.json @@ -118,12 +118,12 @@ "check-type" ], "no-output-on-prefix": true, - "use-input-property-decorator": true, - "use-output-property-decorator": true, - "use-host-property-decorator": true, + "no-inputs-metadata-property": true, + "no-outputs-metadata-property": true, + "no-host-metadata-property": true, "no-input-rename": true, "no-output-rename": true, - "use-life-cycle-interface": true, + "use-lifecycle-interface": true, "use-pipe-transform-interface": true, "component-class-suffix": true, "directive-class-suffix": true