@thi.ng/k-means 0.6.84 → 0.6.85

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-04-11T12:32:44Z
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
+ ### [0.6.85](https://github.com/thi-ng/umbrella/tree/@thi.ng/k-means@0.6.85) (2024-04-20)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - update type usage ([5966258](https://github.com/thi-ng/umbrella/commit/5966258))
17
+
12
18
  ### [0.6.43](https://github.com/thi-ng/umbrella/tree/@thi.ng/k-means@0.6.43) (2023-11-09)
13
19
 
14
20
  #### ♻️ Refactoring
package/README.md CHANGED
@@ -48,10 +48,10 @@ import * as kmeans from "@thi.ng/k-means";
48
48
  Browser ESM import:
49
49
 
50
50
  ```html
51
- <script type="module" src="https://cdn.skypack.dev/@thi.ng/k-means"></script>
51
+ <script type="module" src="https://esm.run/@thi.ng/k-means"></script>
52
52
  ```
53
53
 
54
- [Skypack documentation](https://docs.skypack.dev/)
54
+ [JSDelivr documentation](https://www.jsdelivr.com/)
55
55
 
56
56
  For Node.js REPL:
57
57
 
package/api.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Fn, Fn0 } from "@thi.ng/api";
1
+ import type { Fn, Fn0, Maybe } from "@thi.ng/api";
2
2
  import type { IDistance } from "@thi.ng/distance";
3
3
  import type { IRandom } from "@thi.ng/random";
4
4
  import type { ReadonlyVec, Vec } from "@thi.ng/vectors";
@@ -27,7 +27,7 @@ export interface KMeansOpts {
27
27
  }
28
28
  export type CentroidStrategy = Fn<number, {
29
29
  update: Fn<ReadonlyVec, void>;
30
- finish: Fn0<Vec | undefined>;
30
+ finish: Fn0<Maybe<Vec>>;
31
31
  }>;
32
32
  export interface Cluster {
33
33
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/k-means",
3
- "version": "0.6.84",
3
+ "version": "0.6.85",
4
4
  "description": "Configurable k-means & k-medians (with k-means++ initialization) for n-D vectors",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -36,11 +36,11 @@
36
36
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@thi.ng/api": "^8.10.1",
40
- "@thi.ng/distance": "^2.4.69",
41
- "@thi.ng/errors": "^2.5.4",
42
- "@thi.ng/random": "^3.7.3",
43
- "@thi.ng/vectors": "^7.10.27"
39
+ "@thi.ng/api": "^8.11.0",
40
+ "@thi.ng/distance": "^2.4.70",
41
+ "@thi.ng/errors": "^2.5.5",
42
+ "@thi.ng/random": "^3.7.4",
43
+ "@thi.ng/vectors": "^7.10.28"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@microsoft/api-extractor": "^7.43.0",
@@ -84,5 +84,5 @@
84
84
  "status": "beta",
85
85
  "year": 2021
86
86
  },
87
- "gitHead": "18a0c063a7b33d790e5bc2486c106f45f663ac28\n"
87
+ "gitHead": "8339d05ecc857e529c7325a9839c0063b89e728d\n"
88
88
  }