@thi.ng/fuzzy 2.1.79 → 2.1.81

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-04-20T14:42:45Z
3
+ - **Last updated**: 2024-05-08T18:24:31Z
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/fuzzy",
3
- "version": "2.1.79",
3
+ "version": "2.1.81",
4
4
  "description": "Fuzzy logic operators & configurable rule inferencing engine",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -27,7 +27,7 @@
27
27
  "build": "yarn build:esbuild && yarn build:decl",
28
28
  "build:decl": "tsc --declaration --emitDeclarationOnly",
29
29
  "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
30
- "clean": "rimraf --glob '*.js' '*.d.ts' '*.map' doc strategies",
30
+ "clean": "bun ../../tools/src/clean-package.ts strategies",
31
31
  "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
32
32
  "doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
33
33
  "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
@@ -36,15 +36,14 @@
36
36
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@thi.ng/api": "^8.11.0",
40
- "@thi.ng/math": "^5.10.11"
39
+ "@thi.ng/api": "^8.11.2",
40
+ "@thi.ng/math": "^5.10.13"
41
41
  },
42
42
  "devDependencies": {
43
- "@microsoft/api-extractor": "^7.43.0",
44
- "esbuild": "^0.20.2",
45
- "rimraf": "^5.0.5",
46
- "typedoc": "^0.25.12",
47
- "typescript": "^5.4.3"
43
+ "@microsoft/api-extractor": "^7.43.2",
44
+ "esbuild": "^0.21.1",
45
+ "typedoc": "^0.25.13",
46
+ "typescript": "^5.4.5"
48
47
  },
49
48
  "keywords": [
50
49
  "agent",
@@ -106,5 +105,5 @@
106
105
  "thi.ng": {
107
106
  "year": 2020
108
107
  },
109
- "gitHead": "8339d05ecc857e529c7325a9839c0063b89e728d\n"
108
+ "gitHead": "df34b4a9e650cc7323575356de207d78933bdcf3\n"
110
109
  }
@@ -9,8 +9,7 @@ const bisectorStrategy = (opts) => {
9
9
  acc += fn(min + i * delta);
10
10
  sum.push(acc);
11
11
  }
12
- if (!sum.length)
13
- return min;
12
+ if (!sum.length) return min;
14
13
  const mean = sum[samples] * 0.5;
15
14
  for (let i = 1; i <= samples; i++) {
16
15
  if (sum[i] >= mean) {