@thi.ng/transducers-binary 2.1.99 → 2.1.101
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/bytes.d.ts +5 -0
- package/hex-dump.d.ts +2 -0
- package/hex-dump.js +1 -1
- package/package.json +7 -7
- package/utf8.d.ts +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2024-02-
|
|
3
|
+
- **Last updated**: 2024-02-25T14:07:53Z
|
|
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
|
+
### [2.1.100](https://github.com/thi-ng/umbrella/tree/@thi.ng/transducers-binary@2.1.100) (2024-02-22)
|
|
13
|
+
|
|
14
|
+
#### ♻️ Refactoring
|
|
15
|
+
|
|
16
|
+
- update object destructuring in all pkgs & examples ([f36aeb0](https://github.com/thi-ng/umbrella/commit/f36aeb0))
|
|
17
|
+
|
|
12
18
|
### [2.1.79](https://github.com/thi-ng/umbrella/tree/@thi.ng/transducers-binary@2.1.79) (2023-11-24)
|
|
13
19
|
|
|
14
20
|
#### ♻️ Refactoring
|
package/bytes.d.ts
CHANGED
|
@@ -28,6 +28,11 @@ export declare const str: (x: string) => BinStructItem;
|
|
|
28
28
|
*
|
|
29
29
|
* @example
|
|
30
30
|
* ```ts
|
|
31
|
+
* import {
|
|
32
|
+
* asBytes, f32, i16, str, u32,
|
|
33
|
+
* hexDumpString
|
|
34
|
+
* } from "@thi.ng/transducers-binary";
|
|
35
|
+
*
|
|
31
36
|
* hexDumpString({}, asBytes([
|
|
32
37
|
* str("hello!"),
|
|
33
38
|
* u32(0xdecafbad),
|
package/hex-dump.d.ts
CHANGED
|
@@ -13,6 +13,8 @@ import type { HexDumpOpts } from "./api.js";
|
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* ```ts
|
|
16
|
+
* import { hexDump } from "@thi.ng/transducers-binary";
|
|
17
|
+
*
|
|
16
18
|
* src = [65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 33, 48, 49, 50, 51, 126, 122, 121, 120]
|
|
17
19
|
*
|
|
18
20
|
* [...hexDump({ cols: 8, address: 0x400 }, src)]
|
package/hex-dump.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/transducers-binary",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.101",
|
|
4
4
|
"description": "Binary data related transducers & reducers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
"test": "bun test"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@thi.ng/binary": "^3.4.
|
|
39
|
-
"@thi.ng/compose": "^2.1.
|
|
38
|
+
"@thi.ng/binary": "^3.4.15",
|
|
39
|
+
"@thi.ng/compose": "^2.1.65",
|
|
40
40
|
"@thi.ng/errors": "^2.4.18",
|
|
41
41
|
"@thi.ng/hex": "^2.3.37",
|
|
42
|
-
"@thi.ng/random": "^3.6.
|
|
43
|
-
"@thi.ng/strings": "^3.7.
|
|
44
|
-
"@thi.ng/transducers": "^8.9.
|
|
42
|
+
"@thi.ng/random": "^3.6.33",
|
|
43
|
+
"@thi.ng/strings": "^3.7.17",
|
|
44
|
+
"@thi.ng/transducers": "^8.9.7"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@microsoft/api-extractor": "^7.40.1",
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
],
|
|
114
114
|
"year": 2018
|
|
115
115
|
},
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "6e20f80dd9df1c8055ffa3c1e4d6f7598add0c0b\n"
|
|
117
117
|
}
|
package/utf8.d.ts
CHANGED
|
@@ -12,6 +12,9 @@ export declare function utf8Decode(src: Iterable<number>): string;
|
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```ts
|
|
15
|
+
* import { hexDump, utf8Encode } from "@thi.ng/transducers-binary";
|
|
16
|
+
* import { comp, str, transduce } from "@thi.ng/transducers";
|
|
17
|
+
*
|
|
15
18
|
* transduce(
|
|
16
19
|
* comp(utf8Encode(), hexDump()),
|
|
17
20
|
* str("\n"),
|