@thi.ng/leb128 3.1.61 → 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 +7 -1
- package/README.md +1 -2
- package/index.js +3 -2
- package/package.json +6 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2025-
|
|
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
|
@@ -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:
|
|
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(
|
|
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.
|
|
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.
|
|
47
|
-
"@thi.ng/errors": "^2.5.
|
|
48
|
-
"@thi.ng/transducers-binary": "^2.1.175"
|
|
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.
|
|
53
|
-
"typescript": "^5.
|
|
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": "
|
|
87
|
+
"gitHead": "0bcedf8d1dd4f30cd06bb2c668599628f2f0141e\n"
|
|
89
88
|
}
|