graphddb 0.8.1 → 0.9.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.
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  evaluateKey
3
- } from "./chunk-T44OB5GU.js";
3
+ } from "./chunk-HLFNCKFV.js";
4
4
  import {
5
- SPEC_VERSION
6
- } from "./chunk-L4QRCHRQ.js";
5
+ SPEC_VERSION_KEY_EXPR
6
+ } from "./chunk-WOFRHRXY.js";
7
7
  import {
8
8
  MetadataRegistry
9
- } from "./chunk-L2NEDS7U.js";
9
+ } from "./chunk-GWWRXIHF.js";
10
10
  import {
11
11
  TableMapping
12
12
  } from "./chunk-XTWXMOHD.js";
@@ -136,7 +136,9 @@ function buildManifest(registry = MetadataRegistry) {
136
136
  }
137
137
  }
138
138
  return {
139
- version: SPEC_VERSION,
139
+ // #289 Phase 2: the IR SSoT is version 2.0 (major bump); the manifest tracks
140
+ // the same major so validateEnvelope's major-match passes (see Manifest.version).
141
+ version: SPEC_VERSION_KEY_EXPR,
140
142
  tables: sortedRecord(tables),
141
143
  entities
142
144
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buildMaintenanceGraph
3
- } from "./chunk-HNY2EJPV.js";
3
+ } from "./chunk-7OCXY4R6.js";
4
4
  import {
5
5
  ChangeCaptureRegistry,
6
6
  ClientManager,
@@ -9,7 +9,7 @@ import {
9
9
  buildDeleteInput,
10
10
  buildPutInput,
11
11
  resolveModelClass
12
- } from "./chunk-L2NEDS7U.js";
12
+ } from "./chunk-GWWRXIHF.js";
13
13
 
14
14
  // src/cdc/prng.ts
15
15
  var SeededRandom = class {
@@ -1,8 +1,9 @@
1
1
  // src/spec/types.ts
2
2
  var SPEC_VERSION = "1.1";
3
3
  var SPEC_VERSION_SCP = "1.2";
4
- var SPEC_VERSION_SUPPORTED = SPEC_VERSION_SCP;
5
- var EXPR_VERSION = 1;
4
+ var SPEC_VERSION_KEY_EXPR = "2.0";
5
+ var SPEC_VERSION_SUPPORTED = SPEC_VERSION_KEY_EXPR;
6
+ var EXPR_VERSION = 2;
6
7
  var MARKER_ROW_ENTITY = "__marker__";
7
8
 
8
9
  // src/define/transaction.ts
@@ -236,33 +237,14 @@ function canonicalizeExpressionSpec(input, context) {
236
237
  function isScpExprConditionInput(condition) {
237
238
  return "scpExpr" in condition;
238
239
  }
239
- function conditionHasScp(condition) {
240
- return condition?.kind === "scpExpr";
241
- }
242
- function operationsContainScpNodes(doc) {
243
- for (const command of Object.values(doc.commands)) {
244
- if (conditionHasScp(command.condition)) return true;
245
- }
246
- for (const transaction of Object.values(doc.transactions ?? {})) {
247
- for (const item of transaction.items) {
248
- if (item.guard !== void 0 || conditionHasScp(item.condition)) return true;
249
- }
250
- }
251
- for (const contract of Object.values(doc.contracts ?? {})) {
252
- if (contract.kind !== "command") continue;
253
- for (const method of Object.values(contract.methods)) {
254
- if (method.guard !== void 0) return true;
255
- }
256
- }
257
- return false;
258
- }
259
- function operationsSpecVersion(doc) {
260
- return operationsContainScpNodes(doc) ? SPEC_VERSION_SCP : SPEC_VERSION;
240
+ function operationsSpecVersion(_doc) {
241
+ return SPEC_VERSION_KEY_EXPR;
261
242
  }
262
243
 
263
244
  export {
264
245
  SPEC_VERSION,
265
246
  SPEC_VERSION_SCP,
247
+ SPEC_VERSION_KEY_EXPR,
266
248
  SPEC_VERSION_SUPPORTED,
267
249
  EXPR_VERSION,
268
250
  MARKER_ROW_ENTITY,
@@ -273,6 +255,5 @@ export {
273
255
  SCP_LOWERED_MARKER,
274
256
  canonicalizeExpressionSpec,
275
257
  isScpExprConditionInput,
276
- operationsContainScpNodes,
277
258
  operationsSpecVersion
278
259
  };