Skip to content

Commit 218b16b

Browse files
Update to Angular 8
1 parent 51a1253 commit 218b16b

File tree

11 files changed

+7234
-8983
lines changed

11 files changed

+7234
-8983
lines changed

angular-reactive-validation/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-reactive-validation",
33
"description": "Reactive Forms validation shouldn't require the developer to write lots of HTML to show validation messages. This library makes it easy.",
4-
"version": "2.0.1",
4+
"version": "3.0.0",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/davidwalschots/angular-reactive-validation.git"
@@ -19,13 +19,13 @@
1919
"license": "MIT",
2020
"private": false,
2121
"dependencies": {
22-
"angular-validation-support": "1.0.0"
22+
"angular-validation-support": "2.0.0"
2323
},
2424
"peerDependencies": {
25-
"@angular/core": "^7.0.0",
26-
"@angular/common": "^7.0.0",
27-
"@angular/forms": "^7.0.0",
28-
"rxjs": "^6.1.0"
25+
"@angular/core": "^8.0.0",
26+
"@angular/common": "^8.0.0",
27+
"@angular/forms": "^8.0.0",
28+
"rxjs": "^6.5.2"
2929
},
3030
"ngPackage": {
3131
"$schema": "./node_modules/ng-packagr/ng-package.schema.json",

angular-reactive-validation/src/validation-message/validation-message.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ describe('ValidationMessageComponent', () => {
104104
</arv-validation-message>`
105105
})
106106
class TestHostComponent {
107-
@ViewChild(ValidationMessageComponent) validationMessageComponent: ValidationMessageComponent;
107+
@ViewChild(ValidationMessageComponent, {static: true}) validationMessageComponent: ValidationMessageComponent;
108108

109109
static getFormControl(): any {
110110
return {

angular-reactive-validation/src/validation-messages/validation-messages.component.spec.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { FormDirective } from '../form/form.directive';
88
import { ValidationMessageComponent } from '../validation-message/validation-message.component';
99
import { Validators } from '../validators';
1010
import { ReactiveValidationModule } from '../reactive-validation.module';
11-
import { ReactiveValidationModuleConfiguration } from '../reactive-validation-module-configuration';
1211

1312
describe('ValidationMessagesComponent', () => {
1413
describe('properties and functions', () => {
@@ -130,8 +129,8 @@ describe('ValidationMessagesComponent', () => {
130129
});
131130

132131
describe('an alternative configuration', () => {
133-
const configuration: ReactiveValidationModuleConfiguration = {
134-
displayValidationMessageWhen: (control, formSubmitted) => true
132+
const configuration = {
133+
displayValidationMessageWhen: () => true
135134
};
136135

137136
beforeEach(() => {
@@ -243,7 +242,7 @@ describe('ValidationMessagesComponent', () => {
243242
});
244243

245244
xdescribe('', () => {
246-
let onerrorBeforeTest: ErrorEventHandler;
245+
let onerrorBeforeTest: OnErrorEventHandler;
247246
beforeEach(() => {
248247
onerrorBeforeTest = window.onerror;
249248
});

browserslist

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
2+
# For additional information regarding the format and rule options, please see:
3+
# https://github.com/browserslist/browserslist#queries
4+
5+
# You can see what browsers were selected by your queries by running:
6+
# npx browserslist
7+
8+
> 0.5%
9+
last 2 versions
10+
Firefox ESR
11+
not dead
12+
not IE 9-11 # For IE 9-11 support, remove 'not'.

0 commit comments

Comments
 (0)