@thi.ng/transducers-binary 2.1.54 → 2.1.56
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/package.json +10 -10
- package/random-bits.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2023-08-
|
|
3
|
+
- **Last updated**: 2023-08-12T13:14:08Z
|
|
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
|
+
### [2.1.55](https://github.com/thi-ng/umbrella/tree/@thi.ng/transducers-binary@2.1.55) (2023-08-12)
|
|
13
|
+
|
|
14
|
+
#### ♻️ Refactoring
|
|
15
|
+
|
|
16
|
+
- update .probability() call sites in various pkgs ([c8c8141](https://github.com/thi-ng/umbrella/commit/c8c8141))
|
|
17
|
+
|
|
12
18
|
### [2.1.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/transducers-binary@2.1.6) (2022-04-07)
|
|
13
19
|
|
|
14
20
|
#### ♻️ Refactoring
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/transducers-binary",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.56",
|
|
4
4
|
"description": "Binary data related transducers & reducers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/binary": "^3.3.
|
|
38
|
-
"@thi.ng/compose": "^2.1.
|
|
39
|
-
"@thi.ng/errors": "^2.3.
|
|
40
|
-
"@thi.ng/hex": "^2.3.
|
|
41
|
-
"@thi.ng/random": "^3.
|
|
42
|
-
"@thi.ng/transducers": "^8.5.
|
|
37
|
+
"@thi.ng/binary": "^3.3.31",
|
|
38
|
+
"@thi.ng/compose": "^2.1.38",
|
|
39
|
+
"@thi.ng/errors": "^2.3.3",
|
|
40
|
+
"@thi.ng/hex": "^2.3.15",
|
|
41
|
+
"@thi.ng/random": "^3.6.1",
|
|
42
|
+
"@thi.ng/transducers": "^8.5.4"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@microsoft/api-extractor": "^7.36.
|
|
46
|
-
"@thi.ng/testament": "^0.3.
|
|
45
|
+
"@microsoft/api-extractor": "^7.36.4",
|
|
46
|
+
"@thi.ng/testament": "^0.3.21",
|
|
47
47
|
"rimraf": "^5.0.1",
|
|
48
48
|
"tools": "^0.0.1",
|
|
49
49
|
"typedoc": "^0.24.8",
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
],
|
|
113
113
|
"year": 2018
|
|
114
114
|
},
|
|
115
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "4154283d772824d4b57d4b7ab97be22a6e1ffdd7\n"
|
|
116
116
|
}
|
package/random-bits.js
CHANGED
|
@@ -13,4 +13,4 @@ import { repeatedly } from "@thi.ng/transducers/repeatedly";
|
|
|
13
13
|
* @param num -
|
|
14
14
|
* @param rnd -
|
|
15
15
|
*/
|
|
16
|
-
export const randomBits = (prob, num, rnd = SYSTEM) => repeatedly(() => (rnd.
|
|
16
|
+
export const randomBits = (prob, num, rnd = SYSTEM) => repeatedly(() => (rnd.probability(prob) ? 1 : 0), num);
|