@thi.ng/transducers-binary 2.1.174 → 2.1.176

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-07-21T08:21:58Z
3
+ - **Last updated**: 2025-08-04T08:45:04Z
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.
@@ -11,6 +11,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
11
11
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
12
12
  and/or version bumps of transitive dependencies.
13
13
 
14
+ ### [2.1.176](https://github.com/thi-ng/umbrella/tree/@thi.ng/transducers-binary@2.1.176) (2025-08-04)
15
+
16
+ #### ♻️ Refactoring
17
+
18
+ - add required typedarray generics (TS5.9) ([e394ce8](https://github.com/thi-ng/umbrella/commit/e394ce8))
19
+
14
20
  ### [2.1.121](https://github.com/thi-ng/umbrella/tree/@thi.ng/transducers-binary@2.1.121) (2024-06-21)
15
21
 
16
22
  #### ♻️ Refactoring
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 209 standalone projects, maintained as part
10
+ > This is one of 210 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/base64.d.ts CHANGED
@@ -4,7 +4,7 @@ import type { Transducer } from "@thi.ng/transducers";
4
4
  * Supports URL safe & unsafe flavors.
5
5
  */
6
6
  export declare function base64Decode(): Transducer<string, number>;
7
- export declare function base64Decode(src: string): Uint8Array;
7
+ export declare function base64Decode(src: string): Uint8Array<ArrayBuffer>;
8
8
  export interface Base64EncodeOpts {
9
9
  safe: boolean;
10
10
  buffer: number;
package/bytes.d.ts CHANGED
@@ -46,6 +46,6 @@ export declare const str: (x: string) => BinStructItem;
46
46
  */
47
47
  export declare function asBytes(): Transducer<BinStructItem, number>;
48
48
  export declare function asBytes(src: Iterable<BinStructItem>): Iterable<number>;
49
- export declare function bytes(cap?: number): Reducer<BinStructItem, Uint8Array>;
50
- export declare function bytes(cap: number, src: Iterable<BinStructItem>): Uint8Array;
49
+ export declare function bytes(cap?: number): Reducer<BinStructItem, Uint8Array<ArrayBuffer>>;
50
+ export declare function bytes(cap: number, src: Iterable<BinStructItem>): Uint8Array<ArrayBuffer>;
51
51
  //# sourceMappingURL=bytes.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/transducers-binary",
3
- "version": "2.1.174",
3
+ "version": "2.1.176",
4
4
  "description": "Binary data related transducers & reducers",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -39,18 +39,18 @@
39
39
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
40
  },
41
41
  "dependencies": {
42
- "@thi.ng/binary": "^3.4.56",
43
- "@thi.ng/compose": "^3.0.35",
44
- "@thi.ng/errors": "^2.5.38",
45
- "@thi.ng/hex": "^2.3.76",
46
- "@thi.ng/random": "^4.1.23",
47
- "@thi.ng/strings": "^3.9.18",
48
- "@thi.ng/transducers": "^9.6.3"
42
+ "@thi.ng/binary": "^3.4.58",
43
+ "@thi.ng/compose": "^3.0.37",
44
+ "@thi.ng/errors": "^2.5.40",
45
+ "@thi.ng/hex": "^2.3.78",
46
+ "@thi.ng/random": "^4.1.25",
47
+ "@thi.ng/strings": "^3.9.20",
48
+ "@thi.ng/transducers": "^9.6.5"
49
49
  },
50
50
  "devDependencies": {
51
51
  "esbuild": "^0.25.8",
52
- "typedoc": "^0.28.7",
53
- "typescript": "^5.8.3"
52
+ "typedoc": "^0.28.9",
53
+ "typescript": "^5.9.2"
54
54
  },
55
55
  "keywords": [
56
56
  "array",
@@ -116,5 +116,5 @@
116
116
  ],
117
117
  "year": 2018
118
118
  },
119
- "gitHead": "11747c482773d3da03c8b7848b25a56251ccd759\n"
119
+ "gitHead": "d4e2e72dcdadf26da3400900f04f9eb0ebeb0a5b\n"
120
120
  }
package/utf8.d.ts CHANGED
@@ -28,7 +28,7 @@ export declare function utf8Decode(src: Iterable<number>): string;
28
28
  * ```
29
29
  */
30
30
  export declare function utf8Encode(): Transducer<string, number>;
31
- export declare function utf8Encode(src: string): Uint8Array;
31
+ export declare function utf8Encode(src: string): Uint8Array<ArrayBuffer>;
32
32
  /**
33
33
  * Re-export of
34
34
  * [`utf8Length`](https://docs.thi.ng/umbrella/strings/functions/utf8Length.html).
package/utf8.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
- fromUtf8CodePoint,
3
- utf8Length as $utf8Length
2
+ utf8Length as $utf8Length,
3
+ fromUtf8CodePoint
4
4
  } from "@thi.ng/strings/utf8";
5
5
  import { compR } from "@thi.ng/transducers/compr";
6
6
  import { iterator, iterator1 } from "@thi.ng/transducers/iterator";