@nicia-ai/typegraph 0.27.0 → 0.28.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.
Files changed (77) hide show
  1. package/dist/backend/postgres/index.cjs +100 -58
  2. package/dist/backend/postgres/index.cjs.map +1 -1
  3. package/dist/backend/postgres/index.d.cts +4 -4
  4. package/dist/backend/postgres/index.d.ts +4 -4
  5. package/dist/backend/postgres/index.js +48 -6
  6. package/dist/backend/postgres/index.js.map +1 -1
  7. package/dist/backend/sqlite/index.cjs +14 -14
  8. package/dist/backend/sqlite/index.d.cts +5 -5
  9. package/dist/backend/sqlite/index.d.ts +5 -5
  10. package/dist/backend/sqlite/index.js +4 -4
  11. package/dist/backend/sqlite/libsql.cjs +7 -7
  12. package/dist/backend/sqlite/libsql.d.cts +2 -2
  13. package/dist/backend/sqlite/libsql.d.ts +2 -2
  14. package/dist/backend/sqlite/libsql.js +4 -4
  15. package/dist/backend/sqlite/local.cjs +8 -8
  16. package/dist/backend/sqlite/local.d.cts +2 -2
  17. package/dist/backend/sqlite/local.d.ts +2 -2
  18. package/dist/backend/sqlite/local.js +4 -4
  19. package/dist/{chunk-X53YKGHR.js → chunk-5MTOKWDA.js} +3 -3
  20. package/dist/{chunk-X53YKGHR.js.map → chunk-5MTOKWDA.js.map} +1 -1
  21. package/dist/chunk-FFHW2JEK.cjs +55 -0
  22. package/dist/chunk-FFHW2JEK.cjs.map +1 -0
  23. package/dist/{chunk-DN4RUDF3.cjs → chunk-LYRUNG6E.cjs} +2 -2
  24. package/dist/chunk-LYRUNG6E.cjs.map +1 -0
  25. package/dist/{chunk-RVT2N4RF.cjs → chunk-NMOE2ZEU.cjs} +46 -46
  26. package/dist/{chunk-RVT2N4RF.cjs.map → chunk-NMOE2ZEU.cjs.map} +1 -1
  27. package/dist/{chunk-TVUARC7S.cjs → chunk-NYQFPGYP.cjs} +52 -24
  28. package/dist/chunk-NYQFPGYP.cjs.map +1 -0
  29. package/dist/chunk-O57GYGYK.js +51 -0
  30. package/dist/chunk-O57GYGYK.js.map +1 -0
  31. package/dist/{chunk-ENXJLDRK.js → chunk-PCHTTG42.js} +2 -2
  32. package/dist/chunk-PCHTTG42.js.map +1 -0
  33. package/dist/{chunk-DDVA4QBA.js → chunk-PGU2XKMA.js} +4 -4
  34. package/dist/{chunk-DDVA4QBA.js.map → chunk-PGU2XKMA.js.map} +1 -1
  35. package/dist/{chunk-RF5EUQWS.js → chunk-TKM2WDT4.js} +51 -23
  36. package/dist/chunk-TKM2WDT4.js.map +1 -0
  37. package/dist/{chunk-ZGEMI7MJ.cjs → chunk-WZH2MKHW.cjs} +15 -15
  38. package/dist/{chunk-ZGEMI7MJ.cjs.map → chunk-WZH2MKHW.cjs.map} +1 -1
  39. package/dist/{ddl-9kw8UADK.d.ts → ddl-0Ooc2dpL.d.ts} +2 -2
  40. package/dist/{ddl-Cw82BPM4.d.cts → ddl-Dza3kDrI.d.cts} +2 -2
  41. package/dist/index.cjs +81 -69
  42. package/dist/index.cjs.map +1 -1
  43. package/dist/index.d.cts +7 -7
  44. package/dist/index.d.ts +7 -7
  45. package/dist/index.js +18 -6
  46. package/dist/index.js.map +1 -1
  47. package/dist/indexes/index.d.cts +4 -4
  48. package/dist/indexes/index.d.ts +4 -4
  49. package/dist/interchange/index.d.cts +3 -3
  50. package/dist/interchange/index.d.ts +3 -3
  51. package/dist/{manager-CWa9cgwb.d.cts → manager-c1MGaVVR.d.cts} +1 -1
  52. package/dist/{manager-Cfcb2sJL.d.ts → manager-ehLTTNq0.d.ts} +1 -1
  53. package/dist/profiler/index.d.cts +5 -5
  54. package/dist/profiler/index.d.ts +5 -5
  55. package/dist/schema/index.cjs +26 -26
  56. package/dist/schema/index.d.cts +4 -4
  57. package/dist/schema/index.d.ts +4 -4
  58. package/dist/schema/index.js +3 -3
  59. package/dist/{sqlite-GKvcDPVn.d.ts → sqlite-BxZUPbyD.d.ts} +1 -1
  60. package/dist/{sqlite-BvSEbybu.d.cts → sqlite-mvpXjEeB.d.cts} +1 -1
  61. package/dist/{store-Ojf0NOKk.d.cts → store-D7YEMg2v.d.cts} +26 -2
  62. package/dist/{store-C57kdvAa.d.ts → store-Ufc1Eoey.d.ts} +26 -2
  63. package/dist/{types-Cars4JZ1.d.ts → types-B-sJJ4GQ.d.ts} +1 -1
  64. package/dist/{types-DZPBXZOK.d.cts → types-CMQymcwk.d.cts} +11 -0
  65. package/dist/{types-Dzkr0Eqi.d.ts → types-CQ7xXJMP.d.ts} +11 -0
  66. package/dist/{types-CF7nDH3q.d.cts → types-CmUA9sal.d.cts} +1 -1
  67. package/dist/{where-BmtjfWuS.d.cts → where-5zf15aFZ.d.cts} +1 -1
  68. package/dist/{where-kk1Zz2En.d.ts → where-CtrLu1Zf.d.ts} +1 -1
  69. package/package.json +8 -8
  70. package/dist/chunk-5H3BAMTB.js +0 -32
  71. package/dist/chunk-5H3BAMTB.js.map +0 -1
  72. package/dist/chunk-DN4RUDF3.cjs.map +0 -1
  73. package/dist/chunk-ENXJLDRK.js.map +0 -1
  74. package/dist/chunk-IUIWCFG3.cjs +0 -36
  75. package/dist/chunk-IUIWCFG3.cjs.map +0 -1
  76. package/dist/chunk-RF5EUQWS.js.map +0 -1
  77. package/dist/chunk-TVUARC7S.cjs.map +0 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  var chunkWFUN6DCM_cjs = require('./chunk-WFUN6DCM.cjs');
