From 4fedc00be3b9491c6e74e4065f7fb267a380bc9d Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Thu, 16 Jan 2020 15:39:24 +0000 Subject: [PATCH] Bump rxjs from 5.5.12 to 6.5.4 (#49) * Bump rxjs from 5.5.12 to 6.5.4 Bumps [rxjs](https://github.com/reactivex/rxjs) from 5.5.12 to 6.5.4. - [Release notes](https://github.com/reactivex/rxjs/releases) - [Changelog](https://github.com/ReactiveX/rxjs/blob/6.5.4/CHANGELOG.md) - [Commits](https://github.com/reactivex/rxjs/compare/5.5.12...6.5.4) Signed-off-by: dependabot-preview[bot] * Fix build and move version to peer dependencies Co-authored-by: Henry Ing-Simmons --- index.ts | 7 +++++-- package-lock.json | 16 +++++----------- package.json | 11 +++++++---- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/index.ts b/index.ts index 5585ee4..d2b332c 100644 --- a/index.ts +++ b/index.ts @@ -9,6 +9,7 @@ import { } from "not-valid"; import { BehaviorSubject, Observable } from "rxjs"; +import { debounceTime, switchMap } from "rxjs/operators"; const DEBOUNCE_WAIT_PERIOD = process.env.NOT_VALID_KNOCKOUT_DEBOUNCE !== undefined ? +process.env.NOT_VALID_KNOCKOUT_DEBOUNCE @@ -38,8 +39,10 @@ const createKnockoutWrapper = (validationSystem?: ValidateFunction) => { const subject = new BehaviorSubject(initialValue); const resultObservable = subject - .debounceTime(DEBOUNCE_WAIT_PERIOD) - .switchMap(async value => await validate(validators, value)); + .pipe( + debounceTime(DEBOUNCE_WAIT_PERIOD), + switchMap(async value => await validate(validators, value)) + ); resultObservable.subscribe(errors => errorObservable(errors)); diff --git a/package-lock.json b/package-lock.json index bf53750..9cad7f4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -772,11 +772,11 @@ } }, "rxjs": { - "version": "5.5.12", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.5.12.tgz", - "integrity": "sha512-xx2itnL5sBbqeeiVgNPVuQQ1nC8Jp2WfNJhXWHmElW9YmrpS9UVnNzhP3EH3HFqexO5Tlp8GhYY+WEcqcVMvGw==", + "version": "6.5.4", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.5.4.tgz", + "integrity": "sha512-naMQXcgEo3csAEGvw/NydRA0fuS2nDZJiw1YUWFKU7aPPAPGZEsD4Iimit96qwCieH6y614MCLYwdkrWx7z/7Q==", "requires": { - "symbol-observable": "1.0.1" + "tslib": "^1.9.0" } }, "safe-buffer": { @@ -938,11 +938,6 @@ "has-flag": "^3.0.0" } }, - "symbol-observable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.0.1.tgz", - "integrity": "sha1-g0D8RwLDEi310iKI+IKD9RPT/dQ=" - }, "tap-bark": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/tap-bark/-/tap-bark-2.3.1.tgz", @@ -1042,8 +1037,7 @@ "tslib": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", - "dev": true + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" }, "tslint": { "version": "5.20.1", diff --git a/package.json b/package.json index be602b2..d9c543a 100644 --- a/package.json +++ b/package.json @@ -32,18 +32,21 @@ }, "homepage": "https://github.com/NewOrbit/not-valid-knockout#readme", "dependencies": { - "not-valid": "2.0.0", - "@types/knockout": "^3.4.40", - "@types/node": "^12.12.8", - "rxjs": "^5.5.0" + "not-valid": "2.0.0" }, "devDependencies": { + "@types/node": "^12.12.8", + "@types/knockout": "^3.4.40", "@neworbit/knockout-test-utils": "0.0.2", "alsatian": "^3.1.0", "chalk": "^2.4.2", "neworbit-tslint-config": "^2.0.0", + "rxjs": "^6.5.4", "tap-xunit": "^2.2.0", "tslint": "^5.2.0", "typescript": "^3.7.2" + }, + "peerDependencies": { + "rxjs": "6.x" } }