@eventcatalog/core 4.7.6 → 4.7.8

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.7.6";
39
+ var version = "4.7.8";
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-YXANZO6Y.js";
4
- import "../chunk-Q534DWPZ.js";
3
+ } from "../chunk-HUEBZBWV.js";
4
+ import "../chunk-FLFNI2YB.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.7.6";
143
+ var version = "4.7.8";
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-RZAJNR7O.js";
4
- import "../chunk-YXANZO6Y.js";
3
+ } from "../chunk-UMO3FJ6E.js";
4
+ import "../chunk-HUEBZBWV.js";
5
5
  import "../chunk-K2XIENVT.js";
6
- import "../chunk-Q534DWPZ.js";
6
+ import "../chunk-FLFNI2YB.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
  logger
3
- } from "./chunk-MNAPKH63.js";
3
+ } from "./chunk-BPE7XT3R.js";
4
4
  import {
5
5
  cleanup,
6
6
  getEventCatalogConfigFile
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-Q534DWPZ.js";
3
+ } from "./chunk-FLFNI2YB.js";
4
4
 
5
5
  // src/utils/cli-logger.ts
6
6
  import pc from "picocolors";
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "4.7.6";
2
+ var version = "4.7.8";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -0,0 +1,7 @@
1
+ // src/federation/entitlement.ts
2
+ import { isEventCatalogEnterpriseEnabled } from "@eventcatalog/license";
3
+ var isFederationEnabled = () => isEventCatalogEnterpriseEnabled();
4
+
5
+ export {
6
+ isFederationEnabled
7
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-Q534DWPZ.js";
3
+ } from "./chunk-FLFNI2YB.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import os from "os";
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-JJPB6EOZ.js";
17
17
  import {
18
18
  isFederationEnabled
19
- } from "./chunk-DDALKGTF.js";
19
+ } from "./chunk-FV56YFM4.js";
20
20
  import {
21
21
  getEventCatalogConfigFile
22
22
  } from "./chunk-6QENHZZP.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-YXANZO6Y.js";
3
+ } from "./chunk-HUEBZBWV.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.7.6";
28
+ var version = "4.7.8";
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-Q534DWPZ.js";
3
+ } from "./chunk-FLFNI2YB.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.7.6";
147
+ var version = "4.7.8";
148
148
 
149
149
  // src/constants.ts
150
150
  var VERSION = version;
@@ -412,7 +412,7 @@ var reportCloudResourceInventory = async (configFile, resourceCounts) => {
412
412
  })
413
413
  });
414
414
  };