4
4
  var chunkPYJOBZR3_cjs = require('./chunk-PYJOBZR3.cjs');
5
- var chunkIUIWCFG3_cjs = require('./chunk-IUIWCFG3.cjs');
5
+ var chunkFFHW2JEK_cjs = require('./chunk-FFHW2JEK.cjs');
6
6
  var chunkCTHNVU6K_cjs = require('./chunk-CTHNVU6K.cjs');
7
7
  var chunkEK6RJ373_cjs = require('./chunk-EK6RJ373.cjs');
8
8
  var chunkX3244EKP_cjs = require('./chunk-X3244EKP.cjs');
@@ -345,7 +345,7 @@ function diffNodes(before, after) {
345
345
  }
346
346
  function diffNodeDef(name, before, after) {
347
347
  const changes = [];
348
- if (!chunkIUIWCFG3_cjs.canonicalEqual(before.properties, after.properties)) {
348
+ if (!chunkFFHW2JEK_cjs.canonicalEqual(before.properties, after.properties)) {
349
349
  const beforeProps = before.properties.properties ?? {};
350
350
  const afterProps = after.properties.properties ?? {};
351
351
  const beforeRequired = new Set(before.properties.required);
@@ -384,7 +384,7 @@ function diffNodeDef(name, before, after) {
384
384
  after
385
385
  });
386
386
  }
387
- if (!chunkIUIWCFG3_cjs.canonicalEqual(before.uniqueConstraints, after.uniqueConstraints)) {
387
+ if (!chunkFFHW2JEK_cjs.canonicalEqual(before.uniqueConstraints, after.uniqueConstraints)) {
388
388
  changes.push({
389
389
  type: "modified",
390
390
  kind: name,
@@ -468,7 +468,7 @@ function diffEdges(before, after) {
468
468
  }
469
469
  function diffEdgeDef(name, before, after) {
470
470
  const changes = [];
471
- if (!chunkIUIWCFG3_cjs.canonicalEqual(before.fromKinds, after.fromKinds)) {
471
+ if (!chunkFFHW2JEK_cjs.canonicalEqual(before.fromKinds, after.fromKinds)) {
472
472
  changes.push({
473
473
  type: "modified",
474
474
  kind: name,
@@ -478,7 +478,7 @@ function diffEdgeDef(name, before, after) {
478
478
  after
479
479
  });
480
480
  }
481
- if (!chunkIUIWCFG3_cjs.canonicalEqual(before.toKinds, after.toKinds)) {
481
+ if (!chunkFFHW2JEK_cjs.canonicalEqual(before.toKinds, after.toKinds)) {
482
482
  changes.push({
483
483
  type: "modified",
484
484
  kind: name,
@@ -498,7 +498,7 @@ function diffEdgeDef(name, before, after) {
498
498
  after
499
499
  });
500
500
  }
501
- if (!chunkIUIWCFG3_cjs.canonicalEqual(before.properties, after.properties)) {
501
+ if (!chunkFFHW2JEK_cjs.canonicalEqual(before.properties, after.properties)) {
502
502
  changes.push({
503
503
  type: "modified",
504
504
  kind: name,
@@ -523,7 +523,7 @@ function diffEdgeDef(name, before, after) {
523
523
  function annotationsChanged(before, after) {
524
524
  if (before === void 0 && after === void 0) return false;
525
525
  if (before === void 0 || after === void 0) return true;
526
- return !chunkIUIWCFG3_cjs.canonicalEqual(before, after);
526
+ return !chunkFFHW2JEK_cjs.canonicalEqual(before, after);
527
527
  }
528
528
  function diffOntology(before, after) {
529
529
  const changes = [];
@@ -622,7 +622,7 @@ function diffIndexes(before, after) {
622
622
  for (const [name, beforeIndex] of beforeByName) {
623
623
  const afterIndex = afterByName.get(name);
624
624
  if (!afterIndex) continue;
625
- if (!chunkIUIWCFG3_cjs.canonicalEqual(beforeIndex, afterIndex)) {
625
+ if (!chunkFFHW2JEK_cjs.canonicalEqual(beforeIndex, afterIndex)) {
626
626
  changes.push({
627
627
  type: "modified",
628
628
  name,
@@ -652,7 +652,7 @@ function diffExtension(before, after) {
652
652
  details: "Graph extension document was removed"
653
653
  };
654
654
  }
655
- if (chunkIUIWCFG3_cjs.canonicalEqual(before, after)) return void 0;
655
+ if (chunkFFHW2JEK_cjs.canonicalEqual(before, after)) return void 0;
656
656
  return {
657
657
  type: "modified",
658
658
  severity: "safe",
@@ -1487,7 +1487,7 @@ async function computeSchemaHash(schema) {
1487
1487
  ...schema.extension === void 0 ? {} : { extension: schema.extension },
1488
1488
  ...schema.deprecatedKinds === void 0 ? {} : { deprecatedKinds: schema.deprecatedKinds }
1489
1489
  };
1490
- const json = JSON.stringify(hashable, chunkIUIWCFG3_cjs.sortedReplacer);
1490
+ const json = JSON.stringify(hashable, chunkFFHW2JEK_cjs.sortedReplacer);
1491
1491
  return chunkCTHNVU6K_cjs.sha256Hex(json);
1492
1492
  }
1493
1493
  var COMPILE_NODE_CACHE = /* @__PURE__ */ new Map();
@@ -1730,7 +1730,7 @@ function extensionKindNames(document) {
1730
1730
  function mergeGraphExtension(graph, document) {
1731
1731
  const existingDocument = graph.extension ?? Object.freeze({});
1732
1732
  const unionDocument = unionDocuments(existingDocument, document);
1733
- if (graph.extension !== void 0 && chunkIUIWCFG3_cjs.canonicalEqual(unionDocument, existingDocument)) {
1733
+ if (graph.extension !== void 0 && chunkFFHW2JEK_cjs.canonicalEqual(unionDocument, existingDocument)) {
1734
1734
  return graph;
1735
1735
  }
1736
1736
  const validatedUnion = chunkPYJOBZR3_cjs.unwrap(chunkPYJOBZR3_cjs.validateGraphExtension(unionDocument));
@@ -2364,7 +2364,7 @@ async function loadActiveSchemaWithBootstrap(backend, graphId) {
2364
2364
  try {
2365
2365
  return await backend.getActiveSchema(graphId);
2366
2366
  } catch (error) {
2367
- if (backend.bootstrapTables && chunkIUIWCFG3_cjs.isMissingTableError(error)) {
2367
+ if (backend.bootstrapTables && chunkFFHW2JEK_cjs.isMissingTableError(error)) {
2368
2368
  await backend.bootstrapTables();
2369
2369
  return await backend.getActiveSchema(graphId);
2370
2370
  }
@@ -2512,7 +2512,7 @@ async function readActiveSchemaPure(backend, graphId) {
2512
2512
  try {
2513
2513
  activeRow = await backend.getActiveSchema(graphId);
2514
2514
  } catch (error) {
2515
- if (chunkIUIWCFG3_cjs.isMissingTableError(error)) {
2515
+ if (chunkFFHW2JEK_cjs.isMissingTableError(error)) {
2516
2516
  throw schemaNotInitializedError(graphId, error);
2517
2517
  }
2518
2518
  throw error;
@@ -2717,5 +2717,5 @@ exports.validateEdgeProps = validateEdgeProps;
2717
2717
  exports.validateNodeProps = validateNodeProps;
2718
2718
  exports.validateProps = validateProps;
2719
2719
  exports.wrapZodError = wrapZodError;
2720
- //# sourceMappingURL=chunk-ZGEMI7MJ.cjs.map
2721
- //# sourceMappingURL=chunk-ZGEMI7MJ.cjs.map
2720
+ //# sourceMappingURL=chunk-WZH2MKHW.cjs.map
2721
+ //# sourceMappingURL=chunk-WZH2MKHW.cjs.map