@thi.ng/rstream 8.3.12 → 8.3.14

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-03-09T09:18:17Z
3
+ - **Last updated**: 2024-03-13T14:04:31Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
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>> | undefined) => import("./stream.js").Stream<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> | undefined, falsy?: ISubscriber<T> | undefined) => PubSub<T, T, any>;
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]>> | undefined) => Stream<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>> | undefined) => (parts: A[]) => 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> | undefined) => 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>> | undefined) => StreamMerge<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.12",
3
+ "version": "8.3.14",
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.29",
44
- "@thi.ng/arrays": "^2.8.7",
45
- "@thi.ng/associative": "^6.3.47",
46
- "@thi.ng/atom": "^5.2.37",
47
- "@thi.ng/checks": "^3.5.2",
48
- "@thi.ng/errors": "^2.4.20",
49
- "@thi.ng/logger": "^3.0.5",
50
- "@thi.ng/transducers": "^8.9.11"
43
+ "@thi.ng/api": "^8.9.30",
44
+ "@thi.ng/arrays": "^2.8.9",
45
+ "@thi.ng/associative": "^6.3.49",
46
+ "@thi.ng/atom": "^5.2.39",
47
+ "@thi.ng/checks": "^3.5.3",
48
+ "@thi.ng/errors": "^2.5.1",
49
+ "@thi.ng/logger": "^3.0.6",
50
+ "@thi.ng/transducers": "^8.9.13"
51
51
  },
52
52
  "devDependencies": {
53
- "@microsoft/api-extractor": "^7.40.1",
54
- "esbuild": "^0.20.0",
53
+ "@microsoft/api-extractor": "^7.42.3",
54
+ "esbuild": "^0.20.1",
55
55
  "rimraf": "^5.0.5",
56
- "typedoc": "^0.25.7",
57
- "typescript": "^5.3.3"
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": "69100942474942f7446ac645d59d91e7dfc352f9\n"
218
+ "gitHead": "bc0f3cb07d6f1cab6dbdc5ff57428f5484e711bb\n"
219
219
  }
@@ -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>> | undefined) => ISubscription<T, T[]>;
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()`.
@@ -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>> | undefined) => ISubscription<T, T>;
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>>);
@@ -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>> | undefined) => ISubscription<T, T>;
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
@@ -53,7 +53,6 @@ import { Subscription } from "./subscription.js";
53
53
  * // b2 42
54
54
  * ```
55
55
  *
56
- * @param src -
57
56
  * @param opts -
58
57
  */
59
58
  export declare function stream<T>(opts?: Partial<WithErrorHandlerOpts>): Stream<T>;
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>> | undefined, opts?: Partial<SubscriptionOpts<A, B>> | undefined) => Subscription<A, 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 | undefined) => Promise<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> | undefined, clock?: ISubscribable<any> | number) => import("./api.js").ISubscription<import("./sync.js").SyncTuple<{
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>;