chore(utils): flag split, collect & collectValues as deprecated

This commit is contained in:
Josep M Sobrepere 2021-03-30 22:51:24 +02:00
parent d653623d1f
commit 957c4e5346
3 changed files with 8 additions and 4 deletions

View File

@ -10,7 +10,8 @@ const enhancer = <K, V>(source: GroupedObservable<K, V>) =>
return source.subscribe(noop, done, done)
})
/**
/** @deprecated collect is deprecated and it will be removed in the next version, please use partitionByKey
*
* A pipeable operator that collects all the GroupedObservables emitted by
* the source and emits a Map with the active inner observables
*/

View File

@ -1,7 +1,8 @@
import { GroupedObservable, OperatorFunction } from "rxjs"
import { collector } from "./internal-utils"
/**
/** @deprecated collectValues is deprecated and it will be removed in the next version, please use combineKeys
*
* A pipeable operator that collects all the GroupedObservables emitted by
* the source and emits a Map with the latest values of the inner observables.
*/

View File

@ -10,7 +10,8 @@ import { shareReplay } from "rxjs/operators"
const emptyError = {}
/**
/** @deprecated split is deprecated and it will be removed in the next version, please use partitionByKey
*
* Groups the items emitted by the source based on the keySelector function,
* emitting one Observable for each group.
*
@ -20,7 +21,8 @@ export function split<T, K>(
keySelector: (value: T) => K,
): OperatorFunction<T, GroupedObservable<K, T>>
/**
/** @deprecated split is deprecated and it will be removed in the next version, please use partitionByKey
*
* Groups the items emitted by the source based on the keySelector function,
* emitting one Observable for each group.
*