@yydb/yyds 0.0.15 → 0.0.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yydb/yyds",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "description": "Node.js facade, CLI, and native bindings for local YYDS nodes.",
5
5
  "license": "MPL-2.0",
6
6
  "type": "module",
@@ -59,14 +59,14 @@
59
59
  "access": "public"
60
60
  },
61
61
  "optionalDependencies": {
62
- "@yydb/yyds-win32-x64": "0.0.15",
63
- "@yydb/yyds-linux-x64": "0.0.15",
64
- "@yydb/yyds-darwin-x64": "0.0.15",
65
- "@yydb/yyds-darwin-arm64": "0.0.15"
62
+ "@yydb/yyds-win32-x64": "0.0.17",
63
+ "@yydb/yyds-linux-x64": "0.0.17",
64
+ "@yydb/yyds-darwin-x64": "0.0.17",
65
+ "@yydb/yyds-darwin-arm64": "0.0.17"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@types/node": "^22.15.0",
69
- "@yydb/yyds-webui": "0.0.15",
69
+ "@yydb/yyds-webui": "0.0.17",
70
70
  "typescript": "^5.9.2"
71
71
  },
72
72
  "engines": {
@@ -1,7 +1,7 @@
1
1
  import type { StartNodeOptions } from "./runtime.ts";
2
2
  import { parseStartOptions, runNodeStart } from "./runtime.ts";
3
3
 
4
- export type YydsProtocol = "redis" | "mysql" | "postgresql";
4
+ export type YydsProtocol = "redis" | "mysql" | "postgresql" | "mongodb";
5
5
 
6
6
  /** Maps disguise-server `--port` flags to protocol-specific yyds start flags. */
7
7
  export function yydsStartArguments(protocol: YydsProtocol, args: string[]): string[] {
@@ -9,6 +9,7 @@ export function yydsStartArguments(protocol: YydsProtocol, args: string[]): stri
9
9
  redis: "--redis-port",
10
10
  mysql: "--mysql-port",
11
11
  postgresql: "--pgsql-port",
12
+ mongodb: "--mongo-port",
12
13
  };
13
14
  const defaultPorts: Partial<Record<YydsProtocol, number>> = {
14
15
  mysql: 3306,
@@ -27,6 +27,7 @@ export function parseStartOptions(protocol: YydsProtocol, args: string[]): Start
27
27
  redis: "--redis-port",
28
28
  mysql: "--mysql-port",
29
29
  postgresql: "--pgsql-port",
30
+ mongodb: "--mongo-port",
30
31
  };
31
32
  const defaultPorts: Partial<Record<YydsProtocol, number>> = { mysql: 3306, postgresql: 5432 };
32
33
 
@@ -39,6 +40,7 @@ export function parseStartOptions(protocol: YydsProtocol, args: string[]): Start
39
40
  if (protocol === "redis") options.redisPort = value;
40
41
  if (protocol === "mysql") options.mysqlPort = value;
41
42
  if (protocol === "postgresql") options.pgsqlPort = value;
43
+ if (protocol === "mongodb") options.mongoPort = value;
42
44
  continue;
43
45
  }
44
46
  if (argument === "--data-dir") {