@eventcatalog/core 4.8.3 → 4.8.4

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.
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(analytics_exports);
36
36
  var import_os = __toESM(require("os"), 1);
37
37
 
38
38
  // package.json
39
- var version = "4.8.3";
39
+ var version = "4.8.4";
40
40
 
41
41
  // src/constants.ts
42
42
  var VERSION = version;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "../chunk-I3UWVGOH.js";
4
- import "../chunk-SQCPFCRH.js";
3
+ } from "../chunk-QB4W7ZUL.js";
4
+ import "../chunk-FQEK3FUI.js";
5
5
  export {
6
6
  raiseEvent
7
7
  };
@@ -140,7 +140,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
140
140
  var import_os = __toESM(require("os"), 1);
141
141
 
142
142
  // package.json
143
- var version = "4.8.3";
143
+ var version = "4.8.4";
144
144
 
145
145
  // src/constants.ts
146
146
  var VERSION = version;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  log_build_default
3
- } from "../chunk-JBVH5AKO.js";
4
- import "../chunk-I3UWVGOH.js";
3
+ } from "../chunk-Y57SL3H3.js";
4
+ import "../chunk-QB4W7ZUL.js";
5
5
  import "../chunk-K2XIENVT.js";
6
- import "../chunk-SQCPFCRH.js";
6
+ import "../chunk-FQEK3FUI.js";
7
7
  import "../chunk-6QENHZZP.js";
8
8
  export {
9
9
  log_build_default as default
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-SQCPFCRH.js";
3
+ } from "./chunk-FQEK3FUI.js";
4
4
 
5
5
  // src/utils/cli-logger.ts
6
6
  import pc from "picocolors";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-2SUFIHB4.js";
3
+ } from "./chunk-AATZMWL3.js";
4
4
  import {
5
5
  cleanup,
6
6
  getEventCatalogConfigFile
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "4.8.3";
2
+ var version = "4.8.4";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-SQCPFCRH.js";
3
+ } from "./chunk-FQEK3FUI.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import os from "os";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-I3UWVGOH.js";
3
+ } from "./chunk-QB4W7ZUL.js";
4
4
  import {
5
5
  countResources,
6
6
  serializeCounts
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "4.8.3";
28
+ var version = "4.8.4";
29
29
 
30
30
  // src/constants.ts
31
31
  var VERSION = version;
package/dist/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-SQCPFCRH.js";
3
+ } from "./chunk-FQEK3FUI.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -144,7 +144,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
144
144
  var import_picocolors = __toESM(require("picocolors"), 1);
145
145
 
146
146
  // package.json
147
- var version = "4.8.3";
147
+ var version = "4.8.4";
148
148
 
149
149
  // src/constants.ts
150
150
  var VERSION = version;
@@ -4,8 +4,8 @@ import {
4
4
  import "./chunk-CA4U2JP7.js";
5
5
  import {
6
6
  log_build_default
7
- } from "./chunk-JBVH5AKO.js";
8
- import "./chunk-I3UWVGOH.js";
7
+ } from "./chunk-Y57SL3H3.js";
8
+ import "./chunk-QB4W7ZUL.js";
9
9
  import "./chunk-K2XIENVT.js";
10
10
  import {
11
11
  FederationConflictError,
@@ -31,10 +31,10 @@ import {
31
31
  } from "./chunk-B7HCX5HM.js";
32
32
  import {
33
33
  generate
34
- } from "./chunk-QXPCST6O.js";
34
+ } from "./chunk-EGWBSVND.js";
35
35
  import {
36
36
  logger
37
- } from "./chunk-2SUFIHB4.js";
37
+ } from "./chunk-AATZMWL3.js";
38
38
  import {
39
39
  resolve_catalog_dependencies_default
40
40
  } from "./chunk-LHR4G2UO.js";
