@eventcatalog/core 3.31.2 → 3.31.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.
@@ -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.31.2";
40
+ var version = "3.31.4";
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-DL3PF5MS.js";
4
- import "../chunk-UOKUSIKW.js";
3
+ } from "../chunk-457CJRN6.js";
4
+ import "../chunk-SVF7CHH7.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.31.2";
114
+ var version = "3.31.4";
115
115
 
116
116
  // src/constants.ts
117
117
  var VERSION = version;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  log_build_default
3
- } from "../chunk-IPGFRHRL.js";
4
- import "../chunk-DL3PF5MS.js";
3
+ } from "../chunk-2JACLNDE.js";
4
+ import "../chunk-457CJRN6.js";
5
5
  import "../chunk-4UVFXLPI.js";
6
- import "../chunk-UOKUSIKW.js";
6
+ import "../chunk-SVF7CHH7.js";
7
7
  import "../chunk-5T63CXKU.js";
8
8
  export {
9
9
  log_build_default as default
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-DL3PF5MS.js";
3
+ } from "./chunk-457CJRN6.js";
4
4
  import {
5
5
  countResources,
6
6
  serializeCounts
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-UOKUSIKW.js";
3
+ } from "./chunk-SVF7CHH7.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import axios from "axios";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-5VANHNV3.js";
3
+ } from "./chunk-QHHTX7VU.js";
4
4
  import {
5
5
  cleanup,
6
6
  getEventCatalogConfigFile
@@ -4,7 +4,14 @@ import { glob } from "glob";
4
4
  import os from "os";
5
5
  import matter from "gray-matter";
6
6
  import path from "path";
7
+ var DISABLE_CHANNEL_MIGRATION_ENV = "EVENTCATALOG_DISABLE_CHANNEL_MIGRATION";
8
+ var isChannelMigrationDisabled = () => {
9
+ return ["true", "1", "yes"].includes((process.env[DISABLE_CHANNEL_MIGRATION_ENV] ?? "").toLowerCase());
10
+ };
7
11
  var message_channels_to_service_channels_default = async (dir) => {
12
+ if (isChannelMigrationDisabled()) {
13
+ return { status: "skipped", message: `Channel migration disabled by ${DISABLE_CHANNEL_MIGRATION_ENV}` };
14
+ }
8
15
  const PROJECT_DIR = path.join(dir || process.env.PROJECT_DIR);
9
16
  const messages = await glob(
10
17
  [
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-UOKUSIKW.js";
3
+ } from "./chunk-SVF7CHH7.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.31.2";
2
+ var version = "3.31.4";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  message_channels_to_service_channels_default
3
- } from "./chunk-7OY7QEH2.js";
3
+ } from "./chunk-CA4U2JP7.js";
4
4
 
5
5
  // src/migrations/index.ts
6
6
  var runMigrations = async (dir) => {
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "3.31.2";
28
+ var version = "3.31.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-UOKUSIKW.js";
3
+ } from "./chunk-SVF7CHH7.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.31.2";
117
+ var version = "3.31.4";
118
118
 
119
119
  // src/constants.ts
120
120
  var VERSION = version;
@@ -605,7 +605,14 @@ var import_glob3 = require("glob");
605
605
  var import_node_os3 = __toESM(require("os"), 1);
606
606
  var import_gray_matter3 = __toESM(require("gray-matter"), 1);
607
607
  var import_node_path6 = __toESM(require("path"), 1);
608
+ var DISABLE_CHANNEL_MIGRATION_ENV = "EVENTCATALOG_DISABLE_CHANNEL_MIGRATION";
609
+ var isChannelMigrationDisabled = () => {
610
+ return ["true", "1", "yes"].includes((process.env[DISABLE_CHANNEL_MIGRATION_ENV] ?? "").toLowerCase());
611
+ };
608
612
  var message_channels_to_service_channels_default = async (dir2) => {
613
+ if (isChannelMigrationDisabled()) {
614
+ return { status: "skipped", message: `Channel migration disabled by ${DISABLE_CHANNEL_MIGRATION_ENV}` };
615
+ }
609
616
  const PROJECT_DIR = import_node_path6.default.join(dir2 || process.env.PROJECT_DIR);
610
617
  const messages = await (0, import_glob3.glob)(
611
618
  [
@@ -6,13 +6,13 @@ import {
6
6
  } from "./chunk-K3ZVEX2Y.js";
7
7
  import {
8
8
  log_build_default
9
- } from "./chunk-IPGFRHRL.js";
10
- import "./chunk-DL3PF5MS.js";
9
+ } from "./chunk-2JACLNDE.js";
10
+ import "./chunk-457CJRN6.js";
11
11
  import "./chunk-4UVFXLPI.js";
12
12
  import {
13
13
  runMigrations
14
- } from "./chunk-YX57AREF.js";
15
- import "./chunk-7OY7QEH2.js";
14
+ } from "./chunk-XUAF2H54.js";
15
+ import "./chunk-CA4U2JP7.js";
16
16
  import {
17
17
  catalogToAstro
18
18
  } from "./chunk-YDXB3BD2.js";
@@ -22,13 +22,13 @@ import {
22
22
  } from "./chunk-3KXCGYET.js";
23
23
  import {
24
24
  generate
25
- } from "./chunk-7FECQ5B3.js";
25
+ } from "./chunk-4RSGWHXO.js";
26
26
  import {
27
27
  logger
28
- } from "./chunk-5VANHNV3.js";
28
+ } from "./chunk-QHHTX7VU.js";
29
29
  import {
30
30
  VERSION
31
- } from "./chunk-UOKUSIKW.js";
31
+ } from "./chunk-SVF7CHH7.js";
32
32
  import {
33
33
  getEventCatalogConfigFile,
34
34
  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.31.2";
81
+ var version = "3.31.4";
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-7FECQ5B3.js";
4
- import "./chunk-5VANHNV3.js";
5
- import "./chunk-UOKUSIKW.js";
3
+ } from "./chunk-4RSGWHXO.js";
4
+ import "./chunk-QHHTX7VU.js";
5
+ import "./chunk-SVF7CHH7.js";
6
6
  import "./chunk-5T63CXKU.js";
