@eventcatalog/core 3.40.1 → 3.40.2

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 @@
1
+ export type { Config, SideBarConfig } from '../dist/eventcatalog.config.js';
@@ -37,7 +37,7 @@ var import_axios = __toESM(require("axios"), 1);
37
37
  var import_os = __toESM(require("os"), 1);
38
38
 
39
39
  // package.json
40
- var version = "3.40.1";
40
+ var version = "3.40.2";
41
41
 
42
42
  // src/constants.ts
43
43
  var VERSION = version;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "../chunk-4OEF5W6Y.js";
4
- import "../chunk-HNG4KOYQ.js";
3
+ } from "../chunk-PWIB7GLR.js";
4
+ import "../chunk-HSSCHCQA.js";
5
5
  export {
6
6
  raiseEvent
7
7
  };
@@ -111,7 +111,7 @@ var import_axios = __toESM(require("axios"), 1);
111
111
  var import_os = __toESM(require("os"), 1);
112
112
 
113
113
  // package.json
114
- var version = "3.40.1";
114
+ var version = "3.40.2";
115
115
 
116
116
  // src/constants.ts
117
117
  var VERSION = version;
@@ -224,7 +224,6 @@ var reportCloudResourceInventory = async (configFile, resourceCounts) => {
224
224
  });
225
225
  };
226
226
  var main = async (projectDir, { isEventCatalogStarterEnabled, isEventCatalogScaleEnabled, isBackstagePluginEnabled }) => {
227
- if (process.env.NODE_ENV === "CI") return;
228
227
  try {
229
228
  await verifyRequiredFieldsAreInCatalogConfigFile(projectDir);
230
229
  const configFile = await getEventCatalogConfigFile(projectDir);
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  log_build_default
3
- } from "../chunk-7UR72UMK.js";
3
+ } from "../chunk-5FFRK3S5.js";
4
+ import "../chunk-PWIB7GLR.js";
4
5
  import "../chunk-4UVFXLPI.js";
5
- import "../chunk-4OEF5W6Y.js";
6
- import "../chunk-HNG4KOYQ.js";
6
+ import "../chunk-HSSCHCQA.js";
7
7
  import "../chunk-5T63CXKU.js";
8
8
  export {
9
9
  log_build_default as default
@@ -1,10 +1,10 @@
1
+ import {
2
+ raiseEvent
3
+ } from "./chunk-PWIB7GLR.js";
1
4
  import {
2
5
  countResources,
3
6
  serializeCounts
4
7
  } from "./chunk-4UVFXLPI.js";
5
- import {
6
- raiseEvent
7
- } from "./chunk-4OEF5W6Y.js";
8
8
  import {
9
9
  getEventCatalogConfigFile,
10
10
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -56,7 +56,6 @@ var reportCloudResourceInventory = async (configFile, resourceCounts) => {
56
56
  });
57
57
  };
58
58
  var main = async (projectDir, { isEventCatalogStarterEnabled, isEventCatalogScaleEnabled, isBackstagePluginEnabled }) => {
59
- if (process.env.NODE_ENV === "CI") return;
60
59
  try {
61
60
  await verifyRequiredFieldsAreInCatalogConfigFile(projectDir);
62
61
  const configFile = await getEventCatalogConfigFile(projectDir);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-OIVICT4V.js";
3
+ } from "./chunk-D6UVZABG.js";
4
4
  import {
5
5
  cleanup,
6
6
  getEventCatalogConfigFile
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-HNG4KOYQ.js";
3
+ } from "./chunk-HSSCHCQA.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 = "3.40.1";
2
+ var version = "3.40.2";
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-HNG4KOYQ.js";
3
+ } from "./chunk-HSSCHCQA.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import axios from "axios";
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "3.40.1";
28
+ var version = "3.40.2";
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-HNG4KOYQ.js";
3
+ } from "./chunk-HSSCHCQA.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -114,7 +114,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
114
114
  var import_picocolors = __toESM(require("picocolors"), 1);
115
115
 
116
116
  // package.json
117
- var version = "3.40.1";
117
+ var version = "3.40.2";
118
118
 
119
119
  // src/constants.ts
120
120
  var VERSION = version;