415
- var main = async (projectDir, { isEventCatalogStarterEnabled: isEventCatalogStarterEnabled2, isEventCatalogScaleEnabled: isEventCatalogScaleEnabled3, isBackstagePluginEnabled }) => {
415
+ var main = async (projectDir, { isEventCatalogStarterEnabled: isEventCatalogStarterEnabled2, isEventCatalogScaleEnabled: isEventCatalogScaleEnabled2, isBackstagePluginEnabled }) => {
416
416
  try {
417
417
  await verifyRequiredFieldsAreInCatalogConfigFile(projectDir);
418
418
  const configFile = await getEventCatalogConfigFile(projectDir);
@@ -421,7 +421,7 @@ var main = async (projectDir, { isEventCatalogStarterEnabled: isEventCatalogStar
421
421
  if (isEventCatalogStarterEnabled2) {
422
422
  generatorNames.push("@eventcatalog/eventcatalog-starter");
423
423
  }
424
- if (isEventCatalogScaleEnabled3) {
424
+ if (isEventCatalogScaleEnabled2) {
425
425
  generatorNames.push("@eventcatalog/eventcatalog-scale");
426
426
  }
427
427
  if (isBackstagePluginEnabled) {
@@ -2123,7 +2123,7 @@ var getVisibleFederationDiagnostics = (diagnostics, verbose) => diagnostics.filt
2123
2123
 
2124
2124
  // src/federation/entitlement.ts
2125
2125
  var import_license = require("@eventcatalog/license");
2126
- var isFederationEnabled = () => (0, import_license.isEventCatalogScaleEnabled)();
2126
+ var isFederationEnabled = () => (0, import_license.isEventCatalogEnterpriseEnabled)();
2127
2127
 
2128
2128
  // src/federation/output-transaction.ts
2129
2129
  var import_promises5 = __toESM(require("fs/promises"), 1);
@@ -404,7 +404,7 @@ interface Config {
404
404
  integrations?: IntegrationsConfig;
405
405
  scalarConfiguration?: ScalarConfiguration;
406
406
  generators?: GeneratorConfig[];
407
- /** Catalogs composed into this catalog by `eventcatalog federate`. */
407
+ /** Catalogs composed into this catalog by `eventcatalog federate`. Requires an offline EventCatalog Enterprise license. */
408
408
  federation?: FederationConfig;
409
409
  }
410
410
 
@@ -404,7 +404,7 @@ interface Config {
404
404
  integrations?: IntegrationsConfig;
405
405
  scalarConfiguration?: ScalarConfiguration;
406
406
  generators?: GeneratorConfig[];
407
- /** Catalogs composed into this catalog by `eventcatalog federate`. */
407
+ /** Catalogs composed into this catalog by `eventcatalog federate`. Requires an offline EventCatalog Enterprise license. */
408
408
  federation?: FederationConfig;
409
409
  }
410
410
 
@@ -4,14 +4,14 @@ import {
4
4
  import "./chunk-CA4U2JP7.js";
5
5
  import {
6
6
  log_build_default
7
- } from "./chunk-RZAJNR7O.js";
8
- import "./chunk-YXANZO6Y.js";
7
+ } from "./chunk-UMO3FJ6E.js";
8
+ import "./chunk-HUEBZBWV.js";
9
9
  import "./chunk-K2XIENVT.js";
10
10
  import {
11
11
  FederationConflictError,
12
12
  FederationDiagnosticError,
13
13
  federateCatalog
14
- } from "./chunk-MLIR3NL4.js";
14
+ } from "./chunk-U52FCZQ6.js";
15
15
  import "./chunk-WRNH5C3U.js";
16
16
  import "./chunk-5EPNFDT5.js";
17
17
  import "./chunk-6K7XZAYI.js";
@@ -21,7 +21,7 @@ import {
21
21
  getFederationDiagnosticCounts,
22
22
  getVisibleFederationDiagnostics
23
23
  } from "./chunk-JJPB6EOZ.js";
24
- import "./chunk-DDALKGTF.js";
24
+ import "./chunk-FV56YFM4.js";
25
25
  import "./chunk-SDZQJTJW.js";
26
26
  import {
27
27
  getProjectOutDir,
@@ -31,10 +31,10 @@ import {
31
31
  } from "./chunk-B7HCX5HM.js";
32
32
  import {
33
33
  generate
34
- } from "./chunk-6BBLQLGL.js";
34
+ } from "./chunk-ATTSNDSU.js";
35
35
  import {
36
36
  logger
37
- } from "./chunk-MNAPKH63.js";
37
+ } from "./chunk-BPE7XT3R.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-Q534DWPZ.js";
57
+ } from "./chunk-FLFNI2YB.js";
58
58
  import {
59
59
  linkCoreNodeModules,
60
60
  resolveInstalledCoreNodeModules
@@ -24,7 +24,7 @@ __export(entitlement_exports, {
24
24
  });
25
25
  module.exports = __toCommonJS(entitlement_exports);
26
26
  var import_license = require("@eventcatalog/license");
27
- var isFederationEnabled = () => (0, import_license.isEventCatalogScaleEnabled)();
27
+ var isFederationEnabled = () => (0, import_license.isEventCatalogEnterpriseEnabled)();
28
28
  // Annotate the CommonJS export names for ESM import in node:
29
29
  0 && (module.exports = {
30
30
  isFederationEnabled
@@ -3,9 +3,9 @@
3
3
  * See /packages/core/src/federation/LICENSE
4
4
  */
5
5
  /**
6
- * Federation is currently enabled through the Scale entitlement. Keep callers
7
- * plan-agnostic so this can move to the Enterprise offline entitlement without
8
- * changing the federation workflow.
6
+ * Federation is enabled through the Enterprise offline entitlement. Keep
7
+ * callers plan-agnostic so licensing details remain isolated from the
8
+ * federation workflow.
9
9
  */
10
10
  declare const isFederationEnabled: () => Promise<boolean>;
11
11
 
@@ -3,9 +3,9 @@
3
3
  * See /packages/core/src/federation/LICENSE
4
4
  */
5
5
  /**
6
- * Federation is currently enabled through the Scale entitlement. Keep callers
7
- * plan-agnostic so this can move to the Enterprise offline entitlement without
8
- * changing the federation workflow.
6
+ * Federation is enabled through the Enterprise offline entitlement. Keep
7
+ * callers plan-agnostic so licensing details remain isolated from the
8
+ * federation workflow.
9
9
  */
10
10
  declare const isFederationEnabled: () => Promise<boolean>;
11
11
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isFederationEnabled
3
- } from "../chunk-DDALKGTF.js";
3
+ } from "../chunk-FV56YFM4.js";
4
4
  export {
5
5
  isFederationEnabled
6
6
  };
@@ -296,7 +296,7 @@ var getFederationDiagnostics = (graph, rules = {}) => {
296
296
 
297
297
  // src/federation/entitlement.ts
298
298
  var import_license = require("@eventcatalog/license");
299
- var isFederationEnabled = () => (0, import_license.isEventCatalogScaleEnabled)();
299
+ var isFederationEnabled = () => (0, import_license.isEventCatalogEnterpriseEnabled)();
300
300
 
301
301
  // src/federation/output-transaction.ts
302
302
  var import_promises3 = __toESM(require("fs/promises"), 1);
@@ -2,14 +2,14 @@ import {
2
2
  FederationConflictError,
3
3
  FederationDiagnosticError,
4
4
  federateCatalog
5
- } from "../chunk-MLIR3NL4.js";
5
+ } from "../chunk-U52FCZQ6.js";
6
6
  import "../chunk-WRNH5C3U.js";
7
7
  import "../chunk-5EPNFDT5.js";
8
8
  import "../chunk-6K7XZAYI.js";
9
9
  import "../chunk-352FGP6W.js";
10
10
  import "../chunk-R7Z5ALYI.js";
11
11
  import "../chunk-JJPB6EOZ.js";
12
- import "../chunk-DDALKGTF.js";
12
+ import "../chunk-FV56YFM4.js";
13
13
  import "../chunk-SDZQJTJW.js";
14
14
  import "../chunk-6QENHZZP.js";
15
15
  export {
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.7.6";
111
+ var version = "4.7.8";
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-6BBLQLGL.js";
4
- import "./chunk-MNAPKH63.js";
5
- import "./chunk-Q534DWPZ.js";
3
+ } from "./chunk-ATTSNDSU.js";
4
+ import "./chunk-BPE7XT3R.js";
5
+ import "./chunk-FLFNI2YB.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.7.6";
39
+ var version = "4.7.8";
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-MNAPKH63.js";
4
- import "../chunk-Q534DWPZ.js";
3
+ } from "../chunk-BPE7XT3R.js";
4
+ import "../chunk-FLFNI2YB.js";
5
5
  export {
6
6
  logger
7
7
  };
@@ -28,9 +28,10 @@ export const eventCatalogLikeC4 = async (workspaceDir: string): Promise<Plugin[]
28
28
  return [registry];
29
29
  }
30
30
 
31
- const LikeC4VitePlugin = await loadLikeC4VitePlugin(workspaceDir);
31
+ const { LikeC4VitePlugin, resolveLikeC4Dependency } = await loadLikeC4(workspaceDir);
32
32
 
33
33
  return [
34
+ likeC4DependencyResolver(resolveLikeC4Dependency),
34
35
  LikeC4VitePlugin({
35
36
  workspace: workspaceDir,
36
37
  }),
@@ -47,7 +48,7 @@ const hasLikeC4Sources = (workspaceDir: string) => {
47
48
  );
48
49
  };
49
50
 
50
- const loadLikeC4VitePlugin = async (workspaceDir: string) => {
51
+ const loadLikeC4 = async (workspaceDir: string) => {
51
52
  try {
52
53
  const requireFromCatalog = createRequire(join(workspaceDir, 'package.json'));
53
54
  const likeC4VitePluginPath = requireFromCatalog.resolve('likec4/vite-plugin');
@@ -57,12 +58,32 @@ const loadLikeC4VitePlugin = async (workspaceDir: string) => {
57
58
  throw new Error('The installed likec4 package does not export LikeC4VitePlugin from likec4/vite-plugin.');
58
59
  }
59
60
 
60
- return likeC4.LikeC4VitePlugin;
61
+ return {
62
+ LikeC4VitePlugin: likeC4.LikeC4VitePlugin,
63
+ resolveLikeC4Dependency: (id: string) => requireFromCatalog.resolve(id),
64
+ };
61
65
  } catch (error) {
62
66
  throw new Error(`${likeC4InstallMessage}\n\n${error instanceof Error ? error.message : String(error)}`);
63
67
  }
64
68
  };
65
69
 
70
+ const likeC4DependencyResolver = (resolveLikeC4Dependency: (id: string) => string): Plugin => ({
71
+ name: 'eventcatalog-likec4-dependency-resolver',
72
+ enforce: 'pre',
73
+
74
+ resolveId(id) {
75
+ if (!id.startsWith('likec4/')) {
76
+ return;
77
+ }
78
+
79
+ try {
80
+ return resolveLikeC4Dependency(id);
81
+ } catch {
82
+ return;
83
+ }
84
+ },
85
+ });
86
+
66
87
  const likeC4ProjectRegistry = (workspaceDir: string, enabled: boolean): Plugin => {
67
88
  let discoveredProjects: string[] = [];
68
89
 
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "license": "SEE LICENSE IN LICENSE",
9
9
  "type": "module",
10
- "version": "4.7.6",
10
+ "version": "4.7.8",
11
11
  "publishConfig": {
12
12
  "access": "public"
13
13
  },
@@ -41,7 +41,7 @@
41
41
  "@asyncapi/parser": "^3.6.0",
42
42
  "@asyncapi/react-component": "3.1.0",
43
43
  "@auth/core": "^0.41.3",
44
- "@eventcatalog/license": "^0.0.7",
44
+ "@eventcatalog/license": "^0.0.8",
45
45
  "@fontsource/inter": "^5.2.5",
46
46
  "@headlessui/react": "^2.0.3",
47
47
  "@heroicons/react": "^2.1.3",
@@ -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.14",
122
+ "@eventcatalog/sdk": "2.27.4",
123
123
  "@eventcatalog/visualiser": "^4.1.3",
124
- "@eventcatalog/sdk": "2.27.4"
124
+ "@eventcatalog/linter": "1.1.14"
125
125
  },
126
126
  "devDependencies": {
127
127
  "@astrojs/check": "^0.9.10",
@@ -1,7 +0,0 @@
1
- // src/federation/entitlement.ts
2
- import { isEventCatalogScaleEnabled } from "@eventcatalog/license";
3
- var isFederationEnabled = () => isEventCatalogScaleEnabled();
4
-
5
- export {
6
- isFederationEnabled
7
- };