@unified-product-graph/core 0.10.0 → 0.10.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/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -21413,7 +21413,7 @@ declare function isCanonical(text: string): boolean;
|
|
|
21413
21413
|
* it stamps the `upg_version` field of every `.upg` file written by the SDK.
|
|
21414
21414
|
* The `check:version-lockstep` gate enforces this at release time.
|
|
21415
21415
|
*/
|
|
21416
|
-
declare const UPG_VERSION: "0.10.
|
|
21416
|
+
declare const UPG_VERSION: "0.10.1";
|
|
21417
21417
|
/**
|
|
21418
21418
|
* The `.upg` JSON document format version. Written to the `upg_version` field.
|
|
21419
21419
|
* Evolves independently from `UPG_VERSION` (the catalogue version).
|
package/dist/index.d.ts
CHANGED
|
@@ -21413,7 +21413,7 @@ declare function isCanonical(text: string): boolean;
|
|
|
21413
21413
|
* it stamps the `upg_version` field of every `.upg` file written by the SDK.
|
|
21414
21414
|
* The `check:version-lockstep` gate enforces this at release time.
|
|
21415
21415
|
*/
|
|
21416
|
-
declare const UPG_VERSION: "0.10.
|
|
21416
|
+
declare const UPG_VERSION: "0.10.1";
|
|
21417
21417
|
/**
|
|
21418
21418
|
* The `.upg` JSON document format version. Written to the `upg_version` field.
|
|
21419
21419
|
* Evolves independently from `UPG_VERSION` (the catalogue version).
|
package/dist/index.js
CHANGED
|
@@ -18042,6 +18042,7 @@ for (const fw of UPG_FRAMEWORKS) {
|
|
|
18042
18042
|
|
|
18043
18043
|
// src/grammar/validate.ts
|
|
18044
18044
|
var crossProductEdgeTypeSet = new Set(UPG_CROSS_EDGE_TYPES);
|
|
18045
|
+
var withinProductEdgeTypeSet = new Set(Object.keys(UPG_EDGE_CATALOG));
|
|
18045
18046
|
var CONTENT_DEPTH_WARNING_RULES = /* @__PURE__ */ new Set([
|
|
18046
18047
|
"property-type",
|
|
18047
18048
|
"property-enum",
|
|
@@ -18144,7 +18145,7 @@ function validateUPGDocument(doc) {
|
|
|
18144
18145
|
if (!e.id || typeof e.id !== "string") {
|
|
18145
18146
|
errors.push({ path: `${path}.id`, message: "Edge id is required and must be a string" });
|
|
18146
18147
|
}
|
|
18147
|
-
if (typeof e.type === "string" && crossProductEdgeTypeSet.has(e.type)) {
|
|
18148
|
+
if (typeof e.type === "string" && crossProductEdgeTypeSet.has(e.type) && !withinProductEdgeTypeSet.has(e.type)) {
|
|
18148
18149
|
errors.push({
|
|
18149
18150
|
path: `${path}.type`,
|
|
18150
18151
|
message: `Cross-product edge type "${e.type}" must live in portfolio.cross_edges[], not product edges[].`
|
|
@@ -28375,7 +28376,7 @@ function isCanonical(text) {
|
|
|
28375
28376
|
}
|
|
28376
28377
|
|
|
28377
28378
|
// src/index.ts
|
|
28378
|
-
var UPG_VERSION = "0.10.
|
|
28379
|
+
var UPG_VERSION = "0.10.1";
|
|
28379
28380
|
var UPG_FORMAT_VERSION = "0.4.0";
|
|
28380
28381
|
var MARKDOWN_FORMAT_VERSION = "0.1";
|
|
28381
28382
|
var UPG_TYPES = getTypes();
|