@thi.ng/distance 3.0.16 → 3.0.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.
Files changed (2) hide show
  1. package/package.json +131 -131
  2. package/CHANGELOG.md +0 -52
package/package.json CHANGED
@@ -1,132 +1,132 @@
1
1
  {
2
- "name": "@thi.ng/distance",
3
- "version": "3.0.16",
4
- "description": "N-dimensional distance metrics & K-nearest neighborhoods for point queries",
5
- "type": "module",
6
- "module": "./index.js",
7
- "typings": "./index.d.ts",
8
- "sideEffects": false,
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/thi-ng/umbrella.git"
12
- },
13
- "homepage": "https://thi.ng/distance",
14
- "funding": [
15
- {
16
- "type": "github",
17
- "url": "https://github.com/sponsors/postspectacular"
18
- },
19
- {
20
- "type": "patreon",
21
- "url": "https://patreon.com/thing_umbrella"
22
- },
23
- {
24
- "type": "liberapay",
25
- "url": "https://liberapay.com/thi.ng"
26
- }
27
- ],
28
- "author": "Karsten Schmidt (https://thi.ng)",
29
- "license": "Apache-2.0",
30
- "scripts": {
31
- "build": "yarn build:esbuild && yarn build:decl",
32
- "build:decl": "tsc --declaration --emitDeclarationOnly",
33
- "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
34
- "clean": "bun ../../tools/src/clean-package.ts",
35
- "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
36
- "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
37
- "pub": "yarn npm publish --access public",
38
- "test": "bun test",
39
- "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
- },
41
- "dependencies": {
42
- "@thi.ng/api": "^8.12.2",
43
- "@thi.ng/checks": "^3.7.18",
44
- "@thi.ng/errors": "^2.5.42",
45
- "@thi.ng/heaps": "^2.1.108",
46
- "@thi.ng/math": "^5.12.0",
47
- "@thi.ng/vectors": "^8.6.6"
48
- },
49
- "devDependencies": {
50
- "esbuild": "^0.25.9",
51
- "typedoc": "^0.28.12",
52
- "typescript": "^5.9.2"
53
- },
54
- "keywords": [
55
- "2d",
56
- "3d",
57
- "4d",
58
- "distance",
59
- "eucledian",
60
- "haversine",
61
- "jaccard",
62
- "k-nearest",
63
- "manhattan",
64
- "metric",
65
- "nd",
66
- "neighborhood",
67
- "points",
68
- "query",
69
- "region",
70
- "spatial",
71
- "typescript",
72
- "vector"
73
- ],
74
- "publishConfig": {
75
- "access": "public"
76
- },
77
- "engines": {
78
- "node": ">=18"
79
- },
80
- "files": [
81
- "./*.js",
82
- "./*.d.ts"
83
- ],
84
- "exports": {
85
- ".": {
86
- "default": "./index.js"
87
- },
88
- "./api": {
89
- "default": "./api.js"
90
- },
91
- "./argmin": {
92
- "default": "./argmin.js"
93
- },
94
- "./eucledian": {
95
- "default": "./eucledian.js"
96
- },
97
- "./haversine": {
98
- "default": "./haversine.js"
99
- },
100
- "./jaccard": {
101
- "default": "./jaccard.js"
102
- },
103
- "./knearest": {
104
- "default": "./knearest.js"
105
- },
106
- "./manhattan": {
107
- "default": "./manhattan.js"
108
- },
109
- "./nearest": {
110
- "default": "./nearest.js"
111
- },
112
- "./radial": {
113
- "default": "./radial.js"
114
- },
115
- "./squared": {
116
- "default": "./squared.js"
117
- },
118
- "./untransformed": {
119
- "default": "./untransformed.js"
120
- }
121
- },
122
- "thi.ng": {
123
- "alias": "dist",
124
- "related": [
125
- "geom-accel",
126
- "k-means",
127
- "vectors"
128
- ],
129
- "year": 2021
130
- },
131
- "gitHead": "e215a3e8de3809736ba0042c93bd8703a5a1a337\n"
132
- }
2
+ "name": "@thi.ng/distance",
3
+ "version": "3.0.21",
4
+ "description": "N-dimensional distance metrics & K-nearest neighborhoods for point queries",
5
+ "type": "module",
6
+ "module": "./index.js",
7
+ "typings": "./index.d.ts",
8
+ "sideEffects": false,
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/thi-ng/umbrella.git"
12
+ },
13
+ "homepage": "https://thi.ng/distance",
14
+ "funding": [
15
+ {
16
+ "type": "github",
17
+ "url": "https://github.com/sponsors/postspectacular"
18
+ },
19
+ {
20
+ "type": "patreon",
21
+ "url": "https://patreon.com/thing_umbrella"
22
+ },
23
+ {
24
+ "type": "liberapay",
25
+ "url": "https://liberapay.com/thi.ng"
26
+ }
27
+ ],
28
+ "author": "Karsten Schmidt (https://thi.ng)",
29
+ "license": "Apache-2.0",
30
+ "scripts": {
31
+ "build": "yarn build:esbuild && yarn build:decl",
32
+ "build:decl": "tsc --declaration --emitDeclarationOnly",
33
+ "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
34
+ "clean": "bun ../../tools/src/clean-package.ts",
35
+ "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
36
+ "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
37
+ "pub": "npm publish --access public",
38
+ "test": "bun test",
39
+ "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
+ },
41
+ "dependencies": {
42
+ "@thi.ng/api": "^8.12.7",
43
+ "@thi.ng/checks": "^3.7.23",
44
+ "@thi.ng/errors": "^2.5.47",
45
+ "@thi.ng/heaps": "^2.1.113",
46
+ "@thi.ng/math": "^5.13.4",
47
+ "@thi.ng/vectors": "^8.6.11"
48
+ },
49
+ "devDependencies": {
50
+ "esbuild": "^0.25.11",
51
+ "typedoc": "^0.28.14",
52
+ "typescript": "^5.9.3"
53
+ },
54
+ "keywords": [
55
+ "2d",
56
+ "3d",
57
+ "4d",
58
+ "distance",
59
+ "eucledian",
60
+ "haversine",
61
+ "jaccard",
62
+ "k-nearest",
63
+ "manhattan",
64
+ "metric",
65
+ "nd",
66
+ "neighborhood",
67
+ "points",
68
+ "query",
69
+ "region",
70
+ "spatial",
71
+ "typescript",
72
+ "vector"
73
+ ],
74
+ "publishConfig": {
75
+ "access": "public"
76
+ },
77
+ "engines": {
78
+ "node": ">=18"
79
+ },
80
+ "files": [
81
+ "./*.js",
82
+ "./*.d.ts"
83
+ ],
84
+ "exports": {
85
+ ".": {
86
+ "default": "./index.js"
87
+ },
88
+ "./api": {
89
+ "default": "./api.js"
90
+ },
91
+ "./argmin": {
92
+ "default": "./argmin.js"
93
+ },
94
+ "./eucledian": {
95
+ "default": "./eucledian.js"
96
+ },
97
+ "./haversine": {
98
+ "default": "./haversine.js"
99
+ },
100
+ "./jaccard": {
101
+ "default": "./jaccard.js"
102
+ },
103
+ "./knearest": {
104
+ "default": "./knearest.js"
105
+ },
106
+ "./manhattan": {
107
+ "default": "./manhattan.js"
108
+ },
109
+ "./nearest": {
110
+ "default": "./nearest.js"
111
+ },
112
+ "./radial": {
113
+ "default": "./radial.js"
114
+ },
115
+ "./squared": {
116
+ "default": "./squared.js"
117
+ },
118
+ "./untransformed": {
119
+ "default": "./untransformed.js"
120
+ }
121
+ },
122
+ "thi.ng": {
123
+ "alias": "dist",
124
+ "related": [
125
+ "geom-accel",
126
+ "k-means",
127
+ "vectors"
128
+ ],
129
+ "year": 2021
130
+ },
131
+ "gitHead": "d977f819bcafdcb2b24c45f8d01a167fe29fc85a\n"
132
+ }
package/CHANGELOG.md DELETED
@@ -1,52 +0,0 @@
1
- # Change Log
2
-
3
- - **Last updated**: 2025-09-01T16:38:35Z
4
- - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
-
6
- All notable changes to this project will be documented in this file.
7
- Only versions published since **2022-01-01** are listed here.
8
- Please consult the Git history for older version information.
9
- See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
10
-
11
- **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
12
- and/or version bumps of transitive dependencies.
13
-
14
- # [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/distance@3.0.0) (2025-06-14)
15
-
16
- #### 🛑 Breaking changes
17
-
18
- - rename class Eucledian => Untransformed ([5ace461](https://github.com/thi-ng/umbrella/commit/5ace461))
19
- - BREAKING CHANGE: rename class `Eucledian` => `Untransformed`
20
- - migrate to own src file
21
- - update references
22
- - update doc strings
23
-
24
- #### 🚀 Features
25
-
26
- - add JACCARD n-D distance metric ([ea48648](https://github.com/thi-ng/umbrella/commit/ea48648))
27
-
28
- ### [2.4.70](https://github.com/thi-ng/umbrella/tree/@thi.ng/distance@2.4.70) (2024-04-20)
29
-
30
- #### ♻️ Refactoring
31
-
32
- - update type usage ([27fdbef](https://github.com/thi-ng/umbrella/commit/27fdbef))
33
-
34
- ## [2.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/distance@2.4.0) (2023-06-09)
35
-
36
- #### 🚀 Features
37
-
38
- - add INeighborhood.includesPosition() ([2018e41](https://github.com/thi-ng/umbrella/commit/2018e41))
39
- - update all impls: Nearest/KNearest/Radial
40
-
41
- ## [2.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/distance@2.3.0) (2023-05-28)
42
-
43
- #### 🚀 Features
44
-
45
- - add Radial neighborhood impls ([667fed9](https://github.com/thi-ng/umbrella/commit/667fed9))
46
- - add radial/2/3/N() factories
47
-
48
- ## [2.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/distance@2.2.0) (2023-02-05)
49
-
50
- #### 🚀 Features
51
-
52
- - update KNearest, add setters ([6b185f4](https://github.com/thi-ng/umbrella/commit/6b185f4))