diff --git a/src/internal/operators/multicast.ts b/src/internal/operators/multicast.ts index f47c006efc..4ea03d2f43 100644 --- a/src/internal/operators/multicast.ts +++ b/src/internal/operators/multicast.ts @@ -73,6 +73,12 @@ export function multicast>( selector: (shared: Observable) => O ): OperatorFunction>; +/** + * @deprecated Will be removed in v8. Use the {@link connectable} observable, the {@link connect} operator or the + * {@link share} operator instead. See the overloads below for equivalent replacement examples of this operator's + * behaviors. + * Details: https://rxjs.dev/deprecations/multicasting + */ export function multicast( subjectOrSubjectFactory: Subject | (() => Subject), selector?: (source: Observable) => Observable diff --git a/src/internal/operators/publish.ts b/src/internal/operators/publish.ts index 0c43ae7244..e1a1930e15 100644 --- a/src/internal/operators/publish.ts +++ b/src/internal/operators/publish.ts @@ -79,6 +79,10 @@ export function publish>(selector: (shared: Ob * Subscribers to the given source will receive all notifications of the source from the time of the subscription on. * @return A function that returns a ConnectableObservable that upon connection * causes the source Observable to emit items to its Observers. + * @deprecated Will be removed in v8. Use the {@link connectable} observable, the {@link connect} operator or the + * {@link share} operator instead. See the overloads below for equivalent replacement examples of this operator's + * behaviors. + * Details: https://rxjs.dev/deprecations/multicasting */ export function publish(selector?: OperatorFunction): MonoTypeOperatorFunction | OperatorFunction { return selector ? connect(selector) : multicast(new Subject()); diff --git a/src/internal/operators/publishReplay.ts b/src/internal/operators/publishReplay.ts index 7a60341c45..f772fc35b8 100644 --- a/src/internal/operators/publishReplay.ts +++ b/src/internal/operators/publishReplay.ts @@ -74,6 +74,12 @@ export function publishReplay>( timestampProvider: TimestampProvider ): OperatorFunction>; +/** + * @deprecated Will be removed in v8. Use the {@link connectable} observable, the {@link connect} operator or the + * {@link share} operator instead. See the overloads below for equivalent replacement examples of this operator's + * behaviors. + * Details: https://rxjs.dev/deprecations/multicasting + */ export function publishReplay( bufferSize?: number, windowTime?: number,