@thi.ng/binary 3.0.8 → 3.1.3
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 +127 -25
- package/package.json +132 -127
package/CHANGELOG.md
CHANGED
|
@@ -1,59 +1,161 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
- **Last updated**: 2021-12-13T10:26:00Z
|
|
4
|
+
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
|
+
|
|
3
6
|
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
7
|
+
See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
|
|
8
|
+
|
|
9
|
+
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
|
+
and/or version bumps of transitive dependencies.
|
|
11
|
+
|
|
12
|
+
## [3.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/binary@3.1.0) (2021-11-17)
|
|
13
|
+
|
|
14
|
+
#### 🚀 Features
|
|
15
|
+
|
|
16
|
+
- Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
|
|
17
|
+
Improving the overall build ergonomics
|
|
18
|
+
- introduced a tools workspaces
|
|
19
|
+
- imported it in all needed packages/examples
|
|
20
|
+
- inclusive project root
|
|
21
|
+
|
|
22
|
+
#### ♻️ Refactoring
|
|
23
|
+
|
|
24
|
+
- testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
|
|
25
|
+
this commit reverts (partly) changes made in:
|
|
26
|
+
ef346d7a8753590dc9094108a3d861a8dbd5dd2c
|
|
27
|
+
overall purpose is better testament ergonomics:
|
|
28
|
+
instead of having to pass NODE_OPTIONS with every invocation
|
|
29
|
+
having a binary to handle this for us.
|
|
30
|
+
|
|
31
|
+
### [3.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/binary@3.0.1) (2021-10-13)
|
|
32
|
+
|
|
33
|
+
#### ♻️ Refactoring
|
|
34
|
+
|
|
35
|
+
- update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
|
|
36
|
+
- update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
|
|
37
|
+
- add .js suffix for all relative imports
|
|
38
|
+
|
|
39
|
+
# [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/binary@3.0.0) (2021-10-12)
|
|
40
|
+
|
|
41
|
+
#### 🛑 Breaking changes
|
|
42
|
+
|
|
43
|
+
- major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
|
|
44
|
+
- BREAKING CHANGE: discontinue CommonJS & UMD versions
|
|
45
|
+
- only ESM modules will be published from now on
|
|
46
|
+
- CJS obsolete due to ESM support in recent versions of node:
|
|
47
|
+
- i.e. launch NodeJS via:
|
|
48
|
+
- `node --experimental-specifier-resolution=node --experimental-repl-await`
|
|
49
|
+
- in the node REPL use `await import(...)` instead of `require()`
|
|
50
|
+
- UMD obsolete due to widespread browser support for ESM
|
|
51
|
+
Also:
|
|
52
|
+
- normalize/restructure/reorg all package.json files
|
|
53
|
+
- cleanup all build scripts, remove obsolete
|
|
54
|
+
- switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
|
|
55
|
+
|
|
56
|
+
#### ♻️ Refactoring
|
|
57
|
+
|
|
58
|
+
- update deps & imports in various pkgs ([e1cf29e](https://github.com/thi-ng/umbrella/commit/e1cf29e))
|
|
59
|
+
- largely related to recent updates/restructuring of these packages:
|
|
60
|
+
- api
|
|
61
|
+
- defmulti
|
|
62
|
+
- errors
|
|
63
|
+
- logger
|
|
64
|
+
- update all test stubs ([f2d6d53](https://github.com/thi-ng/umbrella/commit/f2d6d53))
|
|
65
|
+
- update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
|
|
66
|
+
- update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
|
|
67
|
+
|
|
68
|
+
## [2.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/binary@2.2.0) (2021-03-03)
|
|
69
|
+
|
|
70
|
+
#### 🚀 Features
|
|
71
|
+
|
|
72
|
+
- add binary/one-hot conversions ([eeb6396](https://github.com/thi-ng/umbrella/commit/eeb6396))
|
|
73
|
+
|
|
74
|
+
## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/binary@2.1.0) (2021-02-20)
|
|
75
|
+
|
|
76
|
+
#### 🚀 Features
|
|
77
|
+
|
|
78
|
+
- add MSB_BITS8/16/32 LUTs ([e0eb47b](https://github.com/thi-ng/umbrella/commit/e0eb47b))
|
|
79
|
+
- add swapLane02/13 ([2e45f48](https://github.com/thi-ng/umbrella/commit/2e45f48))
|
|
80
|
+
- add interleave4_12_24/4_16_32() ([89044d2](https://github.com/thi-ng/umbrella/commit/89044d2))
|
|
81
|
+
|
|
82
|
+
### [2.0.19](https://github.com/thi-ng/umbrella/tree/@thi.ng/binary@2.0.19) (2020-12-07)
|
|
83
|
+
|
|
84
|
+
#### ♻️ Refactoring
|
|
85
|
+
|
|
86
|
+
- update type-only imports ([7eaab0a](https://github.com/thi-ng/umbrella/commit/7eaab0a))
|
|
5
87
|
|
|
6
|
-
|
|
88
|
+
### [2.0.15](https://github.com/thi-ng/umbrella/tree/@thi.ng/binary@2.0.15) (2020-09-13)
|
|
7
89
|
|
|
8
|
-
|
|
90
|
+
#### ♻️ Refactoring
|
|
9
91
|
|
|
92
|
+
- update deps, use new Fn types ([424f516](https://github.com/thi-ng/umbrella/commit/424f516))
|
|
10
93
|
|
|
94
|
+
# [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/binary@2.0.0) (2020-03-06)
|
|
11
95
|
|
|
96
|
+
#### 🛑 Breaking changes
|
|
12
97
|
|
|
98
|
+
- make binary logic ops unmasked, rename masked versions ([c07cf04](https://github.com/thi-ng/umbrella/commit/c07cf04))
|
|
99
|
+
- BREAKING CHANGE: make binary logic ops unmasked, rename masked versions
|
|
100
|
+
- existing names used for unmasked versions (returning signed ints)
|
|
101
|
+
- masked versions of bitOr/bitAnd/bitXor etc. now suffixed with `M`, e.g. `bitAndM()`
|
|
13
102
|
|
|
14
|
-
## [3.0
|
|
103
|
+
## [1.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/binary@1.3.0) (2020-02-25)
|
|
15
104
|
|
|
16
|
-
|
|
105
|
+
#### 🚀 Features
|
|
17
106
|
|
|
107
|
+
- add lane16/setLane16, flip8/16, mux ([1aa0a5e](https://github.com/thi-ng/umbrella/commit/1aa0a5e))
|
|
108
|
+
- add float & 64bit byte conversions ([9882196](https://github.com/thi-ng/umbrella/commit/9882196))
|
|
109
|
+
- add endianess detection, 64bit float/int/uint conv ([856e035](https://github.com/thi-ng/umbrella/commit/856e035))
|
|
110
|
+
- add byte conversions ([564310b](https://github.com/thi-ng/umbrella/commit/564310b))
|
|
111
|
+
- add float/int conversions ([2e02d34](https://github.com/thi-ng/umbrella/commit/2e02d34))
|
|
18
112
|
|
|
113
|
+
#### ♻️ Refactoring
|
|
19
114
|
|
|
115
|
+
- update imports, internal restruct ([aea5e6b](https://github.com/thi-ng/umbrella/commit/aea5e6b))
|
|
20
116
|
|
|
117
|
+
### [1.2.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/binary@1.2.1) (2020-01-24)
|
|
21
118
|
|
|
22
|
-
|
|
119
|
+
#### ♻️ Refactoring
|
|
23
120
|
|
|
121
|
+
- update bitSize() ([b94d682](https://github.com/thi-ng/umbrella/commit/b94d682))
|
|
24
122
|
|
|
25
|
-
|
|
123
|
+
## [1.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/binary@1.2.0) (2019-11-30)
|
|
26
124
|
|
|
27
|
-
|
|
125
|
+
#### 🚀 Features
|
|
28
126
|
|
|
127
|
+
- add bitSize() ([f085bfb](https://github.com/thi-ng/umbrella/commit/f085bfb))
|
|
29
128
|
|
|
30
|
-
###
|
|
129
|
+
### [1.1.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/binary@1.1.1) (2019-11-09)
|
|
31
130
|
|
|
32
|
-
|
|
131
|
+
#### ♻️ Refactoring
|
|
33
132
|
|
|
34
|
-
-
|
|
35
|
-
- CJS obsolete due to ESM support in recent versions of node:
|
|
36
|
-
- i.e. launch NodeJS via:
|
|
37
|
-
- `node --experimental-specifier-resolution=node --experimental-repl-await`
|
|
38
|
-
- in the node REPL use `await import(...)` instead of `require()`
|
|
39
|
-
- UMD obsolete due to widespread browser support for ESM
|
|
133
|
+
- add return assertion for isPow2() ([e0b5b83](https://github.com/thi-ng/umbrella/commit/e0b5b83))
|
|
40
134
|
|
|
41
|
-
|
|
42
|
-
- normalize/restructure/reorg all package.json files
|
|
43
|
-
- cleanup all build scripts, remove obsolete
|
|
44
|
-
- switch from mocha to @thi.ng/testament for all tests
|
|
135
|
+
## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/binary@1.1.0) (2019-07-31)
|
|
45
136
|
|
|
137
|
+
#### 🚀 Features
|
|
46
138
|
|
|
139
|
+
- add setLane8/4/2 fns ([7e24f5e](https://github.com/thi-ng/umbrella/commit/7e24f5e))
|
|
47
140
|
|
|
141
|
+
#### ♻️ Refactoring
|
|
48
142
|
|
|
143
|
+
- update splat4_24/32 ([82caa13](https://github.com/thi-ng/umbrella/commit/82caa13))
|
|
49
144
|
|
|
145
|
+
# [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/binary@1.0.0) (2019-01-21)
|
|
50
146
|
|
|
51
|
-
|
|
147
|
+
#### 🛑 Breaking changes
|
|
52
148
|
|
|
53
|
-
|
|
149
|
+
- update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
|
|
150
|
+
- BREAKING CHANGE: enabled multi-outputs (ES6 modules, CJS, UMD)
|
|
151
|
+
- build scripts now first build ES6 modules in package root, then call
|
|
152
|
+
`scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
|
|
153
|
+
- all imports MUST be updated to only refer to package level
|
|
154
|
+
(not individual files anymore). tree shaking in user land will get rid of
|
|
155
|
+
all unused imported symbols.
|
|
54
156
|
|
|
55
|
-
|
|
157
|
+
## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/binary@0.1.0) (2018-10-17)
|
|
56
158
|
|
|
57
|
-
|
|
159
|
+
#### 🚀 Features
|
|
58
160
|
|
|
59
|
-
|
|
161
|
+
- add [@thi.ng/binary](https://github.com/thi-ng/umbrella/tree/main/packages/binary) package ([458d4a0](https://github.com/thi-ng/umbrella/commit/458d4a0))
|
package/package.json
CHANGED
|
@@ -1,128 +1,133 @@
|
|
|
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
|
-
|
|
2
|
+
"name": "@thi.ng/binary",
|
|
3
|
+
"version": "3.1.3",
|
|
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://github.com/thi-ng/umbrella/tree/develop/packages/binary#readme",
|
|
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
|
+
"author": "Karsten Schmidt <k+npm@thi.ng>",
|
|
25
|
+
"license": "Apache-2.0",
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "yarn clean && tsc --declaration",
|
|
28
|
+
"clean": "rimraf '*.js' '*.d.ts' '*.map' doc",
|
|
29
|
+
"doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
|
|
30
|
+
"doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
|
|
31
|
+
"doc:readme": "yarn doc:stats && tools:readme",
|
|
32
|
+
"doc:stats": "tools:module-stats",
|
|
33
|
+
"pub": "yarn npm publish --access public",
|
|
34
|
+
"test": "testament test"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@thi.ng/api": "^8.3.3"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@microsoft/api-extractor": "^7.19.2",
|
|
41
|
+
"@thi.ng/testament": "^0.2.3",
|
|
42
|
+
"rimraf": "^3.0.2",
|
|
43
|
+
"tools": "^0.0.1",
|
|
44
|
+
"typedoc": "^0.22.10",
|
|
45
|
+
"typescript": "^4.5.3"
|
|
46
|
+
},
|
|
47
|
+
"keywords": [
|
|
48
|
+
"align",
|
|
49
|
+
"binary",
|
|
50
|
+
"bitwise",
|
|
51
|
+
"conversion",
|
|
52
|
+
"count",
|
|
53
|
+
"float",
|
|
54
|
+
"graycode",
|
|
55
|
+
"int",
|
|
56
|
+
"logic",
|
|
57
|
+
"lut",
|
|
58
|
+
"mask",
|
|
59
|
+
"math",
|
|
60
|
+
"shift",
|
|
61
|
+
"splat",
|
|
62
|
+
"swap",
|
|
63
|
+
"swizzle",
|
|
64
|
+
"typedarray",
|
|
65
|
+
"typescript"
|
|
66
|
+
],
|
|
67
|
+
"publishConfig": {
|
|
68
|
+
"access": "public"
|
|
69
|
+
},
|
|
70
|
+
"engines": {
|
|
71
|
+
"node": ">=12.7"
|
|
72
|
+
},
|
|
73
|
+
"files": [
|
|
74
|
+
"*.js",
|
|
75
|
+
"*.d.ts"
|
|
76
|
+
],
|
|
77
|
+
"exports": {
|
|
78
|
+
".": {
|
|
79
|
+
"import": "./index.js"
|
|
80
|
+
},
|
|
81
|
+
"./align": {
|
|
82
|
+
"import": "./align.js"
|
|
83
|
+
},
|
|
84
|
+
"./api": {
|
|
85
|
+
"import": "./api.js"
|
|
86
|
+
},
|
|
87
|
+
"./bytes": {
|
|
88
|
+
"import": "./bytes.js"
|
|
89
|
+
},
|
|
90
|
+
"./constants": {
|
|
91
|
+
"import": "./constants.js"
|
|
92
|
+
},
|
|
93
|
+
"./count": {
|
|
94
|
+
"import": "./count.js"
|
|
95
|
+
},
|
|
96
|
+
"./edit": {
|
|
97
|
+
"import": "./edit.js"
|
|
98
|
+
},
|
|
99
|
+
"./float": {
|
|
100
|
+
"import": "./float.js"
|
|
101
|
+
},
|
|
102
|
+
"./gray": {
|
|
103
|
+
"import": "./gray.js"
|
|
104
|
+
},
|
|
105
|
+
"./logic": {
|
|
106
|
+
"import": "./logic.js"
|
|
107
|
+
},
|
|
108
|
+
"./mask": {
|
|
109
|
+
"import": "./mask.js"
|
|
110
|
+
},
|
|
111
|
+
"./one-hot": {
|
|
112
|
+
"import": "./one-hot.js"
|
|
113
|
+
},
|
|
114
|
+
"./pow": {
|
|
115
|
+
"import": "./pow.js"
|
|
116
|
+
},
|
|
117
|
+
"./rotate": {
|
|
118
|
+
"import": "./rotate.js"
|
|
119
|
+
},
|
|
120
|
+
"./splat": {
|
|
121
|
+
"import": "./splat.js"
|
|
122
|
+
},
|
|
123
|
+
"./swizzle": {
|
|
124
|
+
"import": "./swizzle.js"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"thi.ng": {
|
|
128
|
+
"related": [
|
|
129
|
+
"transducers-binary"
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
"gitHead": "2db9dd34c0c2c60cbfde3dad0bca352b20292f5c\n"
|
|
133
|
+
}
|