@thi.ng/transducers 8.9.11 → 8.9.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 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/auto-obj.d.ts CHANGED
@@ -13,7 +13,6 @@ import type { Reducer } from "./api.js";
13
13
  * ```
14
14
  *
15
15
  * @param prefix - shared prefix
16
- * @param xs -
17
16
  */
18
17
  export declare function autoObj<T>(prefix: string): Reducer<IObjectOf<T>, T>;
19
18
  export declare function autoObj<T>(prefix: string, xs: Iterable<T>): IObjectOf<T>;
package/converge.d.ts CHANGED
@@ -29,7 +29,6 @@ import type { Transducer } from "./api.js";
29
29
  * ```
30
30
  *
31
31
  * @param pred -
32
- * @param src -
33
32
  */
34
33
  export declare function converge<T>(pred?: Predicate2<T>): Transducer<T, T>;
35
34
  export declare function converge<T>(pred: Predicate2<T>, src: Iterable<T>): IterableIterator<T>;
package/curve.d.ts CHANGED
@@ -36,7 +36,7 @@
36
36
  * @param start -
37
37
  * @param end -
38
38
  * @param steps -
39
- * @param falloff -
39
+ * @param rate -
40
40
  */
41
41
  export declare function curve(start: number, end: number, steps?: number, rate?: number): IterableIterator<number>;
42
42
  //# sourceMappingURL=curve.d.ts.map
