@thi.ng/distance 2.4.103 → 2.4.105

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 (3) hide show
  1. package/CHANGELOG.md +3 -106
  2. package/README.md +1 -1
  3. package/package.json +9 -11
package/CHANGELOG.md CHANGED
@@ -1,9 +1,11 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2025-01-21T15:46:52Z
3
+ - **Last updated**: 2025-01-29T16:25:48Z
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.
7
+ Only versions published since **2022-01-01** are listed here.
8
+ Please consult the Git history for older version information.
7
9
  See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
8
10
 
9
11
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
@@ -34,108 +36,3 @@ and/or version bumps of transitive dependencies.
34
36
  #### 🚀 Features
35
37
 
36
38
  - update KNearest, add setters ([6b185f4](https://github.com/thi-ng/umbrella/commit/6b185f4))
37
-
38
- ## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/distance@2.1.0) (2021-11-17)
39
-
40
- #### 🚀 Features
41
-
42
- - Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
43
- Improving the overall build ergonomics
44
- - introduced a tools workspaces
45
- - imported it in all needed packages/examples
46
- - inclusive project root
47
-
48
- #### ♻️ Refactoring
49
-
50
- - testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
51
- this commit reverts (partly) changes made in:
52
- ef346d7a8753590dc9094108a3d861a8dbd5dd2c
53
- overall purpose is better testament ergonomics:
54
- instead of having to pass NODE_OPTIONS with every invocation
55
- having a binary to handle this for us.
56
-
57
- ### [2.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/distance@2.0.1) (2021-10-13)
58
-
59
- #### ♻️ Refactoring
60
-
61
- - update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
62
- - add .js suffix for all relative imports
63
- - update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
64
-
65
- # [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/distance@2.0.0) (2021-10-12)
66
-
67
- #### 🛑 Breaking changes
68
-
69
- - major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
70
- - BREAKING CHANGE: discontinue CommonJS & UMD versions
71
- - only ESM modules will be published from now on
72
- - CJS obsolete due to ESM support in recent versions of node:
73
- - i.e. launch NodeJS via:
74
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
75
- - in the node REPL use `await import(...)` instead of `require()`
76
- - UMD obsolete due to widespread browser support for ESM
77
- Also:
78
- - normalize/restructure/reorg all package.json files
79
- - cleanup all build scripts, remove obsolete
80
- - switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
81
-
82
- #### 🚀 Features
83
-
84
- - add/update argmin fns/params ([9c0f003](https://github.com/thi-ng/umbrella/commit/9c0f003))
85
- - add argminN() for numeric inputs
86
- - updata argmin fn to accept metric functions OR IDistance impls
87
- - add [@thi.ng/checks](https://github.com/thi-ng/umbrella/tree/main/packages/checks) as direct dependency (already was transitive)
88
-
89
- #### ♻️ Refactoring
90
-
91
- - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
92
- - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
93
- - update imports ([df599da](https://github.com/thi-ng/umbrella/commit/df599da))
94
- - update deps & imports in various pkgs ([e1cf29e](https://github.com/thi-ng/umbrella/commit/e1cf29e))
95
- - largely related to recent updates/restructuring of these packages:
96
- - api
97
- - defmulti
98
- - errors
99
- - logger
100
-
101
- ## [0.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/distance@0.3.0) (2021-04-19)
102
-
103
- #### 🚀 Features
104
-
105
- - add argmin*() fns ([72ed376](https://github.com/thi-ng/umbrella/commit/72ed376))
106
- - replace HAVERSINE w/ alts ([3a9a77a](https://github.com/thi-ng/umbrella/commit/3a9a77a))
107
- - add HAVERSINE_LATLON, HAVERSINE_LONLAT
108
- - update readme
109
-
110
- ## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/distance@0.2.0) (2021-03-30)
111
-
112
- #### 🚀 Features
113
-
114
- - add HAVERSINE preset, update readme ([cfc771e](https://github.com/thi-ng/umbrella/commit/cfc771e))
115
-
116
- ### [0.1.9](https://github.com/thi-ng/umbrella/tree/@thi.ng/distance@0.1.9) (2021-03-17)
117
-
118
- #### 🩹 Bug fixes
119
-
120
- - update KNearest ctor & heap handling ([#283](https://github.com/thi-ng/umbrella/issues/283)) ([e7cd6f1](https://github.com/thi-ng/umbrella/commit/e7cd6f1))
121
- - add k>0 assertion in ctor
122
-
123
- ### [0.1.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/distance@0.1.2) (2021-02-20)
124
-
125
- #### ♻️ Refactoring
126
-
127
- - use clamp0() ([8987946](https://github.com/thi-ng/umbrella/commit/8987946))
128
-
129
- ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/distance@0.1.0) (2021-01-21)
130
-
131
- #### 🚀 Features
132
-
133
- - add new package ([1b41aa4](https://github.com/thi-ng/umbrella/commit/1b41aa4))
134
- - update INeighborhood, KNearest ([be3e43d](https://github.com/thi-ng/umbrella/commit/be3e43d))
135
- - expose `dist` impl in INeighborhood
136
- - disable sort-by-default in KNearest
137
- - fix Knearest.reset dist metric
138
- - add docs
139
- - update tests
140
- - clamp search radius, minor other changes ([4a09a0f](https://github.com/thi-ng/umbrella/commit/4a09a0f))
141
- - add Manhattan metric, rename types, add docs ([4f0b199](https://github.com/thi-ng/umbrella/commit/4f0b199))
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
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
  > [!NOTE]
10
- > This is one of 200 standalone projects, maintained as part
10
+ > This is one of 201 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
  >
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/distance",
3
- "version": "2.4.103",
3
+ "version": "2.4.105",
4
4
  "description": "N-dimensional distance metrics & K-nearest neighborhoods for point queries",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -33,25 +33,23 @@
33
33
  "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
34
34
  "clean": "bun ../../tools/src/clean-package.ts",
35
35
  "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
36
- "doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
37
36
  "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
38
37
  "pub": "yarn npm publish --access public",
39
38
  "test": "bun test",
40
39
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
41
40
  },
42
41
  "dependencies": {
43
- "@thi.ng/api": "^8.11.17",
44
- "@thi.ng/checks": "^3.6.20",
45
- "@thi.ng/errors": "^2.5.23",
46
- "@thi.ng/heaps": "^2.1.89",
47
- "@thi.ng/math": "^5.11.17",
48
- "@thi.ng/vectors": "^7.12.17"
42
+ "@thi.ng/api": "^8.11.19",
43
+ "@thi.ng/checks": "^3.6.22",
44
+ "@thi.ng/errors": "^2.5.25",
45
+ "@thi.ng/heaps": "^2.1.91",
46
+ "@thi.ng/math": "^5.11.19",
47
+ "@thi.ng/vectors": "^7.12.19"
49
48
  },
50
49
  "devDependencies": {
51
- "@microsoft/api-extractor": "^7.48.1",
52
50
  "esbuild": "^0.24.2",
53
51
  "typedoc": "^0.27.6",
54
- "typescript": "^5.7.2"
52
+ "typescript": "^5.7.3"
55
53
  },
56
54
  "keywords": [
57
55
  "distance",
@@ -117,5 +115,5 @@
117
115
  ],
118
116
  "year": 2021
119
117
  },
120
- "gitHead": "22f6d518aed5951bb37b406c8ae85a6c3e6be517\n"
118
+ "gitHead": "fc1d498e8d4b690db873c30cc594352a804e7a65\n"
121
119
  }