@thi.ng/binary 3.3.26 → 3.3.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/float.js +2 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2023-
|
|
3
|
+
- **Last updated**: 2023-07-14T11:37:51Z
|
|
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.3.27](https://github.com/thi-ng/umbrella/tree/@thi.ng/binary@3.3.27) (2023-07-14)
|
|
13
|
+
|
|
14
|
+
#### ♻️ Refactoring
|
|
15
|
+
|
|
16
|
+
- update little endian check (`IS_LE` const) ([ee47a7f](https://github.com/thi-ng/umbrella/commit/ee47a7f))
|
|
17
|
+
|
|
12
18
|
### [3.3.7](https://github.com/thi-ng/umbrella/tree/@thi.ng/binary@3.3.7) (2022-10-26)
|
|
13
19
|
|
|
14
20
|
#### ♻️ Refactoring
|
package/float.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
const F64 = new Float64Array(1);
|
|
2
2
|
const F32 = new Float32Array(F64.buffer);
|
|
3
|
+
const U8 = new Uint8Array(F64.buffer);
|
|
3
4
|
const I32 = new Int32Array(F64.buffer);
|
|
4
5
|
const U32 = new Uint32Array(F64.buffer);
|
|
5
6
|
/**
|
|
6
7
|
* This value is true iff the environment is Little Endian.
|
|
7
8
|
*/
|
|
8
|
-
export const IS_LE = ((
|
|
9
|
+
export const IS_LE = ((U32[0] = 1), U8[0] === 1);
|
|
9
10
|
export const floatToIntBits = (x) => ((F32[0] = x), I32[0]);
|
|
10
11
|
export const floatToUintBits = (x) => ((F32[0] = x), U32[0]);
|
|
11
12
|
export const intBitsToFloat = (x) => ((I32[0] = x), F32[0]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/binary",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.27",
|
|
4
4
|
"description": "100+ assorted binary / bitwise operations, conversions, utilities, lookup tables",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -129,5 +129,5 @@
|
|
|
129
129
|
"transducers-binary"
|
|
130
130
|
]
|
|
131
131
|
},
|
|
132
|
-
"gitHead": "
|
|
132
|
+
"gitHead": "88cfe77770f3b07c788301dccefcb9547cd4aff6\n"
|
|
133
133
|
}
|