@thi.ng/fuzzy 2.1.18 → 2.1.20
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 +1 -1
- package/README.md +8 -11
- package/api.d.ts +8 -8
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
2
|
|
|
3
|
-
# 
|
|
3
|
+
# 
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@thi.ng/fuzzy)
|
|
6
6
|

|
|
7
|
-
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
This project is part of the
|
|
10
10
|
[@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo.
|
|
@@ -25,7 +25,7 @@ This project is part of the
|
|
|
25
25
|
|
|
26
26
|
## About
|
|
27
27
|
|
|
28
|
-
Fuzzy logic operators & configurable rule inferencing engine
|
|
28
|
+
Fuzzy logic operators & configurable rule inferencing engine
|
|
29
29
|
|
|
30
30
|
### Features
|
|
31
31
|
|
|
@@ -82,14 +82,11 @@ ES module import:
|
|
|
82
82
|
|
|
83
83
|
For Node.js REPL:
|
|
84
84
|
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
node --experimental-repl-await
|
|
88
|
-
|
|
89
|
-
> const fuzzy = await import("@thi.ng/fuzzy");
|
|
85
|
+
```js
|
|
86
|
+
const fuzzy = await import("@thi.ng/fuzzy");
|
|
90
87
|
```
|
|
91
88
|
|
|
92
|
-
Package sizes (
|
|
89
|
+
Package sizes (brotli'd, pre-treeshake): ESM: 1.62 KB
|
|
93
90
|
|
|
94
91
|
## Dependencies
|
|
95
92
|
|
|
@@ -336,7 +333,7 @@ be obtained by merely switching to another instrumentation function (here
|
|
|
336
333
|
|
|
337
334
|
## Authors
|
|
338
335
|
|
|
339
|
-
Karsten Schmidt
|
|
336
|
+
- [Karsten Schmidt](https://thi.ng)
|
|
340
337
|
|
|
341
338
|
If this project contributes to an academic publication, please cite it as:
|
|
342
339
|
|
|
@@ -351,4 +348,4 @@ If this project contributes to an academic publication, please cite it as:
|
|
|
351
348
|
|
|
352
349
|
## License
|
|
353
350
|
|
|
354
|
-
© 2020 - 2022 Karsten Schmidt // Apache
|
|
351
|
+
© 2020 - 2022 Karsten Schmidt // Apache License 2.0
|
package/api.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { Fn2, FnN, FnN2, Range } from "@thi.ng/api";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
2
|
+
export type FuzzyFn = FnN;
|
|
3
|
+
export type RuleOp = (x: number, a: FuzzyFn, b: FuzzyFn) => number;
|
|
4
|
+
export type DefuzzStrategy = Fn2<FuzzyFn, LVarDomain, number>;
|
|
5
|
+
export type LVarDomain = Range;
|
|
6
|
+
export type LVarTerms<K extends string> = Record<K, FuzzyFn>;
|
|
7
|
+
export type LVarSet<I extends string> = Record<I, LVar<any>>;
|
|
8
|
+
export type LVarKeys<T extends LVar<any>> = keyof T["terms"];
|
|
9
|
+
export type LVarKeySet<I extends LVarSet<string>, K extends keyof I> = Partial<{
|
|
10
10
|
[k in K]: LVarKeys<I[k]>;
|
|
11
11
|
}>;
|
|
12
12
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/fuzzy",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.20",
|
|
4
4
|
"description": "Fuzzy logic operators & configurable rule inferencing engine",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "https://github.com/thi-ng/umbrella.git"
|
|
12
12
|
},
|
|
13
|
-
"homepage": "https://github.com/thi-ng/umbrella/tree/
|
|
13
|
+
"homepage": "https://github.com/thi-ng/umbrella/tree/develop/packages/fuzzy#readme",
|
|
14
14
|
"funding": [
|
|
15
15
|
{
|
|
16
16
|
"type": "github",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"url": "https://patreon.com/thing_umbrella"
|
|
22
22
|
}
|
|
23
23
|
],
|
|
24
|
-
"author": "Karsten Schmidt
|
|
24
|
+
"author": "Karsten Schmidt (https://thi.ng)",
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "yarn clean && tsc --declaration",
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.
|
|
38
|
-
"@thi.ng/math": "^5.3.
|
|
37
|
+
"@thi.ng/api": "^8.6.0",
|
|
38
|
+
"@thi.ng/math": "^5.3.16"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@microsoft/api-extractor": "^7.33.
|
|
42
|
-
"@thi.ng/testament": "^0.3.
|
|
41
|
+
"@microsoft/api-extractor": "^7.33.7",
|
|
42
|
+
"@thi.ng/testament": "^0.3.7",
|
|
43
43
|
"rimraf": "^3.0.2",
|
|
44
44
|
"tools": "^0.0.1",
|
|
45
|
-
"typedoc": "^0.23.
|
|
46
|
-
"typescript": "^4.
|
|
45
|
+
"typedoc": "^0.23.22",
|
|
46
|
+
"typescript": "^4.9.4"
|
|
47
47
|
},
|
|
48
48
|
"keywords": [
|
|
49
49
|
"agent",
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
"thi.ng": {
|
|
106
106
|
"year": 2020
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "f445a9cc8022bcdebbf6ff91fd66ced016d72f01\n"
|
|
109
109
|
}
|