@nicia-ai/typegraph 0.68.0 → 0.68.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 +8 -0
- package/dist/backend/postgres/pglite-store.cjs +1 -1
- package/dist/backend/postgres/pglite-store.js +1 -1
- package/dist/backend/sqlite/local-store.cjs +1 -1
- package/dist/backend/sqlite/local-store.js +1 -1
- package/dist/{chunk-T3VU3YRQ.cjs → chunk-6GUBF5TF.cjs} +24 -18
- package/dist/chunk-6GUBF5TF.cjs.map +1 -0
- package/dist/{chunk-55DGFZYC.js → chunk-EJYBHBIB.js} +3 -3
- package/dist/{chunk-55DGFZYC.js.map → chunk-EJYBHBIB.js.map} +1 -1
- package/dist/{chunk-WY3IFEKV.cjs → chunk-IFTYHOEE.cjs} +13 -5
- package/dist/chunk-IFTYHOEE.cjs.map +1 -0
- package/dist/{chunk-RTPMG6LQ.js → chunk-JVKHJQ6Q.js} +13 -5
- package/dist/chunk-JVKHJQ6Q.js.map +1 -0
- package/dist/{chunk-FS2GVO2T.cjs → chunk-OBEYH22Q.cjs} +159 -159
- package/dist/{chunk-FS2GVO2T.cjs.map → chunk-OBEYH22Q.cjs.map} +1 -1
- package/dist/{chunk-7YJHUY4T.js → chunk-VUYODTHL.js} +10 -5
- package/dist/chunk-VUYODTHL.js.map +1 -0
- package/dist/graph-merge/index.cjs +20 -20
- package/dist/graph-merge/index.cjs.map +1 -1
- package/dist/graph-merge/index.d.cts +19 -8
- package/dist/graph-merge/index.d.ts +19 -8
- package/dist/graph-merge/index.js +5 -5
- package/dist/graph-merge/index.js.map +1 -1
- package/dist/index.cjs +43 -43
- package/dist/index.js +2 -2
- package/dist/interchange/index.cjs +25 -25
- package/dist/interchange/index.js +2 -2
- package/dist/{local-store-impl-GI6S4J6B.cjs → local-store-impl-INNRHDK3.cjs} +5 -5
- package/dist/{local-store-impl-GI6S4J6B.cjs.map → local-store-impl-INNRHDK3.cjs.map} +1 -1
- package/dist/{local-store-impl-CCMWTLGY.js → local-store-impl-VGC3OKCA.js} +4 -4
- package/dist/{local-store-impl-CCMWTLGY.js.map → local-store-impl-VGC3OKCA.js.map} +1 -1
- package/dist/{pglite-store-impl-HAPAJUIO.cjs → pglite-store-impl-KDS4NRMC.cjs} +5 -5
- package/dist/{pglite-store-impl-HAPAJUIO.cjs.map → pglite-store-impl-KDS4NRMC.cjs.map} +1 -1
- package/dist/{pglite-store-impl-HDLFOZWS.js → pglite-store-impl-LJDF2EUF.js} +4 -4
- package/dist/{pglite-store-impl-HDLFOZWS.js.map → pglite-store-impl-LJDF2EUF.js.map} +1 -1
- package/package.json +1 -1
- package/dist/chunk-7YJHUY4T.js.map +0 -1
- package/dist/chunk-RTPMG6LQ.js.map +0 -1
- package/dist/chunk-T3VU3YRQ.cjs.map +0 -1
- package/dist/chunk-WY3IFEKV.cjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { graphOwesClaims, runWritePlan, mixedWritePlan, createNodeBatchValidationSeams, primeBatchValidationCaches, createEdgeBatchValidationBackend, classifyDurableEdgeBatchOutcomes, checkDisjointnessConstraint, edgeMatchIdentityUpdateRefusal, checkCardinalityConstraint, resolveEdgeMatchIdentityStorage } from './chunk-
|
|
1
|
+
import { graphOwesClaims, runWritePlan, mixedWritePlan, createNodeBatchValidationSeams, primeBatchValidationCaches, createEdgeBatchValidationBackend, classifyDurableEdgeBatchOutcomes, checkDisjointnessConstraint, edgeMatchIdentityUpdateRefusal, checkCardinalityConstraint, resolveEdgeMatchIdentityStorage } from './chunk-JVKHJQ6Q.js';
|
|
2
2
|
import { checkUniquenessConstraints, planNodeCreateClaims } from './chunk-FXOFJ4FS.js';
|
|
3
3
|
import { edgeCardinalityClaim } from './chunk-CDKNGCE7.js';
|
|
4
4
|
import { assertEdgeMatchIdentityBackendSupport, IDENTITY_IMPORT_PROGRESS, IDENTITY_IMPORT_FAILED_ASSERTION } from './chunk-SYXTWPX6.js';
|
|
@@ -616,12 +616,17 @@ function serializedStreamRefusalText(requested, heldBy) {
|
|
|
616
616
|
suggestion: "Await the import already in flight before starting the next one, or import into an independent backend."
|
|
617
617
|
};
|
|
618
618
|
}
|
|
619
|
+
function summarizeImportErrors(errors) {
|
|
620
|
+
return errors.map(
|
|
621
|
+
(entry) => `${entry.entityType} ${entry.kind} ${entry.id}: ${entry.error}`
|
|
622
|
+
).join("; ");
|
|
623
|
+
}
|
|
619
624
|
function throwIfStreamChunkFailed(result, options) {
|
|
620
625
|
if (options.onStreamChunkError === "continue" || result.errors.length === 0) {
|
|
621
626
|
return;
|
|
622
627
|
}
|
|
623
628
|
throw new Error(
|
|
624
|
-
|
|
629
|
+
`Graph interchange stream aborted after a chunk reported import errors. Reported errors: ${summarizeImportErrors(result.errors)}. Earlier chunks remain committed; use onStreamChunkError: "continue" for best-effort ingestion.`
|
|
625
630
|
);
|
|
626
631
|
}
|
|
627
632
|
function assertIdentityImportSupported(store, hasIdentitySection) {
|
|
@@ -2980,6 +2985,6 @@ function trustedImportGraph(store, data) {
|
|
|
2980
2985
|
return trustedImportGraphStream(store, graphDataChunks(data));
|
|
2981
2986
|
}
|
|
2982
2987
|
|
|
2983
|
-
export { ConflictStrategySchema, ExportOptionsSchema, ExportStreamOptionsSchema, FORMAT_VERSION, GraphDataHeaderSchema, GraphDataSchema, GraphDataSourceSchema, GraphInterchangeChunkSchema, IdentityInterchangeModeSchema, ImportErrorSchema, ImportOptionsSchema, ImportResultSchema, InterchangeEdgeSchema, InterchangeIdentityAssertionSchema, InterchangeIdentitySchema, InterchangeNodeSchema, UnknownPropertyStrategySchema, exportGraph, exportGraphStream, importGraph, importGraphStream, registerIngestionImportTarget, trustedImportGraph, trustedImportGraphStream };
|
|
2984
|
-
//# sourceMappingURL=chunk-
|
|
2985
|
-
//# sourceMappingURL=chunk-
|
|
2988
|
+
export { ConflictStrategySchema, ExportOptionsSchema, ExportStreamOptionsSchema, FORMAT_VERSION, GraphDataHeaderSchema, GraphDataSchema, GraphDataSourceSchema, GraphInterchangeChunkSchema, IdentityInterchangeModeSchema, ImportErrorSchema, ImportOptionsSchema, ImportResultSchema, InterchangeEdgeSchema, InterchangeIdentityAssertionSchema, InterchangeIdentitySchema, InterchangeNodeSchema, UnknownPropertyStrategySchema, exportGraph, exportGraphStream, importGraph, importGraphStream, registerIngestionImportTarget, summarizeImportErrors, trustedImportGraph, trustedImportGraphStream };
|
|
2989
|
+
//# sourceMappingURL=chunk-VUYODTHL.js.map
|
|
2990
|
+
//# sourceMappingURL=chunk-VUYODTHL.js.map
|