@thi.ng/fuzzy 2.1.74 → 2.1.76

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-03-13T14:04:31Z
3
+ - **Last updated**: 2024-03-27T09:53:45Z
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.74",
3
+ "version": "2.1.76",
4
4
  "description": "Fuzzy logic operators & configurable rule inferencing engine",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -36,15 +36,15 @@
36
36
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@thi.ng/api": "^8.9.30",
40
- "@thi.ng/math": "^5.10.7"
39
+ "@thi.ng/api": "^8.9.31",
40
+ "@thi.ng/math": "^5.10.8"
41
41
  },
42
42
  "devDependencies": {
43
- "@microsoft/api-extractor": "^7.42.3",
44
- "esbuild": "^0.20.1",
43
+ "@microsoft/api-extractor": "^7.43.0",
44
+ "esbuild": "^0.20.2",
45
45
  "rimraf": "^5.0.5",
46
46
  "typedoc": "^0.25.12",
47
- "typescript": "^5.4.2"
47
+ "typescript": "^5.4.3"
48
48
  },
49
49
  "keywords": [
50
50
  "agent",
@@ -106,5 +106,5 @@
106
106
  "thi.ng": {
107
107
  "year": 2020
108
108
  },
109
- "gitHead": "7f3fcbd6c0462b0ce45afa141fe163d1f297fd51\n"
109
+ "gitHead": "feb3b24654f2c931cd3c3308c1c0c807ee14d0e4\n"
110
110
  }
package/rules.js CHANGED
@@ -2,6 +2,7 @@ import { snormMax, tnormMin, tnormProduct } from "./tnorms.js";
2
2
  const rule = (op, $if, then, weight = 1) => ({
3
3
  if: $if,
4
4
  then,
5
+ // eslint-disable-line no-thenable
5
6
  op,
6
7
  weight
7
8
  });
package/var.d.ts CHANGED
@@ -20,7 +20,7 @@ import type { LVar } from "./api.js";
20
20
  * @param domain -
21
21
  * @param terms -
22
22
  */
23
- export declare const variable: <K extends string>(domain: import("@thi.ng/api/range").Range, terms: LVar<K>["terms"]) => LVar<K>;
23
+ export declare const variable: <K extends string>(domain: import("@thi.ng/api").Range, terms: LVar<K>["terms"]) => LVar<K>;
24
24
  /**
25
25
  * Takes an LVar and a domain value `x`. Returns the ID of the var's fuzzy set
26
26
  * term which yields the max truth value for given `x`. If `threshold` is