@nicia-ai/typegraph 0.23.0 → 0.24.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 (45) hide show
  1. package/dist/backend/postgres/index.cjs +32 -32
  2. package/dist/backend/postgres/index.js +3 -3
  3. package/dist/backend/sqlite/index.cjs +13 -13
  4. package/dist/backend/sqlite/index.js +3 -3
  5. package/dist/backend/sqlite/libsql.cjs +6 -6
  6. package/dist/backend/sqlite/libsql.js +3 -3
  7. package/dist/backend/sqlite/local.cjs +7 -7
  8. package/dist/backend/sqlite/local.js +3 -3
  9. package/dist/{chunk-7OD2EPN4.cjs → chunk-5HVDOPZU.cjs} +70 -5
  10. package/dist/chunk-5HVDOPZU.cjs.map +1 -0
  11. package/dist/{chunk-H2CAJ4ZV.js → chunk-EY4LBX3F.js} +70 -5
  12. package/dist/chunk-EY4LBX3F.js.map +1 -0
  13. package/dist/{chunk-JYUQA77I.js → chunk-GFGVREHH.js} +3 -3
  14. package/dist/{chunk-JYUQA77I.js.map → chunk-GFGVREHH.js.map} +1 -1
  15. package/dist/{chunk-7TU5EWQ7.js → chunk-GUTQTMOV.js} +2 -2
  16. package/dist/chunk-GUTQTMOV.js.map +1 -0
  17. package/dist/{chunk-RS5OLGEW.js → chunk-LBORRUNJ.js} +2 -2
  18. package/dist/chunk-LBORRUNJ.js.map +1 -0
  19. package/dist/{chunk-WRWVWKQL.cjs → chunk-OLROXS2S.cjs} +2 -2
  20. package/dist/chunk-OLROXS2S.cjs.map +1 -0
  21. package/dist/{chunk-O5BRZEIZ.cjs → chunk-OVJ2BE5Q.cjs} +55 -27
  22. package/dist/chunk-OVJ2BE5Q.cjs.map +1 -0
  23. package/dist/{chunk-HRNQ3DVJ.cjs → chunk-PAUN562Y.cjs} +6 -6
  24. package/dist/{chunk-HRNQ3DVJ.cjs.map → chunk-PAUN562Y.cjs.map} +1 -1
  25. package/dist/{chunk-EP2KSSD5.js → chunk-QOLTW7OZ.js} +38 -10
  26. package/dist/chunk-QOLTW7OZ.js.map +1 -0
  27. package/dist/{chunk-RNUNP5JD.cjs → chunk-SUHW2UYL.cjs} +2 -2
  28. package/dist/chunk-SUHW2UYL.cjs.map +1 -0
  29. package/dist/index.cjs +61 -61
  30. package/dist/index.cjs.map +1 -1
  31. package/dist/index.js +5 -5
  32. package/dist/index.js.map +1 -1
  33. package/dist/interchange/index.cjs +6 -6
  34. package/dist/interchange/index.js +1 -1
  35. package/dist/schema/index.cjs +21 -21
  36. package/dist/schema/index.js +3 -3
  37. package/package.json +5 -5
  38. package/dist/chunk-7OD2EPN4.cjs.map +0 -1
  39. package/dist/chunk-7TU5EWQ7.js.map +0 -1
  40. package/dist/chunk-EP2KSSD5.js.map +0 -1
  41. package/dist/chunk-H2CAJ4ZV.js.map +0 -1
  42. package/dist/chunk-O5BRZEIZ.cjs.map +0 -1
  43. package/dist/chunk-RNUNP5JD.cjs.map +0 -1
  44. package/dist/chunk-RS5OLGEW.js.map +0 -1
  45. package/dist/chunk-WRWVWKQL.cjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkWRWVWKQL_cjs = require('../chunk-WRWVWKQL.cjs');
3
+ var chunkOLROXS2S_cjs = require('../chunk-OLROXS2S.cjs');
4
4
  require('../chunk-O5PST6TB.cjs');
5
5
  var zod = require('zod');
6
6
 
