@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.
Files changed (2) hide show
  1. package/CHANGELOG.md +127 -25
  2. 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
- ## [3.0.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/binary@3.0.7...@thi.ng/binary@3.0.8) (2021-11-10)
88
+ ### [2.0.15](https://github.com/thi-ng/umbrella/tree/@thi.ng/binary@2.0.15) (2020-09-13)
7
89
 
8
- **Note:** Version bump only for package @thi.ng/binary
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.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/binary@3.0.6...@thi.ng/binary@3.0.7) (2021-11-03)
103
+ ## [1.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/binary@1.3.0) (2020-02-25)
15
104
 
16
- **Note:** Version bump only for package @thi.ng/binary
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
- # [3.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/binary@2.2.11...@thi.ng/binary@3.0.0) (2021-10-12)
119
+ #### ♻️ Refactoring
23
120
 
121
+ - update bitSize() ([b94d682](https://github.com/thi-ng/umbrella/commit/b94d682))
24
122
 
25
- ### Build System
123
+ ## [1.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/binary@1.2.0) (2019-11-30)
26
124
 
27
- * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
125
+ #### 🚀 Features
28
126
 
127
+ - add bitSize() ([f085bfb](https://github.com/thi-ng/umbrella/commit/f085bfb))
29
128
 
30
- ### BREAKING CHANGES
129
+ ### [1.1.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/binary@1.1.1) (2019-11-09)
31
130
 
32
- * discontinue CommonJS & UMD versions
131
+ #### ♻️ Refactoring
33
132
 
34
- - only ESM modules will be published from now on
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
- Also:
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
- # [2.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/binary@2.1.0...@thi.ng/binary@2.2.0) (2021-03-03)
147
+ #### 🛑 Breaking changes
52
148
 
53
- ### Features
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
- - **binary:** add binary/one-hot conversions ([eeb6396](https://github.com/thi-ng/umbrella/commit/eeb6396ae1fbe700643d5a98a3923af9c1e9c51a))
157
+ ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/binary@0.1.0) (2018-10-17)
56
158
 
57
- # [2.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/binary@2.0.21...@thi.ng/binary@2.1.0) (2021-02-20)
159
+ #### 🚀 Features
58
160
 
59
- ### Features
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
- "name": "@thi.ng/binary",
3
- "version": "3.0.8",
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 && node_modules/.bin/api-extractor run --local --verbose",
31
- "doc:readme": "yarn doc:stats && ../../scripts/node-esm ../../tools/src/readme.ts",
32
- "doc:stats": "../../scripts/node-esm ../../tools/src/module-stats.ts",
33
- "pub": "yarn build && yarn publish --access public",
34
- "test": "testament test"
35
- },
36
- "dependencies": {
37
- "@thi.ng/api": "^8.2.0"
38
- },
39
- "devDependencies": {
40
- "@thi.ng/testament": "^0.1.6"
41
- },
42
- "keywords": [
43
- "align",
44
- "binary",
45
- "bitwise",
46
- "conversion",
47
- "count",
48
- "float",
49
- "graycode",
50
- "int",
51
- "logic",
52
- "lut",
53
- "mask",
54
- "math",
55
- "shift",
56
- "splat",
57
- "swap",
58
- "swizzle",
59
- "typedarray",
60
- "typescript"
61
- ],
62
- "publishConfig": {
63
- "access": "public"
64
- },
65
- "engines": {
66
- "node": ">=12.7"
67
- },
68
- "files": [
69
- "*.js",
70
- "*.d.ts"
71
- ],
72
- "exports": {
73
- ".": {
74
- "import": "./index.js"
75
- },
76
- "./align": {
77
- "import": "./align.js"
78
- },
79
- "./api": {
80
- "import": "./api.js"
81
- },
82
- "./bytes": {
83
- "import": "./bytes.js"
84
- },
85
- "./constants": {
86
- "import": "./constants.js"
87
- },
88
- "./count": {
89
- "import": "./count.js"
90
- },
91
- "./edit": {
92
- "import": "./edit.js"
93
- },
94
- "./float": {
95
- "import": "./float.js"
96
- },
97
- "./gray": {
98
- "import": "./gray.js"
99
- },
100
- "./logic": {
101
- "import": "./logic.js"
102
- },
103
- "./mask": {
104
- "import": "./mask.js"
105
- },
106
- "./one-hot": {
107
- "import": "./one-hot.js"
108
- },
109
- "./pow": {
110
- "import": "./pow.js"
111
- },
112
- "./rotate": {
113
- "import": "./rotate.js"
114
- },
115
- "./splat": {
116
- "import": "./splat.js"
117
- },
118
- "./swizzle": {
119
- "import": "./swizzle.js"
120
- }
121
- },
122
- "thi.ng": {
123
- "related": [
124
- "transducers-binary"
125
- ]
126
- },
127
- "gitHead": "5fe52419af63984ebe53032201b2a6174b9cb159"
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
+ }