@thi.ng/fuzzy 2.1.19 → 2.1.21

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**: 2022-11-30T22:27:37Z
3
+ - **Last updated**: 2022-12-16T12:52:25Z
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
@@ -1,10 +1,10 @@
1
1
  <!-- This file is generated - DO NOT EDIT! -->
2
2
 
3
- # ![fuzzy](https://media.thi.ng/umbrella/banners-20220914/thing-fuzzy.svg?4fb57c92)
3
+ # ![@thi.ng/fuzzy](https://media.thi.ng/umbrella/banners-20220914/thing-fuzzy.svg?4fb57c92)
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/@thi.ng/fuzzy.svg)](https://www.npmjs.com/package/@thi.ng/fuzzy)
6
6
  ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/fuzzy.svg)
7
- [![Twitter Follow](https://img.shields.io/twitter/follow/thing_umbrella.svg?style=flat-square&label=twitter)](https://twitter.com/thing_umbrella)
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
  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,11 +82,8 @@ ES module import:
82
82
 
83
83
  For Node.js REPL:
84
84
 
85
- ```text
86
- # with flag only for < v16
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
89
  Package sizes (brotli'd, pre-treeshake): ESM: 1.62 KB
@@ -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
- &copy; 2020 - 2022 Karsten Schmidt // Apache Software License 2.0
351
+ &copy; 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 declare type FuzzyFn = FnN;
3
- export declare type RuleOp = (x: number, a: FuzzyFn, b: FuzzyFn) => number;
4
- export declare type DefuzzStrategy = Fn2<FuzzyFn, LVarDomain, number>;
5
- export declare type LVarDomain = Range;
6
- export declare type LVarTerms<K extends string> = Record<K, FuzzyFn>;
7
- export declare type LVarSet<I extends string> = Record<I, LVar<any>>;
8
- export declare type LVarKeys<T extends LVar<any>> = keyof T["terms"];
9
- export declare type LVarKeySet<I extends LVarSet<string>, K extends keyof I> = Partial<{
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.19",
3
+ "version": "2.1.21",
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/master/packages/fuzzy#readme",
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 <k+npm@thi.ng>",
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.5.1",
38
- "@thi.ng/math": "^5.3.15"
37
+ "@thi.ng/api": "^8.6.1",
38
+ "@thi.ng/math": "^5.3.17"
39
39
  },
40
40
  "devDependencies": {
41
- "@microsoft/api-extractor": "^7.33.5",
42
- "@thi.ng/testament": "^0.3.6",
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.20",
46
- "typescript": "^4.8.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": "1fe40da507070653f420156d91e6b27cf682004f\n"
108
+ "gitHead": "7b2af448da8a63fb21704a79cc4cdf1f3d7d7a64\n"
109
109
  }