@thi.ng/rstream 7.2.45 → 7.2.46

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**: 2023-03-14T13:27:20Z
3
+ - **Last updated**: 2023-03-27T19:05:48Z
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.46](https://github.com/thi-ng/umbrella/tree/@thi.ng/rstream@7.2.46) (2023-03-27)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - update imports (TS5.0) ([562e1af](https://github.com/thi-ng/umbrella/commit/562e1af))
17
+
12
18
  ### [7.2.31](https://github.com/thi-ng/umbrella/tree/@thi.ng/rstream@7.2.31) (2022-12-16)
13
19
 
14
20
  #### 🩹 Bug fixes
package/README.md CHANGED
@@ -196,7 +196,7 @@ For Node.js REPL:
196
196
  const rstream = await import("@thi.ng/rstream");
197
197
  ```
198
198
 
199
- Package sizes (brotli'd, pre-treeshake): ESM: 5.60 KB
199
+ Package sizes (brotli'd, pre-treeshake): ESM: 5.63 KB
200
200
 
201
201
  ## Dependencies
202
202
 
package/checks.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { CloseMode, ISubscribable } from "./api.js";
1
+ import { CloseMode, type ISubscribable } from "./api.js";
2
2
  export declare const isSubscribable: (x: any) => x is ISubscribable<any>;
3
3
  /**
4
4
  * Returns true if mode is FIRST, or if mode is LAST *and* `num = 0`.
package/debounce.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { MetaStreamOpts } from "./metastream.js";
1
+ import { type MetaStreamOpts } from "./metastream.js";
2
2
  /**
3
3
  * Returns a subscription which buffers any intermediate inputs arriving faster
4
4
  * than given `delay` time period, then emits last received value after `delay`
package/event.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { __optsWithID } from "./idgen.js";
2
- import { stream } from "./stream.js";
2
+ import { stream, Stream } from "./stream.js";
3
3
  /**
4
4
  * Creates a {@link Stream} of events attached to given element / event
5
5
  * target and using given event listener options (same as supported by
package/interval.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { CommonOpts } from "./api.js";
1
+ import { type CommonOpts } from "./api.js";
2
2
  export interface FromIntervalOpts extends CommonOpts {
3
3
  /**
4
4
  * If given, only the stated number of values will be emitted (in
package/iterable.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { CommonOpts } from "./api.js";
1
+ import { type CommonOpts } from "./api.js";
2
2
  export interface FromIterableOpts extends CommonOpts {
3
3
  /**
4
4
  * Time delay (in ms) between emitted values. The default value of
package/merge.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ISubscribable, ISubscription, TransformableOpts } from "./api.js";
1
+ import { type ISubscribable, type ISubscription, type TransformableOpts } from "./api.js";
2
2
  import { Subscription } from "./subscription.js";
3
3
  export interface StreamMergeOpts<A, B> extends TransformableOpts<A, B> {
4
4
  /**
package/metastream.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Fn, Nullable } from "@thi.ng/api";
2
- import { CommonOpts, ISubscription } from "./api.js";
2
+ import { type CommonOpts, type ISubscription } from "./api.js";
3
3
  import { Subscription } from "./subscription.js";
4
4
  export interface MetaStreamOpts extends CommonOpts {
5
5
  /**
package/metastream.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { assert } from "@thi.ng/errors/assert";
2
- import { CloseMode, State } from "./api.js";
2
+ import { CloseMode, State, } from "./api.js";
3
3
  import { __optsWithID } from "./idgen.js";
4
4
  import { Subscription } from "./subscription.js";
5
5
  /**
package/nodejs.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Readable } from "stream";
2
- import { Stream } from "./stream.js";
2
+ import { type Stream } from "./stream.js";
3
3
  import type { Subscription } from "./subscription.js";
4
4
  /**
5
5
  * Adapter bridge from NodeJS streams. Creates and returns a new {@link stream}
package/object.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { Keys, Predicate2 } from "@thi.ng/api";
2
2
  import type { CommonOpts } from "./api.js";
3
- import { Subscription } from "./subscription.js";
3
+ import { type Subscription } from "./subscription.js";
4
4
  export type KeyStreams<T, K extends Keys<T>> = {
5
5
  [id in K]-?: Subscription<T[id], T[id]>;
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/rstream",
3
- "version": "7.2.45",
3
+ "version": "7.2.46",
4
4
  "description": "Reactive streams & subscription primitives for constructing dataflow graphs / pipelines",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -38,22 +38,22 @@
38
38
  "test": "testament test"
39
39
  },
40
40
  "dependencies": {
41
- "@thi.ng/api": "^8.7.4",
42
- "@thi.ng/arrays": "^2.5.8",
43
- "@thi.ng/associative": "^6.2.32",
44
- "@thi.ng/atom": "^5.1.33",
45
- "@thi.ng/checks": "^3.3.10",
46
- "@thi.ng/errors": "^2.2.13",
47
- "@thi.ng/logger": "^1.4.11",
48
- "@thi.ng/transducers": "^8.4.0"
41
+ "@thi.ng/api": "^8.7.5",
42
+ "@thi.ng/arrays": "^2.5.9",
43
+ "@thi.ng/associative": "^6.2.33",
44
+ "@thi.ng/atom": "^5.1.34",
45
+ "@thi.ng/checks": "^3.3.11",
46
+ "@thi.ng/errors": "^2.2.14",
47
+ "@thi.ng/logger": "^1.4.12",
48
+ "@thi.ng/transducers": "^8.4.1"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@microsoft/api-extractor": "^7.34.4",
52
- "@thi.ng/testament": "^0.3.13",
53
- "rimraf": "^4.4.0",
52
+ "@thi.ng/testament": "^0.3.14",
53
+ "rimraf": "^4.4.1",
54
54
  "tools": "^0.0.1",
55
- "typedoc": "^0.23.26",
56
- "typescript": "^4.9.5"
55
+ "typedoc": "^0.23.28",
56
+ "typescript": "^5.0.2"
57
57
  },
58
58
  "keywords": [
59
59
  "async",
@@ -205,5 +205,5 @@
205
205
  ],
206
206
  "year": 2017
207
207
  },
208
- "gitHead": "1359645f3af8a7d0d43fe7944ea5cd865832f8ee\n"
208
+ "gitHead": "83b15b34326d480cbca0472b20390d4d3bbb792a\n"
209
209
  }
package/promise.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { WithErrorHandlerOpts } from "./api.js";
1
+ import { type WithErrorHandlerOpts } from "./api.js";
2
2
  /**
3
3
  * Yields a single-value {@link Stream} of the resolved promise and then
4
4
  * automatically marks itself done.
package/pubsub.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { Fn, Predicate2 } from "@thi.ng/api";
2
2
  import { EquivMap } from "@thi.ng/associative/equiv-map";
3
3
  import type { Transducer } from "@thi.ng/transducers";
4
- import { ISubscriber, ISubscription, TransformableOpts, WithErrorHandlerOpts } from "./api.js";
4
+ import { type ISubscriber, type ISubscription, type TransformableOpts, type WithErrorHandlerOpts } from "./api.js";
5
5
  import { Subscription } from "./subscription.js";
6
6
  export interface PubSubOpts<A, B, T> {
7
7
  /**
@@ -1,5 +1,5 @@
1
1
  import type { Predicate } from "@thi.ng/api";
2
- import { CommonOpts, ISubscribable } from "./api.js";
2
+ import { type CommonOpts, type ISubscribable } from "./api.js";
3
3
  import { ASidechain } from "./asidechain.js";
4
4
  import type { Subscription } from "./subscription.js";
5
5
  export interface SidechainPartitionOpts<T> extends CommonOpts {
@@ -1,5 +1,5 @@
1
1
  import type { Predicate } from "@thi.ng/api";
2
- import { CommonOpts, ISubscribable } from "./api.js";
2
+ import { type CommonOpts, type ISubscribable } from "./api.js";
3
3
  import { ASidechain } from "./asidechain.js";
4
4
  import type { Subscription } from "./subscription.js";
5
5
  export interface SidechainToggleOpts<T> extends CommonOpts {
package/stream.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { CommonOpts, IStream, ISubscriber, ISubscription, StreamCancel, StreamSource, TransformableOpts, WithErrorHandlerOpts } from "./api.js";
1
+ import { type CommonOpts, type IStream, type ISubscriber, type ISubscription, type StreamCancel, type StreamSource, type TransformableOpts, type WithErrorHandlerOpts } from "./api.js";
2
2
  import { Subscription } from "./subscription.js";
3
3
  /**
4
4
  * Creates a new {@link Stream} instance, optionally with given `StreamSource`
package/subscription.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import type { Fn } from "@thi.ng/api";
2
- import type { Reducer, Transducer } from "@thi.ng/transducers";
3
- import { Reduced } from "@thi.ng/transducers/reduced";
4
- import { CloseMode, CommonOpts, ISubscriber, ISubscription, State, SubscriptionOpts, TransformableOpts, WithErrorHandlerOpts, WithTransform } from "./api.js";
2
+ import type { Reduced, Reducer, Transducer } from "@thi.ng/transducers";
3
+ import { CloseMode, State, type CommonOpts, type ISubscriber, type ISubscription, type SubscriptionOpts, type TransformableOpts, type WithErrorHandlerOpts, type WithTransform } from "./api.js";
5
4
  /**
6
5
  * Creates a new {@link Subscription} instance, the fundamental datatype and
7
6
  * building block provided by this package.
package/sync.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Always, Derefed, IObjectOf } from "@thi.ng/api";
2
- import { PartitionSync } from "@thi.ng/transducers/partition-sync";
2
+ import { type PartitionSync } from "@thi.ng/transducers/partition-sync";
3
3
  import type { ISubscribable, ISubscription, TransformableOpts } from "./api.js";
4
4
  import { Subscription } from "./subscription.js";
5
5
  export type SyncTuple<T extends IObjectOf<ISubscribable<any>>> = {
package/timeout.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { CommonOpts } from "./api.js";
1
+ import { type CommonOpts } from "./api.js";
2
2
  import { Subscription } from "./subscription.js";
3
3
  export interface TimeoutOpts extends CommonOpts {
4
4
  /**
package/tween.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Fn2 } from "@thi.ng/api";
2
- import { ISubscribable } from "./api.js";
2
+ import { type ISubscribable } from "./api.js";
3
3
  /**
4
4
  * Takes an existing stream/subscription `src` and attaches new
5
5
  * subscription which interpolates between incoming values from `src`