@zvndev/powdb-client 0.19.0 → 0.19.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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.19.1 - 2026-07-24
4
+
5
+ - `SUPPORTED_CATALOG_VERSION` raised from 6 to 7: sync/replica clients are now
6
+ accepted by servers whose catalog activated v7 (entity links, appended links
7
+ section before the CRC). The client treats catalog payloads as opaque bytes,
8
+ so no decoding change; `assertServerCatalogVersionSupported` simply accepts
9
+ v7. Engine-side 0.19.1 also ships link introspection (`schema links`,
10
+ extended `describe`) whose results flow through the existing `query` path.
11
+
3
12
  ## 0.19.0 - 2026-07-22
4
13
 
5
14
  - Version-alignment release in lockstep with workspace v0.19.0 (entity links:
@@ -19,15 +19,21 @@ import { EventEmitter } from "node:events";
19
19
  import { type NativeJson, type SyncRepairAction, type WireRetainedUnit, type WireSyncStatus, type WireValue } from "./protocol.js";
20
20
  import { type TypedRow, type TypedSchema } from "./typed.js";
21
21
  /** Client library version. Compared to the server's reported version. */
22
- export declare const CLIENT_VERSION = "0.19.0";
22
+ export declare const CLIENT_VERSION = "0.19.1";
23
23
  /**
24
24
  * The maximum catalog format version this client can read. State this as the
25
25
  * `catalogVersion` in sync pull requests: the server accepts any replica whose
26
26
  * maximum is at least its active catalog format and rejects an older replica.
27
27
  * When validating a server-reported catalog version, accept anything at or
28
28
  * below this and reject anything newer (the client cannot read it).
29
+ *
30
+ * v7 is the entity-links format: it appends a relationship-link section
31
+ * before the trailing CRC, staircase-defaulted so every older file still
32
+ * loads (a pre-v7 file simply has zero links). It activates lazily on the
33
+ * first `link` declaration. The client treats catalog payloads as opaque
34
+ * bytes and only states this ceiling in the sync handshake.
29
35
  */
30
- export declare const SUPPORTED_CATALOG_VERSION = 6;
36
+ export declare const SUPPORTED_CATALOG_VERSION = 7;
31
37
  /**
32
38
  * Throw when a server-reported catalog format is newer than this client can
33
39
  * read. Accepts `serverCatalogVersion <= SUPPORTED_CATALOG_VERSION`; rejects a
package/dist/cjs/index.js CHANGED
@@ -59,15 +59,21 @@ const errors_js_1 = require("./errors.js");
59
59
  const script_js_1 = require("./script.js");
60
60
  const typed_js_1 = require("./typed.js");
61
61
  /** Client library version. Compared to the server's reported version. */
62
- exports.CLIENT_VERSION = "0.19.0";
62
+ exports.CLIENT_VERSION = "0.19.1";
63
63
  /**
64
64
  * The maximum catalog format version this client can read. State this as the
65
65
  * `catalogVersion` in sync pull requests: the server accepts any replica whose
66
66
  * maximum is at least its active catalog format and rejects an older replica.
67
67
  * When validating a server-reported catalog version, accept anything at or
68
68
  * below this and reject anything newer (the client cannot read it).
69
+ *
70
+ * v7 is the entity-links format: it appends a relationship-link section
71
+ * before the trailing CRC, staircase-defaulted so every older file still
72
+ * loads (a pre-v7 file simply has zero links). It activates lazily on the
73
+ * first `link` declaration. The client treats catalog payloads as opaque
74
+ * bytes and only states this ceiling in the sync handshake.
69
75
  */
70
- exports.SUPPORTED_CATALOG_VERSION = 6;
76
+ exports.SUPPORTED_CATALOG_VERSION = 7;
71
77
  /**
72
78
  * Throw when a server-reported catalog format is newer than this client can
73
79
  * read. Accepts `serverCatalogVersion <= SUPPORTED_CATALOG_VERSION`; rejects a
package/dist/index.d.ts CHANGED
@@ -19,15 +19,21 @@ import { EventEmitter } from "node:events";
19
19
  import { type NativeJson, type SyncRepairAction, type WireRetainedUnit, type WireSyncStatus, type WireValue } from "./protocol.js";
20
20
  import { type TypedRow, type TypedSchema } from "./typed.js";
21
21
  /** Client library version. Compared to the server's reported version. */
22
- export declare const CLIENT_VERSION = "0.19.0";
22
+ export declare const CLIENT_VERSION = "0.19.1";
23
23
  /**
24
24
  * The maximum catalog format version this client can read. State this as the
25
25
  * `catalogVersion` in sync pull requests: the server accepts any replica whose
26
26
  * maximum is at least its active catalog format and rejects an older replica.
27
27
  * When validating a server-reported catalog version, accept anything at or
28
28
  * below this and reject anything newer (the client cannot read it).
29
+ *
30
+ * v7 is the entity-links format: it appends a relationship-link section
31
+ * before the trailing CRC, staircase-defaulted so every older file still
32
+ * loads (a pre-v7 file simply has zero links). It activates lazily on the
33
+ * first `link` declaration. The client treats catalog payloads as opaque
34
+ * bytes and only states this ceiling in the sync handshake.
29
35
  */
30
- export declare const SUPPORTED_CATALOG_VERSION = 6;
36
+ export declare const SUPPORTED_CATALOG_VERSION = 7;
31
37
  /**
32
38
  * Throw when a server-reported catalog format is newer than this client can
33
39
  * read. Accepts `serverCatalogVersion <= SUPPORTED_CATALOG_VERSION`; rejects a
package/dist/index.js CHANGED
@@ -22,15 +22,21 @@ import { errorCodeForWireClass, isPowDBError, PowDBError, PowDBScriptError, } fr
22
22
  import { splitStatements } from "./script.js";
23
23
  import { coerceRows, } from "./typed.js";
24
24
  /** Client library version. Compared to the server's reported version. */
25
- export const CLIENT_VERSION = "0.19.0";
25
+ export const CLIENT_VERSION = "0.19.1";
26
26
  /**
27
27
  * The maximum catalog format version this client can read. State this as the
28
28
  * `catalogVersion` in sync pull requests: the server accepts any replica whose
29
29
  * maximum is at least its active catalog format and rejects an older replica.
30
30
  * When validating a server-reported catalog version, accept anything at or
31
31
  * below this and reject anything newer (the client cannot read it).
32
+ *
33
+ * v7 is the entity-links format: it appends a relationship-link section
34
+ * before the trailing CRC, staircase-defaulted so every older file still
35
+ * loads (a pre-v7 file simply has zero links). It activates lazily on the
36
+ * first `link` declaration. The client treats catalog payloads as opaque
37
+ * bytes and only states this ceiling in the sync handshake.
32
38
  */
33
- export const SUPPORTED_CATALOG_VERSION = 6;
39
+ export const SUPPORTED_CATALOG_VERSION = 7;
34
40
  /**
35
41
  * Throw when a server-reported catalog format is newer than this client can
36
42
  * read. Accepts `serverCatalogVersion <= SUPPORTED_CATALOG_VERSION`; rejects a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zvndev/powdb-client",
3
- "version": "0.19.0",
3
+ "version": "0.19.1",
4
4
  "description": "TypeScript client for PowDB (PowQL wire protocol)",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.29.3",