@eventcatalog/core 3.31.3 → 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.3";
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-VH65Q3HT.js";
4
- import "../chunk-ZB4D3AZB.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.3";
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-4BGFG4MW.js";
4
- import "../chunk-VH65Q3HT.js";
3
+ } from "../chunk-2JACLNDE.js";
4
+ import "../chunk-457CJRN6.js";
5
5
  import "../chunk-4UVFXLPI.js";
6
- import "../chunk-ZB4D3AZB.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-VH65Q3HT.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-ZB4D3AZB.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-VZ53X73K.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-ZB4D3AZB.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.3";
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.3";
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-ZB4D3AZB.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.3";
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-4BGFG4MW.js";
10
- import "./chunk-VH65Q3HT.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-INJR34TF.js";
25
+ } from "./chunk-4RSGWHXO.js";
26
26
  import {
27
27
  logger
28
- } from "./chunk-VZ53X73K.js";
28
+ } from "./chunk-QHHTX7VU.js";
29
29
  import {
30
30
  VERSION
31
- } from "./chunk-ZB4D3AZB.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.3";
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-INJR34TF.js";
4
- import "./chunk-VZ53X73K.js";
5
- import "./chunk-ZB4D3AZB.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.3";
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-VZ53X73K.js";
4
- import "../chunk-ZB4D3AZB.js";
3
+ } from "../chunk-QHHTX7VU.js";
4
+ import "../chunk-SVF7CHH7.js";
5
5
  export {
6
6
  logger
7
7
  };
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.3",
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",