@thi.ng/rstream 8.3.11 → 8.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/atom.d.ts +1 -1
- package/bisect.d.ts +1 -1
- package/event.d.ts +1 -1
- package/forkjoin.d.ts +1 -1
- package/idgen.d.ts +1 -1
- package/merge.d.ts +1 -1
- package/package.json +14 -14
- package/sidechain-partition.d.ts +1 -1
- package/sidechain-toggle.d.ts +1 -1
- package/sidechain-trigger.d.ts +1 -1
- package/stream.d.ts +0 -1
- package/subscription.d.ts +1 -1
- package/transduce.d.ts +1 -1
- package/trigger.d.ts +0 -3
- package/tween.d.ts +1 -1
package/CHANGELOG.md
CHANGED
package/atom.d.ts
CHANGED
|
@@ -52,5 +52,5 @@ export interface FromAtomOpts<T> extends CommonOpts {
|
|
|
52
52
|
* @param atom -
|
|
53
53
|
* @param opts -
|
|
54
54
|
*/
|
|
55
|
-
export declare const fromAtom: <T>(atom: ReadonlyAtom<T>, opts?: Partial<FromAtomOpts<T>>
|
|
55
|
+
export declare const fromAtom: <T>(atom: ReadonlyAtom<T>, opts?: Partial<FromAtomOpts<T>>) => import("./stream.js").Stream<T>;
|
|
56
56
|
//# sourceMappingURL=atom.d.ts.map
|
package/bisect.d.ts
CHANGED
|
@@ -50,5 +50,5 @@ import { PubSub } from "./pubsub.js";
|
|
|
50
50
|
* @param truthy - subscription for truthy branch
|
|
51
51
|
* @param falsy - subscription for falsy branch
|
|
52
52
|
*/
|
|
53
|
-
export declare const bisect: <T>(pred: Predicate<T>, truthy?: ISubscriber<T
|
|
53
|
+
export declare const bisect: <T>(pred: Predicate<T>, truthy?: ISubscriber<T>, falsy?: ISubscriber<T>) => PubSub<T, T>;
|
|
54
54
|
//# sourceMappingURL=bisect.d.ts.map
|
package/event.d.ts
CHANGED
|
@@ -39,5 +39,5 @@ export declare const fromEvent: (src: EventTarget, name: string, listenerOpts?:
|
|
|
39
39
|
* @param listenerOpts -
|
|
40
40
|
* @param streamOpts -
|
|
41
41
|
*/
|
|
42
|
-
export declare const fromDOMEvent: <K extends keyof GlobalEventHandlersEventMap>(src: EventTarget, name: K, listenerOpts?: boolean | AddEventListenerOptions, streamOpts?: Partial<EventOpts<GlobalEventHandlersEventMap[K]>>
|
|
42
|
+
export declare const fromDOMEvent: <K extends keyof GlobalEventHandlersEventMap>(src: EventTarget, name: K, listenerOpts?: boolean | AddEventListenerOptions, streamOpts?: Partial<EventOpts<GlobalEventHandlersEventMap[K]>>) => Stream<GlobalEventHandlersEventMap[K]>;
|
|
43
43
|
//# sourceMappingURL=event.d.ts.map
|
package/forkjoin.d.ts
CHANGED
|
@@ -167,5 +167,5 @@ export declare const forkBuffer: (minChunkSize?: number) => <T extends Sliceable
|
|
|
167
167
|
*
|
|
168
168
|
* @param fn -
|
|
169
169
|
*/
|
|
170
|
-
export declare const joinBuffer: <A, B>(fn?: Fn<A, ArrayLikeIterable<B>>
|
|
170
|
+
export declare const joinBuffer: <A, B>(fn?: Fn<A, ArrayLikeIterable<B>>) => (parts: A[]) => B[];
|
|
171
171
|
//# sourceMappingURL=forkjoin.d.ts.map
|
package/idgen.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ export declare const __nextID: () => number;
|
|
|
6
6
|
*
|
|
7
7
|
* @internal
|
|
8
8
|
*/
|
|
9
|
-
export declare const __optsWithID: <T extends CommonOpts>(prefix: string, opts?: Partial<T>
|
|
9
|
+
export declare const __optsWithID: <T extends CommonOpts>(prefix: string, opts?: Partial<T>) => Partial<T>;
|
|
10
10
|
//# sourceMappingURL=idgen.d.ts.map
|
package/merge.d.ts
CHANGED
|
@@ -65,7 +65,7 @@ export interface StreamMergeOpts<A, B> extends TransformableOpts<A, B> {
|
|
|
65
65
|
*
|
|
66
66
|
* @param opts -
|
|
67
67
|
*/
|
|
68
|
-
export declare const merge: <A, B>(opts?: Partial<StreamMergeOpts<A, B>>
|
|
68
|
+
export declare const merge: <A, B>(opts?: Partial<StreamMergeOpts<A, B>>) => StreamMerge<A, B>;
|
|
69
69
|
/**
|
|
70
70
|
* @see {@link merge} for reference & examples.
|
|
71
71
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/rstream",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.13",
|
|
4
4
|
"description": "Reactive streams & subscription primitives for constructing dataflow graphs / pipelines",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -40,21 +40,21 @@
|
|
|
40
40
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@thi.ng/api": "^8.9.
|
|
44
|
-
"@thi.ng/arrays": "^2.8.
|
|
45
|
-
"@thi.ng/associative": "^6.3.
|
|
46
|
-
"@thi.ng/atom": "^5.2.
|
|
47
|
-
"@thi.ng/checks": "^3.5.
|
|
48
|
-
"@thi.ng/errors": "^2.
|
|
49
|
-
"@thi.ng/logger": "^3.0.
|
|
50
|
-
"@thi.ng/transducers": "^8.9.
|
|
43
|
+
"@thi.ng/api": "^8.9.30",
|
|
44
|
+
"@thi.ng/arrays": "^2.8.8",
|
|
45
|
+
"@thi.ng/associative": "^6.3.48",
|
|
46
|
+
"@thi.ng/atom": "^5.2.38",
|
|
47
|
+
"@thi.ng/checks": "^3.5.3",
|
|
48
|
+
"@thi.ng/errors": "^2.5.0",
|
|
49
|
+
"@thi.ng/logger": "^3.0.6",
|
|
50
|
+
"@thi.ng/transducers": "^8.9.12"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@microsoft/api-extractor": "^7.
|
|
54
|
-
"esbuild": "^0.20.
|
|
53
|
+
"@microsoft/api-extractor": "^7.42.3",
|
|
54
|
+
"esbuild": "^0.20.1",
|
|
55
55
|
"rimraf": "^5.0.5",
|
|
56
|
-
"typedoc": "^0.25.
|
|
57
|
-
"typescript": "^5.
|
|
56
|
+
"typedoc": "^0.25.12",
|
|
57
|
+
"typescript": "^5.4.2"
|
|
58
58
|
},
|
|
59
59
|
"keywords": [
|
|
60
60
|
"async",
|
|
@@ -215,5 +215,5 @@
|
|
|
215
215
|
],
|
|
216
216
|
"year": 2017
|
|
217
217
|
},
|
|
218
|
-
"gitHead": "
|
|
218
|
+
"gitHead": "7f3fcbd6c0462b0ce45afa141fe163d1f297fd51\n"
|
|
219
219
|
}
|
package/sidechain-partition.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export interface SidechainPartitionOpts<T> extends CommonOpts {
|
|
|
36
36
|
* @param side -
|
|
37
37
|
* @param opts -
|
|
38
38
|
*/
|
|
39
|
-
export declare const sidechainPartition: <T, S>(src: ISubscribable<T>, side: ISubscribable<S>, opts?: Partial<SidechainPartitionOpts<S>>
|
|
39
|
+
export declare const sidechainPartition: <T, S>(src: ISubscribable<T>, side: ISubscribable<S>, opts?: Partial<SidechainPartitionOpts<S>>) => ISubscription<T, T[]>;
|
|
40
40
|
/**
|
|
41
41
|
* **Deprecated** syntax sugar for one of most common {@link sidechainPartition}
|
|
42
42
|
* use cases, to synchronize downstream processing w/ `requestAnimationFrame()`.
|
package/sidechain-toggle.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export interface SidechainToggleOpts<T> extends CommonOpts {
|
|
|
34
34
|
* @param side -
|
|
35
35
|
* @param opts -
|
|
36
36
|
*/
|
|
37
|
-
export declare const sidechainToggle: <T, S>(src: ISubscribable<T>, side: ISubscribable<S>, opts?: Partial<SidechainToggleOpts<S>>
|
|
37
|
+
export declare const sidechainToggle: <T, S>(src: ISubscribable<T>, side: ISubscribable<S>, opts?: Partial<SidechainToggleOpts<S>>) => ISubscription<T, T>;
|
|
38
38
|
export declare class SidechainToggle<T, S> extends ASidechain<T, S, T> {
|
|
39
39
|
isActive: boolean;
|
|
40
40
|
constructor(side: ISubscribable<S>, opts?: Partial<SidechainToggleOpts<S>>);
|
package/sidechain-trigger.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ export interface SidechainTriggerOpts<T> extends CommonOpts {
|
|
|
47
47
|
* @param side
|
|
48
48
|
* @param opts
|
|
49
49
|
*/
|
|
50
|
-
export declare const sidechainTrigger: <T, S>(src: ISubscribable<T>, side: ISubscribable<S>, opts?: Partial<SidechainTriggerOpts<S>>
|
|
50
|
+
export declare const sidechainTrigger: <T, S>(src: ISubscribable<T>, side: ISubscribable<S>, opts?: Partial<SidechainTriggerOpts<S>>) => ISubscription<T, T>;
|
|
51
51
|
export declare class SidechainTrigger<T, S> extends ASidechain<T, S, T> {
|
|
52
52
|
buf: T | typeof SEMAPHORE;
|
|
53
53
|
constructor(side: ISubscribable<S>, opts?: Partial<SidechainTriggerOpts<S>>);
|
package/stream.d.ts
CHANGED
package/subscription.d.ts
CHANGED
|
@@ -52,7 +52,7 @@ import { CloseMode, State, type CommonOpts, type ISubscriber, type ISubscription
|
|
|
52
52
|
* @param sub -
|
|
53
53
|
* @param opts -
|
|
54
54
|
*/
|
|
55
|
-
export declare const subscription: <A, B>(sub?: Partial<ISubscriber<B
|
|
55
|
+
export declare const subscription: <A, B>(sub?: Partial<ISubscriber<B>>, opts?: Partial<SubscriptionOpts<A, B>>) => Subscription<A, B>;
|
|
56
56
|
export declare class Subscription<A, B> implements ISubscription<A, B> {
|
|
57
57
|
protected wrapped?: Partial<ISubscriber<B>> | undefined;
|
|
58
58
|
id: string;
|
package/transduce.d.ts
CHANGED
|
@@ -27,5 +27,5 @@ import type { Subscription } from "./subscription.js";
|
|
|
27
27
|
* @param rfn -
|
|
28
28
|
* @param init -
|
|
29
29
|
*/
|
|
30
|
-
export declare const transduce: <A, B, C>(src: Subscription<any, A>, xform: Transducer<A, B>, rfn: Reducer<C, B>, init?: C
|
|
30
|
+
export declare const transduce: <A, B, C>(src: Subscription<any, A>, xform: Transducer<A, B>, rfn: Reducer<C, B>, init?: C) => Promise<C>;
|
|
31
31
|
//# sourceMappingURL=transduce.d.ts.map
|
package/trigger.d.ts
CHANGED
|
@@ -7,9 +7,6 @@ import type { Stream } from "./stream.js";
|
|
|
7
7
|
*
|
|
8
8
|
* @remarks
|
|
9
9
|
* Syntax sugar for {@link fromIterableSync}.
|
|
10
|
-
*
|
|
11
|
-
* @param x -
|
|
12
|
-
* @param opts -
|
|
13
10
|
*/
|
|
14
11
|
export declare function trigger(): Stream<boolean>;
|
|
15
12
|
export declare function trigger<T>(x: T, opts?: Partial<CommonOpts>): Stream<T>;
|
package/tween.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ import { type ISubscribable } from "./api.js";
|
|
|
56
56
|
* @param stop -
|
|
57
57
|
* @param clock -
|
|
58
58
|
*/
|
|
59
|
-
export declare const tween: <T>(src: ISubscribable<T>, initial: T, mix: Fn2<T, T, T>, stop?: Fn2<T, T, boolean
|
|
59
|
+
export declare const tween: <T>(src: ISubscribable<T>, initial: T, mix: Fn2<T, T, T>, stop?: Fn2<T, T, boolean>, clock?: ISubscribable<any> | number) => import("./api.js").ISubscription<import("./sync.js").SyncTuple<{
|
|
60
60
|
src: ISubscribable<T>;
|
|
61
61
|
_: ISubscribable<any> | import("./stream.js").Stream<number>;
|
|
62
62
|
}>, T>;
|