@thi.ng/leb128 3.1.60 → 3.1.63

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-04T09:13:01Z
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
+ ### [3.1.63](https://github.com/thi-ng/umbrella/tree/@thi.ng/leb128@3.1.63) (2025-08-04)
15
+
16
+ #### ♻️ Refactoring
17
+
18
+ - update b64 decoding, remove obsolete deps ([eb4a5be](https://github.com/thi-ng/umbrella/commit/eb4a5be))
19
+
14
20
  ### [3.1.42](https://github.com/thi-ng/umbrella/tree/@thi.ng/leb128@3.1.42) (2025-03-11)
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
  >
@@ -89,13 +89,12 @@ For Node.js REPL:
89
89
  const leb = await import("@thi.ng/leb128");
90
90
  ```
91
91
 
92
- Package sizes (brotli'd, pre-treeshake): ESM: 1.00 KB
92
+ Package sizes (brotli'd, pre-treeshake): ESM: 1019 bytes
93
93
 
94
94
  ## Dependencies
95
95
 
96
96
  - [@thi.ng/checks](https://github.com/thi-ng/umbrella/tree/develop/packages/checks)
97
97
  - [@thi.ng/errors](https://github.com/thi-ng/umbrella/tree/develop/packages/errors)
98
- - [@thi.ng/transducers-binary](https://github.com/thi-ng/umbrella/tree/develop/packages/transducers-binary)
99
98
 
100
99
  ## API
101
100
 
package/index.js CHANGED
@@ -1,13 +1,14 @@
1
1
  import { hasWASM } from "@thi.ng/checks/has-wasm";
2
2
  import { ensureIndex } from "@thi.ng/errors/out-of-bounds";
3
3
  import { unsupported } from "@thi.ng/errors/unsupported";
4
- import { base64Decode } from "@thi.ng/transducers-binary/base64";
5
4
  import { BINARY } from "./binary.js";
6
5
  let wasm;
7
6
  let U8;
8
7
  if (hasWASM()) {
9
8
  const inst = new WebAssembly.Instance(
10
- new WebAssembly.Module(base64Decode(BINARY))
9
+ new WebAssembly.Module(
10
+ new Uint8Array([...atob(BINARY)].map((x) => x.charCodeAt(0)))
11
+ )
11
12
  );
12
13
  wasm = inst.exports;
13
14
  U8 = new Uint8Array(wasm.memory.buffer, wasm.buf, 16);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/leb128",
3
- "version": "3.1.60",
3
+ "version": "3.1.63",
4
4
  "description": "WASM based LEB128 encoder / decoder (signed & unsigned)",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -43,14 +43,13 @@
43
43
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
44
44
  },
45
45
  "dependencies": {
46
- "@thi.ng/checks": "^3.7.12",
47
- "@thi.ng/errors": "^2.5.38",
48
- "@thi.ng/transducers-binary": "^2.1.174"
46
+ "@thi.ng/checks": "^3.7.15",
47
+ "@thi.ng/errors": "^2.5.41"
49
48
  },
50
49
  "devDependencies": {
51
50
  "esbuild": "^0.25.8",
52
- "typedoc": "^0.28.7",
53
- "typescript": "^5.8.3"
51
+ "typedoc": "^0.28.9",
52
+ "typescript": "^5.9.2"
54
53
  },
55
54
  "keywords": [
56
55
  "64bit",
@@ -85,5 +84,5 @@
85
84
  "alias": "leb",
86
85
  "year": 2019
87
86
  },
88
- "gitHead": "11747c482773d3da03c8b7848b25a56251ccd759\n"
87
+ "gitHead": "0bcedf8d1dd4f30cd06bb2c668599628f2f0141e\n"
89
88
  }