@thi.ng/binary 3.4.24 → 3.4.26

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-04-23T07:02:17Z
3
+ - **Last updated**: 2024-06-21T19:34:38Z
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
  [![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 192 standalone projects, maintained as part
10
+ > This is one of 193 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.18 KB
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 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) => Math.pow(2, i) - 1);
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/float.js CHANGED
@@ -19,8 +19,7 @@ const uintBitsToFloat64 = (hi, lo) => {
19
19
  return F64[0];
20
20
  };
21
21
  const floatToSortableInt = (x) => {
22
- if (x === 0)
23
- return 0;
22
+ if (x === 0) return 0;
24
23
  const i = floatToIntBits(x);
25
24
  return x < 0 ? ~i | 1 << 31 : i;
26
25
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/binary",
3
- "version": "3.4.24",
3
+ "version": "3.4.26",
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://github.com/thi-ng/umbrella/tree/develop/packages/binary#readme",
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.1"
39
+ "@thi.ng/api": "^8.11.3"
40
40
  },
41
41
  "devDependencies": {
42
- "@microsoft/api-extractor": "^7.43.0",
43
- "esbuild": "^0.20.2",
44
- "typedoc": "^0.25.12",
45
- "typescript": "^5.4.3"
42
+ "@microsoft/api-extractor": "^7.47.0",
43
+ "esbuild": "^0.21.5",
44
+ "typedoc": "^0.25.13",
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": "5dd66c18a3862a3af69a5b2f49563f7cbdd960c2\n"
135
+ "gitHead": "154c95cf9d6bab32174498ec3b5b5d87e42be7f9\n"
136
136
  }