@eventcatalog/core 5.0.0-beta.8 → 5.0.0-beta.9

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.
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/analytics/telemetry.ts
21
+ var telemetry_exports = {};
22
+ __export(telemetry_exports, {
23
+ TELEMETRY_REQUEST_TIMEOUT_MS: () => TELEMETRY_REQUEST_TIMEOUT_MS,
24
+ isTelemetryDisabled: () => isTelemetryDisabled
25
+ });
26
+ module.exports = __toCommonJS(telemetry_exports);
27
+ var TELEMETRY_REQUEST_TIMEOUT_MS = 2e3;
28
+ var isOptOutEnvValue = (value) => {
29
+ if (typeof value !== "string") return false;
30
+ const normalized = value.trim().toLowerCase();
31
+ return normalized === "1" || normalized === "true";
32
+ };
33
+ var isTelemetryDisabled = (config, env) => {
34
+ if (isOptOutEnvValue(env.EVENTCATALOG_TELEMETRY_DISABLED)) return true;
35
+ if (isOptOutEnvValue(env.DO_NOT_TRACK)) return true;
36
+ return config?.telemetry === false;
37
+ };
38
+ // Annotate the CommonJS export names for ESM import in node:
39
+ 0 && (module.exports = {
40
+ TELEMETRY_REQUEST_TIMEOUT_MS,
41
+ isTelemetryDisabled
42
+ });
@@ -0,0 +1,20 @@
1
+ /** How long a telemetry request may take before it is aborted. */
2
+ declare const TELEMETRY_REQUEST_TIMEOUT_MS = 2000;
3
+ type TelemetryConfig = {
4
+ telemetry?: boolean;
5
+ };
6
+ type TelemetryEnv = {
7
+ EVENTCATALOG_TELEMETRY_DISABLED?: string;
8
+ DO_NOT_TRACK?: string;
9
+ };
10
+ /**
11
+ * Anonymous telemetry is on unless the catalog opts out.
12
+ * Opt out with EVENTCATALOG_TELEMETRY_DISABLED or DO_NOT_TRACK set to "1" or "true"
13
+ * (any case), or with telemetry: false in eventcatalog.config.js.
14
+ *
15
+ * packages/create-eventcatalog/templates/telemetry.ts copies the env rules and
16
+ * TELEMETRY_REQUEST_TIMEOUT_MS. Keep that copy in sync.
17
+ */
18
+ declare const isTelemetryDisabled: (config: TelemetryConfig | null | undefined, env: TelemetryEnv) => boolean;
19
+
20
+ export { TELEMETRY_REQUEST_TIMEOUT_MS, isTelemetryDisabled };
@@ -0,0 +1,20 @@
1
+ /** How long a telemetry request may take before it is aborted. */
2
+ declare const TELEMETRY_REQUEST_TIMEOUT_MS = 2000;
3
+ type TelemetryConfig = {
4
+ telemetry?: boolean;
5
+ };
6
+ type TelemetryEnv = {
7
+ EVENTCATALOG_TELEMETRY_DISABLED?: string;
8
+ DO_NOT_TRACK?: string;
9
+ };
10
+ /**
11
+ * Anonymous telemetry is on unless the catalog opts out.
12
+ * Opt out with EVENTCATALOG_TELEMETRY_DISABLED or DO_NOT_TRACK set to "1" or "true"
13
+ * (any case), or with telemetry: false in eventcatalog.config.js.
14
+ *
15
+ * packages/create-eventcatalog/templates/telemetry.ts copies the env rules and
16
+ * TELEMETRY_REQUEST_TIMEOUT_MS. Keep that copy in sync.
17
+ */
18
+ declare const isTelemetryDisabled: (config: TelemetryConfig | null | undefined, env: TelemetryEnv) => boolean;
19
+
20
+ export { TELEMETRY_REQUEST_TIMEOUT_MS, isTelemetryDisabled };
@@ -0,0 +1,8 @@
1
+ import {
2
+ TELEMETRY_REQUEST_TIMEOUT_MS,
3
+ isTelemetryDisabled
4
+ } from "../chunk-CPW6G62V.js";
5
+ export {
6
+ TELEMETRY_REQUEST_TIMEOUT_MS,
7
+ isTelemetryDisabled
8
+ };
@@ -1,10 +1,15 @@
1
+ import {
2
+ TELEMETRY_REQUEST_TIMEOUT_MS,
3
+ isTelemetryDisabled
4
+ } from "./chunk-CPW6G62V.js";
1
5
  import {
2
6
  VERSION
3
- } from "./chunk-RDIZJ7UT.js";
7
+ } from "./chunk-EUNQJO3J.js";
4
8
 