@@ -121,8 +121,8 @@ async function exportGraph(store, options) {
121
121
  const graph = store.graph;
122
122
  const graphId = store.graphId;
123
123
  const backend = store.backend;
124
- const nodeKindsToExport = options_.nodeKinds ?? chunkWRWVWKQL_cjs.getNodeKinds(graph);
125
- const edgeKindsToExport = options_.edgeKinds ?? chunkWRWVWKQL_cjs.getEdgeKinds(graph);
124
+ const nodeKindsToExport = options_.nodeKinds ?? chunkOLROXS2S_cjs.getNodeKinds(graph);
125
+ const edgeKindsToExport = options_.edgeKinds ?? chunkOLROXS2S_cjs.getEdgeKinds(graph);
126
126
  const nodes = [];
127
127
  for (const kind of nodeKindsToExport) {
128
128
  const kindNodes = await exportNodesOfKind(backend, graphId, kind, options_);
@@ -136,7 +136,7 @@ async function exportGraph(store, options) {
136
136
  const schemaVersion = await backend.getActiveSchema(graphId);
137
137
  return {
138
138
  formatVersion: FORMAT_VERSION,
139
- exportedAt: chunkWRWVWKQL_cjs.nowIso(),
139
+ exportedAt: chunkOLROXS2S_cjs.nowIso(),
140
140
  source: {
141
141
  type: "typegraph-export",
142
142
  graphId,
@@ -284,7 +284,7 @@ async function importGraph(store, data, options) {
284
284
  }
285
285
  function buildNodeSchemaMap(graph) {
286
286
  const map = /* @__PURE__ */ new Map();
287
- for (const kindName of chunkWRWVWKQL_cjs.getNodeKinds(graph)) {
287
+ for (const kindName of chunkOLROXS2S_cjs.getNodeKinds(graph)) {
288
288
  const registration = graph.nodes[kindName];
289
289
  map.set(kindName, {
290
290
  registration,
@@ -295,7 +295,7 @@ function buildNodeSchemaMap(graph) {
295
295
  }
296
296
  function buildEdgeSchemaMap(graph) {
297
297
  const map = /* @__PURE__ */ new Map();
298
- for (const kindName of chunkWRWVWKQL_cjs.getEdgeKinds(graph)) {
298
+ for (const kindName of chunkOLROXS2S_cjs.getEdgeKinds(graph)) {
299
299
  const registration = graph.edges[kindName];
300
300
  map.set(kindName, {
301
301
  registration,
@@ -1,4 +1,4 @@
1
- import { getNodeKinds, getEdgeKinds, nowIso } from '../chunk-RS5OLGEW.js';
1
+ import { getNodeKinds, getEdgeKinds, nowIso } from '../chunk-LBORRUNJ.js';
2
2
  import '../chunk-WFMTAEEN.js';
3
3
  import { z } from 'zod';
4
4
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkHRNQ3DVJ_cjs = require('../chunk-HRNQ3DVJ.cjs');
4
- require('../chunk-WRWVWKQL.cjs');
3
+ var chunkPAUN562Y_cjs = require('../chunk-PAUN562Y.cjs');
4
+ require('../chunk-OLROXS2S.cjs');
5
5
  require('../chunk-O5PST6TB.cjs');
6
6
 
7
7
  // src/schema/deserializer.ts
@@ -42,7 +42,7 @@ function buildRegistryFromClosures(schema) {
42
42
  const edgeImplyingClosure = recordToMap(closures.edgeImplyingClosure);
43
43
  const nodeKinds = /* @__PURE__ */ new Map();
44
44
  const edgeKinds = /* @__PURE__ */ new Map();
45
- return new chunkHRNQ3DVJ_cjs.KindRegistry(nodeKinds, edgeKinds, {
45
+ return new chunkPAUN562Y_cjs.KindRegistry(nodeKinds, edgeKinds, {
46
46
  subClassAncestors,
47
47
  subClassDescendants,
48
48
  broaderClosure,
@@ -70,75 +70,75 @@ function simpleRecordToMap(record) {
70
70
 
71
71
  Object.defineProperty(exports, "computeSchemaDiff", {
72
72
  enumerable: true,
73
- get: function () { return chunkHRNQ3DVJ_cjs.computeSchemaDiff; }
73
+ get: function () { return chunkPAUN562Y_cjs.computeSchemaDiff; }
74
74
  });
75
75
  Object.defineProperty(exports, "computeSchemaHash", {
76
76
  enumerable: true,
77
- get: function () { return chunkHRNQ3DVJ_cjs.computeSchemaHash; }
77
+ get: function () { return chunkPAUN562Y_cjs.computeSchemaHash; }
78
78
  });
79
79
  Object.defineProperty(exports, "createValidationError", {
80
80
  enumerable: true,
81
- get: function () { return chunkHRNQ3DVJ_cjs.createValidationError; }
81
+ get: function () { return chunkPAUN562Y_cjs.createValidationError; }
82
82
  });
83
83
  Object.defineProperty(exports, "deserializeWherePredicate", {
84
84
  enumerable: true,
85
- get: function () { return chunkHRNQ3DVJ_cjs.deserializeWherePredicate; }
85
+ get: function () { return chunkPAUN562Y_cjs.deserializeWherePredicate; }
86
86
  });
87
87
  Object.defineProperty(exports, "ensureSchema", {
88
88
  enumerable: true,
89
- get: function () { return chunkHRNQ3DVJ_cjs.ensureSchema; }
89
+ get: function () { return chunkPAUN562Y_cjs.ensureSchema; }
90
90
  });
91
91
  Object.defineProperty(exports, "getActiveSchema", {
92
92
  enumerable: true,
93
- get: function () { return chunkHRNQ3DVJ_cjs.getActiveSchema; }
93
+ get: function () { return chunkPAUN562Y_cjs.getActiveSchema; }
94
94
  });
95
95
  Object.defineProperty(exports, "getMigrationActions", {
96
96
  enumerable: true,
97
- get: function () { return chunkHRNQ3DVJ_cjs.getMigrationActions; }
97
+ get: function () { return chunkPAUN562Y_cjs.getMigrationActions; }
98
98
  });
99
99
  Object.defineProperty(exports, "getSchemaChanges", {
100
100
  enumerable: true,
101
- get: function () { return chunkHRNQ3DVJ_cjs.getSchemaChanges; }
101
+ get: function () { return chunkPAUN562Y_cjs.getSchemaChanges; }
102
102
  });
103
103
  Object.defineProperty(exports, "initializeSchema", {
104
104
  enumerable: true,
105
- get: function () { return chunkHRNQ3DVJ_cjs.initializeSchema; }
105
+ get: function () { return chunkPAUN562Y_cjs.initializeSchema; }
106
106
  });
107
107
  Object.defineProperty(exports, "isBackwardsCompatible", {
108
108
  enumerable: true,
109
- get: function () { return chunkHRNQ3DVJ_cjs.isBackwardsCompatible; }
109
+ get: function () { return chunkPAUN562Y_cjs.isBackwardsCompatible; }
110
110
  });
111
111
  Object.defineProperty(exports, "isSchemaInitialized", {
112
112
  enumerable: true,
113
- get: function () { return chunkHRNQ3DVJ_cjs.isSchemaInitialized; }
113
+ get: function () { return chunkPAUN562Y_cjs.isSchemaInitialized; }
114
114
  });
115
115
  Object.defineProperty(exports, "migrateSchema", {
116
116
  enumerable: true,
117
- get: function () { return chunkHRNQ3DVJ_cjs.migrateSchema; }
117
+ get: function () { return chunkPAUN562Y_cjs.migrateSchema; }
118
118
  });
119
119
  Object.defineProperty(exports, "rollbackSchema", {
120
120
  enumerable: true,
121
- get: function () { return chunkHRNQ3DVJ_cjs.rollbackSchema; }
121
+ get: function () { return chunkPAUN562Y_cjs.rollbackSchema; }
122
122
  });
123
123
  Object.defineProperty(exports, "serializeSchema", {
124
124
  enumerable: true,
125
- get: function () { return chunkHRNQ3DVJ_cjs.serializeSchema; }
125
+ get: function () { return chunkPAUN562Y_cjs.serializeSchema; }
126
126
  });
127
127
  Object.defineProperty(exports, "validateEdgeProps", {
128
128
  enumerable: true,
129
- get: function () { return chunkHRNQ3DVJ_cjs.validateEdgeProps; }
129
+ get: function () { return chunkPAUN562Y_cjs.validateEdgeProps; }
130
130
  });
131
131
  Object.defineProperty(exports, "validateNodeProps", {
132
132
  enumerable: true,
133
- get: function () { return chunkHRNQ3DVJ_cjs.validateNodeProps; }
133
+ get: function () { return chunkPAUN562Y_cjs.validateNodeProps; }
134
134
  });
135
135
  Object.defineProperty(exports, "validateProps", {
136
136
  enumerable: true,
137
- get: function () { return chunkHRNQ3DVJ_cjs.validateProps; }
137
+ get: function () { return chunkPAUN562Y_cjs.validateProps; }
138
138
  });
139
139
  Object.defineProperty(exports, "wrapZodError", {
140
140
  enumerable: true,
141
- get: function () { return chunkHRNQ3DVJ_cjs.wrapZodError; }
141
+ get: function () { return chunkPAUN562Y_cjs.wrapZodError; }
142
142
  });
143
143
  exports.deserializeSchema = deserializeSchema;
144
144
  //# sourceMappingURL=index.cjs.map
@@ -1,6 +1,6 @@
1
- import { KindRegistry } from '../chunk-JYUQA77I.js';
2
- export { computeSchemaDiff, computeSchemaHash, createValidationError, deserializeWherePredicate, ensureSchema, getActiveSchema, getMigrationActions, getSchemaChanges, initializeSchema, isBackwardsCompatible, isSchemaInitialized, migrateSchema, rollbackSchema, serializeSchema, validateEdgeProps, validateNodeProps, validateProps, wrapZodError } from '../chunk-JYUQA77I.js';
3
- import '../chunk-RS5OLGEW.js';
1
+ import { KindRegistry } from '../chunk-GFGVREHH.js';
2
+ export { computeSchemaDiff, computeSchemaHash, createValidationError, deserializeWherePredicate, ensureSchema, getActiveSchema, getMigrationActions, getSchemaChanges, initializeSchema, isBackwardsCompatible, isSchemaInitialized, migrateSchema, rollbackSchema, serializeSchema, validateEdgeProps, validateNodeProps, validateProps, wrapZodError } from '../chunk-GFGVREHH.js';
3
+ import '../chunk-LBORRUNJ.js';
4
4
  import '../chunk-WFMTAEEN.js';
5
5
 
6
6
  // src/schema/deserializer.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nicia-ai/typegraph",
3
- "version": "0.23.0",
3
+ "version": "0.24.1",
4
4
  "description": "TypeScript-first embedded knowledge graph library with ontological reasoning",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -158,10 +158,10 @@
158
158
  }
159
159
  },
160
160
  "dependencies": {
161
- "nanoid": "^5.1.9"
161
+ "nanoid": "^5.1.11"
162
162
  },
163
163
  "devDependencies": {
164
- "@libsql/client": "^0.17.2",
164
+ "@libsql/client": "^0.17.3",
165
165
  "@neondatabase/serverless": "^1.1.0",
166
166
  "@stryker-mutator/core": "^9.6.1",
167
167
  "@stryker-mutator/vitest-runner": "^9.6.1",
@@ -171,7 +171,7 @@
171
171
  "@vitest/coverage-v8": "^4.1.5",
172
172
  "better-sqlite3": "^12.9.0",
173
173
  "drizzle-orm": "^0.45.2",
174
- "eslint": "^10.2.1",
174
+ "eslint": "^10.3.0",
175
175
  "fast-check": "^4.7.0",
176
176
  "pg": "^8.20.0",
177
177
  "postgres": "^3.4.9",
@@ -180,7 +180,7 @@
180
180
  "tsup": "^8.5.1",
181
181
  "typescript": "^5.9.3",
182
182
  "vitest": "^4.1.5",
183
- "zod": "^4.3.6",
183
+ "zod": "^4.4.3",
184
184
  "@typegraph/eslint-config": "0.1.0"
185
185
  },
186
186
  "scripts": {