@@ -319,7 +319,6 @@ var reportCloudResourceInventory = async (configFile, resourceCounts) => {
319
319
  });
320
320
  };
321
321
  var main = async (projectDir, { isEventCatalogStarterEnabled: isEventCatalogStarterEnabled2, isEventCatalogScaleEnabled: isEventCatalogScaleEnabled2, isBackstagePluginEnabled }) => {
322
- if (process.env.NODE_ENV === "CI") return;
323
322
  try {
324
323
  await verifyRequiredFieldsAreInCatalogConfigFile(projectDir);
325
324
  const configFile = await getEventCatalogConfigFile(projectDir);
@@ -35,6 +35,7 @@ type TableConfiguration = {
35
35
  columns: {
36
36
  [key: string]: {
37
37
  visible?: boolean;
38
+ label?: string;
38
39
  };
39
40
  };
40
41
  };
@@ -44,6 +45,8 @@ type PagesConfiguration = {
44
45
  icon?: string;
45
46
  pages?: string[];
46
47
  };
48
+ type NavigationPage = string | PagesConfiguration;
49
+ type GeneratorConfig = string | Record<string, unknown> | [string, Record<string, unknown>];
47
50
  type AuthConfig = {
48
51
  enabled: boolean;
49
52
  };
@@ -118,18 +121,26 @@ type IntegrationsConfig = {
118
121
  type CatalogTheme = 'default' | 'ocean' | 'sapphire' | 'sunset' | 'forest' | (string & {});
119
122
  type ScalarConfiguration = any;
120
123
  interface Config {
124
+ cId: string;
121
125
  title: string;
122
- tagline: false;
123
126
  organizationName: string;
124
- homepageLink: string;
125
- editUrl: string;
127
+ tagline?: string | false;
128
+ homepageLink?: string;
129
+ editUrl?: string;
126
130
  repositoryUrl?: string;
127
131
  landingPage?: string;
128
132
  base?: string;
129
- port?: string;
130
- host?: string;
133
+ port?: string | number;
134
+ outDir?: string;
135
+ host?: string | boolean;
131
136
  trailingSlash?: boolean;
132
137
  output?: 'server' | 'static';
138
+ server?: {
139
+ allowedHosts?: string[] | true;
140
+ };
141
+ security?: {
142
+ checkOrigin?: boolean;
143
+ };
133
144
  /**
134
145
  * Theme for the catalog UI.
135
146
  * - 'default': Default purple/slate theme
@@ -143,8 +154,8 @@ interface Config {
143
154
  auth?: AuthConfig;
144
155
  mcp?: McpConfig;
145
156
  rss?: {
146
- enabled: boolean;
147
- limit: number;
157
+ enabled?: boolean;
158
+ limit?: number;
148
159
  };
149
160
  search?: {
150
161
  /**
@@ -170,9 +181,9 @@ interface Config {
170
181
  compress?: boolean;
171
182
  sidebar?: SideBarConfig[];
172
183
  navigation?: {
173
- pages: PagesConfiguration[];
184
+ pages: NavigationPage[];
174
185
  };
175
- docs: {
186
+ docs?: {
176
187
  sidebar: {
177
188
  type?: 'TREE_VIEW' | 'LIST_VIEW';
178
189
  showOrphanedMessages?: boolean;
@@ -189,7 +200,7 @@ interface Config {
189
200
  iconPacks?: string[];
190
201
  };
191
202
  chat?: {
192
- enabled: boolean;
203
+ enabled?: boolean;
193
204
  provider?: 'openai' | 'anthropic' | 'google';
194
205
  model?: string;
195
206
  max_tokens?: number;
@@ -207,7 +218,7 @@ interface Config {
207
218
  /**
208
219
  * Enable or disable the /api/catalog endpoint that dumps the entire catalog as JSON.
209
220
  * Disabling this can significantly reduce memory usage during builds for large catalogs (1000+ files).
210
- * @default false
221
+ * @default true
211
222
  */
212
223
  fullCatalogAPIEnabled?: boolean;
213
224
  };
@@ -256,6 +267,7 @@ interface Config {
256
267
  cloud?: EventCatalogCloudConfig;
257
268
  integrations?: IntegrationsConfig;
258
269
  scalarConfiguration?: ScalarConfiguration;
270
+ generators?: GeneratorConfig[];
259
271
  }
260
272
 
261
273
  export type { Config, SideBarConfig };
@@ -35,6 +35,7 @@ type TableConfiguration = {
35
35
  columns: {
36
36
  [key: string]: {
37
37
  visible?: boolean;
38
+ label?: string;
38
39
  };
39
40
  };
40
41
  };
@@ -44,6 +45,8 @@ type PagesConfiguration = {
44
45
  icon?: string;
45
46
  pages?: string[];
46
47
  };
48
+ type NavigationPage = string | PagesConfiguration;
49
+ type GeneratorConfig = string | Record<string, unknown> | [string, Record<string, unknown>];
47
50
  type AuthConfig = {
48
51
  enabled: boolean;
49
52
  };
@@ -118,18 +121,26 @@ type IntegrationsConfig = {
118
121
  type CatalogTheme = 'default' | 'ocean' | 'sapphire' | 'sunset' | 'forest' | (string & {});
119
122
  type ScalarConfiguration = any;
120
123
  interface Config {
124
+ cId: string;
121
125
  title: string;
122
- tagline: false;
123
126
  organizationName: string;
124
- homepageLink: string;
125
- editUrl: string;
127
+ tagline?: string | false;
128
+ homepageLink?: string;
129
+ editUrl?: string;
126
130
  repositoryUrl?: string;
127
131
  landingPage?: string;
128
132
  base?: string;
129
- port?: string;
130
- host?: string;
133
+ port?: string | number;
134
+ outDir?: string;
135
+ host?: string | boolean;
131
136
  trailingSlash?: boolean;
132
137
  output?: 'server' | 'static';
138
+ server?: {
139
+ allowedHosts?: string[] | true;
140
+ };
141
+ security?: {
142
+ checkOrigin?: boolean;
143
+ };
133
144
  /**
134
145
  * Theme for the catalog UI.
135
146
  * - 'default': Default purple/slate theme
@@ -143,8 +154,8 @@ interface Config {
143
154
  auth?: AuthConfig;
144
155
  mcp?: McpConfig;
145
156
  rss?: {
146
- enabled: boolean;
147
- limit: number;
157
+ enabled?: boolean;
158
+ limit?: number;
148
159
  };
149
160
  search?: {
150
161
  /**
@@ -170,9 +181,9 @@ interface Config {
170
181
  compress?: boolean;
171
182
  sidebar?: SideBarConfig[];
172
183
  navigation?: {
173
- pages: PagesConfiguration[];
184
+ pages: NavigationPage[];
174
185
  };
175
- docs: {
186
+ docs?: {
176
187
  sidebar: {
177
188
  type?: 'TREE_VIEW' | 'LIST_VIEW';
178
189
  showOrphanedMessages?: boolean;
@@ -189,7 +200,7 @@ interface Config {
189
200
  iconPacks?: string[];
190
201
  };
191
202
  chat?: {
192
- enabled: boolean;
203
+ enabled?: boolean;
193
204
  provider?: 'openai' | 'anthropic' | 'google';
194
205
  model?: string;
195
206
  max_tokens?: number;
@@ -207,7 +218,7 @@ interface Config {
207
218
  /**
208
219
  * Enable or disable the /api/catalog endpoint that dumps the entire catalog as JSON.
209
220
  * Disabling this can significantly reduce memory usage during builds for large catalogs (1000+ files).
210
- * @default false
221
+ * @default true
211
222
  */
212
223
  fullCatalogAPIEnabled?: boolean;
213
224
  };
@@ -256,6 +267,7 @@ interface Config {
256
267
  cloud?: EventCatalogCloudConfig;
257
268
  integrations?: IntegrationsConfig;
258
269
  scalarConfiguration?: ScalarConfiguration;
270
+ generators?: GeneratorConfig[];
259
271
  }
260
272
 
261
273
  export type { Config, SideBarConfig };
@@ -1,7 +1,7 @@
1
1
  import {
2
- log_build_default
3
- } from "./chunk-7UR72UMK.js";
4
- import "./chunk-4UVFXLPI.js";
2
+ runMigrations
3
+ } from "./chunk-XUAF2H54.js";
4
+ import "./chunk-CA4U2JP7.js";
5
5
  import {
6
6
  resolve_catalog_dependencies_default
7
7
  } from "./chunk-WAJIJEI3.js";
@@ -12,10 +12,10 @@ import {
12
12
  watch
13
13
  } from "./chunk-K3ZVEX2Y.js";
14
14
  import {
15
- runMigrations
16
- } from "./chunk-XUAF2H54.js";
17
- import "./chunk-CA4U2JP7.js";
18
- import "./chunk-4OEF5W6Y.js";
15
+ log_build_default
16
+ } from "./chunk-5FFRK3S5.js";
17
+ import "./chunk-PWIB7GLR.js";
18
+ import "./chunk-4UVFXLPI.js";
19
19
  import {
20
20
  catalogToAstro
21
21
  } from "./chunk-YDXB3BD2.js";
@@ -28,13 +28,13 @@ import {
28
28
  } from "./chunk-ULZYHF3V.js";
29
29
  import {
30
30
  generate
31
- } from "./chunk-BRMLU4PR.js";
31
+ } from "./chunk-B7LKNRMT.js";
32
32
  import {
33
33
  logger
34
- } from "./chunk-OIVICT4V.js";
34
+ } from "./chunk-D6UVZABG.js";
35
35
  import {
36
36
  VERSION
37
- } from "./chunk-HNG4KOYQ.js";
37
+ } from "./chunk-HSSCHCQA.js";
38
38
  import {
39
39
  getEventCatalogConfigFile,
40
40
  verifyRequiredFieldsAreInCatalogConfigFile
package/dist/generate.cjs CHANGED
@@ -78,7 +78,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
78
78
  var import_picocolors = __toESM(require("picocolors"), 1);
79
79
 
80
80
  // package.json
81
- var version = "3.40.1";
81
+ var version = "3.40.2";
82
82
 
83
83
  // src/constants.ts
84
84
  var VERSION = version;
package/dist/generate.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generate
3
- } from "./chunk-BRMLU4PR.js";
4
- import "./chunk-OIVICT4V.js";
5
- import "./chunk-HNG4KOYQ.js";
3
+ } from "./chunk-B7LKNRMT.js";
4
+ import "./chunk-D6UVZABG.js";
5
+ import "./chunk-HSSCHCQA.js";
6
6
  import "./chunk-5T63CXKU.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 = "3.40.1";
