@thi.ng/rstream 7.2.6 → 7.2.9
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 +7 -1
- package/debounce.d.ts +1 -1
- package/event.d.ts +2 -2
- package/interval.d.ts +1 -1
- package/iterable.d.ts +1 -1
- package/metastream.d.ts +1 -1
- package/nodejs.d.ts +2 -3
- package/object.js +1 -1
- package/package.json +14 -14
- package/promise.d.ts +1 -1
- package/promises.d.ts +1 -1
- package/raf.d.ts +1 -1
- package/resolve.d.ts +1 -1
- package/stream.d.ts +1 -1
- package/timeout.d.ts +1 -1
- package/tween.d.ts +2 -2
- package/worker.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2022-
|
|
3
|
+
- **Last updated**: 2022-06-09T16:14:01Z
|
|
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.
|
|
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
9
9
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
10
|
and/or version bumps of transitive dependencies.
|
|
11
11
|
|
|
12
|
+
### [7.2.7](https://github.com/thi-ng/umbrella/tree/@thi.ng/rstream@7.2.7) (2022-06-09)
|
|
13
|
+
|
|
14
|
+
#### ♻️ Refactoring
|
|
15
|
+
|
|
16
|
+
- various (minor) TS4.7 related updates/fixes ([9d9ecae](https://github.com/thi-ng/umbrella/commit/9d9ecae))
|
|
17
|
+
|
|
12
18
|
## [7.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/rstream@7.2.0) (2021-11-21)
|
|
13
19
|
|
|
14
20
|
#### 🚀 Features
|
package/debounce.d.ts
CHANGED
|
@@ -13,5 +13,5 @@ import { MetaStreamOpts } from "./metastream.js";
|
|
|
13
13
|
*
|
|
14
14
|
* @param delay -
|
|
15
15
|
*/
|
|
16
|
-
export declare const debounce: <T>(delay: number, opts?: Partial<MetaStreamOpts>
|
|
16
|
+
export declare const debounce: <T>(delay: number, opts?: Partial<MetaStreamOpts>) => import("./metastream.js").MetaStream<T, T>;
|
|
17
17
|
//# sourceMappingURL=debounce.d.ts.map
|
package/event.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { Stream } from "./stream.js";
|
|
|
10
10
|
* @param listenerOpts - listener opts
|
|
11
11
|
* @param streamOpts - stream opts
|
|
12
12
|
*/
|
|
13
|
-
export declare const fromEvent: (src: EventTarget, name: string, listenerOpts?: boolean | AddEventListenerOptions, streamOpts?: Partial<CommonOpts>
|
|
13
|
+
export declare const fromEvent: (src: EventTarget, name: string, listenerOpts?: boolean | AddEventListenerOptions, streamOpts?: Partial<CommonOpts>) => Stream<Event>;
|
|
14
14
|
/**
|
|
15
15
|
* Same as {@link fromEvent}, however only supports well-known DOM event
|
|
16
16
|
* names. Returned stream instance will use corresponding concrete event
|
|
@@ -30,5 +30,5 @@ export declare const fromEvent: (src: EventTarget, name: string, listenerOpts?:
|
|
|
30
30
|
* @param listenerOpts -
|
|
31
31
|
* @param streamOpts -
|
|
32
32
|
*/
|
|
33
|
-
export declare const fromDOMEvent: <K extends keyof GlobalEventHandlersEventMap>(src: EventTarget, name: K, listenerOpts?: boolean | AddEventListenerOptions, streamOpts?: Partial<CommonOpts>
|
|
33
|
+
export declare const fromDOMEvent: <K extends keyof GlobalEventHandlersEventMap>(src: EventTarget, name: K, listenerOpts?: boolean | AddEventListenerOptions, streamOpts?: Partial<CommonOpts>) => Stream<GlobalEventHandlersEventMap[K]>;
|
|
34
34
|
//# sourceMappingURL=event.d.ts.map
|
package/interval.d.ts
CHANGED
|
@@ -20,5 +20,5 @@ export interface FromIntervalOpts extends CommonOpts {
|
|
|
20
20
|
* @param delay -
|
|
21
21
|
* @param opts -
|
|
22
22
|
*/
|
|
23
|
-
export declare const fromInterval: (delay: number, opts?: Partial<FromIntervalOpts>
|
|
23
|
+
export declare const fromInterval: (delay: number, opts?: Partial<FromIntervalOpts>) => import("./stream.js").Stream<number>;
|
|
24
24
|
//# sourceMappingURL=interval.d.ts.map
|
package/iterable.d.ts
CHANGED
|
@@ -34,5 +34,5 @@ export declare const fromIterable: <T>(src: Iterable<T>, opts?: Partial<FromIter
|
|
|
34
34
|
* @param src -
|
|
35
35
|
* @param opts -
|
|
36
36
|
*/
|
|
37
|
-
export declare const fromIterableSync: <T>(src: Iterable<T>, opts?: Partial<CommonOpts>
|
|
37
|
+
export declare const fromIterableSync: <T>(src: Iterable<T>, opts?: Partial<CommonOpts>) => import("./stream.js").Stream<T>;
|
|
38
38
|
//# sourceMappingURL=iterable.d.ts.map
|
package/metastream.d.ts
CHANGED
|
@@ -90,7 +90,7 @@ export interface MetaStreamOpts extends CommonOpts {
|
|
|
90
90
|
* @param factory -
|
|
91
91
|
* @param id -
|
|
92
92
|
*/
|
|
93
|
-
export declare const metaStream: <A, B>(factory: Fn<A, Nullable<ISubscription<B, B>>>, opts?: Partial<MetaStreamOpts>
|
|
93
|
+
export declare const metaStream: <A, B>(factory: Fn<A, Nullable<ISubscription<B, B>>>, opts?: Partial<MetaStreamOpts>) => MetaStream<A, B>;
|
|
94
94
|
/**
|
|
95
95
|
* @see {@link metaStream} for reference & examples.
|
|
96
96
|
*/
|
package/nodejs.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import type { Readable } from "stream";
|
|
3
2
|
import { Stream } from "./stream.js";
|
|
4
3
|
import type { Subscription } from "./subscription.js";
|
|
@@ -12,7 +11,7 @@ import type { Subscription } from "./subscription.js";
|
|
|
12
11
|
* @param stderr -
|
|
13
12
|
* @param close -
|
|
14
13
|
*/
|
|
15
|
-
export declare const fromNodeJS: <T>(stdout: Readable, stderr?: Readable
|
|
14
|
+
export declare const fromNodeJS: <T>(stdout: Readable, stderr?: Readable, close?: boolean) => Stream<T>;
|
|
16
15
|
/**
|
|
17
16
|
* Specialized version of {@link fromNodeJS} for string inputs and automatic
|
|
18
17
|
* rechunking/splitting of the input using the optionally provided regexp (line
|
|
@@ -47,5 +46,5 @@ export declare const fromNodeJS: <T>(stdout: Readable, stderr?: Readable | undef
|
|
|
47
46
|
* @param re -
|
|
48
47
|
* @param close -
|
|
49
48
|
*/
|
|
50
|
-
export declare const linesFromNodeJS: (stdout: Readable, stderr?: Readable
|
|
49
|
+
export declare const linesFromNodeJS: (stdout: Readable, stderr?: Readable, re?: RegExp, close?: boolean) => Subscription<string, string>;
|
|
51
50
|
//# sourceMappingURL=nodejs.d.ts.map
|
package/object.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/rstream",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.9",
|
|
4
4
|
"description": "Reactive streams & subscription primitives for constructing dataflow graphs / pipelines",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,22 +34,22 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.3.
|
|
38
|
-
"@thi.ng/arrays": "^2.
|
|
39
|
-
"@thi.ng/associative": "^6.1.
|
|
40
|
-
"@thi.ng/atom": "^5.1.
|
|
41
|
-
"@thi.ng/checks": "^3.1
|
|
42
|
-
"@thi.ng/errors": "^2.1.
|
|
43
|
-
"@thi.ng/logger": "^1.1.
|
|
44
|
-
"@thi.ng/transducers": "^8.3.
|
|
37
|
+
"@thi.ng/api": "^8.3.7",
|
|
38
|
+
"@thi.ng/arrays": "^2.3.0",
|
|
39
|
+
"@thi.ng/associative": "^6.1.11",
|
|
40
|
+
"@thi.ng/atom": "^5.1.8",
|
|
41
|
+
"@thi.ng/checks": "^3.2.1",
|
|
42
|
+
"@thi.ng/errors": "^2.1.7",
|
|
43
|
+
"@thi.ng/logger": "^1.1.7",
|
|
44
|
+
"@thi.ng/transducers": "^8.3.6"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@microsoft/api-extractor": "^7.
|
|
48
|
-
"@thi.ng/testament": "^0.2.
|
|
47
|
+
"@microsoft/api-extractor": "^7.25.0",
|
|
48
|
+
"@thi.ng/testament": "^0.2.8",
|
|
49
49
|
"rimraf": "^3.0.2",
|
|
50
50
|
"tools": "^0.0.1",
|
|
51
|
-
"typedoc": "^0.22.
|
|
52
|
-
"typescript": "^4.
|
|
51
|
+
"typedoc": "^0.22.17",
|
|
52
|
+
"typescript": "^4.7.3"
|
|
53
53
|
},
|
|
54
54
|
"keywords": [
|
|
55
55
|
"async",
|
|
@@ -201,5 +201,5 @@
|
|
|
201
201
|
],
|
|
202
202
|
"year": 2017
|
|
203
203
|
},
|
|
204
|
-
"gitHead": "
|
|
204
|
+
"gitHead": "e64b1ab39ae9bcc494ef006f6329e5182fa2a326\n"
|
|
205
205
|
}
|
package/promise.d.ts
CHANGED
|
@@ -10,5 +10,5 @@ import { WithErrorHandlerOpts } from "./api.js";
|
|
|
10
10
|
* @param src -
|
|
11
11
|
* @param opts -
|
|
12
12
|
*/
|
|
13
|
-
export declare const fromPromise: <T>(src: Promise<T>, opts?: Partial<WithErrorHandlerOpts>
|
|
13
|
+
export declare const fromPromise: <T>(src: Promise<T>, opts?: Partial<WithErrorHandlerOpts>) => import("./stream.js").Stream<T>;
|
|
14
14
|
//# sourceMappingURL=promise.d.ts.map
|
package/promises.d.ts
CHANGED
|
@@ -39,5 +39,5 @@ import type { ISubscription, WithErrorHandlerOpts } from "./api.js";
|
|
|
39
39
|
* @param promises -
|
|
40
40
|
* @param opts -
|
|
41
41
|
*/
|
|
42
|
-
export declare const fromPromises: <T>(promises: Iterable<T | PromiseLike<T>>, opts?: Partial<WithErrorHandlerOpts>
|
|
42
|
+
export declare const fromPromises: <T>(promises: Iterable<T | PromiseLike<T>>, opts?: Partial<WithErrorHandlerOpts>) => ISubscription<Awaited<T>[], Awaited<T>>;
|
|
43
43
|
//# sourceMappingURL=promises.d.ts.map
|
package/raf.d.ts
CHANGED
|
@@ -11,5 +11,5 @@ import type { CommonOpts } from "./api.js";
|
|
|
11
11
|
* All subscribers to this stream will be processed during that same
|
|
12
12
|
* loop iteration.
|
|
13
13
|
*/
|
|
14
|
-
export declare const fromRAF: (opts?: Partial<CommonOpts>
|
|
14
|
+
export declare const fromRAF: (opts?: Partial<CommonOpts>) => import("./stream.js").Stream<number>;
|
|
15
15
|
//# sourceMappingURL=raf.d.ts.map
|
package/resolve.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export interface ResolverOpts extends IID<string> {
|
|
|
30
30
|
*
|
|
31
31
|
* @param opts -
|
|
32
32
|
*/
|
|
33
|
-
export declare const resolve: <T>(opts?: Partial<ResolverOpts>
|
|
33
|
+
export declare const resolve: <T>(opts?: Partial<ResolverOpts>) => Resolver<T>;
|
|
34
34
|
export declare class Resolver<T> extends Subscription<Promise<T>, T> {
|
|
35
35
|
protected outstanding: number;
|
|
36
36
|
protected fail?: Fn<any, void>;
|
package/stream.d.ts
CHANGED
|
@@ -65,7 +65,7 @@ export declare function stream<T>(src: StreamSource<T>, opts?: Partial<WithError
|
|
|
65
65
|
* @param val -
|
|
66
66
|
* @param opts -
|
|
67
67
|
*/
|
|
68
|
-
export declare const reactive: <T>(val: T, opts?: Partial<CommonOpts>
|
|
68
|
+
export declare const reactive: <T>(val: T, opts?: Partial<CommonOpts>) => Stream<T>;
|
|
69
69
|
/**
|
|
70
70
|
* @see {@link stream} & {@link reactive} for reference & examples.
|
|
71
71
|
*/
|
package/timeout.d.ts
CHANGED
|
@@ -27,5 +27,5 @@ export interface TimeoutOpts extends CommonOpts {
|
|
|
27
27
|
* @param timeoutMs - timeout period in milliseconds
|
|
28
28
|
* @param opts -
|
|
29
29
|
*/
|
|
30
|
-
export declare const timeout: <T>(timeoutMs: number, opts?: Partial<TimeoutOpts>
|
|
30
|
+
export declare const timeout: <T>(timeoutMs: number, opts?: Partial<TimeoutOpts>) => Subscription<T, T>;
|
|
31
31
|
//# sourceMappingURL=timeout.d.ts.map
|
package/tween.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ import { ISubscribable } from "./api.js";
|
|
|
54
54
|
* @param stop -
|
|
55
55
|
* @param clock -
|
|
56
56
|
*/
|
|
57
|
-
export declare const tween: <T>(src: ISubscribable<T>, initial: T, mix: Fn2<T, T, T>, stop?: Fn2<T, T, boolean> | undefined, clock?:
|
|
57
|
+
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<{
|
|
58
58
|
src: ISubscribable<T>;
|
|
59
59
|
_: ISubscribable<any> | import("./stream.js").Stream<number>;
|
|
60
60
|
}>, T>;
|
|
@@ -68,7 +68,7 @@ export declare const tween: <T>(src: ISubscribable<T>, initial: T, mix: Fn2<T, T
|
|
|
68
68
|
* @param eps -
|
|
69
69
|
* @param clock -
|
|
70
70
|
*/
|
|
71
|
-
export declare const tweenNumber: (src: ISubscribable<number>, init?: number, speed?: number, eps?: number, clock?:
|
|
71
|
+
export declare const tweenNumber: (src: ISubscribable<number>, init?: number, speed?: number, eps?: number, clock?: ISubscribable<any> | number) => import("./api.js").ISubscription<import("./sync.js").SyncTuple<{
|
|
72
72
|
src: ISubscribable<number>;
|
|
73
73
|
_: ISubscribable<any> | import("./stream.js").Stream<number>;
|
|
74
74
|
}>, number>;
|
package/worker.d.ts
CHANGED
|
@@ -31,5 +31,5 @@ export interface FromWorkerOpts extends WithErrorHandlerOpts {
|
|
|
31
31
|
* @param worker -
|
|
32
32
|
* @param opts -
|
|
33
33
|
*/
|
|
34
|
-
export declare const fromWorker: <T>(worker: WorkerSource, opts?: Partial<FromWorkerOpts>
|
|
34
|
+
export declare const fromWorker: <T>(worker: WorkerSource, opts?: Partial<FromWorkerOpts>) => import("./stream.js").Stream<T>;
|
|
35
35
|
//# sourceMappingURL=worker.d.ts.map
|