package/filter-fuzzy.d.ts CHANGED
@@ -30,8 +30,8 @@ export interface FilterFuzzyOpts<A, B> {
30
30
  * // ["hello", "hallo", "heyoka"]
31
31
  * ```
32
32
  *
33
+ * @param query -
33
34
  * @param opts -
34
- * @param src -
35
35
  */
36
36
  export declare function filterFuzzy<A, B>(query: ArrayLike<B>, opts?: Partial<FilterFuzzyOpts<A, B>>): Transducer<A, A>;
37
37
  export declare function filterFuzzy<A, B>(query: ArrayLike<B>, src: Iterable<A>): IterableIterator<A>;
package/flatten-with.d.ts CHANGED
@@ -30,7 +30,6 @@ export type MaybeIterable<T> = Nullable<Iterable<T>>;
30
30
  * ```
31
31
  *
32
32
  * @param fn -
33
- * @param src -
34
33
  */
35
34
  export declare function flattenWith<A, B = DeepArrayValue<A>>(fn: Fn<any, MaybeIterable<any>>): Transducer<A, B>;
36
35
  export declare function flattenWith<A, B = DeepArrayValue<A>>(fn: Fn<any, MaybeIterable<any>>, src: Iterable<A>): IterableIterator<B>;
package/flatten.d.ts CHANGED
@@ -18,8 +18,6 @@ import type { Transducer } from "./api.js";
18
18
  * [...flatten("abc")]
19
19
  * // [ 'abc' ]
20
20
  * ```
21
- *
22
- * @param src -
23
21
  */
24
22
  export declare function flatten<A, B = DeepArrayValue<A>>(): Transducer<A, B>;
25
23
  export declare function flatten<A, B = DeepArrayValue<A>>(src: Iterable<A>): IterableIterator<B>;
package/flatten1.d.ts CHANGED
@@ -19,8 +19,6 @@ import type { Transducer } from "./api.js";
19
19
  * [...flatten1([[1], null, [3, 3, 3]])]
20
20
  * // [1, 3, 3, 3]
21
21
  * ```
22
- *
23
- * @param src
24
22
  */
25
23
  export declare function flatten1<T>(): Transducer<Nullable<Iterable<T>>, T>;
26
24
  export declare function flatten1<T>(src: Iterable<Nullable<Iterable<T>>>): IterableIterator<T>;
package/group-binary.d.ts CHANGED
@@ -78,5 +78,5 @@ import type { Reducer } from "./api.js";
78
78
  * @param left - key for storing left branches (e.g. `0` for arrays)
79
79
  * @param right - key for storing right branches (e.g. `1` for arrays)
80
80
  */
81
- export declare const groupBinary: <T>(bits: number, key: Fn<T, number>, branch?: Fn0<IObjectOf<T[]>> | undefined, leaf?: Reducer<any, T> | undefined, left?: PropertyKey, right?: PropertyKey) => Reducer<any, T>;
81
+ export declare const groupBinary: <T>(bits: number, key: Fn<T, number>, branch?: Fn0<IObjectOf<T[]>>, leaf?: Reducer<any, T>, left?: PropertyKey, right?: PropertyKey) => Reducer<any, T>;
82
82
  //# sourceMappingURL=group-binary.d.ts.map
@@ -6,5 +6,5 @@ import type { GroupByOpts } from "../api.js";
6
6
  *
7
7
  * @internal
8
8
  */
9
- export declare const __groupByOpts: <SRC, KEY, GROUP>(opts?: Partial<GroupByOpts<SRC, PropertyKey, GROUP>> | undefined) => GroupByOpts<SRC, KEY, GROUP>;
9
+ export declare const __groupByOpts: <SRC, KEY, GROUP>(opts?: Partial<GroupByOpts<SRC, PropertyKey, GROUP>>) => GroupByOpts<SRC, KEY, GROUP>;
10
10
  //# sourceMappingURL=group-opts.d.ts.map
@@ -6,5 +6,5 @@ import type { SortOpts } from "../api.js";
6
6
  *
7
7
  * @internal
8
8
  */
9
- export declare const __sortOpts: <A, B>(opts?: Partial<SortOpts<A, B>> | undefined) => SortOpts<A, B>;
9
+ export declare const __sortOpts: <A, B>(opts?: Partial<SortOpts<A, B>>) => SortOpts<A, B>;
10
10
  //# sourceMappingURL=sort-opts.d.ts.map
package/map-deep.d.ts CHANGED
@@ -5,7 +5,6 @@ import type { Transducer, TransformSpec } from "./api.js";
5
5
  * See {@link deepTransform} for details.
6
6
  *
7
7
  * @param spec -
8
- * @param src -
9
8
  */
10
9
  export declare function mapDeep(spec: TransformSpec): Transducer<any, any>;
11
10
  export declare function mapDeep(spec: TransformSpec, src: Iterable<any>): IterableIterator<any>;
package/map-keys.d.ts CHANGED
@@ -23,7 +23,6 @@ import type { Transducer } from "./api.js";
23
23
  *
24
24
  * @param keys - object of transformation functions
25
25
  * @param copy - if true (default), creates a shallow copy of each incoming value
26
- * @param src -
27
26
  */
28
27
  export declare function mapKeys(keys: IObjectOf<Fn2<any, any, any>>, copy?: boolean): Transducer<any, any>;
29
28
  export declare function mapKeys(keys: IObjectOf<Fn2<any, any, any>>, src: Iterable<any>): IterableIterator<any>;
package/match-last.d.ts CHANGED
@@ -24,7 +24,6 @@ import type { Transducer } from "./api.js";
24
24
  * ```
25
25
  *
26
26
  * @param pred - predicate function
27
- * @param src -
28
27
  */
29
28
  export declare function matchLast<T>(pred: Predicate<T>): Transducer<T, T>;
30
29
  export declare function matchLast<T>(pred: Predicate<T>, src: Iterable<T>): T | undefined;
@@ -13,7 +13,6 @@ import type { Transducer } from "./api.js";
13
13
  * package for more optimized and alternative MA strategies.
14
14
  *
15
15
  * @param period -
16
- * @param src -
17
16
  */
18
17
  export declare function movingAverage(period: number): Transducer<number, number>;
19
18
  export declare function movingAverage(period: number, src: Iterable<number>): IterableIterator<number>;
@@ -9,7 +9,6 @@ import type { SortOpts, Transducer } from "./api.js";
9
9
  *
10
10
  * @param n - window size
11
11
  * @param opts -
12
- * @param src -
13
12
  */
14
13
  export declare function movingMedian<A, B>(n: number, opts?: Partial<SortOpts<A, B>>): Transducer<A, A>;
15
14
  export declare function movingMedian<A, B>(n: number, src: Iterable<A>): IterableIterator<A>;
@@ -23,7 +23,6 @@ import type { MultiplexTxLike, Reducer, Transducer } from "./api.js";
23
23
  *
24
24
  * @param xforms - object of transducers
25
25
  * @param rfn -
26
- * @param src -
27
26
  */
28
27
  export declare function multiplexObj<A, B>(xforms: IObjectOf<MultiplexTxLike<A, any>>, rfn?: Reducer<B, [PropertyKey, any]>): Transducer<A, B>;
29
28
  export declare function multiplexObj<A, B>(xforms: IObjectOf<MultiplexTxLike<A, any>>, src: Iterable<A>): IterableIterator<B>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/transducers",
3
- "version": "8.9.11",
3
+ "version": "8.9.13",
4
4
  "description": "Lightweight transducer implementations for ES6 / TypeScript",
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/checks": "^3.5.2",
46
- "@thi.ng/compare": "^2.2.25",
47
- "@thi.ng/compose": "^2.1.68",
48
- "@thi.ng/errors": "^2.4.20",
49
- "@thi.ng/math": "^5.10.6",
50
- "@thi.ng/random": "^3.6.36"
43
+ "@thi.ng/api": "^8.9.30",
44
+ "@thi.ng/arrays": "^2.8.9",
45
+ "@thi.ng/checks": "^3.5.3",
46
+ "@thi.ng/compare": "^2.2.26",
47
+ "@thi.ng/compose": "^2.1.70",
48
+ "@thi.ng/errors": "^2.5.1",
49
+ "@thi.ng/math": "^5.10.7",
50
+ "@thi.ng/random": "^3.6.38"
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
  "2d",
@@ -589,5 +589,5 @@
589
589
  ],
590
590
  "year": 2016
591
591
  },
592
- "gitHead": "69100942474942f7446ac645d59d91e7dfc352f9\n"
592
+ "gitHead": "bc0f3cb07d6f1cab6dbdc5ff57428f5484e711bb\n"
593
593
  }
@@ -28,8 +28,7 @@ import type { SortOpts, Transducer } from "./api.js";
28
28
  * ```
29
29
  *
30
30
  * @param n - window size
31
- * @param key - sort key lookup
32
- * @param cmp - comparator
31
+ * @param opts -
33
32
  */
34
33
  export declare function partitionSort<A, B>(n: number, opts?: Partial<SortOpts<A, B>>): Transducer<A, A>;
35
34
  export declare function partitionSort<A, B>(n: number, src: Iterable<A>): IterableIterator<A>;
@@ -113,9 +113,7 @@ export interface PartitionSyncOpts<T> {
113
113
  * optional `all` arg to false.
114
114
  *
115
115
  * @param keys - allowed label set
116
- * @param keyfn - label extraction function
117
- * @param reset - true if each tuple should contain only new values
118
- * @param all - true if last tuple is allowed to be incomplete
116
+ * @param opts -
119
117
  */
120
118
  export declare function partitionSync<T>(keys: PropertyKey[] | Set<PropertyKey>, opts?: Partial<PartitionSyncOpts<T>>): PartitionSync<T>;
121
119
  export declare function partitionSync<T>(keys: PropertyKey[] | Set<PropertyKey>, src: Iterable<T>): IterableIterator<IObjectOf<T>>;
package/peek.d.ts CHANGED
@@ -11,8 +11,6 @@ import type { Transducer } from "./api.js";
11
11
  * [...peek([ [1, 2, 3], [4, 5] ])]
12
12
  * // [ 3, 5 ]
13
13
  * ```
14
- *
15
- * @param src -
16
14
  */
17
15
  export declare function peek<T>(): Transducer<T[], T>;
18
16
  export declare function peek<T>(src: Iterable<T[]>): IterableIterator<T>;
package/permutations.d.ts CHANGED
@@ -20,7 +20,7 @@
20
20
  * // []
21
21
  * ```
22
22
  *
23
- * @param src -
23
+ * @param a -
24
24
  */
25
25
  export declare function permutations<A>(a: Iterable<A>): IterableIterator<[A]>;
26
26
  export declare function permutations<A, B>(a: Iterable<A>, b: Iterable<B>): IterableIterator<[A, B]>;
package/run.d.ts CHANGED
@@ -8,7 +8,6 @@ import type { IReducible, TxLike } from "./api.js";
8
8
  * itself. Returns nothing.
9
9
  *
10
10
  * @param tx -
11
- * @param fx -
12
11
  * @param xs -
13
12
  */
14
13
  export declare function run<A>(tx: TxLike<A, any>, xs: Iterable<A>): void;
package/sample.d.ts CHANGED
@@ -15,7 +15,6 @@ import type { Transducer } from "./api.js";
15
15
  * ```
16
16
  *
17
17
  * @param prob -
18
- * @param src -
19
18
  */
20
19
  export declare function sample<T>(prob: number): Transducer<T, T>;
21
20
  export declare function sample<T>(prob: number, rnd: IRandom): Transducer<T, T>;
package/scan.d.ts CHANGED
@@ -42,7 +42,6 @@ import type { Reducer, Transducer } from "./api.js";
42
42
  *
43
43
  * @param rfn - reducer used as scan operator
44
44
  * @param init -
45
- * @param src -
46
45
  */
47
46
  export declare function scan<A, B>(rfn: Reducer<B, A>, init?: B): Transducer<A, B>;
48
47
  export declare function scan<A, B>(rfn: Reducer<B, A>, init: B, src: Iterable<A>): IterableIterator<B>;
package/select-keys.d.ts CHANGED
@@ -23,7 +23,6 @@ import type { Transducer } from "./api.js";
23
23
  * ```
24
24
  *
25
25
  * @param keys -
26
- * @param src -
27
26
  */
28
27
  export declare function selectKeys<T>(keys: PropertyKey[]): Transducer<T, any>;
29
28
  export declare function selectKeys<T>(keys: PropertyKey[], src: Iterable<T>): IterableIterator<any>;
@@ -24,7 +24,6 @@ import type { Transducer } from "./api.js";
24
24
  *
25
25
  * @param size -
26
26
  * @param partial -
27
- * @param src -
28
27
  */
29
28
  export declare function slidingWindow<T>(size: MaybeDeref<number>, partial?: boolean): Transducer<T, T[]>;
30
29
  export declare function slidingWindow<T>(size: MaybeDeref<number>, src: Iterable<T>): IterableIterator<T[]>;
package/stream-sort.d.ts CHANGED
@@ -13,8 +13,7 @@ import type { SortOpts, Transducer } from "./api.js";
13
13
  * ```
14
14
  *
15
15
  * @param n -
16
- * @param key -
17
- * @param cmp -
16
+ * @param opts -
18
17
  */
19
18
  export declare function streamSort<A, B>(n: number, opts?: Partial<SortOpts<A, B>>): Transducer<A, A>;
20
19
  export declare function streamSort<A, B>(n: number, src: Iterable<A>): IterableIterator<A>;
package/struct.d.ts CHANGED
@@ -38,7 +38,6 @@ export interface StructField extends Array<any> {
38
38
  * ```
39
39
  *
40
40
  * @param fields -
41
- * @param src -
42
41
  */
43
42
  export declare function struct<T>(fields: StructField[]): Transducer<any, T>;
44
43
  export declare function struct<T>(fields: StructField[], src: Iterable<any>): IterableIterator<T>;
package/take-last.d.ts CHANGED
@@ -12,7 +12,6 @@ import type { Transducer } from "./api.js";
12
12
  * ```
13
13
  *
14
14
  * @param n -
15
- * @param src -
16
15
  */
17
16
  export declare function takeLast<T>(n: number): Transducer<T, T>;
18
17
  export declare function takeLast<T>(n: number, src: Iterable<T>): IterableIterator<T>;
package/take-while.d.ts CHANGED
@@ -15,7 +15,6 @@ import type { Transducer } from "./api.js";
15
15
  * ```
16
16
  *
17
17
  * @param pred -
18
- * @param src -
19
18
  */
20
19
  export declare function takeWhile<T>(pred?: Predicate<T>): Transducer<T, T>;
21
20
  export declare function takeWhile<T>(src: Iterable<T>): IterableIterator<T>;
package/throttle.d.ts CHANGED
@@ -15,7 +15,6 @@ import type { Transducer } from "./api.js";
15
15
  * Also see: {@link throttleTime}.
16
16
  *
17
17
  * @param pred -
18
- * @param src -
19
18
  */
20
19
  export declare function throttle<T>(pred: StatefulPredicate<T>): Transducer<T, T>;
21
20
  export declare function throttle<T>(pred: StatefulPredicate<T>, src: Iterable<T>): IterableIterator<T>;
package/word-wrap.d.ts CHANGED
@@ -16,7 +16,6 @@ export interface WordWrapOpts {
16
16
  *
17
17
  * @param lineLength -
18
18
  * @param opts -
19
- * @param src -
20
19
  */
21
20
  export declare function wordWrap(lineLength: number, opts?: Partial<WordWrapOpts>): Transducer<string, string[]>;
22
21
  export declare function wordWrap(lineLength: number, src: Iterable<string>): IterableIterator<string[]>;