@thi.ng/binary 3.4.25 → 3.4.27
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 +2 -2
- package/constants.js +5 -5
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2024-
|
|
3
|
+
- **Last updated**: 2024-06-29T09:28:35Z
|
|
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
|
+
### [3.4.26](https://github.com/thi-ng/umbrella/tree/@thi.ng/binary@3.4.26) (2024-06-21)
|
|
13
|
+
|
|
14
|
+
#### ♻️ Refactoring
|
|
15
|
+
|
|
16
|
+
- enforce uniform naming convention of internal functions ([56992b2](https://github.com/thi-ng/umbrella/commit/56992b2))
|
|
17
|
+
|
|
12
18
|
### [3.4.12](https://github.com/thi-ng/umbrella/tree/@thi.ng/binary@3.4.12) (2024-02-19)
|
|
13
19
|
|
|
14
20
|
#### 🩹 Bug fixes
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 189 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
|
>
|
|
@@ -64,7 +64,7 @@ For Node.js REPL:
|
|
|
64
64
|
const bin = await import("@thi.ng/binary");
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
-
Package sizes (brotli'd, pre-treeshake): ESM: 2.
|
|
67
|
+
Package sizes (brotli'd, pre-treeshake): ESM: 2.20 KB
|
|
68
68
|
|
|
69
69
|
## Dependencies
|
|
70
70
|
|
package/constants.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const
|
|
2
|
-
const MSB_BITS8 =
|
|
3
|
-
const MSB_BITS16 =
|
|
4
|
-
const MSB_BITS32 =
|
|
5
|
-
const MASKS = new Array(33).fill(0).map((_, i) =>
|
|
1
|
+
const __defBits = (n) => new Array(n).fill(0).map((_, i) => 1 << n - 1 - i);
|
|
2
|
+
const MSB_BITS8 = __defBits(8);
|
|
3
|
+
const MSB_BITS16 = __defBits(16);
|
|
4
|
+
const MSB_BITS32 = __defBits(32);
|
|
5
|
+
const MASKS = new Array(33).fill(0).map((_, i) => 2 ** i - 1);
|
|
6
6
|
export {
|
|
7
7
|
MASKS,
|
|
8
8
|
MSB_BITS16,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/binary",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.27",
|
|
4
4
|
"description": "100+ assorted binary / bitwise operations, conversions, utilities, lookup tables",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "https://github.com/thi-ng/umbrella.git"
|
|
12
12
|
},
|
|
13
|
-
"homepage": "https://
|
|
13
|
+
"homepage": "https://thi.ng/binary",
|
|
14
14
|
"funding": [
|
|
15
15
|
{
|
|
16
16
|
"type": "github",
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@thi.ng/api": "^8.11.
|
|
39
|
+
"@thi.ng/api": "^8.11.4"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@microsoft/api-extractor": "^7.
|
|
43
|
-
"esbuild": "^0.21.
|
|
42
|
+
"@microsoft/api-extractor": "^7.47.0",
|
|
43
|
+
"esbuild": "^0.21.5",
|
|
44
44
|
"typedoc": "^0.25.13",
|
|
45
|
-
"typescript": "^5.
|
|
45
|
+
"typescript": "^5.5.2"
|
|
46
46
|
},
|
|
47
47
|
"keywords": [
|
|
48
48
|
"align",
|
|
@@ -132,5 +132,5 @@
|
|
|
132
132
|
"transducers-binary"
|
|
133
133
|
]
|
|
134
134
|
},
|
|
135
|
-
"gitHead": "
|
|
135
|
+
"gitHead": "7b950c112fba0b2e7c450765b15624c3382f1354\n"
|
|
136
136
|
}
|