@thi.ng/fuzzy 2.1.77 → 2.1.79
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/README.md +3 -3
- package/package.json +4 -4
- package/var.d.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2024-04-
|
|
3
|
+
- **Last updated**: 2024-04-20T14:42: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.
|
|
@@ -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.79](https://github.com/thi-ng/umbrella/tree/@thi.ng/fuzzy@2.1.79) (2024-04-20)
|
|
13
|
+
|
|
14
|
+
#### ♻️ Refactoring
|
|
15
|
+
|
|
16
|
+
- update type usage ([a327619](https://github.com/thi-ng/umbrella/commit/a327619))
|
|
17
|
+
|
|
12
18
|
### [2.1.48](https://github.com/thi-ng/umbrella/tree/@thi.ng/fuzzy@2.1.48) (2023-11-09)
|
|
13
19
|
|
|
14
20
|
#### ♻️ Refactoring
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 192 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
|
>
|
|
@@ -86,10 +86,10 @@ import * as fuzzy from "@thi.ng/fuzzy";
|
|
|
86
86
|
Browser ESM import:
|
|
87
87
|
|
|
88
88
|
```html
|
|
89
|
-
<script type="module" src="https://
|
|
89
|
+
<script type="module" src="https://esm.run/@thi.ng/fuzzy"></script>
|
|
90
90
|
```
|
|
91
91
|
|
|
92
|
-
[
|
|
92
|
+
[JSDelivr documentation](https://www.jsdelivr.com/)
|
|
93
93
|
|
|
94
94
|
For Node.js REPL:
|
|
95
95
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/fuzzy",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.79",
|
|
4
4
|
"description": "Fuzzy logic operators & configurable rule inferencing engine",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@thi.ng/api": "^8.
|
|
40
|
-
"@thi.ng/math": "^5.10.
|
|
39
|
+
"@thi.ng/api": "^8.11.0",
|
|
40
|
+
"@thi.ng/math": "^5.10.11"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@microsoft/api-extractor": "^7.43.0",
|
|
@@ -106,5 +106,5 @@
|
|
|
106
106
|
"thi.ng": {
|
|
107
107
|
"year": 2020
|
|
108
108
|
},
|
|
109
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "8339d05ecc857e529c7325a9839c0063b89e728d\n"
|
|
110
110
|
}
|
package/var.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Maybe } from "@thi.ng/api";
|
|
1
2
|
import type { LVar } from "./api.js";
|
|
2
3
|
/**
|
|
3
4
|
* Takes a `domain` interval and on object of named fuzzy sets and returns a new
|
|
@@ -47,7 +48,7 @@ export declare const variable: <K extends string>(domain: import("@thi.ng/api").
|
|
|
47
48
|
* @param x -
|
|
48
49
|
* @param threshold -
|
|
49
50
|
*/
|
|
50
|
-
export declare const classify: <K extends string>({ terms }: LVar<K>, x: number, threshold?: number) => K
|
|
51
|
+
export declare const classify: <K extends string>({ terms }: LVar<K>, x: number, threshold?: number) => Maybe<K>;
|
|
51
52
|
/**
|
|
52
53
|
* Takes an LVar and a domain value `x`, evaluates all of var's terms for given
|
|
53
54
|
* `x` and returns object of results.
|