@geodedb/client 1.0.0-alpha.16 → 1.0.0-alpha.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/README.md CHANGED
@@ -31,7 +31,7 @@ npm install @geodedb/client
31
31
  import { createClient } from '@geodedb/client';
32
32
 
33
33
  // Connect to Geode
34
- const client = await createClient('geode://localhost:3141');
34
+ const client = await createClient('quic://localhost:3141');
35
35
 
36
36
  // Execute a query
37
37
  const rows = await client.queryAll('MATCH (n:Person) RETURN n.name, n.age');
@@ -53,7 +53,6 @@ The client supports multiple transport schemes:
53
53
  ```
54
54
  quic://[username:password@]host[:port][?options] # QUIC transport (default port: 3141)
55
55
  grpc://[username:password@]host[:port][?options] # gRPC transport (default port: 50051)
56
- geode://[username:password@]host[:port][?options] # Legacy scheme (uses QUIC)
57
56
  host:port # Simple format (uses QUIC)
58
57
  ```
59
58
 
@@ -66,7 +65,7 @@ host:port # Simple format (uses QUIC)
66
65
  | `hello_ver` | Client version | 1.0.0 |
67
66
  | `conformance` | GQL conformance level | min |
68
67
  | `tls` | Enable TLS (gRPC only) | true |
69
- | `insecure` | Skip TLS verification (dev only) | false |
68
+ | `insecure_tls_skip_verify` | Skip TLS verification (dev only) | false |
70
69
  | `ca` | Path to CA certificate | - |
71
70
  | `cert` | Path to client certificate (mTLS) | - |
72
71
  | `key` | Path to client key (mTLS) | - |
@@ -478,7 +477,7 @@ try {
478
477
  ## Connection Pool
479
478
 
480
479
  ```typescript
481
- const client = await createClient('geode://localhost:3141', {
480
+ const client = await createClient('quic://localhost:3141', {
482
481
  pooling: true,
483
482
  pool: {
484
483
  min: 2, // Minimum connections to maintain
package/dist/index.d.ts CHANGED
@@ -345,7 +345,7 @@ interface ProtoValue {
345
345
  nullVal?: NullValue;
346
346
  intVal?: IntValue;
347
347
  doubleVal?: DoubleValue;
348
- boolVal?: BoolValue;
348
+ boolVal?: boolean;
349
349
  stringVal?: StringValue;
350
350
  decimalVal?: DecimalValue;
351
351
  bytesVal?: BytesValue;
@@ -366,9 +366,6 @@ interface DoubleValue {
366
366
  value: number;
367
367
  kind: number;
368
368
  }
369
- interface BoolValue {
370
- value: boolean;
371
- }
372
369
  interface StringValue {
373
370
  value: string;
374
371
  kind: number;
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as fs from 'fs';
2
- import * as protobuf from 'protobufjs';
2
+ import protobuf from 'protobufjs';
3
3
  import * as path from 'path';
4
4
  import { fileURLToPath } from 'url';
5
5
  import * as grpc from '@grpc/grpc-js';
@@ -1126,7 +1126,7 @@ function jsToProtoValue(value) {
1126
1126
  return { nullVal: {} };
1127
1127
  }
1128
1128
  if (typeof value === "boolean") {
1129
- return { boolVal: { value } };
1129
+ return { boolVal: value };
1130
1130
  }
1131
1131
  if (typeof value === "number") {
1132
1132
  if (Number.isInteger(value)) {
@@ -1161,7 +1161,7 @@ function jsToProtoValue(value) {
1161
1161
  }
1162
1162
  function protoValueToJS(val) {
1163
1163
  if (val.nullVal !== void 0) return null;
1164
- if (val.boolVal !== void 0) return val.boolVal.value;
1164
+ if (val.boolVal !== void 0) return val.boolVal;
1165
1165
  if (val.intVal !== void 0) {
1166
1166
  const n = val.intVal.value;
1167
1167
  if (typeof n === "bigint") {