@thi.ng/binary 3.4.60 → 3.4.65
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/package.json +136 -136
- package/CHANGELOG.md +0 -66
package/package.json
CHANGED
|
@@ -1,137 +1,137 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}
|
|
2
|
+
"name": "@thi.ng/binary",
|
|
3
|
+
"version": "3.4.65",
|
|
4
|
+
"description": "100+ assorted binary / bitwise operations, conversions, utilities, lookup tables",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "./index.js",
|
|
7
|
+
"typings": "./index.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/thi-ng/umbrella.git"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://thi.ng/binary",
|
|
14
|
+
"funding": [
|
|
15
|
+
{
|
|
16
|
+
"type": "github",
|
|
17
|
+
"url": "https://github.com/sponsors/postspectacular"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"type": "patreon",
|
|
21
|
+
"url": "https://patreon.com/thing_umbrella"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "liberapay",
|
|
25
|
+
"url": "https://liberapay.com/thi.ng"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"author": "Karsten Schmidt (https://thi.ng)",
|
|
29
|
+
"license": "Apache-2.0",
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "yarn build:esbuild && yarn build:decl",
|
|
32
|
+
"build:decl": "tsc --declaration --emitDeclarationOnly",
|
|
33
|
+
"build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
|
|
34
|
+
"clean": "bun ../../tools/src/clean-package.ts",
|
|
35
|
+
"doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
|
|
36
|
+
"doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
|
|
37
|
+
"pub": "npm publish --access public",
|
|
38
|
+
"test": "bun test",
|
|
39
|
+
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@thi.ng/api": "^8.12.7"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"esbuild": "^0.25.11",
|
|
46
|
+
"typedoc": "^0.28.14",
|
|
47
|
+
"typescript": "^5.9.3"
|
|
48
|
+
},
|
|
49
|
+
"keywords": [
|
|
50
|
+
"align",
|
|
51
|
+
"binary",
|
|
52
|
+
"conversion",
|
|
53
|
+
"count",
|
|
54
|
+
"float",
|
|
55
|
+
"graycode",
|
|
56
|
+
"integer",
|
|
57
|
+
"logic",
|
|
58
|
+
"lut",
|
|
59
|
+
"mask",
|
|
60
|
+
"math",
|
|
61
|
+
"shift",
|
|
62
|
+
"splat",
|
|
63
|
+
"swap",
|
|
64
|
+
"swizzle",
|
|
65
|
+
"typedarray",
|
|
66
|
+
"typescript"
|
|
67
|
+
],
|
|
68
|
+
"publishConfig": {
|
|
69
|
+
"access": "public"
|
|
70
|
+
},
|
|
71
|
+
"engines": {
|
|
72
|
+
"node": ">=18"
|
|
73
|
+
},
|
|
74
|
+
"files": [
|
|
75
|
+
"./*.js",
|
|
76
|
+
"./*.d.ts"
|
|
77
|
+
],
|
|
78
|
+
"exports": {
|
|
79
|
+
".": {
|
|
80
|
+
"default": "./index.js"
|
|
81
|
+
},
|
|
82
|
+
"./align": {
|
|
83
|
+
"default": "./align.js"
|
|
84
|
+
},
|
|
85
|
+
"./api": {
|
|
86
|
+
"default": "./api.js"
|
|
87
|
+
},
|
|
88
|
+
"./bytes": {
|
|
89
|
+
"default": "./bytes.js"
|
|
90
|
+
},
|
|
91
|
+
"./constants": {
|
|
92
|
+
"default": "./constants.js"
|
|
93
|
+
},
|
|
94
|
+
"./count": {
|
|
95
|
+
"default": "./count.js"
|
|
96
|
+
},
|
|
97
|
+
"./edit": {
|
|
98
|
+
"default": "./edit.js"
|
|
99
|
+
},
|
|
100
|
+
"./float": {
|
|
101
|
+
"default": "./float.js"
|
|
102
|
+
},
|
|
103
|
+
"./gray": {
|
|
104
|
+
"default": "./gray.js"
|
|
105
|
+
},
|
|
106
|
+
"./int": {
|
|
107
|
+
"default": "./int.js"
|
|
108
|
+
},
|
|
109
|
+
"./logic": {
|
|
110
|
+
"default": "./logic.js"
|
|
111
|
+
},
|
|
112
|
+
"./mask": {
|
|
113
|
+
"default": "./mask.js"
|
|
114
|
+
},
|
|
115
|
+
"./one-hot": {
|
|
116
|
+
"default": "./one-hot.js"
|
|
117
|
+
},
|
|
118
|
+
"./pow": {
|
|
119
|
+
"default": "./pow.js"
|
|
120
|
+
},
|
|
121
|
+
"./rotate": {
|
|
122
|
+
"default": "./rotate.js"
|
|
123
|
+
},
|
|
124
|
+
"./splat": {
|
|
125
|
+
"default": "./splat.js"
|
|
126
|
+
},
|
|
127
|
+
"./swizzle": {
|
|
128
|
+
"default": "./swizzle.js"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"thi.ng": {
|
|
132
|
+
"related": [
|
|
133
|
+
"transducers-binary"
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
"gitHead": "d977f819bcafdcb2b24c45f8d01a167fe29fc85a\n"
|
|
137
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
- **Last updated**: 2025-09-01T16:38:35Z
|
|
4
|
-
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
|
-
|
|
6
|
-
All notable changes to this project will be documented in this file.
|
|
7
|
-
Only versions published since **2022-01-01** are listed here.
|
|
8
|
-
Please consult the Git history for older version information.
|
|
9
|
-
See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
|
|
10
|
-
|
|
11
|
-
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
12
|
-
and/or version bumps of transitive dependencies.
|
|
13
|
-
|
|
14
|
-
### [3.4.26](https://github.com/thi-ng/umbrella/tree/@thi.ng/binary@3.4.26) (2024-06-21)
|
|
15
|
-
|
|
16
|
-
#### ♻️ Refactoring
|
|
17
|
-
|
|
18
|
-
- enforce uniform naming convention of internal functions ([56992b2](https://github.com/thi-ng/umbrella/commit/56992b2))
|
|
19
|
-
|
|
20
|
-
### [3.4.12](https://github.com/thi-ng/umbrella/tree/@thi.ng/binary@3.4.12) (2024-02-19)
|
|
21
|
-
|
|
22
|
-
#### 🩹 Bug fixes
|
|
23
|
-
|
|
24
|
-
- update zero check in floatToSortableInt() (fix [#450](https://github.com/thi-ng/umbrella/issues/450)) ([c2dc294](https://github.com/thi-ng/umbrella/commit/c2dc294))
|
|
25
|
-
|
|
26
|
-
## [3.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/binary@3.4.0) (2023-12-11)
|
|
27
|
-
|
|
28
|
-
#### 🚀 Features
|
|
29
|
-
|
|
30
|
-
- add signed/unsigned int conversions ([9f23ae6](https://github.com/thi-ng/umbrella/commit/9f23ae6))
|
|
31
|
-
|
|
32
|
-
#### 🩹 Bug fixes
|
|
33
|
-
|
|
34
|
-
- update precision for float/uint conversions (both ways) ([5289c40](https://github.com/thi-ng/umbrella/commit/5289c40))
|
|
35
|
-
- add tests
|
|
36
|
-
|
|
37
|
-
### [3.3.36](https://github.com/thi-ng/umbrella/tree/@thi.ng/binary@3.3.36) (2023-11-09)
|
|
38
|
-
|
|
39
|
-
#### ♻️ Refactoring
|
|
40
|
-
|
|
41
|
-
- update all tests (packages A-S) ([e3085e4](https://github.com/thi-ng/umbrella/commit/e3085e4))
|
|
42
|
-
|
|
43
|
-
### [3.3.27](https://github.com/thi-ng/umbrella/tree/@thi.ng/binary@3.3.27) (2023-07-14)
|
|
44
|
-
|
|
45
|
-
#### ♻️ Refactoring
|
|
46
|
-
|
|
47
|
-
- update little endian check (`IS_LE` const) ([ee47a7f](https://github.com/thi-ng/umbrella/commit/ee47a7f))
|
|
48
|
-
|
|
49
|
-
### [3.3.7](https://github.com/thi-ng/umbrella/tree/@thi.ng/binary@3.3.7) (2022-10-26)
|
|
50
|
-
|
|
51
|
-
#### ♻️ Refactoring
|
|
52
|
-
|
|
53
|
-
- update popCountArray() args ([e56eded](https://github.com/thi-ng/umbrella/commit/e56eded))
|
|
54
|
-
- allow any int/uint typed array as input
|
|
55
|
-
|
|
56
|
-
## [3.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/binary@3.3.0) (2022-07-19)
|
|
57
|
-
|
|
58
|
-
#### 🚀 Features
|
|
59
|
-
|
|
60
|
-
- add popCountArray() ([d59e0c4](https://github.com/thi-ng/umbrella/commit/d59e0c4))
|
|
61
|
-
|
|
62
|
-
## [3.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/binary@3.2.0) (2022-03-11)
|
|
63
|
-
|
|
64
|
-
#### 🚀 Features
|
|
65
|
-
|
|
66
|
-
- add shiftRL() ([804565e](https://github.com/thi-ng/umbrella/commit/804565e))
|