39
+ var version = "3.40.2";
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-OIVICT4V.js";
4
- import "../chunk-HNG4KOYQ.js";
3
+ } from "../chunk-D6UVZABG.js";
4
+ import "../chunk-HSSCHCQA.js";
5
5
  export {
6
6
  logger
7
7
  };
package/package.json CHANGED
@@ -7,13 +7,20 @@
7
7
  },
8
8
  "license": "SEE LICENSE IN LICENSE",
9
9
  "type": "module",
10
- "version": "3.40.1",
10
+ "version": "3.40.2",
11
11
  "publishConfig": {
12
12
  "access": "public"
13
13
  },
14
14
  "bin": {
15
15
  "eventcatalog": "bin/eventcatalog.js"
16
16
  },
17
+ "typesVersions": {
18
+ "*": {
19
+ "bin/eventcatalog.config": [
20
+ "bin/eventcatalog.config.d.ts"
21
+ ]
22
+ }
23
+ },
17
24
  "files": [
18
25
  "eventcatalog/",
19
26
  "!eventcatalog/**/__tests__/",
@@ -106,9 +113,9 @@
106
113
  "update-notifier": "^7.3.1",
107
114
  "uuid": "^10.0.0",
108
115
  "zod": "^4.3.6",
109
- "@eventcatalog/sdk": "2.21.2",
116
+ "@eventcatalog/linter": "1.0.24",
110
117
  "@eventcatalog/visualiser": "^3.21.0",
111
- "@eventcatalog/linter": "1.0.24"
118
+ "@eventcatalog/sdk": "2.21.2"
112
119
  },
113
120
  "devDependencies": {
114
121
  "@astrojs/check": "^0.9.9",