@nicia-ai/typegraph 0.66.1 → 0.67.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.
Files changed (39) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +15 -0
  3. package/dist/backend/postgres/pglite-store.cjs +1 -1
  4. package/dist/backend/postgres/pglite-store.js +1 -1
  5. package/dist/backend/sqlite/local-store.cjs +1 -1
  6. package/dist/backend/sqlite/local-store.js +1 -1
  7. package/dist/{chunk-TR7QTODF.js → chunk-55DGFZYC.js} +3 -3
  8. package/dist/{chunk-TR7QTODF.js.map → chunk-55DGFZYC.js.map} +1 -1
  9. package/dist/{chunk-WB55URNM.js → chunk-6CKSTY2D.js} +7 -3
  10. package/dist/chunk-6CKSTY2D.js.map +1 -0
  11. package/dist/{chunk-SSDHR2C2.js → chunk-EFSXK3DW.js} +3 -3
  12. package/dist/{chunk-SSDHR2C2.js.map → chunk-EFSXK3DW.js.map} +1 -1
  13. package/dist/{chunk-Y4X6ODVY.cjs → chunk-FS2GVO2T.cjs} +56 -56
  14. package/dist/{chunk-Y4X6ODVY.cjs.map → chunk-FS2GVO2T.cjs.map} +1 -1
  15. package/dist/{chunk-K7YACILO.cjs → chunk-GXHEGNI6.cjs} +9 -9
  16. package/dist/{chunk-K7YACILO.cjs.map → chunk-GXHEGNI6.cjs.map} +1 -1
  17. package/dist/{chunk-BX42F7IJ.cjs → chunk-SSDLQPMY.cjs} +7 -2
  18. package/dist/chunk-SSDLQPMY.cjs.map +1 -0
  19. package/dist/graph-merge/index.cjs +500 -26
  20. package/dist/graph-merge/index.cjs.map +1 -1
  21. package/dist/graph-merge/index.d.cts +384 -2
  22. package/dist/graph-merge/index.d.ts +384 -2
  23. package/dist/graph-merge/index.js +485 -15
  24. package/dist/graph-merge/index.js.map +1 -1
  25. package/dist/index.cjs +63 -63
  26. package/dist/index.js +3 -3
  27. package/dist/{local-store-impl-OUINMCYI.cjs → local-store-impl-7SPBIS4M.cjs} +5 -5
  28. package/dist/{local-store-impl-OUINMCYI.cjs.map → local-store-impl-7SPBIS4M.cjs.map} +1 -1
  29. package/dist/{local-store-impl-ERPNYOCL.js → local-store-impl-E23EDYPV.js} +4 -4
  30. package/dist/{local-store-impl-ERPNYOCL.js.map → local-store-impl-E23EDYPV.js.map} +1 -1
  31. package/dist/{pglite-store-impl-Z3SOOP75.cjs → pglite-store-impl-U55HQ5ZY.cjs} +5 -5
  32. package/dist/{pglite-store-impl-Z3SOOP75.cjs.map → pglite-store-impl-U55HQ5ZY.cjs.map} +1 -1
  33. package/dist/{pglite-store-impl-DUJBQZS5.js → pglite-store-impl-VAIEJZOU.js} +4 -4
  34. package/dist/{pglite-store-impl-DUJBQZS5.js.map → pglite-store-impl-VAIEJZOU.js.map} +1 -1
  35. package/dist/schema/index.cjs +27 -27
  36. package/dist/schema/index.js +2 -2
  37. package/package.json +1 -1
  38. package/dist/chunk-BX42F7IJ.cjs.map +0 -1
  39. package/dist/chunk-WB55URNM.js.map +0 -1
@@ -571,6 +571,10 @@ async function getSchemaHash(graph, version) {
571
571
  }
572
572
  return hash;
573
573
  }
574
+ var DEFINITION_HASH_VERSION = 1;
575
+ async function getGraphDefinitionHash(graph) {
576
+ return getSchemaHash(graph, DEFINITION_HASH_VERSION);
577
+ }
574
578
  async function computeSchemaHash(schema) {
575
579
  const hashable = {
576
580
  graphId: schema.graphId,
@@ -3784,6 +3788,6 @@ async function getCommittedSchemaVersion(backend, graphId) {
3784
3788
  return row?.version;
3785
3789
  }
3786
3790
 
3787
- export { applyDeprecatedKinds, assertSchemaCurrent, broader, buildGraphExtensionOntologyKeySet, buildKindRegistry, buildValidatedKindRegistry, classifySchemaChanges, commitNewSchemaVersion, commitNewSchemaVersionIfKindsEmpty, commitNewSchemaVersionWithPreflight, compileTimeOntologyKey, computeSchemaDiff, computeSchemaHash, core, deserializeWherePredicate, differentFrom, disjointWith, ensureIdentitySchemaStorage, ensureSchema, equivalentTo, extensionKindNames, getActiveSchema, getCommittedSchemaVersion, getMigrationActions, getSchemaChanges, hasPart, identityKindCascadeNeeded, identitySchemaCommitPreflight, implies, initializeSchema, inspectAdoptedIdentityStorage, inverseOf, isBackwardsCompatible, isSchemaInitialized, loadActiveSchemaWithBootstrap, loadAndMergeGraphExtensionDocument, loadAndVerifyGraph, mergeGraphExtension, migrateSchema, narrower, parseSerializedSchema, partOf, planRemovals, prepareNewSchemaVersion, relatedTo, requiresMigration, rollbackSchema, sameAs, serializeIndexDeclaration, serializeSchema, serializeSchemaProperties, stripGraphExtension, subClassOf };
3788
- //# sourceMappingURL=chunk-WB55URNM.js.map
3789
- //# sourceMappingURL=chunk-WB55URNM.js.map
3791
+ export { applyDeprecatedKinds, assertSchemaCurrent, broader, buildGraphExtensionOntologyKeySet, buildKindRegistry, buildValidatedKindRegistry, classifySchemaChanges, commitNewSchemaVersion, commitNewSchemaVersionIfKindsEmpty, commitNewSchemaVersionWithPreflight, compileTimeOntologyKey, computeSchemaDiff, computeSchemaHash, core, deserializeWherePredicate, differentFrom, disjointWith, ensureIdentitySchemaStorage, ensureSchema, equivalentTo, extensionKindNames, getActiveSchema, getCommittedSchemaVersion, getGraphDefinitionHash, getMigrationActions, getSchemaChanges, hasPart, identityKindCascadeNeeded, identitySchemaCommitPreflight, implies, initializeSchema, inspectAdoptedIdentityStorage, inverseOf, isBackwardsCompatible, isSchemaInitialized, loadActiveSchemaWithBootstrap, loadAndMergeGraphExtensionDocument, loadAndVerifyGraph, mergeGraphExtension, migrateSchema, narrower, parseSerializedSchema, partOf, planRemovals, prepareNewSchemaVersion, relatedTo, requiresMigration, rollbackSchema, sameAs, serializeIndexDeclaration, serializeSchema, serializeSchemaProperties, stripGraphExtension, subClassOf };
3792
+ //# sourceMappingURL=chunk-6CKSTY2D.js.map
3793
+ //# sourceMappingURL=chunk-6CKSTY2D.js.map