spindb 0.62.0 → 0.62.1
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/README.md +7 -0
- package/dist/cli/commands/create.js +6 -6
- package/dist/cli/commands/create.js.map +1 -1
- package/dist/config/version.js +1 -1
- package/dist/engines/clickhouse/version-maps.js +6 -16
- package/dist/engines/clickhouse/version-maps.js.map +1 -1
- package/dist/engines/cockroachdb/version-maps.js +3 -22
- package/dist/engines/cockroachdb/version-maps.js.map +1 -1
- package/dist/engines/couchdb/version-maps.js +3 -22
- package/dist/engines/couchdb/version-maps.js.map +1 -1
- package/dist/engines/duckdb/version-maps.js +3 -22
- package/dist/engines/duckdb/version-maps.js.map +1 -1
- package/dist/engines/ferretdb/version-maps.js +2 -21
- package/dist/engines/ferretdb/version-maps.js.map +1 -1
- package/dist/engines/influxdb/version-maps.js +3 -22
- package/dist/engines/influxdb/version-maps.js.map +1 -1
- package/dist/engines/libsql/version-maps.js +3 -22
- package/dist/engines/libsql/version-maps.js.map +1 -1
- package/dist/engines/mariadb/version-maps.js +3 -22
- package/dist/engines/mariadb/version-maps.js.map +1 -1
- package/dist/engines/meilisearch/version-maps.js +3 -22
- package/dist/engines/meilisearch/version-maps.js.map +1 -1
- package/dist/engines/mongodb/version-maps.js +3 -22
- package/dist/engines/mongodb/version-maps.js.map +1 -1
- package/dist/engines/mysql/version-maps.js +3 -22
- package/dist/engines/mysql/version-maps.js.map +1 -1
- package/dist/engines/postgresql/version-maps.js +3 -22
- package/dist/engines/postgresql/version-maps.js.map +1 -1
- package/dist/engines/qdrant/version-maps.js +3 -22
- package/dist/engines/qdrant/version-maps.js.map +1 -1
- package/dist/engines/questdb/version-maps.js +3 -22
- package/dist/engines/questdb/version-maps.js.map +1 -1
- package/dist/engines/redis/version-maps.js +3 -22
- package/dist/engines/redis/version-maps.js.map +1 -1
- package/dist/engines/sqlite/version-maps.js +3 -22
- package/dist/engines/sqlite/version-maps.js.map +1 -1
- package/dist/engines/surrealdb/version-maps.js +3 -22
- package/dist/engines/surrealdb/version-maps.js.map +1 -1
- package/dist/engines/tigerbeetle/version-maps.js +3 -22
- package/dist/engines/tigerbeetle/version-maps.js.map +1 -1
- package/dist/engines/typedb/version-maps.js +3 -22
- package/dist/engines/typedb/version-maps.js.map +1 -1
- package/dist/engines/valkey/version-maps.js +3 -22
- package/dist/engines/valkey/version-maps.js.map +1 -1
- package/dist/engines/version-map-builder.js +33 -0
- package/dist/engines/version-map-builder.js.map +1 -0
- package/dist/engines/weaviate/version-maps.js +3 -22
- package/dist/engines/weaviate/version-maps.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-maps.js","sourceRoot":"","sources":["../../../engines/meilisearch/version-maps.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,cAAc,IAAI,oBAAoB,EACtC,yBAAyB,
|
|
1
|
+
{"version":3,"file":"version-maps.js","sourceRoot":"","sources":["../../../engines/meilisearch/version-maps.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,cAAc,IAAI,oBAAoB,EACtC,yBAAyB,GAC1B,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AAEnD,MAAM,MAAM,GAAG,aAAa,CAAA;AAE5B,MAAM,CAAC,MAAM,uBAAuB,GAA2B,eAAe,CAAC,MAAM,CAAC,CAAA;AAEtF,MAAM,CAAC,MAAM,wBAAwB,GAAG,yBAAyB,CAAC,MAAM,CAAC,CAAA;AAEzE,MAAM,UAAU,cAAc,CAAC,YAAoB;IACjD,OAAO,oBAAoB,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;AACnD,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,OAAe;IAC9C,MAAM,QAAQ,GAAG,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACtD,IAAI,QAAQ;QAAE,OAAO,QAAQ,CAAA;IAE7B,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IAChC,MAAM,aAAa,GACjB,KAAK,CAAC,MAAM,IAAI,CAAC;QACjB,KAAK,CAAC,MAAM,IAAI,CAAC;QACjB,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;IAErC,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,QAAQ,CACN,wBAAwB,OAAO,sDAAsD,CACtF,CAAA;IACH,CAAC;SAAM,CAAC;QACN,QAAQ,CACN,wBAAwB,OAAO,oDAAoD,CACpF,CAAA;IACH,CAAC;IACD,OAAO,OAAO,CAAA;AAChB,CAAC"}
|
|
@@ -8,30 +8,11 @@
|
|
|
8
8
|
* convention used by `core/version-migration.ts:getMajorVersion()`. 1-part
|
|
9
9
|
* keys '7' and '8' still resolve via the MAP (LTS-pick: '8' → 8.0.23, not 8.2.9).
|
|
10
10
|
*/
|
|
11
|
-
import { resolveVersion as hostdbResolveVersion,
|
|
11
|
+
import { resolveVersion as hostdbResolveVersion, listVersions, } from 'hostdb';
|
|
12
|
+
import { buildVersionMap } from '../version-map-builder.js';
|
|
12
13
|
import { logDebug } from '../../core/error-handler.js';
|
|
13
14
|
const ENGINE = 'mongodb';
|
|
14
|
-
|
|
15
|
-
const map = {};
|
|
16
|
-
for (const major of getSupportedMajorVersions(ENGINE)) {
|
|
17
|
-
const r = hostdbResolveVersion(ENGINE, major);
|
|
18
|
-
if (r)
|
|
19
|
-
map[major] = r;
|
|
20
|
-
}
|
|
21
|
-
for (const minor of listVersions(ENGINE, { format: 'major-minor' })) {
|
|
22
|
-
const r = hostdbResolveVersion(ENGINE, minor);
|
|
23
|
-
if (r)
|
|
24
|
-
map[minor] = r;
|
|
25
|
-
}
|
|
26
|
-
for (const full of listVersions(ENGINE, {
|
|
27
|
-
format: 'full',
|
|
28
|
-
includePrerelease: true,
|
|
29
|
-
})) {
|
|
30
|
-
map[full] = full;
|
|
31
|
-
}
|
|
32
|
-
return map;
|
|
33
|
-
}
|
|
34
|
-
export const MONGODB_VERSION_MAP = buildVersionMap();
|
|
15
|
+
export const MONGODB_VERSION_MAP = buildVersionMap(ENGINE);
|
|
35
16
|
export const SUPPORTED_MAJOR_VERSIONS = listVersions(ENGINE, {
|
|
36
17
|
format: 'major-minor',
|
|
37
18
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-maps.js","sourceRoot":"","sources":["../../../engines/mongodb/version-maps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EACL,cAAc,IAAI,oBAAoB,EACtC,
|
|
1
|
+
{"version":3,"file":"version-maps.js","sourceRoot":"","sources":["../../../engines/mongodb/version-maps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EACL,cAAc,IAAI,oBAAoB,EACtC,YAAY,GACb,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AAEnD,MAAM,MAAM,GAAG,SAAS,CAAA;AAExB,MAAM,CAAC,MAAM,mBAAmB,GAA2B,eAAe,CAAC,MAAM,CAAC,CAAA;AAElF,MAAM,CAAC,MAAM,wBAAwB,GAAG,YAAY,CAAC,MAAM,EAAE;IAC3D,MAAM,EAAE,aAAa;CACtB,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAA2B,mBAAmB,CAAA;AAE/E,MAAM,UAAU,cAAc,CAAC,YAAoB;IACjD,OAAO,oBAAoB,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;AACnD,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,OAAe;IAC9C,MAAM,QAAQ,GAAG,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACtD,IAAI,QAAQ;QAAE,OAAO,QAAQ,CAAA;IAC7B,QAAQ,CACN,oBAAoB,OAAO,oDAAoD,CAChF,CAAA;IACD,OAAO,OAAO,CAAA;AAChB,CAAC"}
|
|
@@ -12,30 +12,11 @@
|
|
|
12
12
|
* containers keep working — hostdb's `enabled !== false` check keeps them in
|
|
13
13
|
* the available-versions list; only `enabled: false` removes a version entirely.
|
|
14
14
|
*/
|
|
15
|
-
import { resolveVersion as hostdbResolveVersion,
|
|
15
|
+
import { resolveVersion as hostdbResolveVersion, listVersions, } from 'hostdb';
|
|
16
|
+
import { buildVersionMap } from '../version-map-builder.js';
|
|
16
17
|
import { logDebug } from '../../core/error-handler.js';
|
|
17
18
|
const ENGINE = 'mysql';
|
|
18
|
-
|
|
19
|
-
const map = {};
|
|
20
|
-
for (const major of getSupportedMajorVersions(ENGINE)) {
|
|
21
|
-
const r = hostdbResolveVersion(ENGINE, major);
|
|
22
|
-
if (r)
|
|
23
|
-
map[major] = r;
|
|
24
|
-
}
|
|
25
|
-
for (const minor of listVersions(ENGINE, { format: 'major-minor' })) {
|
|
26
|
-
const r = hostdbResolveVersion(ENGINE, minor);
|
|
27
|
-
if (r)
|
|
28
|
-
map[minor] = r;
|
|
29
|
-
}
|
|
30
|
-
for (const full of listVersions(ENGINE, {
|
|
31
|
-
format: 'full',
|
|
32
|
-
includePrerelease: true,
|
|
33
|
-
})) {
|
|
34
|
-
map[full] = full;
|
|
35
|
-
}
|
|
36
|
-
return map;
|
|
37
|
-
}
|
|
38
|
-
export const MYSQL_VERSION_MAP = buildVersionMap();
|
|
19
|
+
export const MYSQL_VERSION_MAP = buildVersionMap(ENGINE);
|
|
39
20
|
export const SUPPORTED_MAJOR_VERSIONS = listVersions(ENGINE, {
|
|
40
21
|
format: 'major-minor',
|
|
41
22
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-maps.js","sourceRoot":"","sources":["../../../engines/mysql/version-maps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EACL,cAAc,IAAI,oBAAoB,EACtC,
|
|
1
|
+
{"version":3,"file":"version-maps.js","sourceRoot":"","sources":["../../../engines/mysql/version-maps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EACL,cAAc,IAAI,oBAAoB,EACtC,YAAY,GACb,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AAEnD,MAAM,MAAM,GAAG,OAAO,CAAA;AAEtB,MAAM,CAAC,MAAM,iBAAiB,GAA2B,eAAe,CAAC,MAAM,CAAC,CAAA;AAEhF,MAAM,CAAC,MAAM,wBAAwB,GAAG,YAAY,CAAC,MAAM,EAAE;IAC3D,MAAM,EAAE,aAAa;CACtB,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAA2B,iBAAiB,CAAA;AAE7E,MAAM,UAAU,cAAc,CAAC,YAAoB;IACjD,OAAO,oBAAoB,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;AACnD,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,OAAe;IAC9C,MAAM,QAAQ,GAAG,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACtD,IAAI,QAAQ;QAAE,OAAO,QAAQ,CAAA;IAE7B,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IAChC,MAAM,aAAa,GACjB,KAAK,CAAC,MAAM,IAAI,CAAC;QACjB,KAAK,CAAC,MAAM,IAAI,CAAC;QACjB,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;IAErC,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,QAAQ,CACN,kBAAkB,OAAO,sDAAsD,CAChF,CAAA;IACH,CAAC;SAAM,CAAC;QACN,QAAQ,CACN,kBAAkB,OAAO,oDAAoD,CAC9E,CAAA;IACH,CAAC;IACD,OAAO,OAAO,CAAA;AAChB,CAAC"}
|
|
@@ -4,29 +4,10 @@
|
|
|
4
4
|
* Thin wrapper around the `hostdb` npm package. See engines/sqlite/version-maps.ts
|
|
5
5
|
* for the architecture rationale — hostdb is the single source of truth.
|
|
6
6
|
*/
|
|
7
|
-
import { resolveVersion as hostdbResolveVersion, getSupportedMajorVersions,
|
|
7
|
+
import { resolveVersion as hostdbResolveVersion, getSupportedMajorVersions, } from 'hostdb';
|
|
8
|
+
import { buildVersionMap } from '../version-map-builder.js';
|
|
8
9
|
const ENGINE = 'postgresql';
|
|
9
|
-
|
|
10
|
-
const map = {};
|
|
11
|
-
for (const major of getSupportedMajorVersions(ENGINE)) {
|
|
12
|
-
const r = hostdbResolveVersion(ENGINE, major);
|
|
13
|
-
if (r)
|
|
14
|
-
map[major] = r;
|
|
15
|
-
}
|
|
16
|
-
for (const minor of listVersions(ENGINE, { format: 'major-minor' })) {
|
|
17
|
-
const r = hostdbResolveVersion(ENGINE, minor);
|
|
18
|
-
if (r)
|
|
19
|
-
map[minor] = r;
|
|
20
|
-
}
|
|
21
|
-
for (const full of listVersions(ENGINE, {
|
|
22
|
-
format: 'full',
|
|
23
|
-
includePrerelease: true,
|
|
24
|
-
})) {
|
|
25
|
-
map[full] = full;
|
|
26
|
-
}
|
|
27
|
-
return map;
|
|
28
|
-
}
|
|
29
|
-
export const POSTGRESQL_VERSION_MAP = buildVersionMap();
|
|
10
|
+
export const POSTGRESQL_VERSION_MAP = buildVersionMap(ENGINE);
|
|
30
11
|
export const SUPPORTED_MAJOR_VERSIONS = getSupportedMajorVersions(ENGINE);
|
|
31
12
|
export function getFullVersion(majorVersion) {
|
|
32
13
|
return hostdbResolveVersion(ENGINE, majorVersion);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-maps.js","sourceRoot":"","sources":["../../../engines/postgresql/version-maps.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,cAAc,IAAI,oBAAoB,EACtC,yBAAyB,
|
|
1
|
+
{"version":3,"file":"version-maps.js","sourceRoot":"","sources":["../../../engines/postgresql/version-maps.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,cAAc,IAAI,oBAAoB,EACtC,yBAAyB,GAC1B,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAExD,MAAM,MAAM,GAAG,YAAY,CAAA;AAE3B,MAAM,CAAC,MAAM,sBAAsB,GAA2B,eAAe,CAAC,MAAM,CAAC,CAAA;AAErF,MAAM,CAAC,MAAM,wBAAwB,GAAG,yBAAyB,CAAC,MAAM,CAAC,CAAA;AAEzE,MAAM,UAAU,cAAc,CAAC,YAAoB;IACjD,OAAO,oBAAoB,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;AACnD,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,OAAe;IAC9C,MAAM,QAAQ,GAAG,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACtD,IAAI,QAAQ;QAAE,OAAO,QAAQ,CAAA;IAC7B,OAAO,CAAC,IAAI,CACV,uBAAuB,OAAO,oDAAoD,CACnF,CAAA;IACD,OAAO,OAAO,CAAA;AAChB,CAAC"}
|
|
@@ -4,30 +4,11 @@
|
|
|
4
4
|
* Thin wrapper around the `hostdb` npm package. See engines/sqlite/version-maps.ts
|
|
5
5
|
* for the architecture rationale — hostdb is the single source of truth.
|
|
6
6
|
*/
|
|
7
|
-
import { resolveVersion as hostdbResolveVersion, getSupportedMajorVersions,
|
|
7
|
+
import { resolveVersion as hostdbResolveVersion, getSupportedMajorVersions, } from 'hostdb';
|
|
8
|
+
import { buildVersionMap } from '../version-map-builder.js';
|
|
8
9
|
import { logDebug } from '../../core/error-handler.js';
|
|
9
10
|
const ENGINE = 'qdrant';
|
|
10
|
-
|
|
11
|
-
const map = {};
|
|
12
|
-
for (const major of getSupportedMajorVersions(ENGINE)) {
|
|
13
|
-
const r = hostdbResolveVersion(ENGINE, major);
|
|
14
|
-
if (r)
|
|
15
|
-
map[major] = r;
|
|
16
|
-
}
|
|
17
|
-
for (const minor of listVersions(ENGINE, { format: 'major-minor' })) {
|
|
18
|
-
const r = hostdbResolveVersion(ENGINE, minor);
|
|
19
|
-
if (r)
|
|
20
|
-
map[minor] = r;
|
|
21
|
-
}
|
|
22
|
-
for (const full of listVersions(ENGINE, {
|
|
23
|
-
format: 'full',
|
|
24
|
-
includePrerelease: true,
|
|
25
|
-
})) {
|
|
26
|
-
map[full] = full;
|
|
27
|
-
}
|
|
28
|
-
return map;
|
|
29
|
-
}
|
|
30
|
-
export const QDRANT_VERSION_MAP = buildVersionMap();
|
|
11
|
+
export const QDRANT_VERSION_MAP = buildVersionMap(ENGINE);
|
|
31
12
|
export const SUPPORTED_MAJOR_VERSIONS = getSupportedMajorVersions(ENGINE);
|
|
32
13
|
export function getFullVersion(majorVersion) {
|
|
33
14
|
return hostdbResolveVersion(ENGINE, majorVersion);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-maps.js","sourceRoot":"","sources":["../../../engines/qdrant/version-maps.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,cAAc,IAAI,oBAAoB,EACtC,yBAAyB,
|
|
1
|
+
{"version":3,"file":"version-maps.js","sourceRoot":"","sources":["../../../engines/qdrant/version-maps.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,cAAc,IAAI,oBAAoB,EACtC,yBAAyB,GAC1B,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AAEnD,MAAM,MAAM,GAAG,QAAQ,CAAA;AAEvB,MAAM,CAAC,MAAM,kBAAkB,GAA2B,eAAe,CAAC,MAAM,CAAC,CAAA;AAEjF,MAAM,CAAC,MAAM,wBAAwB,GAAG,yBAAyB,CAAC,MAAM,CAAC,CAAA;AAEzE,MAAM,UAAU,cAAc,CAAC,YAAoB;IACjD,OAAO,oBAAoB,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;AACnD,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,OAAe;IAC9C,MAAM,QAAQ,GAAG,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACtD,IAAI,QAAQ;QAAE,OAAO,QAAQ,CAAA;IAE7B,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IAChC,MAAM,aAAa,GACjB,KAAK,CAAC,MAAM,IAAI,CAAC;QACjB,KAAK,CAAC,MAAM,IAAI,CAAC;QACjB,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;IAErC,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,QAAQ,CACN,mBAAmB,OAAO,sDAAsD,CACjF,CAAA;IACH,CAAC;SAAM,CAAC;QACN,QAAQ,CACN,mBAAmB,OAAO,oDAAoD,CAC/E,CAAA;IACH,CAAC;IACD,OAAO,OAAO,CAAA;AAChB,CAAC"}
|
|
@@ -4,29 +4,10 @@
|
|
|
4
4
|
* Thin wrapper around the `hostdb` npm package. See engines/sqlite/version-maps.ts
|
|
5
5
|
* for the architecture rationale — hostdb is the single source of truth.
|
|
6
6
|
*/
|
|
7
|
-
import { resolveVersion as hostdbResolveVersion, getSupportedMajorVersions,
|
|
7
|
+
import { resolveVersion as hostdbResolveVersion, getSupportedMajorVersions, } from 'hostdb';
|
|
8
|
+
import { buildVersionMap } from '../version-map-builder.js';
|
|
8
9
|
const ENGINE = 'questdb';
|
|
9
|
-
|
|
10
|
-
const map = {};
|
|
11
|
-
for (const major of getSupportedMajorVersions(ENGINE)) {
|
|
12
|
-
const r = hostdbResolveVersion(ENGINE, major);
|
|
13
|
-
if (r)
|
|
14
|
-
map[major] = r;
|
|
15
|
-
}
|
|
16
|
-
for (const minor of listVersions(ENGINE, { format: 'major-minor' })) {
|
|
17
|
-
const r = hostdbResolveVersion(ENGINE, minor);
|
|
18
|
-
if (r)
|
|
19
|
-
map[minor] = r;
|
|
20
|
-
}
|
|
21
|
-
for (const full of listVersions(ENGINE, {
|
|
22
|
-
format: 'full',
|
|
23
|
-
includePrerelease: true,
|
|
24
|
-
})) {
|
|
25
|
-
map[full] = full;
|
|
26
|
-
}
|
|
27
|
-
return map;
|
|
28
|
-
}
|
|
29
|
-
export const QUESTDB_VERSION_MAP = buildVersionMap();
|
|
10
|
+
export const QUESTDB_VERSION_MAP = buildVersionMap(ENGINE);
|
|
30
11
|
export const SUPPORTED_MAJOR_VERSIONS = getSupportedMajorVersions(ENGINE);
|
|
31
12
|
export const FALLBACK_VERSION_MAP = QUESTDB_VERSION_MAP;
|
|
32
13
|
export function normalizeVersion(version) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-maps.js","sourceRoot":"","sources":["../../../engines/questdb/version-maps.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,cAAc,IAAI,oBAAoB,EACtC,yBAAyB,
|
|
1
|
+
{"version":3,"file":"version-maps.js","sourceRoot":"","sources":["../../../engines/questdb/version-maps.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,cAAc,IAAI,oBAAoB,EACtC,yBAAyB,GAC1B,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAExD,MAAM,MAAM,GAAG,SAAS,CAAA;AAExB,MAAM,CAAC,MAAM,mBAAmB,GAA2B,eAAe,CAAC,MAAM,CAAC,CAAA;AAElF,MAAM,CAAC,MAAM,wBAAwB,GAAG,yBAAyB,CAAC,MAAM,CAAC,CAAA;AAEzE,MAAM,CAAC,MAAM,oBAAoB,GAAG,mBAAmB,CAAA;AAEvD,MAAM,UAAU,gBAAgB,CAAC,OAAe;IAC9C,OAAO,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,OAAO,CAAA;AACzD,CAAC"}
|
|
@@ -4,30 +4,11 @@
|
|
|
4
4
|
* Thin wrapper around the `hostdb` npm package. See engines/sqlite/version-maps.ts
|
|
5
5
|
* for the architecture rationale — hostdb is the single source of truth.
|
|
6
6
|
*/
|
|
7
|
-
import { resolveVersion as hostdbResolveVersion, getSupportedMajorVersions,
|
|
7
|
+
import { resolveVersion as hostdbResolveVersion, getSupportedMajorVersions, } from 'hostdb';
|
|
8
|
+
import { buildVersionMap } from '../version-map-builder.js';
|
|
8
9
|
import { logDebug } from '../../core/error-handler.js';
|
|
9
10
|
const ENGINE = 'redis';
|
|
10
|
-
|
|
11
|
-
const map = {};
|
|
12
|
-
for (const major of getSupportedMajorVersions(ENGINE)) {
|
|
13
|
-
const r = hostdbResolveVersion(ENGINE, major);
|
|
14
|
-
if (r)
|
|
15
|
-
map[major] = r;
|
|
16
|
-
}
|
|
17
|
-
for (const minor of listVersions(ENGINE, { format: 'major-minor' })) {
|
|
18
|
-
const r = hostdbResolveVersion(ENGINE, minor);
|
|
19
|
-
if (r)
|
|
20
|
-
map[minor] = r;
|
|
21
|
-
}
|
|
22
|
-
for (const full of listVersions(ENGINE, {
|
|
23
|
-
format: 'full',
|
|
24
|
-
includePrerelease: true,
|
|
25
|
-
})) {
|
|
26
|
-
map[full] = full;
|
|
27
|
-
}
|
|
28
|
-
return map;
|
|
29
|
-
}
|
|
30
|
-
export const REDIS_VERSION_MAP = buildVersionMap();
|
|
11
|
+
export const REDIS_VERSION_MAP = buildVersionMap(ENGINE);
|
|
31
12
|
export const SUPPORTED_MAJOR_VERSIONS = getSupportedMajorVersions(ENGINE);
|
|
32
13
|
export function getFullVersion(majorVersion) {
|
|
33
14
|
return hostdbResolveVersion(ENGINE, majorVersion);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-maps.js","sourceRoot":"","sources":["../../../engines/redis/version-maps.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,cAAc,IAAI,oBAAoB,EACtC,yBAAyB,
|
|
1
|
+
{"version":3,"file":"version-maps.js","sourceRoot":"","sources":["../../../engines/redis/version-maps.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,cAAc,IAAI,oBAAoB,EACtC,yBAAyB,GAC1B,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AAEnD,MAAM,MAAM,GAAG,OAAO,CAAA;AAEtB,MAAM,CAAC,MAAM,iBAAiB,GAA2B,eAAe,CAAC,MAAM,CAAC,CAAA;AAEhF,MAAM,CAAC,MAAM,wBAAwB,GAAG,yBAAyB,CAAC,MAAM,CAAC,CAAA;AAEzE,MAAM,UAAU,cAAc,CAAC,YAAoB;IACjD,OAAO,oBAAoB,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;AACnD,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,OAAe;IAC9C,MAAM,QAAQ,GAAG,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACtD,IAAI,QAAQ;QAAE,OAAO,QAAQ,CAAA;IAE7B,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IAChC,MAAM,aAAa,GACjB,KAAK,CAAC,MAAM,IAAI,CAAC;QACjB,KAAK,CAAC,MAAM,IAAI,CAAC;QACjB,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;IAErC,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,QAAQ,CACN,kBAAkB,OAAO,sDAAsD,CAChF,CAAA;IACH,CAAC;SAAM,CAAC;QACN,QAAQ,CACN,kBAAkB,OAAO,oDAAoD,CAC9E,CAAA;IACH,CAAC;IACD,OAAO,OAAO,CAAA;AAChB,CAAC"}
|
|
@@ -9,30 +9,11 @@
|
|
|
9
9
|
*
|
|
10
10
|
* The exports below preserve the legacy shape so call sites don't change.
|
|
11
11
|
*/
|
|
12
|
-
import { resolveVersion as hostdbResolveVersion, getSupportedMajorVersions,
|
|
12
|
+
import { resolveVersion as hostdbResolveVersion, getSupportedMajorVersions, } from 'hostdb';
|
|
13
|
+
import { buildVersionMap } from '../version-map-builder.js';
|
|
13
14
|
import { logDebug } from '../../core/error-handler.js';
|
|
14
15
|
const ENGINE = 'sqlite';
|
|
15
|
-
|
|
16
|
-
const map = {};
|
|
17
|
-
for (const major of getSupportedMajorVersions(ENGINE)) {
|
|
18
|
-
const r = hostdbResolveVersion(ENGINE, major);
|
|
19
|
-
if (r)
|
|
20
|
-
map[major] = r;
|
|
21
|
-
}
|
|
22
|
-
for (const minor of listVersions(ENGINE, { format: 'major-minor' })) {
|
|
23
|
-
const r = hostdbResolveVersion(ENGINE, minor);
|
|
24
|
-
if (r)
|
|
25
|
-
map[minor] = r;
|
|
26
|
-
}
|
|
27
|
-
for (const full of listVersions(ENGINE, {
|
|
28
|
-
format: 'full',
|
|
29
|
-
includePrerelease: true,
|
|
30
|
-
})) {
|
|
31
|
-
map[full] = full;
|
|
32
|
-
}
|
|
33
|
-
return map;
|
|
34
|
-
}
|
|
35
|
-
export const SQLITE_VERSION_MAP = buildVersionMap();
|
|
16
|
+
export const SQLITE_VERSION_MAP = buildVersionMap(ENGINE);
|
|
36
17
|
export const SUPPORTED_MAJOR_VERSIONS = getSupportedMajorVersions(ENGINE);
|
|
37
18
|
export function getFullVersion(majorVersion) {
|
|
38
19
|
return hostdbResolveVersion(ENGINE, majorVersion);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-maps.js","sourceRoot":"","sources":["../../../engines/sqlite/version-maps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EACL,cAAc,IAAI,oBAAoB,EACtC,yBAAyB,
|
|
1
|
+
{"version":3,"file":"version-maps.js","sourceRoot":"","sources":["../../../engines/sqlite/version-maps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EACL,cAAc,IAAI,oBAAoB,EACtC,yBAAyB,GAC1B,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AAEnD,MAAM,MAAM,GAAG,QAAQ,CAAA;AAEvB,MAAM,CAAC,MAAM,kBAAkB,GAA2B,eAAe,CAAC,MAAM,CAAC,CAAA;AAEjF,MAAM,CAAC,MAAM,wBAAwB,GAAG,yBAAyB,CAAC,MAAM,CAAC,CAAA;AAEzE,MAAM,UAAU,cAAc,CAAC,YAAoB;IACjD,OAAO,oBAAoB,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;AACnD,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,OAAe;IAC9C,MAAM,QAAQ,GAAG,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACtD,IAAI,QAAQ;QAAE,OAAO,QAAQ,CAAA;IAC7B,QAAQ,CACN,mBAAmB,OAAO,oDAAoD,CAC/E,CAAA;IACD,OAAO,OAAO,CAAA;AAChB,CAAC"}
|
|
@@ -4,29 +4,10 @@
|
|
|
4
4
|
* Thin wrapper around the `hostdb` npm package. See engines/sqlite/version-maps.ts
|
|
5
5
|
* for the architecture rationale — hostdb is the single source of truth.
|
|
6
6
|
*/
|
|
7
|
-
import { resolveVersion as hostdbResolveVersion, getSupportedMajorVersions,
|
|
7
|
+
import { resolveVersion as hostdbResolveVersion, getSupportedMajorVersions, } from 'hostdb';
|
|
8
|
+
import { buildVersionMap } from '../version-map-builder.js';
|
|
8
9
|
const ENGINE = 'surrealdb';
|
|
9
|
-
|
|
10
|
-
const map = {};
|
|
11
|
-
for (const major of getSupportedMajorVersions(ENGINE)) {
|
|
12
|
-
const r = hostdbResolveVersion(ENGINE, major);
|
|
13
|
-
if (r)
|
|
14
|
-
map[major] = r;
|
|
15
|
-
}
|
|
16
|
-
for (const minor of listVersions(ENGINE, { format: 'major-minor' })) {
|
|
17
|
-
const r = hostdbResolveVersion(ENGINE, minor);
|
|
18
|
-
if (r)
|
|
19
|
-
map[minor] = r;
|
|
20
|
-
}
|
|
21
|
-
for (const full of listVersions(ENGINE, {
|
|
22
|
-
format: 'full',
|
|
23
|
-
includePrerelease: true,
|
|
24
|
-
})) {
|
|
25
|
-
map[full] = full;
|
|
26
|
-
}
|
|
27
|
-
return map;
|
|
28
|
-
}
|
|
29
|
-
export const SURREALDB_VERSION_MAP = buildVersionMap();
|
|
10
|
+
export const SURREALDB_VERSION_MAP = buildVersionMap(ENGINE);
|
|
30
11
|
export const SUPPORTED_MAJOR_VERSIONS = getSupportedMajorVersions(ENGINE);
|
|
31
12
|
export const DEFAULT_VERSION = SUPPORTED_MAJOR_VERSIONS[0] ?? '2';
|
|
32
13
|
export function normalizeVersion(version) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-maps.js","sourceRoot":"","sources":["../../../engines/surrealdb/version-maps.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,cAAc,IAAI,oBAAoB,EACtC,yBAAyB,
|
|
1
|
+
{"version":3,"file":"version-maps.js","sourceRoot":"","sources":["../../../engines/surrealdb/version-maps.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,cAAc,IAAI,oBAAoB,EACtC,yBAAyB,GAC1B,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAExD,MAAM,MAAM,GAAG,WAAW,CAAA;AAE1B,MAAM,CAAC,MAAM,qBAAqB,GAA2B,eAAe,CAAC,MAAM,CAAC,CAAA;AAEpF,MAAM,CAAC,MAAM,wBAAwB,GAAG,yBAAyB,CAAC,MAAM,CAAC,CAAA;AAEzE,MAAM,CAAC,MAAM,eAAe,GAAG,wBAAwB,CAAC,CAAC,CAAC,IAAI,GAAG,CAAA;AAEjE,MAAM,UAAU,gBAAgB,CAAC,OAAe;IAC9C,OAAO,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,OAAO,CAAA;AACzD,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,OAAe;IAChD,OAAO,OAAO,IAAI,qBAAqB,CAAA;AACzC,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,YAAoB;IACjD,OAAO,qBAAqB,CAAC,YAAY,CAAC,CAAA;AAC5C,CAAC"}
|
|
@@ -7,30 +7,11 @@
|
|
|
7
7
|
* SUPPORTED_MAJOR_VERSIONS is 2-part (e.g., '0.16') to preserve the existing
|
|
8
8
|
* spindb convention. The 1-part key '0' still resolves via the MAP.
|
|
9
9
|
*/
|
|
10
|
-
import { resolveVersion as hostdbResolveVersion,
|
|
10
|
+
import { resolveVersion as hostdbResolveVersion, listVersions, } from 'hostdb';
|
|
11
|
+
import { buildVersionMap } from '../version-map-builder.js';
|
|
11
12
|
import { logDebug } from '../../core/error-handler.js';
|
|
12
13
|
const ENGINE = 'tigerbeetle';
|
|
13
|
-
|
|
14
|
-
const map = {};
|
|
15
|
-
for (const major of getSupportedMajorVersions(ENGINE)) {
|
|
16
|
-
const r = hostdbResolveVersion(ENGINE, major);
|
|
17
|
-
if (r)
|
|
18
|
-
map[major] = r;
|
|
19
|
-
}
|
|
20
|
-
for (const minor of listVersions(ENGINE, { format: 'major-minor' })) {
|
|
21
|
-
const r = hostdbResolveVersion(ENGINE, minor);
|
|
22
|
-
if (r)
|
|
23
|
-
map[minor] = r;
|
|
24
|
-
}
|
|
25
|
-
for (const full of listVersions(ENGINE, {
|
|
26
|
-
format: 'full',
|
|
27
|
-
includePrerelease: true,
|
|
28
|
-
})) {
|
|
29
|
-
map[full] = full;
|
|
30
|
-
}
|
|
31
|
-
return map;
|
|
32
|
-
}
|
|
33
|
-
export const TIGERBEETLE_VERSION_MAP = buildVersionMap();
|
|
14
|
+
export const TIGERBEETLE_VERSION_MAP = buildVersionMap(ENGINE);
|
|
34
15
|
export const SUPPORTED_MAJOR_VERSIONS = listVersions(ENGINE, {
|
|
35
16
|
format: 'major-minor',
|
|
36
17
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-maps.js","sourceRoot":"","sources":["../../../engines/tigerbeetle/version-maps.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EACL,cAAc,IAAI,oBAAoB,EACtC,
|
|
1
|
+
{"version":3,"file":"version-maps.js","sourceRoot":"","sources":["../../../engines/tigerbeetle/version-maps.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EACL,cAAc,IAAI,oBAAoB,EACtC,YAAY,GACb,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AAEnD,MAAM,MAAM,GAAG,aAAa,CAAA;AAE5B,MAAM,CAAC,MAAM,uBAAuB,GAA2B,eAAe,CAAC,MAAM,CAAC,CAAA;AAEtF,MAAM,CAAC,MAAM,wBAAwB,GAAG,YAAY,CAAC,MAAM,EAAE;IAC3D,MAAM,EAAE,aAAa;CACtB,CAAC,CAAA;AAEF,MAAM,UAAU,cAAc,CAAC,YAAoB;IACjD,OAAO,oBAAoB,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;AACnD,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,OAAe;IAC9C,MAAM,QAAQ,GAAG,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACtD,IAAI,QAAQ;QAAE,OAAO,QAAQ,CAAA;IAC7B,QAAQ,CACN,wBAAwB,OAAO,oDAAoD,CACpF,CAAA;IACD,OAAO,OAAO,CAAA;AAChB,CAAC"}
|
|
@@ -4,30 +4,11 @@
|
|
|
4
4
|
* Thin wrapper around the `hostdb` npm package. See engines/sqlite/version-maps.ts
|
|
5
5
|
* for the architecture rationale — hostdb is the single source of truth.
|
|
6
6
|
*/
|
|
7
|
-
import { resolveVersion as hostdbResolveVersion, getSupportedMajorVersions,
|
|
7
|
+
import { resolveVersion as hostdbResolveVersion, getSupportedMajorVersions, } from 'hostdb';
|
|
8
|
+
import { buildVersionMap } from '../version-map-builder.js';
|
|
8
9
|
import { logDebug } from '../../core/error-handler.js';
|
|
9
10
|
const ENGINE = 'typedb';
|
|
10
|
-
|
|
11
|
-
const map = {};
|
|
12
|
-
for (const major of getSupportedMajorVersions(ENGINE)) {
|
|
13
|
-
const r = hostdbResolveVersion(ENGINE, major);
|
|
14
|
-
if (r)
|
|
15
|
-
map[major] = r;
|
|
16
|
-
}
|
|
17
|
-
for (const minor of listVersions(ENGINE, { format: 'major-minor' })) {
|
|
18
|
-
const r = hostdbResolveVersion(ENGINE, minor);
|
|
19
|
-
if (r)
|
|
20
|
-
map[minor] = r;
|
|
21
|
-
}
|
|
22
|
-
for (const full of listVersions(ENGINE, {
|
|
23
|
-
format: 'full',
|
|
24
|
-
includePrerelease: true,
|
|
25
|
-
})) {
|
|
26
|
-
map[full] = full;
|
|
27
|
-
}
|
|
28
|
-
return map;
|
|
29
|
-
}
|
|
30
|
-
export const TYPEDB_VERSION_MAP = buildVersionMap();
|
|
11
|
+
export const TYPEDB_VERSION_MAP = buildVersionMap(ENGINE);
|
|
31
12
|
export const SUPPORTED_MAJOR_VERSIONS = getSupportedMajorVersions(ENGINE);
|
|
32
13
|
export const DEFAULT_VERSION = SUPPORTED_MAJOR_VERSIONS[0] ?? '3';
|
|
33
14
|
export function normalizeVersion(version) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-maps.js","sourceRoot":"","sources":["../../../engines/typedb/version-maps.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,cAAc,IAAI,oBAAoB,EACtC,yBAAyB,
|
|
1
|
+
{"version":3,"file":"version-maps.js","sourceRoot":"","sources":["../../../engines/typedb/version-maps.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,cAAc,IAAI,oBAAoB,EACtC,yBAAyB,GAC1B,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AAEnD,MAAM,MAAM,GAAG,QAAQ,CAAA;AAEvB,MAAM,CAAC,MAAM,kBAAkB,GAA2B,eAAe,CAAC,MAAM,CAAC,CAAA;AAEjF,MAAM,CAAC,MAAM,wBAAwB,GAAG,yBAAyB,CAAC,MAAM,CAAC,CAAA;AAEzE,MAAM,CAAC,MAAM,eAAe,GAAG,wBAAwB,CAAC,CAAC,CAAC,IAAI,GAAG,CAAA;AAEjE,MAAM,UAAU,gBAAgB,CAAC,OAAe;IAC9C,MAAM,QAAQ,GAAG,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACtD,IAAI,QAAQ;QAAE,OAAO,QAAQ,CAAA;IAC7B,QAAQ,CACN,mBAAmB,OAAO,sCAAsC,wBAAwB,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CACpH,CAAA;IACD,OAAO,OAAO,CAAA;AAChB,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,OAAe;IAChD,OAAO,MAAM,CAAC,MAAM,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAA;AACnD,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,YAAoB;IACjD,OAAO,kBAAkB,CAAC,YAAY,CAAC,CAAA;AACzC,CAAC"}
|
|
@@ -4,30 +4,11 @@
|
|
|
4
4
|
* Thin wrapper around the `hostdb` npm package. See engines/sqlite/version-maps.ts
|
|
5
5
|
* for the architecture rationale — hostdb is the single source of truth.
|
|
6
6
|
*/
|
|
7
|
-
import { resolveVersion as hostdbResolveVersion, getSupportedMajorVersions,
|
|
7
|
+
import { resolveVersion as hostdbResolveVersion, getSupportedMajorVersions, } from 'hostdb';
|
|
8
|
+
import { buildVersionMap } from '../version-map-builder.js';
|
|
8
9
|
import { logDebug } from '../../core/error-handler.js';
|
|
9
10
|
const ENGINE = 'valkey';
|
|
10
|
-
|
|
11
|
-
const map = {};
|
|
12
|
-
for (const major of getSupportedMajorVersions(ENGINE)) {
|
|
13
|
-
const r = hostdbResolveVersion(ENGINE, major);
|
|
14
|
-
if (r)
|
|
15
|
-
map[major] = r;
|
|
16
|
-
}
|
|
17
|
-
for (const minor of listVersions(ENGINE, { format: 'major-minor' })) {
|
|
18
|
-
const r = hostdbResolveVersion(ENGINE, minor);
|
|
19
|
-
if (r)
|
|
20
|
-
map[minor] = r;
|
|
21
|
-
}
|
|
22
|
-
for (const full of listVersions(ENGINE, {
|
|
23
|
-
format: 'full',
|
|
24
|
-
includePrerelease: true,
|
|
25
|
-
})) {
|
|
26
|
-
map[full] = full;
|
|
27
|
-
}
|
|
28
|
-
return map;
|
|
29
|
-
}
|
|
30
|
-
export const VALKEY_VERSION_MAP = buildVersionMap();
|
|
11
|
+
export const VALKEY_VERSION_MAP = buildVersionMap(ENGINE);
|
|
31
12
|
export const SUPPORTED_MAJOR_VERSIONS = getSupportedMajorVersions(ENGINE);
|
|
32
13
|
export function getFullVersion(majorVersion) {
|
|
33
14
|
return hostdbResolveVersion(ENGINE, majorVersion);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-maps.js","sourceRoot":"","sources":["../../../engines/valkey/version-maps.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,cAAc,IAAI,oBAAoB,EACtC,yBAAyB,
|
|
1
|
+
{"version":3,"file":"version-maps.js","sourceRoot":"","sources":["../../../engines/valkey/version-maps.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,cAAc,IAAI,oBAAoB,EACtC,yBAAyB,GAC1B,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AAEnD,MAAM,MAAM,GAAG,QAAQ,CAAA;AAEvB,MAAM,CAAC,MAAM,kBAAkB,GAA2B,eAAe,CAAC,MAAM,CAAC,CAAA;AAEjF,MAAM,CAAC,MAAM,wBAAwB,GAAG,yBAAyB,CAAC,MAAM,CAAC,CAAA;AAEzE,MAAM,UAAU,cAAc,CAAC,YAAoB;IACjD,OAAO,oBAAoB,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;AACnD,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,OAAe;IAC9C,MAAM,QAAQ,GAAG,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACtD,IAAI,QAAQ;QAAE,OAAO,QAAQ,CAAA;IAE7B,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IAChC,MAAM,aAAa,GACjB,KAAK,CAAC,MAAM,IAAI,CAAC;QACjB,KAAK,CAAC,MAAM,IAAI,CAAC;QACjB,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;IAErC,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,QAAQ,CACN,mBAAmB,OAAO,sDAAsD,CACjF,CAAA;IACH,CAAC;SAAM,CAAC;QACN,QAAQ,CACN,mBAAmB,OAAO,oDAAoD,CAC/E,CAAA;IACH,CAAC;IACD,OAAO,OAAO,CAAA;AAChB,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared version-map builder for the per-engine `hostdb` wrappers.
|
|
3
|
+
*
|
|
4
|
+
* Every engine's version-maps module builds an identical MAP from hostdb: bare
|
|
5
|
+
* majors, major-minor keys (for engines that expose them), and full versions
|
|
6
|
+
* (including prereleases) mapped to themselves. Centralizing it here keeps the
|
|
7
|
+
* 20+ wrappers in sync when the shape changes (e.g., the prerelease rollout).
|
|
8
|
+
*
|
|
9
|
+
* Engines with extra keys (ClickHouse adds 3-part prefixes for its 4-part
|
|
10
|
+
* versions) call this and then augment the returned map.
|
|
11
|
+
*/
|
|
12
|
+
import { resolveVersion as hostdbResolveVersion, getSupportedMajorVersions, listVersions, } from 'hostdb';
|
|
13
|
+
export function buildVersionMap(engine) {
|
|
14
|
+
const map = {};
|
|
15
|
+
for (const major of getSupportedMajorVersions(engine)) {
|
|
16
|
+
const r = hostdbResolveVersion(engine, major);
|
|
17
|
+
if (r)
|
|
18
|
+
map[major] = r;
|
|
19
|
+
}
|
|
20
|
+
for (const minor of listVersions(engine, { format: 'major-minor' })) {
|
|
21
|
+
const r = hostdbResolveVersion(engine, minor);
|
|
22
|
+
if (r)
|
|
23
|
+
map[minor] = r;
|
|
24
|
+
}
|
|
25
|
+
for (const full of listVersions(engine, {
|
|
26
|
+
format: 'full',
|
|
27
|
+
includePrerelease: true,
|
|
28
|
+
})) {
|
|
29
|
+
map[full] = full;
|
|
30
|
+
}
|
|
31
|
+
return map;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=version-map-builder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version-map-builder.js","sourceRoot":"","sources":["../../engines/version-map-builder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EACL,cAAc,IAAI,oBAAoB,EACtC,yBAAyB,EACzB,YAAY,GACb,MAAM,QAAQ,CAAA;AAEf,MAAM,UAAU,eAAe,CAAC,MAAc;IAC5C,MAAM,GAAG,GAA2B,EAAE,CAAA;IACtC,KAAK,MAAM,KAAK,IAAI,yBAAyB,CAAC,MAAM,CAAC,EAAE,CAAC;QACtD,MAAM,CAAC,GAAG,oBAAoB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;QAC7C,IAAI,CAAC;YAAE,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IACvB,CAAC;IACD,KAAK,MAAM,KAAK,IAAI,YAAY,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC,EAAE,CAAC;QACpE,MAAM,CAAC,GAAG,oBAAoB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;QAC7C,IAAI,CAAC;YAAE,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IACvB,CAAC;IACD,KAAK,MAAM,IAAI,IAAI,YAAY,CAAC,MAAM,EAAE;QACtC,MAAM,EAAE,MAAM;QACd,iBAAiB,EAAE,IAAI;KACxB,CAAC,EAAE,CAAC;QACH,GAAG,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IAClB,CAAC;IACD,OAAO,GAAG,CAAA;AACZ,CAAC"}
|
|
@@ -4,30 +4,11 @@
|
|
|
4
4
|
* Thin wrapper around the `hostdb` npm package. See engines/sqlite/version-maps.ts
|
|
5
5
|
* for the architecture rationale — hostdb is the single source of truth.
|
|
6
6
|
*/
|
|
7
|
-
import { resolveVersion as hostdbResolveVersion, getSupportedMajorVersions,
|
|
7
|
+
import { resolveVersion as hostdbResolveVersion, getSupportedMajorVersions, } from 'hostdb';
|
|
8
|
+
import { buildVersionMap } from '../version-map-builder.js';
|
|
8
9
|
import { logDebug } from '../../core/error-handler.js';
|
|
9
10
|
const ENGINE = 'weaviate';
|
|
10
|
-
|
|
11
|
-
const map = {};
|
|
12
|
-
for (const major of getSupportedMajorVersions(ENGINE)) {
|
|
13
|
-
const r = hostdbResolveVersion(ENGINE, major);
|
|
14
|
-
if (r)
|
|
15
|
-
map[major] = r;
|
|
16
|
-
}
|
|
17
|
-
for (const minor of listVersions(ENGINE, { format: 'major-minor' })) {
|
|
18
|
-
const r = hostdbResolveVersion(ENGINE, minor);
|
|
19
|
-
if (r)
|
|
20
|
-
map[minor] = r;
|
|
21
|
-
}
|
|
22
|
-
for (const full of listVersions(ENGINE, {
|
|
23
|
-
format: 'full',
|
|
24
|
-
includePrerelease: true,
|
|
25
|
-
})) {
|
|
26
|
-
map[full] = full;
|
|
27
|
-
}
|
|
28
|
-
return map;
|
|
29
|
-
}
|
|
30
|
-
export const WEAVIATE_VERSION_MAP = buildVersionMap();
|
|
11
|
+
export const WEAVIATE_VERSION_MAP = buildVersionMap(ENGINE);
|
|
31
12
|
export const SUPPORTED_MAJOR_VERSIONS = getSupportedMajorVersions(ENGINE);
|
|
32
13
|
export function getFullVersion(majorVersion) {
|
|
33
14
|
return hostdbResolveVersion(ENGINE, majorVersion);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-maps.js","sourceRoot":"","sources":["../../../engines/weaviate/version-maps.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,cAAc,IAAI,oBAAoB,EACtC,yBAAyB,
|
|
1
|
+
{"version":3,"file":"version-maps.js","sourceRoot":"","sources":["../../../engines/weaviate/version-maps.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,cAAc,IAAI,oBAAoB,EACtC,yBAAyB,GAC1B,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AAEnD,MAAM,MAAM,GAAG,UAAU,CAAA;AAEzB,MAAM,CAAC,MAAM,oBAAoB,GAA2B,eAAe,CAAC,MAAM,CAAC,CAAA;AAEnF,MAAM,CAAC,MAAM,wBAAwB,GAAG,yBAAyB,CAAC,MAAM,CAAC,CAAA;AAEzE,MAAM,UAAU,cAAc,CAAC,YAAoB;IACjD,OAAO,oBAAoB,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;AACnD,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,OAAe;IAC9C,MAAM,QAAQ,GAAG,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACtD,IAAI,QAAQ;QAAE,OAAO,QAAQ,CAAA;IAE7B,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IAChC,MAAM,aAAa,GACjB,KAAK,CAAC,MAAM,IAAI,CAAC;QACjB,KAAK,CAAC,MAAM,IAAI,CAAC;QACjB,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;IAErC,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,QAAQ,CACN,qBAAqB,OAAO,sDAAsD,CACnF,CAAA;IACH,CAAC;SAAM,CAAC;QACN,QAAQ,CACN,qBAAqB,OAAO,oDAAoD,CACjF,CAAA;IACH,CAAC;IACD,OAAO,OAAO,CAAA;AAChB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spindb",
|
|
3
|
-
"version": "0.62.
|
|
3
|
+
"version": "0.62.1",
|
|
4
4
|
"author": "Bob Bass <bob@bbass.co>",
|
|
5
5
|
"license": "PolyForm-Noncommercial-1.0.0",
|
|
6
6
|
"description": "Zero-config Docker-free local database containers. Create, backup, and clone a variety of popular databases.",
|