@rx-angular/state
Advanced tools
Comparing version 19.0.2 to 19.0.3
@@ -1,2 +0,2 @@ | ||
import { ErrorHandler, OnDestroy } from '@angular/core'; | ||
import { ErrorHandler } from '@angular/core'; | ||
import { Actions, ActionTransforms, RxActions } from './types'; | ||
@@ -20,13 +20,8 @@ import * as i0 from "@angular/core"; | ||
*/ | ||
export declare class RxActionFactory<T extends Partial<Actions>> implements OnDestroy { | ||
export declare class RxActionFactory<T extends Partial<Actions>> { | ||
private readonly errorHandler?; | ||
private subjects; | ||
private readonly subjects; | ||
constructor(errorHandler?: ErrorHandler | undefined); | ||
create<U extends ActionTransforms<T> = object>(transforms?: U): RxActions<T, U>; | ||
destroy(): void; | ||
/** | ||
* @internal | ||
* Internally used to clean up potential subscriptions to the subjects. (For Actions it is most probably a rare case but still important to care about) | ||
*/ | ||
ngOnDestroy(): void; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<RxActionFactory<any>, [{ optional: true; }]>; | ||
@@ -33,0 +28,0 @@ static ɵprov: i0.ɵɵInjectableDeclaration<RxActionFactory<any>>; |
@@ -1,2 +0,1 @@ | ||
import { ErrorHandler, OnDestroy } from '@angular/core'; | ||
import { Observable, ObservableInput, PartialObserver, Subject, Subscription } from 'rxjs'; | ||
@@ -48,6 +47,6 @@ import { DestroyProp, OnDestroy$ } from './model'; | ||
*/ | ||
export declare class RxEffects implements OnDestroy, OnDestroy$ { | ||
export declare class RxEffects implements OnDestroy$ { | ||
private static nextId; | ||
private readonly destroyRef; | ||
private readonly errorHandler; | ||
constructor(errorHandler: ErrorHandler | null); | ||
private static nextId; | ||
readonly _hooks$: Subject<DestroyProp>; | ||
@@ -59,2 +58,3 @@ private readonly observables$; | ||
private readonly destroyers; | ||
constructor(); | ||
/** | ||
@@ -153,9 +153,5 @@ * Performs a side-effect whenever a source observable emits, and handles its subscription. | ||
untilEffect(effectId: number): <V>(source: Observable<V>) => Observable<V>; | ||
/** | ||
* @internal | ||
*/ | ||
ngOnDestroy(): void; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<RxEffects, [{ optional: true; }]>; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<RxEffects, never>; | ||
static ɵprov: i0.ɵɵInjectableDeclaration<RxEffects>; | ||
} | ||
//# sourceMappingURL=effects.service.d.ts.map |
@@ -1,3 +0,3 @@ | ||
import { MonoTypeOperatorFunction, Observable } from 'rxjs'; | ||
import { HookProps, OnDestroy$, SingleShotProps } from './model'; | ||
import { Observable } from 'rxjs'; | ||
import { HookProps, SingleShotProps } from './model'; | ||
export declare function isSingleShotHookNameGuard<T>(name: unknown): name is keyof SingleShotProps; | ||
@@ -11,9 +11,2 @@ /** | ||
export declare function toHook<H extends keyof HookProps>(name: H): (o$: Observable<HookProps>) => Observable<HookProps[H]>; | ||
/** | ||
* This operator can be used to take instances that implements `OnDestroy$` and unsubscribes from the given Observable when the instances | ||
* `onDestroy$` Observable emits. | ||
* | ||
* @param instanceWithLifecycle | ||
*/ | ||
export declare function untilDestroyed<V>(instanceWithLifecycle: OnDestroy$): MonoTypeOperatorFunction<V>; | ||
//# sourceMappingURL=utils.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { OnDestroy, Signal } from '@angular/core'; | ||
import { Signal } from '@angular/core'; | ||
import { AccumulationFn, KeyCompareMap, PickSlice } from '@rx-angular/state/selections'; | ||
@@ -30,3 +30,3 @@ import { Observable, OperatorFunction, Subscribable, Unsubscribable } from 'rxjs'; | ||
*/ | ||
export declare class RxState<State extends object> implements OnDestroy, Subscribable<State> { | ||
export declare class RxState<State extends object> implements Subscribable<State> { | ||
private subscription; | ||
@@ -49,6 +49,2 @@ protected scheduler: import("rxjs").SchedulerLike | "sync" | null; | ||
/** | ||
* @internal | ||
*/ | ||
ngOnDestroy(): void; | ||
/** | ||
* @description | ||
@@ -55,0 +51,0 @@ * |
{ | ||
"name": "@rx-angular/state", | ||
"version": "19.0.2", | ||
"version": "19.0.3", | ||
"description": "@rx-angular/state is a light-weight, flexible, strongly typed and tested tool dedicated to reduce the complexity of managing component state and side effects in angular", | ||
@@ -46,3 +46,3 @@ "publishConfig": { | ||
"@angular/core": "^19.0.0", | ||
"@rx-angular/cdk": "^19.0.1", | ||
"@rx-angular/cdk": "^19.1.0", | ||
"rxjs": "^6.5.3 || ^7.4.0" | ||
@@ -49,0 +49,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
277144
3001