@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-02-22T11:59:16Z
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
@@ -11,7 +11,7 @@ function hexDump(...args) {
11
11
  if (iter) {
12
12
  return iter;
13
13
  }
14
- const { cols, address } = { cols: 16, address: 0, ...args[0] };
14
+ const { cols = 16, address = 0 } = args[0];
15
15
  return comp(
16
16
  padLast(cols, 0),
17
17
  map(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/transducers-binary",
3
- "version": "2.1.99",
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.14",
39
- "@thi.ng/compose": "^2.1.64",
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.32",
43
- "@thi.ng/strings": "^3.7.16",
44
- "@thi.ng/transducers": "^8.9.5"
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": "4513a1c703bdbf0f0867f03e547e47692e415fac\n"
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"),