7
7
  export {
8
8
  generate
@@ -40,7 +40,14 @@ var import_glob = require("glob");
40
40
  var import_node_os = __toESM(require("os"), 1);
41
41
  var import_gray_matter = __toESM(require("gray-matter"), 1);
42
42
  var import_node_path = __toESM(require("path"), 1);
43
+ var DISABLE_CHANNEL_MIGRATION_ENV = "EVENTCATALOG_DISABLE_CHANNEL_MIGRATION";
44
+ var isChannelMigrationDisabled = () => {
45
+ return ["true", "1", "yes"].includes((process.env[DISABLE_CHANNEL_MIGRATION_ENV] ?? "").toLowerCase());
46
+ };
43
47
  var message_channels_to_service_channels_default = async (dir) => {
48
+ if (isChannelMigrationDisabled()) {
49
+ return { status: "skipped", message: `Channel migration disabled by ${DISABLE_CHANNEL_MIGRATION_ENV}` };
50
+ }
44
51
  const PROJECT_DIR = import_node_path.default.join(dir || process.env.PROJECT_DIR);
45
52
  const messages = await (0, import_glob.glob)(
46
53
  [
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  runMigrations
3
- } from "../chunk-YX57AREF.js";
4
- import "../chunk-7OY7QEH2.js";
3
+ } from "../chunk-XUAF2H54.js";
4
+ import "../chunk-CA4U2JP7.js";
5
5
  export {
6
6
  runMigrations
7
7
  };
@@ -38,7 +38,14 @@ var import_glob = require("glob");
38
38
  var import_node_os = __toESM(require("os"), 1);
39
39
  var import_gray_matter = __toESM(require("gray-matter"), 1);
40
40
  var import_node_path = __toESM(require("path"), 1);
41
+ var DISABLE_CHANNEL_MIGRATION_ENV = "EVENTCATALOG_DISABLE_CHANNEL_MIGRATION";
42
+ var isChannelMigrationDisabled = () => {
43
+ return ["true", "1", "yes"].includes((process.env[DISABLE_CHANNEL_MIGRATION_ENV] ?? "").toLowerCase());
44
+ };
41
45
  var message_channels_to_service_channels_default = async (dir) => {
46
+ if (isChannelMigrationDisabled()) {
47
+ return { status: "skipped", message: `Channel migration disabled by ${DISABLE_CHANNEL_MIGRATION_ENV}` };
48
+ }
42
49
  const PROJECT_DIR = import_node_path.default.join(dir || process.env.PROJECT_DIR);
43
50
  const messages = await (0, import_glob.glob)(
44
51
  [
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  message_channels_to_service_channels_default
3
- } from "../chunk-7OY7QEH2.js";
3
+ } from "../chunk-CA4U2JP7.js";
4
4
  export {
5
5
  message_channels_to_service_channels_default as default
6
6
  };
@@ -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.31.2";
39
+ var version = "3.31.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-5VANHNV3.js";
4
- import "../chunk-UOKUSIKW.js";
3
+ } from "../chunk-QHHTX7VU.js";
4
+ import "../chunk-SVF7CHH7.js";
5
5
  export {
6
6
  logger
7
7
  };
@@ -272,6 +272,20 @@ const nodeGraphPropsForPage = nodeGraphs.find((nodeGraph: any) => nodeGraph.id =
272
272
 
273
273
  const shouldRenderVersionList =
274
274
  shouldRenderSideBarSection(props, 'versions') && props.data.versions && props.data.versions.length > 1;
275
+ const httpOperation =
276
+ ['commands', 'queries'].includes(props.collection) && props.data.operation?.path ? props.data.operation : undefined;
277
+ const httpMethodColors: Record<string, { background: string; color: string }> = {
278
+ GET: { background: 'rgba(34,197,94,0.15)', color: '#22c55e' },
279
+ POST: { background: 'rgba(59,130,246,0.15)', color: '#3b82f6' },
280
+ PUT: { background: 'rgba(245,158,11,0.15)', color: '#f59e0b' },
281
+ PATCH: { background: 'rgba(245,158,11,0.15)', color: '#f59e0b' },
282
+ DELETE: { background: 'rgba(239,68,68,0.15)', color: '#ef4444' },
283
+ OPTIONS: { background: 'rgba(139,92,246,0.15)', color: '#8b5cf6' },
284
+ HEAD: { background: 'rgba(107,114,128,0.15)', color: '#6b7280' },
285
+ };
286
+ const httpMethodStyle = httpOperation?.method
287
+ ? httpMethodColors[httpOperation.method.toUpperCase()] || { background: '#6b7280', color: '#ffffff' }
288
+ : undefined;
275
289
 
276
290
  // This will render the graph for this page
277
291
  nodeGraphs.push({
@@ -343,6 +357,26 @@ nodeGraphs.push({
343
357
  </div>
344
358
 
345
359
  <h2 class="text-base pt-4 text-[rgb(var(--ec-page-text-muted))] font-light">{props.data.summary}</h2>
360
+ {
361
+ httpOperation && (
362
+ <div class="pt-4">
363
+ <div
364
+ class="inline-flex max-w-full items-start gap-2 rounded-lg border border-[rgb(var(--ec-page-border))] bg-[rgb(var(--ec-content-hover))] px-3 py-2 text-sm text-[rgb(var(--ec-page-text))]"
365
+ aria-label="HTTP path"
366
+ >
367
+ {httpOperation.method && (
368
+ <span
369
+ class="mt-0.5 shrink-0 rounded-md px-2 py-0.5 font-mono text-xs font-semibold"
370
+ style={`background: ${httpMethodStyle?.background}; color: ${httpMethodStyle?.color};`}
371
+ >
372
+ {httpOperation.method}
373
+ </span>
374
+ )}
375
+ <code class="break-all font-mono text-[rgb(var(--ec-page-text))]">{httpOperation.path}</code>
376
+ </div>
377
+ </div>
378
+ )
379
+ }
346
380
  {
347
381
  badges && (
348
382
  <div class="flex flex-wrap gap-3 pt-6 pb-2">
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "license": "SEE LICENSE IN LICENSE",
9
9
  "type": "module",
10
- "version": "3.31.2",
10
+ "version": "3.31.4",
11
11
  "publishConfig": {
12
12
  "access": "public"
13
13
  },
@@ -106,8 +106,8 @@
106
106
  "uuid": "^10.0.0",
107
107
  "zod": "^4.3.6",
108
108
  "@eventcatalog/linter": "1.0.21",
109
- "@eventcatalog/sdk": "2.20.0",
110
- "@eventcatalog/visualiser": "^3.19.0"
109
+ "@eventcatalog/visualiser": "^3.19.0",
110
+ "@eventcatalog/sdk": "2.20.0"
111
111
  },
112
112
  "devDependencies": {
113
113
  "@astrojs/check": "^0.9.8",