@thi.ng/transducers 8.5.2 → 8.5.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 (3) hide show
  1. package/CHANGELOG.md +7 -1
  2. package/package.json +14 -12
  3. package/sample.js +1 -1
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2023-08-10T12:25:09Z
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
+ ### [8.5.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/transducers@8.5.3) (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
  ## [8.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/transducers@8.5.0) (2023-08-04)
13
19
 
14
20
  #### 🚀 Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/transducers",
3
- "version": "8.5.2",
3
+ "version": "8.5.3",
4
4
  "description": "Lightweight transducer implementations for ES6 / TypeScript",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -38,18 +38,18 @@
38
38
  "test": "testament test"
39
39
  },
40
40
  "dependencies": {
41
- "@thi.ng/api": "^8.9.2",
42
- "@thi.ng/arrays": "^2.5.17",
43
- "@thi.ng/checks": "^3.4.2",
44
- "@thi.ng/compare": "^2.1.35",
45
- "@thi.ng/compose": "^2.1.37",
46
- "@thi.ng/errors": "^2.3.2",
47
- "@thi.ng/math": "^5.5.3",
48
- "@thi.ng/random": "^3.5.3"
41
+ "@thi.ng/api": "^8.9.3",
42
+ "@thi.ng/arrays": "^2.5.18",
43
+ "@thi.ng/checks": "^3.4.3",
44
+ "@thi.ng/compare": "^2.1.36",
45
+ "@thi.ng/compose": "^2.1.38",
46
+ "@thi.ng/errors": "^2.3.3",
47
+ "@thi.ng/math": "^5.5.4",
48
+ "@thi.ng/random": "^3.6.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@microsoft/api-extractor": "^7.36.3",
52
- "@thi.ng/testament": "^0.3.20",
51
+ "@microsoft/api-extractor": "^7.36.4",
52
+ "@thi.ng/testament": "^0.3.21",
53
53
  "rimraf": "^5.0.1",
54
54
  "tools": "^0.0.1",
55
55
  "typedoc": "^0.24.8",
@@ -69,6 +69,7 @@
69
69
  "frequency",
70
70
  "functional",
71
71
  "fuzzy",
72
+ "generator",
72
73
  "group-by",
73
74
  "histogram",
74
75
  "interleave",
@@ -84,6 +85,7 @@
84
85
  "set",
85
86
  "sliding-window",
86
87
  "stream",
88
+ "time",
87
89
  "throttle",
88
90
  "transducer",
89
91
  "transformation",
@@ -574,5 +576,5 @@
574
576
  ],
575
577
  "year": 2016
576
578
  },
577
- "gitHead": "ad9ac3232c6fc5fc8a0df75ac82fc1e0e9fb0258\n"
579
+ "gitHead": "399f8c53d66b9b763d16c21bb59f145df5f59514\n"
578
580
  }
package/sample.js CHANGED
@@ -10,6 +10,6 @@ export function sample(...args) {
10
10
  const rnd = args[1] || SYSTEM;
11
11
  return (rfn) => {
12
12
  const r = rfn[2];
13
- return compR(rfn, (acc, x) => rnd.float() < prob ? r(acc, x) : acc);
13
+ return compR(rfn, (acc, x) => rnd.probability(prob) ? r(acc, x) : acc);
14
14
  };
15
15
  }