@thi.ng/transducers-binary 2.1.114 → 2.1.115

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-03-27T09:53:46Z
3
+ - **Last updated**: 2024-04-08T14:59:30Z
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.115](https://github.com/thi-ng/umbrella/tree/@thi.ng/transducers-binary@2.1.115) (2024-04-08)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - update reducer handling due to updates in [@thi.ng/transducers](https://github.com/thi-ng/umbrella/tree/main/packages/transducers) pkg ([907c961](https://github.com/thi-ng/umbrella/commit/907c961))
17
+
12
18
  ### [2.1.109](https://github.com/thi-ng/umbrella/tree/@thi.ng/transducers-binary@2.1.109) (2024-03-18)
13
19
 
14
20
  #### ♻️ 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 190 standalone projects, maintained as part
10
+ > This is one of 191 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
  >
@@ -58,7 +58,13 @@ iterable for direct use.
58
58
  yarn add @thi.ng/transducers-binary
59
59
  ```
60
60
 
61
- ES module import:
61
+ ESM import:
62
+
63
+ ```ts
64
+ import * as txb from "@thi.ng/transducers-binary";
65
+ ```
66
+
67
+ Browser ESM import:
62
68
 
63
69
  ```html
64
70
  <script type="module" src="https://cdn.skypack.dev/@thi.ng/transducers-binary"></script>
@@ -69,10 +75,10 @@ ES module import:
69
75
  For Node.js REPL:
70
76
 
71
77
  ```js
72
- const transducersBinary = await import("@thi.ng/transducers-binary");
78
+ const txb = await import("@thi.ng/transducers-binary");
73
79
  ```
74
80
 
75
- Package sizes (brotli'd, pre-treeshake): ESM: 2.52 KB
81
+ Package sizes (brotli'd, pre-treeshake): ESM: 2.50 KB
76
82
 
77
83
  ## Dependencies
78
84
 
package/base64.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { compR } from "@thi.ng/transducers/compr";
2
- import { iterator, iterator1, __iter } from "@thi.ng/transducers/iterator";
2
+ import { __iter, iterator, iterator1 } from "@thi.ng/transducers/iterator";
3
3
  import { isReduced, reduced } from "@thi.ng/transducers/reduced";
4
4
  const B64_CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
5
5
  const B64_SAFE = B64_CHARS.substring(0, 62) + "-_";
package/bytes.d.ts CHANGED
@@ -44,6 +44,6 @@ export declare const str: (x: string) => BinStructItem;
44
44
  */
45
45
  export declare function asBytes(): Transducer<BinStructItem, number>;
46
46
  export declare function asBytes(src: Iterable<BinStructItem>): Iterable<number>;
47
- export declare function bytes(cap?: number): Reducer<Uint8Array, BinStructItem>;
47
+ export declare function bytes(cap?: number): Reducer<BinStructItem, Uint8Array>;
48
48
  export declare function bytes(cap: number, src: Iterable<BinStructItem>): Uint8Array;
49
49
  //# 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.114",
3
+ "version": "2.1.115",
4
4
  "description": "Binary data related transducers & reducers",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -36,13 +36,13 @@
36
36
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@thi.ng/binary": "^3.4.20",
40
- "@thi.ng/compose": "^2.1.71",
41
- "@thi.ng/errors": "^2.5.2",
42
- "@thi.ng/hex": "^2.3.41",
43
- "@thi.ng/random": "^3.7.1",
44
- "@thi.ng/strings": "^3.7.28",
45
- "@thi.ng/transducers": "^8.9.18"
39
+ "@thi.ng/binary": "^3.4.21",
40
+ "@thi.ng/compose": "^3.0.0",
41
+ "@thi.ng/errors": "^2.5.3",
42
+ "@thi.ng/hex": "^2.3.42",
43
+ "@thi.ng/random": "^3.7.2",
44
+ "@thi.ng/strings": "^3.7.29",
45
+ "@thi.ng/transducers": "^9.0.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@microsoft/api-extractor": "^7.43.0",
@@ -106,6 +106,7 @@
106
106
  }
107
107
  },
108
108
  "thi.ng": {
109
+ "alias": "txb",
109
110
  "parent": "@thi.ng/transducers",
110
111
  "related": [
111
112
  "binary",
@@ -114,5 +115,5 @@
114
115
  ],
115
116
  "year": 2018
116
117
  },
117
- "gitHead": "ce5ae2a322d50a7ce8ecccbd94fa55c496ba04fd\n"
118
+ "gitHead": "85ac4bd4d6d89f8e3689e2863d5bea0cecdb371c\n"
118
119
  }