@nicia-ai/typegraph 0.65.0 → 0.66.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 +33 -0
- package/dist/{atomic-mutation-program-BznZQ06C.d.ts → atomic-mutation-program-BhP75Qn0.d.ts} +1 -1
- package/dist/{atomic-mutation-program-Bfu5z-je.d.cts → atomic-mutation-program-DMdmc4s0.d.cts} +1 -1
- package/dist/backend/drizzle/engine/index.cjs +13 -13
- package/dist/backend/drizzle/engine/index.d.cts +9 -9
- package/dist/backend/drizzle/engine/index.d.ts +9 -9
- package/dist/backend/drizzle/engine/index.js +8 -8
- package/dist/backend/drizzle/indexes.d.cts +1 -1
- package/dist/backend/drizzle/indexes.d.ts +1 -1
- package/dist/backend/index.cjs +91 -91
- package/dist/backend/index.d.cts +7 -7
- package/dist/backend/index.d.ts +7 -7
- package/dist/backend/index.js +8 -8
- package/dist/backend/postgres/index.cjs +23 -23
- package/dist/backend/postgres/index.d.cts +8 -8
- package/dist/backend/postgres/index.d.ts +8 -8
- package/dist/backend/postgres/index.js +8 -8
- package/dist/backend/postgres/pglite-store.cjs +1 -1
- package/dist/backend/postgres/pglite-store.d.cts +6 -6
- package/dist/backend/postgres/pglite-store.d.ts +6 -6
- package/dist/backend/postgres/pglite-store.js +1 -1
- package/dist/backend/postgres/pglite.cjs +10 -10
- package/dist/backend/postgres/pglite.d.cts +3 -3
- package/dist/backend/postgres/pglite.d.ts +3 -3
- package/dist/backend/postgres/pglite.js +9 -9
- package/dist/backend/sqlite/index.cjs +21 -21
- package/dist/backend/sqlite/index.d.cts +7 -7
- package/dist/backend/sqlite/index.d.ts +7 -7
- package/dist/backend/sqlite/index.js +8 -8
- package/dist/backend/sqlite/libsql.cjs +14 -14
- package/dist/backend/sqlite/libsql.d.cts +3 -3
- package/dist/backend/sqlite/libsql.d.ts +3 -3
- package/dist/backend/sqlite/libsql.js +8 -8
- package/dist/backend/sqlite/local-store.cjs +1 -1
- package/dist/backend/sqlite/local-store.d.cts +6 -6
- package/dist/backend/sqlite/local-store.d.ts +6 -6
- package/dist/backend/sqlite/local-store.js +1 -1
- package/dist/backend/sqlite/local.cjs +10 -10
- package/dist/backend/sqlite/local.d.cts +3 -3
- package/dist/backend/sqlite/local.d.ts +3 -3
- package/dist/backend/sqlite/local.js +9 -9
- package/dist/{chunk-PFXNQFFY.js → chunk-2DJKHZQ4.js} +75 -8
- package/dist/chunk-2DJKHZQ4.js.map +1 -0
- package/dist/{chunk-337ONI2I.js → chunk-3SUZXB5X.js} +146 -80
- package/dist/chunk-3SUZXB5X.js.map +1 -0
- package/dist/{chunk-4VTCIEK3.js → chunk-4TQOIBWH.js} +3 -3
- package/dist/{chunk-4VTCIEK3.js.map → chunk-4TQOIBWH.js.map} +1 -1
- package/dist/{chunk-JRWKRBI5.cjs → chunk-5JOCIMQ3.cjs} +6 -6
- package/dist/{chunk-JRWKRBI5.cjs.map → chunk-5JOCIMQ3.cjs.map} +1 -1
- package/dist/{chunk-BWQA3POT.cjs → chunk-6B3LQUYG.cjs} +206 -138
- package/dist/chunk-6B3LQUYG.cjs.map +1 -0
- package/dist/{chunk-RQPCUHIH.js → chunk-6ECNYQDW.js} +3 -3
- package/dist/{chunk-RQPCUHIH.js.map → chunk-6ECNYQDW.js.map} +1 -1
- package/dist/{chunk-OLB75LRQ.js → chunk-6GKKAQMW.js} +5 -5
- package/dist/{chunk-OLB75LRQ.js.map → chunk-6GKKAQMW.js.map} +1 -1
- package/dist/{chunk-OC5ROP7V.cjs → chunk-6JRVV2SS.cjs} +8 -2
- package/dist/chunk-6JRVV2SS.cjs.map +1 -0
- package/dist/{chunk-DSX3P4S5.cjs → chunk-76OB5RSH.cjs} +6 -6
- package/dist/{chunk-DSX3P4S5.cjs.map → chunk-76OB5RSH.cjs.map} +1 -1
- package/dist/{chunk-DHRLOQLQ.cjs → chunk-7LQTDGV5.cjs} +11 -11
- package/dist/{chunk-DHRLOQLQ.cjs.map → chunk-7LQTDGV5.cjs.map} +1 -1
- package/dist/{chunk-Q25QYSOH.js → chunk-7YJHUY4T.js} +9 -9
- package/dist/{chunk-Q25QYSOH.js.map → chunk-7YJHUY4T.js.map} +1 -1
- package/dist/{chunk-JERQGJKG.cjs → chunk-ANMCKLZQ.cjs} +18 -18
- package/dist/{chunk-JERQGJKG.cjs.map → chunk-ANMCKLZQ.cjs.map} +1 -1
- package/dist/{chunk-BBOMNH44.js → chunk-BABP4D5B.js} +3 -3
- package/dist/{chunk-BBOMNH44.js.map → chunk-BABP4D5B.js.map} +1 -1
- package/dist/{chunk-EVGZ2TRQ.js → chunk-BE75G3M5.js} +3 -3
- package/dist/{chunk-EVGZ2TRQ.js.map → chunk-BE75G3M5.js.map} +1 -1
- package/dist/{chunk-FXGZT3WO.cjs → chunk-BX42F7IJ.cjs} +41 -41
- package/dist/{chunk-FXGZT3WO.cjs.map → chunk-BX42F7IJ.cjs.map} +1 -1
- package/dist/{chunk-G6T23JU7.js → chunk-CDKNGCE7.js} +3 -3
- package/dist/{chunk-G6T23JU7.js.map → chunk-CDKNGCE7.js.map} +1 -1
- package/dist/{chunk-BNTJ5YFO.cjs → chunk-EACDHXJL.cjs} +4 -4
- package/dist/{chunk-BNTJ5YFO.cjs.map → chunk-EACDHXJL.cjs.map} +1 -1
- package/dist/{chunk-SNDJUTMB.cjs → chunk-EBQX7MYL.cjs} +72 -72
- package/dist/{chunk-SNDJUTMB.cjs.map → chunk-EBQX7MYL.cjs.map} +1 -1
- package/dist/{chunk-GKSAEUX6.js → chunk-FXOFJ4FS.js} +7 -7
- package/dist/{chunk-GKSAEUX6.js.map → chunk-FXOFJ4FS.js.map} +1 -1
- package/dist/{chunk-ZOWRACZQ.cjs → chunk-G7OKJDMG.cjs} +5 -5
- package/dist/{chunk-ZOWRACZQ.cjs.map → chunk-G7OKJDMG.cjs.map} +1 -1
- package/dist/{chunk-MKJPBSID.cjs → chunk-I7SBZJI2.cjs} +4 -4
- package/dist/{chunk-MKJPBSID.cjs.map → chunk-I7SBZJI2.cjs.map} +1 -1
- package/dist/{chunk-H346QK3V.cjs → chunk-K7YACILO.cjs} +9 -9
- package/dist/{chunk-H346QK3V.cjs.map → chunk-K7YACILO.cjs.map} +1 -1
- package/dist/{chunk-3KWF25MF.cjs → chunk-MN325MG4.cjs} +313 -246
- package/dist/chunk-MN325MG4.cjs.map +1 -0
- package/dist/{chunk-KDNRACRG.cjs → chunk-MRUOOAIQ.cjs} +4 -4
- package/dist/{chunk-KDNRACRG.cjs.map → chunk-MRUOOAIQ.cjs.map} +1 -1
- package/dist/{chunk-HTSJTWUT.js → chunk-OF63ZHSD.js} +4 -4
- package/dist/{chunk-HTSJTWUT.js.map → chunk-OF63ZHSD.js.map} +1 -1
- package/dist/{chunk-NGA3THGU.cjs → chunk-QR7W37HG.cjs} +14 -14
- package/dist/{chunk-NGA3THGU.cjs.map → chunk-QR7W37HG.cjs.map} +1 -1
- package/dist/{chunk-QFEO4M5W.js → chunk-RTPMG6LQ.js} +11 -11
- package/dist/{chunk-QFEO4M5W.js.map → chunk-RTPMG6LQ.js.map} +1 -1
- package/dist/{chunk-PFD4NUYV.js → chunk-SSDHR2C2.js} +3 -3
- package/dist/{chunk-PFD4NUYV.js.map → chunk-SSDHR2C2.js.map} +1 -1
- package/dist/{chunk-THK3SCQA.js → chunk-SYXTWPX6.js} +5 -5
- package/dist/{chunk-THK3SCQA.js.map → chunk-SYXTWPX6.js.map} +1 -1
- package/dist/{chunk-XSLQYGNR.cjs → chunk-T3VU3YRQ.cjs} +69 -69
- package/dist/{chunk-XSLQYGNR.cjs.map → chunk-T3VU3YRQ.cjs.map} +1 -1
- package/dist/{chunk-MIBWA6HX.js → chunk-TR7QTODF.js} +213 -33
- package/dist/chunk-TR7QTODF.js.map +1 -0
- package/dist/{chunk-AD3NLSV5.js → chunk-TU22BFMP.js} +8 -2
- package/dist/chunk-TU22BFMP.js.map +1 -0
- package/dist/{chunk-WTMSUIRO.js → chunk-UFKYMQJ5.js} +3 -3
- package/dist/{chunk-WTMSUIRO.js.map → chunk-UFKYMQJ5.js.map} +1 -1
- package/dist/{chunk-35LDKSMM.cjs → chunk-VNJMM2QQ.cjs} +30 -30
- package/dist/{chunk-35LDKSMM.cjs.map → chunk-VNJMM2QQ.cjs.map} +1 -1
- package/dist/{chunk-53ZEBIMD.js → chunk-WB55URNM.js} +6 -6
- package/dist/{chunk-53ZEBIMD.js.map → chunk-WB55URNM.js.map} +1 -1
- package/dist/{chunk-L2GBVYRU.cjs → chunk-WWSYGZED.cjs} +11 -11
- package/dist/{chunk-L2GBVYRU.cjs.map → chunk-WWSYGZED.cjs.map} +1 -1
- package/dist/{chunk-D2JPOFRZ.cjs → chunk-WY3IFEKV.cjs} +191 -191
- package/dist/{chunk-D2JPOFRZ.cjs.map → chunk-WY3IFEKV.cjs.map} +1 -1
- package/dist/{chunk-3RSFLZ7A.cjs → chunk-Y4X6ODVY.cjs} +943 -763
- package/dist/chunk-Y4X6ODVY.cjs.map +1 -0
- package/dist/{chunk-VZRXXABW.js → chunk-YHMXF7OZ.js} +5 -5
- package/dist/{chunk-VZRXXABW.js.map → chunk-YHMXF7OZ.js.map} +1 -1
- package/dist/{chunk-VROJKWZ7.js → chunk-ZONDBN6H.js} +5 -5
- package/dist/{chunk-VROJKWZ7.js.map → chunk-ZONDBN6H.js.map} +1 -1
- package/dist/core/index.d.cts +3 -3
- package/dist/core/index.d.ts +3 -3
- package/dist/{ddl-DvW9aobX.d.ts → ddl-2q7xLM1X.d.ts} +3 -3
- package/dist/{ddl-BjuXbPfw.d.cts → ddl-D_09BfbN.d.cts} +3 -3
- package/dist/graph-extension/index.d.cts +2 -2
- package/dist/graph-extension/index.d.ts +2 -2
- package/dist/graph-merge/index.cjs +156 -156
- package/dist/graph-merge/index.d.cts +7 -7
- package/dist/graph-merge/index.d.ts +7 -7
- package/dist/graph-merge/index.js +14 -14
- package/dist/{graph-templates-1vMqlPsu.d.cts → graph-templates-B5Q7oYAA.d.cts} +2 -2
- package/dist/{graph-templates-Y52w16dH.d.ts → graph-templates-D9N-Z9kw.d.ts} +2 -2
- package/dist/index.cjs +99 -99
- package/dist/index.d.cts +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.js +18 -18
- package/dist/indexes/index.d.cts +4 -4
- package/dist/indexes/index.d.ts +4 -4
- package/dist/{ingestion-import-target-CCKeXZbW.d.ts → ingestion-import-target-B8EU6ug2.d.ts} +1 -1
- package/dist/{ingestion-import-target-774QRgkF.d.cts → ingestion-import-target-C5sHNFJF.d.cts} +1 -1
- package/dist/interchange/index.cjs +34 -34
- package/dist/interchange/index.d.cts +7 -7
- package/dist/interchange/index.d.ts +7 -7
- package/dist/interchange/index.js +11 -11
- package/dist/{local-store-impl-DFKS7QTV.js → local-store-impl-ERPNYOCL.js} +18 -18
- package/dist/{local-store-impl-DFKS7QTV.js.map → local-store-impl-ERPNYOCL.js.map} +1 -1
- package/dist/{local-store-impl-3E4VLFCI.cjs → local-store-impl-OUINMCYI.cjs} +22 -22
- package/dist/{local-store-impl-3E4VLFCI.cjs.map → local-store-impl-OUINMCYI.cjs.map} +1 -1
- package/dist/{pglite-store-impl-N63GGBU2.js → pglite-store-impl-DUJBQZS5.js} +18 -18
- package/dist/{pglite-store-impl-N63GGBU2.js.map → pglite-store-impl-DUJBQZS5.js.map} +1 -1
- package/dist/{pglite-store-impl-T75O3LVQ.cjs → pglite-store-impl-Z3SOOP75.cjs} +22 -22
- package/dist/{pglite-store-impl-T75O3LVQ.cjs.map → pglite-store-impl-Z3SOOP75.cjs.map} +1 -1
- package/dist/{postgres-C9gitL71.d.ts → postgres-BbTYW3b_.d.ts} +3 -3
- package/dist/{postgres-BONrXHb4.d.cts → postgres-DOBXcZVg.d.cts} +1 -1
- package/dist/{postgres-DAFRdnTr.d.ts → postgres-DhZixg92.d.ts} +1 -1
- package/dist/{postgres-2FYdVYCm.d.cts → postgres-Dp3MpyJt.d.cts} +3 -3
- package/dist/{profile-CAD65CqS.d.ts → profile-Ch5SSewK.d.ts} +8 -8
- package/dist/{profile-Bmcg07Ki.d.cts → profile-DppApFgt.d.cts} +8 -8
- package/dist/profiler/index.d.cts +8 -8
- package/dist/profiler/index.d.ts +8 -8
- package/dist/provenance/index.cjs +22 -22
- package/dist/provenance/index.d.cts +6 -6
- package/dist/provenance/index.d.ts +6 -6
- package/dist/provenance/index.js +6 -6
- package/dist/{repair-validity-windows-CinP91t7.d.cts → repair-validity-windows-CpP_GpIx.d.cts} +1 -1
- package/dist/{repair-validity-windows-BJz4nffP.d.ts → repair-validity-windows-lfe275bY.d.ts} +1 -1
- package/dist/{resolve-DgOSlXx_.d.ts → resolve-CoYqHqno.d.cts} +7 -2
- package/dist/{resolve-DQXSEN_A.d.cts → resolve-DV0Iposp.d.ts} +7 -2
- package/dist/schema/index.cjs +37 -37
- package/dist/schema/index.d.cts +7 -7
- package/dist/schema/index.d.ts +7 -7
- package/dist/schema/index.js +7 -7
- package/dist/{searchable-DMdCwkXO.d.cts → searchable-C7Xt6g45.d.cts} +1 -1
- package/dist/{searchable-BPRF0Bah.d.ts → searchable-KKXrPet3.d.ts} +1 -1
- package/dist/{sqlite-DgbYa-1Y.d.cts → sqlite-BkQM9ZeI.d.cts} +1 -1
- package/dist/{sqlite-Co_uIpfs.d.cts → sqlite-BpRtjC36.d.cts} +3 -3
- package/dist/{sqlite-DcDAAYow.d.ts → sqlite-CH0Zq0Qv.d.ts} +3 -3
- package/dist/{sqlite-UlG5prJQ.d.ts → sqlite-CcCSeXGg.d.ts} +1 -1
- package/dist/{store-HxoFyQMu.d.cts → store-3nfPQK5j.d.cts} +30 -7
- package/dist/{store-C9T1c9Az.d.ts → store-C8ZPl7OW.d.ts} +30 -7
- package/dist/{types-CRCyg1fJ.d.cts → types-BynPp5kU.d.cts} +18 -2
- package/dist/{types-CRCyg1fJ.d.ts → types-BynPp5kU.d.ts} +18 -2
- package/dist/{types-Dg_prBqC.d.ts → types-C9YwrkSe.d.ts} +1 -1
- package/dist/{types-B5AUesS1.d.cts → types-JG-4CG6P.d.cts} +1 -1
- package/dist/{where-gRyc3jj_.d.cts → where-D1gBDqQ_.d.cts} +1 -1
- package/dist/{where-D-NDKMPw.d.ts → where-D2GqMFp-.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-337ONI2I.js.map +0 -1
- package/dist/chunk-3KWF25MF.cjs.map +0 -1
- package/dist/chunk-3RSFLZ7A.cjs.map +0 -1
- package/dist/chunk-AD3NLSV5.js.map +0 -1
- package/dist/chunk-BWQA3POT.cjs.map +0 -1
- package/dist/chunk-MIBWA6HX.js.map +0 -1
- package/dist/chunk-OC5ROP7V.cjs.map +0 -1
- package/dist/chunk-PFXNQFFY.js.map +0 -1
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
var chunk6YKISECL_cjs = require('./chunk-6YKISECL.cjs');
|
|
4
4
|
var chunkICOTLZBV_cjs = require('./chunk-ICOTLZBV.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
5
|
+
var chunkEBQX7MYL_cjs = require('./chunk-EBQX7MYL.cjs');
|
|
6
|
+
var chunk6B3LQUYG_cjs = require('./chunk-6B3LQUYG.cjs');
|
|
7
|
+
var chunk5JOCIMQ3_cjs = require('./chunk-5JOCIMQ3.cjs');
|
|
8
|
+
var chunk6JRVV2SS_cjs = require('./chunk-6JRVV2SS.cjs');
|
|
9
9
|
var chunk7D2ZLF4O_cjs = require('./chunk-7D2ZLF4O.cjs');
|
|
10
10
|
var chunk5ICDVLI3_cjs = require('./chunk-5ICDVLI3.cjs');
|
|
11
11
|
var chunkL4L4AV6F_cjs = require('./chunk-L4L4AV6F.cjs');
|
|
@@ -585,7 +585,7 @@ async function computeSchemaHash(schema) {
|
|
|
585
585
|
...schema.extension === void 0 ? {} : { extension: schema.extension },
|
|
586
586
|
...schema.deprecatedKinds === void 0 ? {} : { deprecatedKinds: schema.deprecatedKinds }
|
|
587
587
|
};
|
|
588
|
-
const json = JSON.stringify(hashable,
|
|
588
|
+
const json = JSON.stringify(hashable, chunk5JOCIMQ3_cjs.sortedReplacer);
|
|
589
589
|
return chunkZY4GXIVN_cjs.sha256Hex(json);
|
|
590
590
|
}
|
|
591
591
|
|
|
@@ -641,7 +641,7 @@ function computeSchemaDiff(before, after) {
|
|
|
641
641
|
};
|
|
642
642
|
}
|
|
643
643
|
function diffGraphAnnotations(before, after) {
|
|
644
|
-
if (
|
|
644
|
+
if (chunk5JOCIMQ3_cjs.canonicalEqual(before ?? {}, after ?? {})) return void 0;
|
|
645
645
|
return {
|
|
646
646
|
type: before === void 0 ? "added" : after === void 0 ? "removed" : "modified",
|
|
647
647
|
severity: "safe",
|
|
@@ -734,7 +734,7 @@ var SUBSCHEMA_MAP_KEYWORDS = /* @__PURE__ */ new Set([
|
|
|
734
734
|
]);
|
|
735
735
|
var DEPENDENT_REQUIRED_KEYWORD = "dependentRequired";
|
|
736
736
|
function canonicalKey(value) {
|
|
737
|
-
return JSON.stringify(value,
|
|
737
|
+
return JSON.stringify(value, chunk5JOCIMQ3_cjs.sortedReplacer);
|
|
738
738
|
}
|
|
739
739
|
function sortedByCanonicalForm(items) {
|
|
740
740
|
return items.toSorted(
|
|
@@ -786,7 +786,7 @@ function normalizedSubschemaMap(value) {
|
|
|
786
786
|
return normalized;
|
|
787
787
|
}
|
|
788
788
|
function propertySchemasEqual(before, after) {
|
|
789
|
-
return
|
|
789
|
+
return chunk5JOCIMQ3_cjs.canonicalEqual(
|
|
790
790
|
orderNormalizedSchema(before),
|
|
791
791
|
orderNormalizedSchema(after)
|
|
792
792
|
);
|
|
@@ -811,14 +811,14 @@ function getSerializedEdgePairs(edge) {
|
|
|
811
811
|
return pairs;
|
|
812
812
|
}
|
|
813
813
|
function endpointKindsEqual(before, after) {
|
|
814
|
-
return
|
|
814
|
+
return chunk5JOCIMQ3_cjs.canonicalEqual(before?.toSorted(), after?.toSorted());
|
|
815
815
|
}
|
|
816
816
|
function targetKindsBySourceEqual(before, after) {
|
|
817
817
|
if (before === void 0 && after === void 0) return true;
|
|
818
818
|
if (before === void 0 || after === void 0) return false;
|
|
819
819
|
const beforeKeys = Object.keys(before).toSorted();
|
|
820
820
|
const afterKeys = Object.keys(after).toSorted();
|
|
821
|
-
if (!
|
|
821
|
+
if (!chunk5JOCIMQ3_cjs.canonicalEqual(beforeKeys, afterKeys)) return false;
|
|
822
822
|
for (const key of beforeKeys) {
|
|
823
823
|
if (!endpointKindsEqual(before[key], after[key])) return false;
|
|
824
824
|
}
|
|
@@ -851,7 +851,7 @@ function diffNodeDef(name, before, after) {
|
|
|
851
851
|
after
|
|
852
852
|
});
|
|
853
853
|
}
|
|
854
|
-
if (!
|
|
854
|
+
if (!chunk5JOCIMQ3_cjs.canonicalEqual(before.uniqueConstraints, after.uniqueConstraints)) {
|
|
855
855
|
changes.push({
|
|
856
856
|
type: "modified",
|
|
857
857
|
kind: name,
|
|
@@ -949,7 +949,7 @@ function classifyPropertyChanges(kind, before, after) {
|
|
|
949
949
|
for (const [property, beforeProperty] of Object.entries(beforeProps)) {
|
|
950
950
|
const afterProperty = afterProps[property];
|
|
951
951
|
if (afterProperty === void 0) continue;
|
|
952
|
-
if (
|
|
952
|
+
if (chunk5JOCIMQ3_cjs.canonicalEqual(beforeProperty, afterProperty)) continue;
|
|
953
953
|
if (isBreakingPropertyChange(beforeProperty, afterProperty)) {
|
|
954
954
|
breakingProps.push(property);
|
|
955
955
|
}
|
|
@@ -1128,7 +1128,7 @@ function isMatchIdentityChange(change) {
|
|
|
1128
1128
|
function annotationsChanged(before, after) {
|
|
1129
1129
|
if (before === void 0 && after === void 0) return false;
|
|
1130
1130
|
if (before === void 0 || after === void 0) return true;
|
|
1131
|
-
return !
|
|
1131
|
+
return !chunk5JOCIMQ3_cjs.canonicalEqual(before, after);
|
|
1132
1132
|
}
|
|
1133
1133
|
function diffOntology(before, after) {
|
|
1134
1134
|
const changes = [];
|
|
@@ -1227,7 +1227,7 @@ function diffIndexes(before, after) {
|
|
|
1227
1227
|
for (const [name, beforeIndex] of beforeByName) {
|
|
1228
1228
|
const afterIndex = afterByName.get(name);
|
|
1229
1229
|
if (!afterIndex) continue;
|
|
1230
|
-
if (!
|
|
1230
|
+
if (!chunk5JOCIMQ3_cjs.canonicalEqual(beforeIndex, afterIndex)) {
|
|
1231
1231
|
changes.push({
|
|
1232
1232
|
type: "modified",
|
|
1233
1233
|
name,
|
|
@@ -1257,7 +1257,7 @@ function diffExtension(before, after) {
|
|
|
1257
1257
|
details: "Graph extension document was removed"
|
|
1258
1258
|
};
|
|
1259
1259
|
}
|
|
1260
|
-
if (
|
|
1260
|
+
if (chunk5JOCIMQ3_cjs.canonicalEqual(before, after)) return void 0;
|
|
1261
1261
|
return {
|
|
1262
1262
|
type: "modified",
|
|
1263
1263
|
severity: "safe",
|
|
@@ -1651,7 +1651,7 @@ function extensionKindNames(document) {
|
|
|
1651
1651
|
function mergeGraphExtension(graph, document) {
|
|
1652
1652
|
const existingDocument = graph.extension ?? Object.freeze({});
|
|
1653
1653
|
const unionDocument = unionDocuments(existingDocument, document);
|
|
1654
|
-
if (graph.extension !== void 0 &&
|
|
1654
|
+
if (graph.extension !== void 0 && chunk5JOCIMQ3_cjs.canonicalEqual(unionDocument, existingDocument)) {
|
|
1655
1655
|
return graph;
|
|
1656
1656
|
}
|
|
1657
1657
|
const validatedUnion = chunkHQU2SE74_cjs.unwrap(chunkHQU2SE74_cjs.validateGraphExtension(unionDocument));
|
|
@@ -2245,7 +2245,7 @@ async function ensureIdentitySchemaStorage(backend, schema, options) {
|
|
|
2245
2245
|
options.graphId,
|
|
2246
2246
|
missingTables
|
|
2247
2247
|
);
|
|
2248
|
-
const rebuildRequired = await
|
|
2248
|
+
const rebuildRequired = await chunkEBQX7MYL_cjs.separationRebuildRequired(
|
|
2249
2249
|
backend,
|
|
2250
2250
|
schema,
|
|
2251
2251
|
options.graphId,
|
|
@@ -2316,7 +2316,7 @@ function markIdentityDdlRace(error) {
|
|
|
2316
2316
|
return error;
|
|
2317
2317
|
}
|
|
2318
2318
|
function isIdentityDdlRace(error) {
|
|
2319
|
-
for (const link of
|
|
2319
|
+
for (const link of chunk6JRVV2SS_cjs.errorChain(error)) {
|
|
2320
2320
|
if (typeof link === "object" && link !== null && IDENTITY_DDL_RACES.has(link)) {
|
|
2321
2321
|
return true;
|
|
2322
2322
|
}
|
|
@@ -2328,7 +2328,7 @@ async function executeIdentityDdl(execute, statements) {
|
|
|
2328
2328
|
try {
|
|
2329
2329
|
await execute(statement);
|
|
2330
2330
|
} catch (error) {
|
|
2331
|
-
if (
|
|
2331
|
+
if (chunk6JRVV2SS_cjs.isPostgresConcurrentDdlRaceError(error)) {
|
|
2332
2332
|
throw markIdentityDdlRace(error);
|
|
2333
2333
|
}
|
|
2334
2334
|
throw error;
|
|
@@ -2344,8 +2344,8 @@ async function withIdentityDdlRaceRetry(attempt) {
|
|
|
2344
2344
|
}
|
|
2345
2345
|
}
|
|
2346
2346
|
async function lockIdentityDdl(target) {
|
|
2347
|
-
const plan =
|
|
2348
|
-
const fence =
|
|
2347
|
+
const plan = chunk6JRVV2SS_cjs.resolveWriteFencePlan(target);
|
|
2348
|
+
const fence = chunk6JRVV2SS_cjs.requireWriteFence(plan, "identity DDL", "keyed");
|
|
2349
2349
|
switch (fence.kind) {
|
|
2350
2350
|
case "lock":
|
|
2351
2351
|
case "row": {
|
|
@@ -2383,7 +2383,7 @@ async function identityKindCascadeNeeded(backend, schema, graphId, droppedNodeKi
|
|
|
2383
2383
|
provisionMissing: false
|
|
2384
2384
|
});
|
|
2385
2385
|
if (missingTables.length > 0) return false;
|
|
2386
|
-
return
|
|
2386
|
+
return chunkEBQX7MYL_cjs.hasAssertionsTouchingKinds(backend, schema, graphId, droppedNodeKinds);
|
|
2387
2387
|
}
|
|
2388
2388
|
function assertIdentityStoragePresent(graphId, missingTables) {
|
|
2389
2389
|
if (missingTables.length === 0) return;
|
|
@@ -2406,13 +2406,13 @@ function identitySchemaCommitPreflight(ctx, options) {
|
|
|
2406
2406
|
ctx.graphId,
|
|
2407
2407
|
options.provisionDerivedRelations ?? []
|
|
2408
2408
|
);
|
|
2409
|
-
await
|
|
2410
|
-
await
|
|
2409
|
+
await chunk6B3LQUYG_cjs.lockRecordedGraphWrite(target, ctx.graphId);
|
|
2410
|
+
await chunkEBQX7MYL_cjs.lockIdentityGraph(target, ctx.graphId);
|
|
2411
2411
|
if (options.enablement) {
|
|
2412
|
-
await
|
|
2413
|
-
await
|
|
2412
|
+
await chunkEBQX7MYL_cjs.lockIdentityEnablementNodes(target, ctx.schema);
|
|
2413
|
+
await chunk6B3LQUYG_cjs.withRecordedIdentityMutationTarget(
|
|
2414
2414
|
target,
|
|
2415
|
-
(rawTarget, touch) =>
|
|
2415
|
+
(rawTarget, touch) => chunkEBQX7MYL_cjs.purgeAssertionsWithUnregisteredKinds(
|
|
2416
2416
|
rawTarget,
|
|
2417
2417
|
ctx.schema,
|
|
2418
2418
|
ctx.graphId,
|
|
@@ -2423,9 +2423,9 @@ function identitySchemaCommitPreflight(ctx, options) {
|
|
|
2423
2423
|
}
|
|
2424
2424
|
const droppedNodeKinds = options.droppedNodeKinds ?? [];
|
|
2425
2425
|
if (droppedNodeKinds.length > 0) {
|
|
2426
|
-
await
|
|
2426
|
+
await chunk6B3LQUYG_cjs.withRecordedIdentityMutationTarget(
|
|
2427
2427
|
target,
|
|
2428
|
-
(rawTarget, touch) =>
|
|
2428
|
+
(rawTarget, touch) => chunkEBQX7MYL_cjs.deleteAssertionsTouchingKinds(
|
|
2429
2429
|
rawTarget,
|
|
2430
2430
|
ctx.schema,
|
|
2431
2431
|
ctx.graphId,
|
|
@@ -2434,7 +2434,7 @@ function identitySchemaCommitPreflight(ctx, options) {
|
|
|
2434
2434
|
)
|
|
2435
2435
|
);
|
|
2436
2436
|
}
|
|
2437
|
-
await
|
|
2437
|
+
await chunkEBQX7MYL_cjs.rebuildIdentityClosureForContext({ ...ctx, backend: target });
|
|
2438
2438
|
};
|
|
2439
2439
|
}
|
|
2440
2440
|
async function provisionDerivedRelationsInCommit(target, graphId, ddl) {
|
|
@@ -2448,11 +2448,11 @@ async function provisionDerivedRelationsInCommit(target, graphId, ddl) {
|
|
|
2448
2448
|
}
|
|
2449
2449
|
function identityKindCascadePreflight(ctx, droppedNodeKinds) {
|
|
2450
2450
|
return async (target) => {
|
|
2451
|
-
await
|
|
2452
|
-
await
|
|
2453
|
-
await
|
|
2451
|
+
await chunk6B3LQUYG_cjs.lockRecordedGraphWrite(target, ctx.graphId);
|
|
2452
|
+
await chunkEBQX7MYL_cjs.lockIdentityGraph(target, ctx.graphId);
|
|
2453
|
+
await chunk6B3LQUYG_cjs.withRecordedIdentityMutationTarget(
|
|
2454
2454
|
target,
|
|
2455
|
-
(rawTarget, touch) =>
|
|
2455
|
+
(rawTarget, touch) => chunkEBQX7MYL_cjs.deleteAssertionsTouchingKinds(
|
|
2456
2456
|
rawTarget,
|
|
2457
2457
|
ctx.schema,
|
|
2458
2458
|
ctx.graphId,
|
|
@@ -3159,7 +3159,7 @@ async function loadActiveSchemaWithBootstrap(backend, graphId) {
|
|
|
3159
3159
|
try {
|
|
3160
3160
|
return await backend.getActiveSchema(graphId);
|
|
3161
3161
|
} catch (error) {
|
|
3162
|
-
if (backend.bootstrapTables &&
|
|
3162
|
+
if (backend.bootstrapTables && chunk6JRVV2SS_cjs.isMissingTableError(error)) {
|
|
3163
3163
|
await backend.bootstrapTables();
|
|
3164
3164
|
return await backend.getActiveSchema(graphId);
|
|
3165
3165
|
}
|
|
@@ -3355,7 +3355,7 @@ async function readActiveSchemaPure(backend, graphId) {
|
|
|
3355
3355
|
try {
|
|
3356
3356
|
activeRow = await backend.getActiveSchema(graphId);
|
|
3357
3357
|
} catch (error) {
|
|
3358
|
-
if (
|
|
3358
|
+
if (chunk6JRVV2SS_cjs.isMissingTableError(error)) {
|
|
3359
3359
|
throw schemaNotInitializedError(graphId, error);
|
|
3360
3360
|
}
|
|
3361
3361
|
throw error;
|
|
@@ -3552,7 +3552,7 @@ function assertGraphEdgeMatchIdentitySupport(backend, graph) {
|
|
|
3552
3552
|
for (const [kind, registration] of Object.entries(graph.edges)) {
|
|
3553
3553
|
const identity = registration.matchIdentity;
|
|
3554
3554
|
if (identity === void 0) continue;
|
|
3555
|
-
|
|
3555
|
+
chunkEBQX7MYL_cjs.assertEdgeMatchIdentityBackendSupport(identity, backend.capabilities, kind);
|
|
3556
3556
|
}
|
|
3557
3557
|
}
|
|
3558
3558
|
function edgeKindsRequiringMatchIdentityMaterialization(target, storedSchema) {
|
|
@@ -3597,7 +3597,7 @@ function edgeMatchIdentityRekeyPopulatedError(graphId, currentVersion, edgeKinds
|
|
|
3597
3597
|
}
|
|
3598
3598
|
async function prepareIdentityKindCascade(backend, target, options) {
|
|
3599
3599
|
if (options.droppedNodeKinds.length === 0) return void 0;
|
|
3600
|
-
const schema = options.schema === void 0 ?
|
|
3600
|
+
const schema = options.schema === void 0 ? chunk6JRVV2SS_cjs.createSqlSchema(backend.tableNames) : chunk6JRVV2SS_cjs.requireSqlSchema(options.schema, "The schema option");
|
|
3601
3601
|
if (options.probeBeforeCascade) {
|
|
3602
3602
|
const needed = await identityKindCascadeNeeded(
|
|
3603
3603
|
backend,
|
|
@@ -3613,7 +3613,7 @@ async function prepareIdentityKindCascade(backend, target, options) {
|
|
|
3613
3613
|
);
|
|
3614
3614
|
}
|
|
3615
3615
|
async function prepareIdentitySchemaCommit(backend, target, options) {
|
|
3616
|
-
const schema = options.schema === void 0 ?
|
|
3616
|
+
const schema = options.schema === void 0 ? chunk6JRVV2SS_cjs.createSqlSchema(backend.tableNames) : chunk6JRVV2SS_cjs.requireSqlSchema(options.schema, "The schema option");
|
|
3617
3617
|
const registry = buildKindRegistry(target);
|
|
3618
3618
|
const provisioning = await ensureIdentitySchemaStorage(backend, schema, {
|
|
3619
3619
|
graphId: target.id,
|
|
@@ -3839,5 +3839,5 @@ exports.serializeSchema = serializeSchema;
|
|
|
3839
3839
|
exports.serializeSchemaProperties = serializeSchemaProperties;
|
|
3840
3840
|
exports.stripGraphExtension = stripGraphExtension;
|
|
3841
3841
|
exports.subClassOf = subClassOf;
|
|
3842
|
-
//# sourceMappingURL=chunk-
|
|
3843
|
-
//# sourceMappingURL=chunk-
|
|
3842
|
+
//# sourceMappingURL=chunk-BX42F7IJ.cjs.map
|
|
3843
|
+
//# sourceMappingURL=chunk-BX42F7IJ.cjs.map
|