@thi.ng/transducers 8.0.6 → 8.1.1

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/README.md CHANGED
@@ -142,7 +142,7 @@ package.
142
142
  ### Related packages
143
143
 
144
144
  - [@thi.ng/csp](https://github.com/thi-ng/umbrella/tree/develop/packages/csp) - ES6 promise based CSP primitives & operations
145
- - [@thi.ng/grid-iterators](https://github.com/thi-ng/umbrella/tree/develop/packages/grid-iterators) - 2D grid iterators w/ multiple orderings
145
+ - [@thi.ng/grid-iterators](https://github.com/thi-ng/umbrella/tree/develop/packages/grid-iterators) - 2D grid and shape iterators w/ multiple orderings
146
146
  - [@thi.ng/fsm](https://github.com/thi-ng/umbrella/tree/develop/packages/fsm) - Composable primitives for building declarative, transducer based Finite-State Machines & matchers for arbitrary data streams
147
147
  - [@thi.ng/rstream](https://github.com/thi-ng/umbrella/tree/develop/packages/rstream) - Reactive streams & subscription primitives for constructing dataflow graphs / pipelines
148
148
  - [@thi.ng/rstream-graph](https://github.com/thi-ng/umbrella/tree/develop/packages/rstream-graph) - Declarative dataflow graph construction for [@thi.ng/rstream](https://github.com/thi-ng/umbrella/tree/develop/packages/rstream)
@@ -178,7 +178,7 @@ node --experimental-repl-await
178
178
  > const transducers = await import("@thi.ng/transducers");
179
179
  ```
180
180
 
181
- Package sizes (gzipped, pre-treeshake): ESM: 8.67 KB
181
+ Package sizes (gzipped, pre-treeshake): ESM: 9.53 KB
182
182
 
183
183
  ## Dependencies
184
184
 
@@ -906,6 +906,7 @@ transduce(map((x) => x*10), push(), range(4))
906
906
  - [partition](https://github.com/thi-ng/umbrella/tree/develop/packages/transducers/src/partition.ts)
907
907
  - [peek](https://github.com/thi-ng/umbrella/tree/develop/packages/transducers/src/peek.ts)
908
908
  - [pluck](https://github.com/thi-ng/umbrella/tree/develop/packages/transducers/src/pluck.ts)
909
+ - [rechunk](https://github.com/thi-ng/umbrella/tree/develop/packages/transducers/src/rechunk.ts)
909
910
  - [rename](https://github.com/thi-ng/umbrella/tree/develop/packages/transducers/src/rename.ts)
910
911
  - [sample](https://github.com/thi-ng/umbrella/tree/develop/packages/transducers/src/sample.ts)
911
912
  - [scan](https://github.com/thi-ng/umbrella/tree/develop/packages/transducers/src/scan.ts)
package/curve.js CHANGED
@@ -40,7 +40,7 @@ export function* curve(start, end, steps = 10, rate = 0.1) {
40
40
  const c = Math.exp(-Math.log((Math.abs(end - start) + rate) / rate) / steps);
41
41
  const offset = (start < end ? end + rate : end - rate) * (1 - c);
42
42
  steps > 0 && (yield start);
43
- for (let x = start; --steps >= 0;) {
43
+ for (let x = start; steps-- > 0;) {
44
44
  yield (x = offset + x * c);
45
45
  }
46
46
  }
package/index.d.ts CHANGED
@@ -95,6 +95,7 @@ export * from "./partition-when.js";
95
95
  export * from "./partition.js";
96
96
  export * from "./peek.js";
97
97
  export * from "./pluck.js";
98
+ export * from "./rechunk.js";
98
99
  export * from "./rename.js";
99
100
  export * from "./sample.js";
100
101
  export * from "./scan.js";
package/index.js CHANGED
@@ -98,6 +98,7 @@ export * from "./partition-when.js";
98
98
  export * from "./partition.js";
99
99
  export * from "./peek.js";
100
100
  export * from "./pluck.js";
101
+ export * from "./rechunk.js";
101
102
  export * from "./rename.js";
102
103
  export * from "./sample.js";
103
104
  export * from "./scan.js";