5
9
  // src/analytics/analytics.js
6
10
  import os from "os";
7
- async function raiseEvent(eventData) {
11
+ async function raiseEvent(eventData, config) {
12
+ if (isTelemetryDisabled(config, process.env)) return;
8
13
  if (typeof eventData?.command !== "string" || typeof eventData?.cId !== "string") return;
9
14
  const url = "https://queue.simpleanalyticscdn.com/events";
10
15
  const userAgent = `@eventcatalog/eventcatalog@${VERSION} (${os.platform()}; ${os.arch()}; Node/${process.version})`;
@@ -26,7 +31,8 @@ async function raiseEvent(eventData) {
26
31
  const response = await fetch(url, {
27
32
  method: "POST",
28
33
  headers,
29
- body: JSON.stringify(payload)
34
+ body: JSON.stringify(payload),
35
+ signal: AbortSignal.timeout(TELEMETRY_REQUEST_TIMEOUT_MS)
30
36
  });
31
37
  if (!response.ok) {
32
38
  throw new Error(`Failed to raise analytics event: ${response.status}`);
@@ -0,0 +1,17 @@
1
+ // src/analytics/telemetry.ts
2
+ var TELEMETRY_REQUEST_TIMEOUT_MS = 2e3;
3
+ var isOptOutEnvValue = (value) => {
4
+ if (typeof value !== "string") return false;
5
+ const normalized = value.trim().toLowerCase();
6
+ return normalized === "1" || normalized === "true";
7
+ };
8
+ var isTelemetryDisabled = (config, env) => {
9
+ if (isOptOutEnvValue(env.EVENTCATALOG_TELEMETRY_DISABLED)) return true;
10
+ if (isOptOutEnvValue(env.DO_NOT_TRACK)) return true;
11
+ return config?.telemetry === false;
12
+ };
13
+
14
+ export {
15
+ TELEMETRY_REQUEST_TIMEOUT_MS,
16
+ isTelemetryDisabled
17
+ };
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "5.0.0-beta.8";
2
+ var version = "5.0.0-beta.9";
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-RDIZJ7UT.js";
3
+ } from "./chunk-EUNQJO3J.js";
4
4
 
5
5
  // src/utils/cli-logger.ts
6
6
  import pc from "picocolors";
@@ -1,14 +1,18 @@
1
1
  import {
2
- getLicenseAnalytics
3
- } from "./chunk-AWOO63ME.js";
2
+ raiseEvent
3
+ } from "./chunk-4CFZUHGG.js";
4
4
  import {
5
5
  countResources,
6
6
  hashCatalogContent,
7
7
  serializeCounts
8
8
  } from "./chunk-ZAZHAVKB.js";
9
9
  import {
10
- raiseEvent
11
- } from "./chunk-C6T2AAFR.js";
10
+ TELEMETRY_REQUEST_TIMEOUT_MS,
11
+ isTelemetryDisabled
12
+ } from "./chunk-CPW6G62V.js";
13
+ import {
14
+ getLicenseAnalytics
15
+ } from "./chunk-AWOO63ME.js";
12
16
  import {
13
17
  getEventCatalogConfigFile,
14
18
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -69,50 +73,69 @@ var toCloudResourceCounts = (counts) => ({
69
73
  customPages: counts.customPages || 0,
70
74
  customApis: counts.customApis || 0
71
75
  });
72
- var reportCloudResourceInventory = async (configFile, resourceCounts) => {
76
+ var getEnabledCloudAnalytics = (configFile) => {
73
77
  const analytics = configFile.cloud?.analytics;
74
- if (!analytics?.enabled || !analytics.trackingId || !analytics.writeKey) return;
78
+ if (!analytics?.enabled || !analytics.trackingId || !analytics.writeKey) return null;
79
+ return analytics;
80
+ };
81
+ var reportCloudResourceInventory = async (configFile, resourceCounts) => {
82
+ const analytics = getEnabledCloudAnalytics(configFile);
83
+ if (!analytics) return;
75
84
  const endpoint = analytics.endpoint || CLOUD_ANALYTICS_ENDPOINT;
76
- await fetch(endpoint, {
77
- method: "POST",
78
- headers: {
79
- "Content-Type": "application/json",
80
- "X-EventCatalog-Analytics-Key": analytics.writeKey
81
- },
82
- body: JSON.stringify({
83
- trackingId: analytics.trackingId,
84
- event: "catalog.resource_inventory_reported",
85
- timestamp: (/* @__PURE__ */ new Date()).toISOString(),
86
- counts: toCloudResourceCounts(resourceCounts)
87
- })
88
- });
85
+ try {
86
+ await fetch(endpoint, {
87
+ method: "POST",
88
+ headers: {
89
+ "Content-Type": "application/json",
90
+ "X-EventCatalog-Analytics-Key": analytics.writeKey
91
+ },
92
+ body: JSON.stringify({
93
+ trackingId: analytics.trackingId,
94
+ event: "catalog.resource_inventory_reported",
95
+ timestamp: (/* @__PURE__ */ new Date()).toISOString(),
96
+ counts: toCloudResourceCounts(resourceCounts)
97
+ }),
98
+ signal: AbortSignal.timeout(TELEMETRY_REQUEST_TIMEOUT_MS)
99
+ });
100
+ } catch {
101
+ }
89
102
  };
90
103
  var main = async (projectDir, { command = "build", license } = {}) => {
91
104
  try {
92
105
  await verifyRequiredFieldsAreInCatalogConfigFile(projectDir);
93
106
  const configFile = await getEventCatalogConfigFile(projectDir);
107
+ if (isTelemetryDisabled(configFile, process.env)) {
108
+ if (getEnabledCloudAnalytics(configFile)) {
109
+ const resourceCounts2 = await countResources(projectDir);
110
+ await reportCloudResourceInventory(configFile, resourceCounts2);
111
+ }
112
+ return;
113
+ }
94
114
  const { cId, tsd, organizationName, generators = [] } = configFile;
95
115
  const generatorNames = generators.length > 0 ? generators.map((generator) => generator[0]) : ["none"];
96
116
  const features = await getFeatures(configFile);
97
117
  const resourceCounts = await countResources(projectDir);
98
118
  const contentHash = await hashCatalogContent(projectDir);
99
119
  await reportCloudResourceInventory(configFile, resourceCounts);
100
- await raiseEvent({
101
- command,
102
- org: organizationName,
103
- cId,
104
- // Trial start date (unix ms) from eventcatalog.config.js
105
- tsd,
106
- // Commercial license or trial, and when each expires (unix ms)
107
- ...getLicenseAnalytics(license, tsd),
108
- // CI redeploys and human-run builds are different signals; tag rather than suppress
109
- ci: process.env.CI ? "true" : "false",
110
- contentHash,
111
- generators: generatorNames.toString(),
112
- features: Object.keys(features).map((feature) => `${feature}:${features[feature]}`).join(","),
113
- directorySources: serializeDirectorySources(configFile),
114
- resources: serializeCounts(resourceCounts)
115
- });
120
+ await raiseEvent(
121
+ {
122
+ command,
123
+ org: organizationName,
124
+ cId,
125
+ // Trial start date (unix ms) from eventcatalog.config.js
126
+ tsd,
127
+ // Commercial license or trial, and when each expires (unix ms)
128
+ ...getLicenseAnalytics(license, tsd),
129
+ // CI redeploys and human-run builds are different signals; tag rather than suppress
130
+ ci: process.env.CI ? "true" : "false",
131
+ contentHash,
132
+ generators: generatorNames.toString(),
133
+ features: Object.keys(features).map((feature) => `${feature}:${features[feature]}`).join(","),
134
+ directorySources: serializeDirectorySources(configFile),
135
+ resources: serializeCounts(resourceCounts)
136
+ },
137
+ configFile
138
+ );
116
139
  } catch (error) {
117
140
  }
118
141
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-PU25TOOJ.js";
3
+ } from "./chunk-GAHKCOQM.js";
4
4
  import {
5
5
  cleanup,
6
6
  getEventCatalogConfigFile
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "5.0.0-beta.8";
28
+ var version = "5.0.0-beta.9";
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-RDIZJ7UT.js";
3
+ } from "./chunk-EUNQJO3J.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -181,7 +181,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
181
181
  var import_picocolors = __toESM(require("picocolors"), 1);
182
182
 
183
183
  // package.json
184
- var version = "5.0.0-beta.8";
184
+ var version = "5.0.0-beta.9";
185
185
 
186
186
  // src/constants.ts
187
187
  var VERSION = version;
@@ -304,7 +304,23 @@ var generate = async (PROJECT_DIRECTORY) => {
304
304
 
305
305
  // src/analytics/analytics.js
306
306
  var import_os = __toESM(require("os"), 1);
307
- async function raiseEvent(eventData) {
307
+
308
+ // src/analytics/telemetry.ts
309
+ var TELEMETRY_REQUEST_TIMEOUT_MS = 2e3;
310
+ var isOptOutEnvValue = (value) => {
311
+ if (typeof value !== "string") return false;
312
+ const normalized = value.trim().toLowerCase();
313
+ return normalized === "1" || normalized === "true";
314
+ };
315
+ var isTelemetryDisabled = (config, env) => {
316
+ if (isOptOutEnvValue(env.EVENTCATALOG_TELEMETRY_DISABLED)) return true;
317
+ if (isOptOutEnvValue(env.DO_NOT_TRACK)) return true;
318
+ return config?.telemetry === false;
319
+ };
320
+
321
+ // src/analytics/analytics.js
322
+ async function raiseEvent(eventData, config) {
323
+ if (isTelemetryDisabled(config, process.env)) return;
308
324
  if (typeof eventData?.command !== "string" || typeof eventData?.cId !== "string") return;
309
325
  const url = "https://queue.simpleanalyticscdn.com/events";
310
326
  const userAgent = `@eventcatalog/eventcatalog@${VERSION} (${import_os.default.platform()}; ${import_os.default.arch()}; Node/${process.version})`;
@@ -326,7 +342,8 @@ async function raiseEvent(eventData) {
326
342
  const response = await fetch(url, {
327
343
  method: "POST",
328
344
  headers,
329
- body: JSON.stringify(payload)
345
+ body: JSON.stringify(payload),
346
+ signal: AbortSignal.timeout(TELEMETRY_REQUEST_TIMEOUT_MS)
330
347
  });
331
348
  if (!response.ok) {
332
349
  throw new Error(`Failed to raise analytics event: ${response.status}`);
@@ -679,50 +696,69 @@ var toCloudResourceCounts = (counts) => ({
679
696
  customPages: counts.customPages || 0,
680
697
  customApis: counts.customApis || 0
681
698
  });
682
- var reportCloudResourceInventory = async (configFile, resourceCounts) => {
699
+ var getEnabledCloudAnalytics = (configFile) => {
683
700
  const analytics = configFile.cloud?.analytics;
684
- if (!analytics?.enabled || !analytics.trackingId || !analytics.writeKey) return;
701
+ if (!analytics?.enabled || !analytics.trackingId || !analytics.writeKey) return null;
702
+ return analytics;
703
+ };
704
+ var reportCloudResourceInventory = async (configFile, resourceCounts) => {
705
+ const analytics = getEnabledCloudAnalytics(configFile);
706
+ if (!analytics) return;
685
707
  const endpoint = analytics.endpoint || CLOUD_ANALYTICS_ENDPOINT;
686
- await fetch(endpoint, {
687
- method: "POST",
688
- headers: {
689
- "Content-Type": "application/json",
690
- "X-EventCatalog-Analytics-Key": analytics.writeKey
691
- },
692
- body: JSON.stringify({
693
- trackingId: analytics.trackingId,
694
- event: "catalog.resource_inventory_reported",
695
- timestamp: (/* @__PURE__ */ new Date()).toISOString(),
696
- counts: toCloudResourceCounts(resourceCounts)
697
- })
698
- });
708
+ try {
709
+ await fetch(endpoint, {
710
+ method: "POST",
711
+ headers: {
712
+ "Content-Type": "application/json",
713
+ "X-EventCatalog-Analytics-Key": analytics.writeKey
714
+ },
715
+ body: JSON.stringify({
716
+ trackingId: analytics.trackingId,
717
+ event: "catalog.resource_inventory_reported",
718
+ timestamp: (/* @__PURE__ */ new Date()).toISOString(),
719
+ counts: toCloudResourceCounts(resourceCounts)
720
+ }),
721
+ signal: AbortSignal.timeout(TELEMETRY_REQUEST_TIMEOUT_MS)
722
+ });
723
+ } catch {
724
+ }
699
725
  };
700
726
  var main = async (projectDir, { command = "build", license } = {}) => {
701
727
  try {
702
728
  await verifyRequiredFieldsAreInCatalogConfigFile(projectDir);
703
729
  const configFile = await getEventCatalogConfigFile(projectDir);
730
+ if (isTelemetryDisabled(configFile, process.env)) {
731
+ if (getEnabledCloudAnalytics(configFile)) {
732
+ const resourceCounts2 = await countResources(projectDir);
733
+ await reportCloudResourceInventory(configFile, resourceCounts2);
734
+ }
735
+ return;
736
+ }
704
737
  const { cId, tsd, organizationName, generators = [] } = configFile;
705
738
  const generatorNames = generators.length > 0 ? generators.map((generator) => generator[0]) : ["none"];
706
739
  const features = await getFeatures(configFile);
707
740
  const resourceCounts = await countResources(projectDir);
708
741
  const contentHash = await hashCatalogContent(projectDir);
709
742
  await reportCloudResourceInventory(configFile, resourceCounts);
710
- await raiseEvent({
711
- command,
712
- org: organizationName,
713
- cId,
714
- // Trial start date (unix ms) from eventcatalog.config.js
715
- tsd,
716
- // Commercial license or trial, and when each expires (unix ms)
717
- ...getLicenseAnalytics(license, tsd),
718
- // CI redeploys and human-run builds are different signals; tag rather than suppress
719
- ci: process.env.CI ? "true" : "false",
720
- contentHash,
721
- generators: generatorNames.toString(),
722
- features: Object.keys(features).map((feature) => `${feature}:${features[feature]}`).join(","),
723
- directorySources: serializeDirectorySources(configFile),
724
- resources: serializeCounts(resourceCounts)
725
- });
743
+ await raiseEvent(
744
+ {
745
+ command,
746
+ org: organizationName,
747
+ cId,
748
+ // Trial start date (unix ms) from eventcatalog.config.js
749
+ tsd,
750
+ // Commercial license or trial, and when each expires (unix ms)
751
+ ...getLicenseAnalytics(license, tsd),
752
+ // CI redeploys and human-run builds are different signals; tag rather than suppress
753
+ ci: process.env.CI ? "true" : "false",
754
+ contentHash,
755
+ generators: generatorNames.toString(),
756
+ features: Object.keys(features).map((feature) => `${feature}:${features[feature]}`).join(","),
757
+ directorySources: serializeDirectorySources(configFile),
758
+ resources: serializeCounts(resourceCounts)
759
+ },
760
+ configFile
761
+ );
726
762
  } catch (error) {
727
763
  }
728
764
  };
@@ -457,6 +457,14 @@ interface Config {
457
457
  queries?: {
458
458
  tableConfiguration?: TableConfiguration;
459
459
  };
460
+ /**
461
+ * Anonymous telemetry for `eventcatalog dev` and `eventcatalog build`.
462
+ * On by default. Set to false to opt out.
463
+ * `EVENTCATALOG_TELEMETRY_DISABLED` or `DO_NOT_TRACK` set to `1` or `true` also opts out.
464
+ * `cloud.analytics` stays its own opt-in for EventCatalog Cloud.
465
+ * @default true
466
+ */
467
+ telemetry?: boolean;
460
468
  cloud?: EventCatalogCloudConfig;
461
469
  integrations?: IntegrationsConfig;
462
470
  scalarConfiguration?: ScalarConfiguration;
@@ -457,6 +457,14 @@ interface Config {
457
457
  queries?: {
458
458
  tableConfiguration?: TableConfiguration;
459
459
  };
460
+ /**
461
+ * Anonymous telemetry for `eventcatalog dev` and `eventcatalog build`.
462
+ * On by default. Set to false to opt out.
463
+ * `EVENTCATALOG_TELEMETRY_DISABLED` or `DO_NOT_TRACK` set to `1` or `true` also opts out.
464
+ * `cloud.analytics` stays its own opt-in for EventCatalog Cloud.
465
+ * @default true
466
+ */
467
+ telemetry?: boolean;
460
468
  cloud?: EventCatalogCloudConfig;
461
469
  integrations?: IntegrationsConfig;
462
470
  scalarConfiguration?: ScalarConfiguration;
@@ -1,30 +1,31 @@
1
+ import {
2
+ log_build_default
3
+ } from "./chunk-JQMYHZWI.js";
4
+ import "./chunk-4CFZUHGG.js";
5
+ import "./chunk-ZAZHAVKB.js";
6
+ import "./chunk-CPW6G62V.js";
1
7
  import {
2
8
  runMigrations
3
9
  } from "./chunk-XUAF2H54.js";
4
10
  import "./chunk-CA4U2JP7.js";
5
- import {
6
- log_build_default
7
- } from "./chunk-4W55ZOOS.js";
8
11
  import {
9
12
  getLicenseStatus,
10
13
  printLicenseStatus
11
14
  } from "./chunk-AWOO63ME.js";
12
- import "./chunk-ZAZHAVKB.js";
13
15
  import {
14
16
  FederationConflictError,
15
17
  FederationDiagnosticError,
16
18
  federateCatalog
17
- } from "./chunk-AYNZXUB5.js";
18
- import "./chunk-5EPNFDT5.js";
19
- import "./chunk-A2RZR3U4.js";
20
- import "./chunk-R7Z5ALYI.js";
19
+ } from "./chunk-ZEY2XUJN.js";
21
20
  import {
22
21
  getFederationDiagnosticCounts,
23
22
  getVisibleFederationDiagnostics
24
23
  } from "./chunk-JJPB6EOZ.js";
24
+ import "./chunk-WRNH5C3U.js";
25
+ import "./chunk-5EPNFDT5.js";
26
+ import "./chunk-A2RZR3U4.js";
25
27
  import "./chunk-SDZQJTJW.js";
26
28
  import "./chunk-352FGP6W.js";
27
- import "./chunk-WRNH5C3U.js";
28
29
  import {
29
30
  getProjectOutDir,
30
31
  isAuthEnabled,
@@ -34,10 +35,10 @@ import {
34
35
  } from "./chunk-ENAG6UH7.js";
35
36
  import {
36
37
  generate
37
- } from "./chunk-T4G3VVZ4.js";
38
+ } from "./chunk-TZVDMWQX.js";
38
39
  import {
39
40
  logger
40
- } from "./chunk-PU25TOOJ.js";
41
+ } from "./chunk-GAHKCOQM.js";
41
42
  import {
42
43
  resolve_catalog_dependencies_default
43
44
  } from "./chunk-36RYTYT5.js";
@@ -51,7 +52,7 @@ import {
51
52
  import {
52
53
  watch
53
54
  } from "./chunk-U63GDPPY.js";
54
- import "./chunk-C6T2AAFR.js";
55
+ import "./chunk-R7Z5ALYI.js";
55
56
  import {
56
57
  getAstroConfigPath
57
58
  } from "./chunk-VIJJ7JKH.js";
@@ -67,7 +68,7 @@ import {
67
68
  } from "./chunk-LFQJXLHG.js";
68
69
  import {
69
70
  VERSION
70
- } from "./chunk-RDIZJ7UT.js";
71
+ } from "./chunk-EUNQJO3J.js";
71
72
  import {
72
73
  getEventCatalogConfigFile,
73
74
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -2,14 +2,14 @@ import {
2
2
  FederationConflictError,
3
3
  FederationDiagnosticError,
4
4
  federateCatalog
5
- } from "../chunk-AYNZXUB5.js";
5
+ } from "../chunk-ZEY2XUJN.js";
6
+ import "../chunk-JJPB6EOZ.js";
7
+ import "../chunk-WRNH5C3U.js";
6
8
  import "../chunk-5EPNFDT5.js";
7
9
  import "../chunk-A2RZR3U4.js";
8
- import "../chunk-R7Z5ALYI.js";
9
- import "../chunk-JJPB6EOZ.js";
10
10
  import "../chunk-SDZQJTJW.js";
11
11
  import "../chunk-352FGP6W.js";
12
- import "../chunk-WRNH5C3U.js";
12
+ import "../chunk-R7Z5ALYI.js";
13
13
  import "../chunk-RFIXKATC.js";
14
14
  export {
15
15
  FederationConflictError,
package/dist/generate.cjs CHANGED
@@ -112,7 +112,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
112
112
  var import_picocolors = __toESM(require("picocolors"), 1);
113
113
 
114
114
  // package.json
115
- var version = "5.0.0-beta.8";
115
+ var version = "5.0.0-beta.9";
116
116
 
117
117
  // src/constants.ts
118
118
  var VERSION = version;
package/dist/generate.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generate
3
- } from "./chunk-T4G3VVZ4.js";
4
- import "./chunk-PU25TOOJ.js";
5
- import "./chunk-RDIZJ7UT.js";
3
+ } from "./chunk-TZVDMWQX.js";
4
+ import "./chunk-GAHKCOQM.js";
5
+ import "./chunk-EUNQJO3J.js";
6
6
  import "./chunk-RFIXKATC.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 = "5.0.0-beta.8";
39
+ var version = "5.0.0-beta.9";
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-PU25TOOJ.js";
4
- import "../chunk-RDIZJ7UT.js";
3
+ } from "../chunk-GAHKCOQM.js";
4
+ import "../chunk-EUNQJO3J.js";
5
5
  export {
6
6
  logger
7
7
  };
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "license": "BUSL-1.1",
9
9
  "type": "module",
10
- "version": "5.0.0-beta.8",
10
+ "version": "5.0.0-beta.9",
11
11
  "publishConfig": {
12
12
  "access": "public"
13
13
  },
@@ -141,8 +141,8 @@
141
141
  "yjs": "^13.6.33",
142
142
  "zod": "^4.3.6",
143
143
  "@eventcatalog/sdk": "2.30.0-beta.1",
144
- "@eventcatalog/visualiser": "^5.0.0-beta.4",
145
- "@eventcatalog/linter": "1.2.0-beta.2"
144
+ "@eventcatalog/linter": "1.2.0-beta.2",
145
+ "@eventcatalog/visualiser": "^5.0.0-beta.4"
146
146
  },
147
147
  "devDependencies": {
148
148
  "@astrojs/check": "^0.9.10",