@query-farm/vgi 0.29.1 → 0.31.0
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 +1 -1
- package/dist/client-entry.js +20 -5
- package/dist/client-entry.js.map +5 -5
- package/dist/generated/vgi-client.d.ts +1 -4
- package/dist/index.js +24 -11
- package/dist/index.js.map +8 -8
- package/dist/protocol/dispatch.d.ts +26 -0
- package/dist/serve-entry.js +9 -8
- package/dist/serve-entry.js.map +7 -7
- package/dist/worker-cf-entry.js +10 -12
- package/dist/worker-cf-entry.js.map +8 -8
- package/package.json +5 -4
- package/src/catalog/read-only.ts +1 -4
- package/src/client/errors.ts +19 -0
- package/src/generated/vgi-client.ts +2 -5
- package/src/generated/vgi-protocol-schemas.ts +2 -5
- package/src/http/client-bundle.ts +1 -1
- package/src/http/fetch.ts +10 -3
- package/src/protocol/dispatch.ts +28 -1
package/README.md
CHANGED
|
@@ -41,7 +41,7 @@ npm install @query-farm/vgi
|
|
|
41
41
|
Requires **Node.js ≥ 22.15** or **Bun**.
|
|
42
42
|
|
|
43
43
|
> **Peer dependencies (since 0.3.0).** `@query-farm/apache-arrow` (`^21.1.1`) and
|
|
44
|
-
> `@query-farm/vgi-rpc` (`^0.
|
|
44
|
+
> `@query-farm/vgi-rpc` (`^0.24.0`) are **peerDependencies** — install them directly
|
|
45
45
|
> alongside `@query-farm/vgi`:
|
|
46
46
|
>
|
|
47
47
|
> ```bash
|
package/dist/client-entry.js
CHANGED
|
@@ -2351,10 +2351,7 @@ var TableInfoSchema = schema2([
|
|
|
2351
2351
|
field2("check_constraints", list2(field2("item", utf82(), true)), false),
|
|
2352
2352
|
field2("primary_key_constraints", list2(field2("item", list2(field2("item", int322(), true)), true)), false),
|
|
2353
2353
|
field2("foreign_key_constraints", list2(field2("item", binary2(), true)), false),
|
|
2354
|
-
field2("
|
|
2355
|
-
field2("supports_update", bool2(), false),
|
|
2356
|
-
field2("supports_delete", bool2(), false),
|
|
2357
|
-
field2("supports_returning", bool2(), false),
|
|
2354
|
+
field2("write_result_modes", map2(field2("key", utf82(), false), field2("value", utf82(), true), false), false),
|
|
2358
2355
|
field2("supports_column_statistics", bool2(), false),
|
|
2359
2356
|
field2("scan_function", binary2(), true),
|
|
2360
2357
|
field2("insert_function", binary2(), true),
|
|
@@ -3412,6 +3409,24 @@ function wrapRpcWithErrorEnrichment(rpc) {
|
|
|
3412
3409
|
throw e;
|
|
3413
3410
|
}
|
|
3414
3411
|
},
|
|
3412
|
+
async callRaw(method, input) {
|
|
3413
|
+
try {
|
|
3414
|
+
return await rpc.callRaw(method, input);
|
|
3415
|
+
} catch (e) {
|
|
3416
|
+
if (e instanceof RpcError)
|
|
3417
|
+
throw VgiClientError.fromRpcError(e);
|
|
3418
|
+
throw e;
|
|
3419
|
+
}
|
|
3420
|
+
},
|
|
3421
|
+
async streamRaw(method, input, options) {
|
|
3422
|
+
try {
|
|
3423
|
+
return await rpc.streamRaw(method, input, options);
|
|
3424
|
+
} catch (e) {
|
|
3425
|
+
if (e instanceof RpcError)
|
|
3426
|
+
throw VgiClientError.fromRpcError(e);
|
|
3427
|
+
throw e;
|
|
3428
|
+
}
|
|
3429
|
+
},
|
|
3415
3430
|
describe: () => rpc.describe(),
|
|
3416
3431
|
close: () => rpc.close()
|
|
3417
3432
|
};
|
|
@@ -4347,4 +4362,4 @@ export {
|
|
|
4347
4362
|
typeSignature
|
|
4348
4363
|
};
|
|
4349
4364
|
|
|
4350
|
-
//# debugId=
|
|
4365
|
+
//# debugId=883855CB7A9BD5B664756E2164756E21
|