@thi.ng/distance 2.4.68 → 2.4.70
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/nearest.d.ts +2 -2
- package/package.json +8 -8
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.4.70](https://github.com/thi-ng/umbrella/tree/@thi.ng/distance@2.4.70) (2024-04-20)
|
|
13
|
+
|
|
14
|
+
#### ♻️ Refactoring
|
|
15
|
+
|
|
16
|
+
- update type usage ([27fdbef](https://github.com/thi-ng/umbrella/commit/27fdbef))
|
|
17
|
+
|
|
12
18
|
## [2.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/distance@2.4.0) (2023-06-09)
|
|
13
19
|
|
|
14
20
|
#### 🚀 Features
|
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
|
>
|
|
@@ -129,10 +129,10 @@ import * as dist from "@thi.ng/distance";
|
|
|
129
129
|
Browser ESM import:
|
|
130
130
|
|
|
131
131
|
```html
|
|
132
|
-
<script type="module" src="https://
|
|
132
|
+
<script type="module" src="https://esm.run/@thi.ng/distance"></script>
|
|
133
133
|
```
|
|
134
134
|
|
|
135
|
-
[
|
|
135
|
+
[JSDelivr documentation](https://www.jsdelivr.com/)
|
|
136
136
|
|
|
137
137
|
For Node.js REPL:
|
|
138
138
|
|
package/nearest.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IDeref } from "@thi.ng/api";
|
|
1
|
+
import type { IDeref, Maybe } from "@thi.ng/api";
|
|
2
2
|
import type { ReadonlyVec } from "@thi.ng/vectors";
|
|
3
3
|
import type { IDistance, INeighborhood, Neighbor } from "./api.js";
|
|
4
4
|
/**
|
|
@@ -9,7 +9,7 @@ import type { IDistance, INeighborhood, Neighbor } from "./api.js";
|
|
|
9
9
|
* @typeParam D - spatial position for distance metric
|
|
10
10
|
* @typeParam T - indexed value
|
|
11
11
|
*/
|
|
12
|
-
export declare class Nearest<D, T> implements INeighborhood<D, T>, IDeref<Neighbor<T
|
|
12
|
+
export declare class Nearest<D, T> implements INeighborhood<D, T>, IDeref<Maybe<Neighbor<T>>> {
|
|
13
13
|
readonly dist: IDistance<D>;
|
|
14
14
|
readonly target: D;
|
|
15
15
|
readonly radius: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/distance",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.70",
|
|
4
4
|
"description": "N-dimensional distance metrics & K-nearest neighborhoods for point queries",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@thi.ng/api": "^8.
|
|
40
|
-
"@thi.ng/checks": "^3.6.
|
|
41
|
-
"@thi.ng/errors": "^2.5.
|
|
42
|
-
"@thi.ng/heaps": "^2.1.
|
|
43
|
-
"@thi.ng/math": "^5.10.
|
|
44
|
-
"@thi.ng/vectors": "^7.10.
|
|
39
|
+
"@thi.ng/api": "^8.11.0",
|
|
40
|
+
"@thi.ng/checks": "^3.6.2",
|
|
41
|
+
"@thi.ng/errors": "^2.5.5",
|
|
42
|
+
"@thi.ng/heaps": "^2.1.72",
|
|
43
|
+
"@thi.ng/math": "^5.10.11",
|
|
44
|
+
"@thi.ng/vectors": "^7.10.28"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@microsoft/api-extractor": "^7.43.0",
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
],
|
|
115
115
|
"year": 2021
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "8339d05ecc857e529c7325a9839c0063b89e728d\n"
|
|
118
118
|
}
|