@thi.ng/transducers 9.2.16 → 9.2.18

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**: 2025-01-23T13:39:11Z
3
+ - **Last updated**: 2025-02-13T16:03:11Z
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/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  > [!NOTE]
10
- > This is one of 200 standalone projects, maintained as part
10
+ > This is one of 201 standalone projects, maintained as part
11
11
  > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
12
12
  > and anti-framework.
13
13
  >
package/choices.d.ts CHANGED
@@ -6,7 +6,7 @@ import type { IRandom } from "@thi.ng/random";
6
6
  *
7
7
  * @remarks
8
8
  * Internally uses
9
- * [`weightedRandom()`](https://docs.thi.ng/umbrella/random/functions/weightedRandom.html).
9
+ * [`weightedRandom`](https://docs.thi.ng/umbrella/random/functions/weightedRandom.html).
10
10
  *
11
11
  * @example
12
12
  * ```ts tangle:../export/choices.ts
package/curve.d.ts CHANGED
@@ -8,10 +8,10 @@
8
8
  * the `num+1`th step.
9
9
  *
10
10
  * The curvature can be controlled via the logarithmic `rate` param. Recommended
11
- * range [0.0001 - 10000] (curved -> linear). Default: 0.1
11
+ * range `[0.0001,10000]` (curved -> linear). Default: 0.1
12
12
  *
13
13
  * Similar functionality (w/ more options) is availble here:
14
- * [`curve()`](https://docs.thi.ng/umbrella/dsp/functions/curve.html).
14
+ * [`curve`](https://docs.thi.ng/umbrella/dsp/functions/curve.html).
15
15
  *
16
16
  * @example
17
17
  * ```ts tangle:../export/curve.ts
package/filter-fuzzy.d.ts CHANGED
@@ -12,14 +12,14 @@ export interface FilterFuzzyOpts<A, B> {
12
12
  }
13
13
  /**
14
14
  * Returns transducer which calls
15
- * [`fuzzyMatch()`](https://docs.thi.ng/umbrella/arrays/functions/fuzzyMatch.html)
15
+ * [`fuzzyMatch`](https://docs.thi.ng/umbrella/arrays/functions/fuzzyMatch.html)
16
16
  * for each value and discards all non-matching values.
17
17
  *
18
18
  * @remarks
19
19
  * The `key` option function can be used to extract/produce the actual value
20
20
  * used for the search. The `equiv` option predicate can be used to customize
21
21
  * item equality checking. Uses
22
- * [`equiv()`](https://docs.thi.ng/umbrella/equiv/functions/equiv.html) by
22
+ * [`equiv`](https://docs.thi.ng/umbrella/equiv/functions/equiv.html) by
23
23
  * default.
24
24
  *
25
25
  * @example
@@ -14,6 +14,7 @@ import type { Transducer } from "./api.js";
14
14
  * interval.
15
15
  *
16
16
  * See also:
17
+ *
17
18
  * - {@link interpolate}
18
19
  * - {@link interpolateLinear}
19
20
  * - {@link extendSides}
@@ -8,6 +8,7 @@ import type { Transducer } from "./api.js";
8
8
  * produced if there're less than 2 inputs.
9
9
  *
10
10
  * See also:
11
+ *
11
12
  * - {@link interpolate}
12
13
  * - {@link interpolateHermite}
13
14
  *
package/interpolate.d.ts CHANGED
@@ -17,6 +17,7 @@ import type { Transducer } from "./api.js";
17
17
  * iterator...
18
18
  *
19
19
  * See also:
20
+ *
20
21
  * - {@link interpolateHermite}
21
22
  * - {@link interpolateLinear}
22
23
  * - {@link extendSides}
package/keys.d.ts CHANGED
@@ -4,6 +4,7 @@
4
4
  *
5
5
  * @remarks
6
6
  * See also:
7
+ *
7
8
  * - {@link pairs}
8
9
  * - {@link vals}
9
10
  *
package/line.d.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  * iteration).
9
9
  *
10
10
  * Similar functionality (w/ more options) is availble here:
11
- * [`line()`](https://docs.thi.ng/umbrella/dsp/functions/line.html).
11
+ * [`line`](https://docs.thi.ng/umbrella/dsp/functions/line.html).
12
12
  *
13
13
  * @example
14
14
  * ```ts tangle:../export/line.ts
package/multiplex.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { MultiplexTxLike, Transducer } from "./api.js";
2
2
  /**
3
3
  * Yields a new transducer which applies given transducers in parallel (using
4
- * [`juxt()`](https://docs.thi.ng/umbrella/compose/functions/juxt.html) &
4
+ * [`juxt`](https://docs.thi.ng/umbrella/compose/functions/juxt.html) &
5
5
  * {@link step}) and produces tuples of results.
6
6
  *
7
7
  * @remarks
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/transducers",
3
- "version": "9.2.16",
3
+ "version": "9.2.18",
4
4
  "description": "Collection of ~170 lightweight, composable transducers, reducers, generators, iterators for functional data transformations",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -37,26 +37,25 @@
37
37
  "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
38
38
  "clean": "bun ../../tools/src/clean-package.ts",
39
39
  "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
40
- "doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
41
40
  "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
42
41
  "pub": "yarn npm publish --access public",
43
42
  "test": "bun test",
44
43
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
45
44
  },
46
45
  "dependencies": {
47
- "@thi.ng/api": "^8.11.18",
48
- "@thi.ng/arrays": "^2.10.13",
49
- "@thi.ng/checks": "^3.6.21",
50
- "@thi.ng/compare": "^2.4.10",
51
- "@thi.ng/compose": "^3.0.21",
52
- "@thi.ng/errors": "^2.5.24",
53
- "@thi.ng/math": "^5.11.18",
54
- "@thi.ng/random": "^4.1.9",
55
- "@thi.ng/timestamp": "^1.1.3"
46
+ "@thi.ng/api": "^8.11.20",
47
+ "@thi.ng/arrays": "^2.10.15",
48
+ "@thi.ng/checks": "^3.6.23",
49
+ "@thi.ng/compare": "^2.4.12",
50
+ "@thi.ng/compose": "^3.0.23",
51
+ "@thi.ng/errors": "^2.5.26",
52
+ "@thi.ng/math": "^5.11.20",
53
+ "@thi.ng/random": "^4.1.11",
54
+ "@thi.ng/timestamp": "^1.1.5"
56
55
  },
57
56
  "devDependencies": {
58
- "esbuild": "^0.24.2",
59
- "typedoc": "^0.27.6",
57
+ "esbuild": "^0.25.0",
58
+ "typedoc": "^0.27.7",
60
59
  "typescript": "^5.7.3"
61
60
  },
62
61
  "keywords": [
@@ -604,5 +603,5 @@
604
603
  ],
605
604
  "year": 2016
606
605
  },
607
- "gitHead": "b92b48abda9941d608be8a2e1c83447e679a6f79\n"
606
+ "gitHead": "9a0b33253fef092aaf301decf6ecd54317874d4c\n"
608
607
  }
package/pairs.d.ts CHANGED
@@ -5,6 +5,8 @@ import type { IObjectOf } from "@thi.ng/api";
5
5
  * `Object.entries(x)`.
6
6
  *
7
7
  * @remarks
8
+ * See also:
9
+ *
8
10
  * - {@link vals}
9
11
  * - {@link zip}
10
12
  *
@@ -7,7 +7,8 @@ import type { Transducer } from "./api.js";
7
7
  * @remarks
8
8
  * Only to be used in async contexts, NOT with {@link transduce} directly.
9
9
  *
10
- * Also see:
10
+ * See also:
11
+ *
11
12
  * - [`thi.ng/transducers-async`](https://thi.ng/transducers-async).
12
13
  * - [`thi.ng/rstream`](https://thi.ng/rstream)
13
14
  *
package/peek.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { Transducer } from "./api.js";
2
2
  /**
3
3
  * Transducer version of
4
- * [`peek()`](https://docs.thi.ng/umbrella/arrays/functions/peek.html), i.e.
4
+ * [`peek`](https://docs.thi.ng/umbrella/arrays/functions/peek.html), i.e.
5
5
  * extracts the last item of an array.
6
6
  *
7
7
  * @example
package/push-sort.d.ts CHANGED
@@ -3,7 +3,7 @@ import type { Reducer } from "./api.js";
3
3
  /**
4
4
  * Similar to {@link push}, but sorts result array upon completion using
5
5
  * optionally given comparator (default
6
- * [`compare()`](https://docs.thi.ng/umbrella/compare/functions/compare.html)).
6
+ * [`compare`](https://docs.thi.ng/umbrella/compare/functions/compare.html)).
7
7
  *
8
8
  * @param cmp -
9
9
  */
package/sorted-keys.d.ts CHANGED
@@ -2,8 +2,8 @@ import type { Comparator } from "@thi.ng/api";
2
2
  /**
3
3
  * Syntax sugar for `Object.keys(x).sort()` with support for custom comparator
4
4
  * (default:
5
- * [`compare()`](https://docs.thi.ng/umbrella/compare/functions/compare.html))
6
- * and yielding iterator of sorted keys.
5
+ * [`compare`](https://docs.thi.ng/umbrella/compare/functions/compare.html)) and
6
+ * yielding iterator of sorted keys.
7
7
  *
8
8
  * @param x -
9
9
  * @param cmp -
@@ -6,7 +6,7 @@ export interface StreamShuffleOpts {
6
6
  */
7
7
  n: number;
8
8
  /**
9
- * Max. shuffle ops per new input (in [0..n] range)
9
+ * Max. shuffle ops per new input (in `[0,n]` range)
10
10
  *
11
11
  * @defaultValue same as `n`
12
12
  */
package/swizzle.d.ts CHANGED
@@ -25,7 +25,7 @@ import type { Transducer } from "./api.js";
25
25
  *
26
26
  * @remarks
27
27
  * Also see
28
- * [`swizzle()`](https://docs.thi.ng/umbrella/arrays/functions/swizzle.html)
28
+ * [`swizzle`](https://docs.thi.ng/umbrella/arrays/functions/swizzle.html)
29
29
  *
30
30
  * @param order - key order
31
31
  */
package/sync-tuples.d.ts CHANGED
@@ -8,6 +8,7 @@ import type { Transducer } from "./api.js";
8
8
  *
9
9
  * @remarks
10
10
  * The following behavior is used:
11
+ *
11
12
  * - 1st input: `[null,null]` => no output
12
13
  * - 2nd input: `[0, null]` => no output
13
14
  * - 3rd input: `[null, 1]` => `[0, 1]`
@@ -6,7 +6,8 @@ import type { Transducer } from "./api.js";
6
6
  * @remarks
7
7
  * Only to be used in async contexts and NOT with {@link transduce} directly.
8
8
  *
9
- * Also see:
9
+ * See also:
10
+ *
10
11
  * - [`thi.ng/rstream`](https://thi.ng/rstream)
11
12
  * - [`thi.ng/csp`](https://thi.ng/csp).
12
13
  *
package/tween.d.ts CHANGED
@@ -48,7 +48,7 @@ export interface TweenOpts<A, B, C> {
48
48
  *
49
49
  * Depending on the overall `num`ber of samples requested and the distance
50
50
  * between keyframes, some keyframes MIGHT be skipped. E.g. if requesting 10
51
- * samples within [0,1], the interval between two successive keyframes at 0.12
51
+ * samples within `[0,1]`, the interval between two successive keyframes at 0.12
52
52
  * and 0.19 would be skipped entirely, since samples will only be taken at
53
53
  * multiples of `1/num` (i.e. 0.0, 0.1, 0.2... in this example).
54
54
  *
package/vals.d.ts CHANGED
@@ -5,6 +5,7 @@ import type { IObjectOf } from "@thi.ng/api";
5
5
  *
6
6
  * @remarks
7
7
  * See also:
8
+ *
8
9
  * - {@link keys}
9
10
  * - {@link pairs}
10
11
  *
package/wrap-sides.d.ts CHANGED
@@ -9,6 +9,7 @@
9
9
  * either `nXXX < 0` or larger than `src.length`.
10
10
  *
11
11
  * See also:
12
+ *
12
13
  * - {@link extendSides}
13
14
  * - {@link padSides}
14
15
  *