Skip to content

Commit

Permalink
Bump rxjs from 5.5.12 to 6.5.4 (#49)
Browse files Browse the repository at this point in the history
* 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](ReactiveX/rxjs@5.5.12...6.5.4)

Signed-off-by: dependabot-preview[bot] <[email protected]>

* Fix build and move version to peer dependencies

Co-authored-by: Henry Ing-Simmons <[email protected]>
  • Loading branch information
2 people authored and jamesadarich committed Jan 16, 2020
1 parent 939c9c5 commit 4fedc00
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
7 changes: 5 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -38,8 +39,10 @@ const createKnockoutWrapper = (validationSystem?: ValidateFunction) => {
const subject = new BehaviorSubject<T>(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));

Expand Down
16 changes: 5 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 4fedc00

Please sign in to comment.