@thi.ng/fuzzy 2.1.75 → 2.1.77

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-18T08:40:00Z
3
+ - **Last updated**: 2024-04-08T14:59:29Z
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/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  > [!NOTE]
10
- > This is one of 190 standalone projects, maintained as part
10
+ > This is one of 191 standalone projects, maintained as part
11
11
  > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
12
12
  > and anti-framework.
13
13
  >
@@ -77,7 +77,13 @@ Fuzzy logic operators & configurable rule inferencing engine.
77
77
  yarn add @thi.ng/fuzzy
78
78
  ```
79
79
 
80
- ES module import:
80
+ ESM import:
81
+
82
+ ```ts
83
+ import * as fuzzy from "@thi.ng/fuzzy";
84
+ ```
85
+
86
+ Browser ESM import:
81
87
 
82
88
  ```html
83
89
  <script type="module" src="https://cdn.skypack.dev/@thi.ng/fuzzy"></script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/fuzzy",
3
- "version": "2.1.75",
3
+ "version": "2.1.77",
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.10.0",
40
+ "@thi.ng/math": "^5.10.9"
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": "4b3d4ab6ce373ca817ad780f679572169a9ed733\n"
109
+ "gitHead": "85ac4bd4d6d89f8e3689e2863d5bea0cecdb371c\n"
110
110
  }
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