@thi.ng/transducers 8.8.6 → 8.8.7
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/README.md +3 -4
- package/flatten1.d.ts +7 -2
- package/internal/drain.d.ts.map +1 -0
- package/internal/group-opts.d.ts.map +1 -0
- package/internal/mathop.d.ts.map +1 -0
- package/internal/sort-opts.d.ts.map +1 -0
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2023-10-
|
|
3
|
+
- **Last updated**: 2023-10-30T14:31:56Z
|
|
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
|
+
### [8.8.7](https://github.com/thi-ng/umbrella/tree/@thi.ng/transducers@8.8.7) (2023-10-30)
|
|
13
|
+
|
|
14
|
+
#### 🩹 Bug fixes
|
|
15
|
+
|
|
16
|
+
- fix flatten1() arg types, update docs ([b7ae8eb](https://github.com/thi-ng/umbrella/commit/b7ae8eb))
|
|
17
|
+
|
|
12
18
|
## [8.8.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/transducers@8.8.0) (2023-10-11)
|
|
13
19
|
|
|
14
20
|
#### 🚀 Features
|
package/README.md
CHANGED
|
@@ -190,11 +190,9 @@ Package sizes (brotli'd, pre-treeshake): ESM: 8.78 KB
|
|
|
190
190
|
|
|
191
191
|
## Usage examples
|
|
192
192
|
|
|
193
|
-
Several
|
|
193
|
+
Several projects in this repo's
|
|
194
194
|
[/examples](https://github.com/thi-ng/umbrella/tree/develop/examples)
|
|
195
|
-
directory are using this package
|
|
196
|
-
|
|
197
|
-
A selection:
|
|
195
|
+
directory are using this package:
|
|
198
196
|
|
|
199
197
|
| Screenshot | Description | Live demo | Source |
|
|
200
198
|
|:-------------------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------|:---------------------------------------------------------------------------------------|
|
|
@@ -221,6 +219,7 @@ A selection:
|
|
|
221
219
|
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/imgui/imgui-all.png" width="240"/> | Canvas based Immediate Mode GUI components | [Demo](https://demo.thi.ng/umbrella/imgui/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/imgui) |
|
|
222
220
|
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/geom/geom-isoline.png" width="240"/> | Animated sine plasma effect visualized using contour lines | [Demo](https://demo.thi.ng/umbrella/iso-plasma/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/iso-plasma) |
|
|
223
221
|
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/json-components.jpg" width="240"/> | Transforming JSON into UI components | [Demo](https://demo.thi.ng/umbrella/json-components/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/json-components) |
|
|
222
|
+
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/layout-gridgen.png" width="240"/> | Randomized space-filling, nested grid layout generator | [Demo](https://demo.thi.ng/umbrella/layout-gridgen/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/layout-gridgen) |
|
|
224
223
|
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/lispy-repl.png" width="240"/> | Browser REPL for a Lispy S-expression based mini language | [Demo](https://demo.thi.ng/umbrella/lispy-repl/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/lispy-repl) |
|
|
225
224
|
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/mandelbrot.jpg" width="240"/> | Worker based, interactive Mandelbrot visualization | [Demo](https://demo.thi.ng/umbrella/mandelbrot/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/mandelbrot) |
|
|
226
225
|
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/mastodon-feed.jpg" width="240"/> | Mastodon API feed reader with support for different media types, fullscreen media modal, HTML rewriting | [Demo](https://demo.thi.ng/umbrella/mastodon-feed/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/mastodon-feed) |
|
package/flatten1.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Nullable } from "@thi.ng/api";
|
|
1
2
|
import type { Transducer } from "./api.js";
|
|
2
3
|
/**
|
|
3
4
|
* Transducer. Syntax sugar for `mapcat(x => x, ...)`, aka flattens/dissolves
|
|
@@ -11,10 +12,14 @@ import type { Transducer } from "./api.js";
|
|
|
11
12
|
* // same as:
|
|
12
13
|
* [...mapcat((x) => x, [[1], [2, 2], [3, 3, 3]])]
|
|
13
14
|
* // [ 1, 2, 2, 3, 3, 3 ]
|
|
15
|
+
*
|
|
16
|
+
* // nullish inputs will be removed
|
|
17
|
+
* [...flatten1([[1], null, [3, 3, 3]])]
|
|
18
|
+
* // [1, 3, 3, 3]
|
|
14
19
|
* ```
|
|
15
20
|
*
|
|
16
21
|
* @param src
|
|
17
22
|
*/
|
|
18
|
-
export declare function flatten1<T>(): Transducer<Iterable<T
|
|
19
|
-
export declare function flatten1<T>(src: Iterable<Iterable<T
|
|
23
|
+
export declare function flatten1<T>(): Transducer<Nullable<Iterable<T>>, T>;
|
|
24
|
+
export declare function flatten1<T>(src: Iterable<Nullable<Iterable<T>>>): IterableIterator<T>;
|
|
20
25
|
//# sourceMappingURL=flatten1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drain.d.ts","sourceRoot":"","sources":["../src/internal/drain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAG7C;;;;;;;;;GASG;AACH,eAAO,MAAM,OAAO,0BACK,GAAG,GAAG,EAAE,GAAG,CAAC,mDAMnC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group-opts.d.ts","sourceRoot":"","sources":["../src/internal/group-opts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAG7C;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,qHAOxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mathop.d.ts","sourceRoot":"","sources":["../src/internal/mathop.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAGtD;;;;;;;;;GASG;AACH,eAAO,MAAM,QAAQ,QACf,MAAM,QAAQ,MAAM,EAAE,MAAM,CAAC,CAAC,MAC/B,YAAY,MAAM,EAAE,MAAM,CAAC,eAClB,MAAM,QACb,GAAG,EAAE,QAQX,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sort-opts.d.ts","sourceRoot":"","sources":["../src/internal/sort-opts.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,sEAKrB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/transducers",
|
|
3
|
-
"version": "8.8.
|
|
3
|
+
"version": "8.8.7",
|
|
4
4
|
"description": "Lightweight transducer implementations for ES6 / TypeScript",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@thi.ng/api": "^8.9.6",
|
|
42
|
-
"@thi.ng/arrays": "^2.7.
|
|
42
|
+
"@thi.ng/arrays": "^2.7.1",
|
|
43
43
|
"@thi.ng/checks": "^3.4.6",
|
|
44
|
-
"@thi.ng/compare": "^2.2.
|
|
45
|
-
"@thi.ng/compose": "^2.1.
|
|
44
|
+
"@thi.ng/compare": "^2.2.2",
|
|
45
|
+
"@thi.ng/compose": "^2.1.45",
|
|
46
46
|
"@thi.ng/errors": "^2.4.0",
|
|
47
|
-
"@thi.ng/math": "^5.7.
|
|
48
|
-
"@thi.ng/random": "^3.6.
|
|
47
|
+
"@thi.ng/math": "^5.7.1",
|
|
48
|
+
"@thi.ng/random": "^3.6.11"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@microsoft/api-extractor": "^7.38.0",
|
|
@@ -588,5 +588,5 @@
|
|
|
588
588
|
],
|
|
589
589
|
"year": 2016
|
|
590
590
|
},
|
|
591
|
-
"gitHead": "
|
|
591
|
+
"gitHead": "bfa16829786146bd24df3cdbd44649a45a603e44\n"
|
|
592
592
|
}
|