@reddb-io/cli 1.28.3 → 1.28.5

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reddb-io/sdk",
3
- "version": "1.28.3",
3
+ "version": "1.28.5",
4
4
  "description": "Official embedded RedDB SDK — launches a local red binary over stdio JSON-RPC. The binary arrives as a per-platform optionalDependency — no install script. Use @reddb-io/client for remote HTTP, gRPC, and RedWire.",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -43,9 +43,12 @@ export function resolveSdkBinary() {
43
43
  return packaged
44
44
  }
45
45
  const wanted = platformPackageNames()[0]
46
+ const expected = wanted
47
+ ? `the ${wanted} package (an optionalDependency of @reddb-io/sdk)`
48
+ : `no prebuilt package is published for ${process.platform}/${process.arch}`
46
49
  throw new Error(
47
50
  `reddb: binary "${defaultBinaryName()}" not found.\n` +
48
- ` expected: the ${wanted} package (an optionalDependency of @reddb-io/sdk)\n` +
51
+ ` expected: ${expected}\n` +
49
52
  ` override: set REDDB_BIN=/path/to/${defaultBinaryName()}\n` +
50
53
  ` fix: reinstall without --no-optional / --omit=optional, and make sure\n` +
51
54
  ` ${process.platform}/${process.arch} is a supported platform;\n` +
@@ -32,6 +32,11 @@ export function platformPackageNames({
32
32
  arch = process.arch,
33
33
  libc = detectLibc(platform),
34
34
  } = {}) {
35
+ const supported =
36
+ (platform === 'linux' && (arch === 'x64' || arch === 'arm64')) ||
37
+ (platform === 'darwin' && arch === 'arm64') ||
38
+ (platform === 'win32' && arch === 'x64')
39
+ if (!supported) return []
35
40
  const base = `@reddb-io/red-${platform}-${arch}`
36
41
  if (platform !== 'linux') return [base]
37
42
  return libc === 'musl' ? [`${base}-musl`, base] : [base, `${base}-musl`]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reddb-io/cli",
3
- "version": "1.28.3",
3
+ "version": "1.28.5",
4
4
  "description": "CLI launcher for RedDB. The red binary arrives as a per-platform optionalDependency (no install script). The JS/TS app driver is published as @reddb-io/sdk.",
5
5
  "type": "commonjs",
6
6
  "bin": {
@@ -34,14 +34,12 @@
34
34
  "@changesets/cli": "^2.31.0"
35
35
  },
36
36
  "optionalDependencies": {
37
- "@reddb-io/red-linux-x64": "1.28.3",
38
- "@reddb-io/red-linux-x64-musl": "1.28.3",
39
- "@reddb-io/red-linux-arm64": "1.28.3",
40
- "@reddb-io/red-linux-arm64-musl": "1.28.3",
41
- "@reddb-io/red-linux-arm": "1.28.3",
42
- "@reddb-io/red-darwin-x64": "1.28.3",
43
- "@reddb-io/red-darwin-arm64": "1.28.3",
44
- "@reddb-io/red-win32-x64": "1.28.3"
37
+ "@reddb-io/red-linux-x64": "1.28.5",
38
+ "@reddb-io/red-linux-x64-musl": "1.28.5",
39
+ "@reddb-io/red-linux-arm64": "1.28.5",
40
+ "@reddb-io/red-linux-arm64-musl": "1.28.5",
41
+ "@reddb-io/red-darwin-arm64": "1.28.5",
42
+ "@reddb-io/red-win32-x64": "1.28.5"
45
43
  },
46
44
  "scripts": {
47
45
  "test": "node scripts/docs-analytics-boundaries.test.mjs && node --test scripts/connection-quality.test.mjs && node drivers/js/test/smoke.test.mjs",