@@ -54,7 +54,7 @@ import {
54
54
  import "./chunk-W5JQON7Z.js";
55
55
  import {
56
56
  VERSION
57
- } from "./chunk-SQCPFCRH.js";
57
+ } from "./chunk-FQEK3FUI.js";
58
58
  import {
59
59
  linkCoreNodeModules,
60
60
  resolveInstalledCoreNodeModules
package/dist/generate.cjs CHANGED
@@ -108,7 +108,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
108
108
  var import_picocolors = __toESM(require("picocolors"), 1);
109
109
 
110
110
  // package.json
111
- var version = "4.8.3";
111
+ var version = "4.8.4";
112
112
 
113
113
  // src/constants.ts
114
114
  var VERSION = version;
package/dist/generate.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generate
3
- } from "./chunk-QXPCST6O.js";
4
- import "./chunk-2SUFIHB4.js";
5
- import "./chunk-SQCPFCRH.js";
3
+ } from "./chunk-EGWBSVND.js";
4
+ import "./chunk-AATZMWL3.js";
5
+ import "./chunk-FQEK3FUI.js";
6
6
  import "./chunk-6QENHZZP.js";
7
7
  export {
8
8
  generate
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(cli_logger_exports);
36
36
  var import_picocolors = __toESM(require("picocolors"), 1);
37
37
 
38
38
  // package.json
39
- var version = "4.8.3";
39
+ var version = "4.8.4";
40
40
 
41
41
  // src/constants.ts
42
42
  var VERSION = version;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  logger
3
- } from "../chunk-2SUFIHB4.js";
4
- import "../chunk-SQCPFCRH.js";
3
+ } from "../chunk-AATZMWL3.js";
4
+ import "../chunk-FQEK3FUI.js";
5
5
  export {
6
6
  logger
7
7
  };
@@ -23,6 +23,10 @@ const getReferencePropertyNames = (entity: Entity, entityMap: Map<string, Entity
23
23
  ?.filter((property: any) => getReferencedEntityId(property, entityMap))
24
24
  .map((property: any) => property.name) ?? [];
25
25
 
26
+ // Entities on a resource are usually hydrated collection entries, whose top-level `id` is the
27
+ // Astro id (`Customer-1.0.0`) rather than the catalog id used by `property.references`.
28
+ const getCatalogId = (entity: any) => entity?.data?.id ?? entity?.id;
29
+
26
30
  const getRelationType = (property: any) => {
27
31
  if (property.relationType) return property.relationType;
28
32
  if (property.type === 'array' && property.items?.type) return 'hasMany';
@@ -89,7 +93,7 @@ export const getNodesAndEdges = async ({ id, version, entities, type = 'domains'
89
93
  .filter((ref: any) => ref !== undefined);
90
94
 
91
95
  const externalToDomain = Array.from(new Set<string>(listOfReferencedEntities as string[])) // Remove duplicates
92
- .filter((entityId: any) => !resourceEntities.some((domainEntity: any) => domainEntity.id === entityId));
96
+ .filter((entityId: any) => !resourceEntities.some((domainEntity: any) => getCatalogId(domainEntity) === entityId));
93
97
 
94
98
  // 2. Build optimized maps
95
99
  // Only build domain map if we have domains to search
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "license": "SEE LICENSE IN LICENSE",
9
9
  "type": "module",
10
- "version": "4.8.3",
10
+ "version": "4.8.4",
11
11
  "publishConfig": {
12
12
  "access": "public"
13
13
  },
@@ -119,9 +119,9 @@
119
119
  "update-notifier": "^7.3.1",
120
120
  "uuid": "^11.1.1",
121
121
  "zod": "^4.3.6",
122
+ "@eventcatalog/linter": "1.1.16",
122
123
  "@eventcatalog/sdk": "2.28.1",
123
- "@eventcatalog/visualiser": "^4.1.3",
124
- "@eventcatalog/linter": "1.1.16"
124
+ "@eventcatalog/visualiser": "^4.1.3"
125
125
  },
126
126
  "devDependencies": {
127
127
  "@astrojs/check": "^0.9.10",