@eventcatalog/core 3.47.2 → 3.47.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.
@@ -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 = "3.47.2";
39
+ var version = "3.47.4";
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-7QEB6VKU.js";
4
- import "../chunk-Y7YNYWYT.js";
3
+ } from "../chunk-K2RCQSFM.js";
4
+ import "../chunk-ZW5UIHAH.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 = "3.47.2";
143
+ var version = "3.47.4";
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-JJXPDJAK.js";
4
- import "../chunk-7QEB6VKU.js";
3
+ } from "../chunk-DFGDA5Y7.js";
4
+ import "../chunk-K2RCQSFM.js";
5
5
  import "../chunk-DAOXTQVS.js";
6
- import "../chunk-Y7YNYWYT.js";
6
+ import "../chunk-ZW5UIHAH.js";
7
7
  import "../chunk-6QENHZZP.js";
8
8
  export {
9
9
  log_build_default as default
@@ -165,6 +165,9 @@ var COLLECTION_KEYS = [
165
165
  ];
166
166
  function mapCatalogToAstro({ filePath, astroDir, projectDir }) {
167
167
  const relativeFilePath = removeBasePath(filePath, projectDir);
168
+ if (isLikeC4Source(relativeFilePath)) {
169
+ return [];
170
+ }
168
171
  if (!isCatalogRelated(relativeFilePath)) {
169
172
  return [];
170
173
  }
@@ -179,6 +182,9 @@ function removeBasePath(fullPath, basePath) {
179
182
  function isCollectionKey(key) {
180
183
  return COLLECTION_KEYS.includes(key);
181
184
  }
185
+ function isLikeC4Source(filePath) {
186
+ return filePath.endsWith(".c4") || filePath.endsWith(".likec4");
187
+ }
182
188
  function isCatalogRelated(filePath) {
183
189
  const filePathArr = filePath.split(import_node_path2.default.sep).filter(Boolean);
184
190
  if ([
@@ -266,6 +272,16 @@ var copyFiles = async (source, target) => {
266
272
  });
267
273
  }
268
274
  };
275
+ var removeGeneratedLikeC4Sources = async (target) => {
276
+ const generatedDir = path3.join(target, "public", "generated");
277
+ const files = await (0, import_glob.glob)(path3.join(generatedDir, "**/*.{c4,likec4}"), {
278
+ nodir: true,
279
+ windowsPathsNoEscape: import_node_os2.default.platform() == "win32"
280
+ });
281
+ for (const file of files) {
282
+ import_fs.default.rmSync(file);
283
+ }
284
+ };
269
285
  var catalogToAstro = async (source, astroDir) => {
270
286
  const astroContentDir = path3.join(astroDir, "src/content/");
271
287
  if (import_fs.default.existsSync(astroContentDir)) import_fs.default.rmSync(astroContentDir, { recursive: true });
@@ -274,6 +290,7 @@ var catalogToAstro = async (source, astroDir) => {
274
290
  if (!import_fs.default.existsSync(path3.join(source, "eventcatalog.styles.css"))) {
275
291
  import_fs.default.writeFileSync(path3.join(source, "eventcatalog.styles.css"), "");
276
292
  }
293
+ await removeGeneratedLikeC4Sources(astroDir);
277
294
  await copyFiles(source, astroDir);
278
295
  };
279
296
  // Annotate the CommonJS export names for ESM import in node:
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  catalogToAstro
3
- } from "./chunk-4SMA4HQ3.js";
4
- import "./chunk-IR4IAKWS.js";
3
+ } from "./chunk-WQNKHIDM.js";
4
+ import "./chunk-VC6VUJIX.js";
5
5
  import "./chunk-6QENHZZP.js";
6
6
  export {
7
7
  catalogToAstro
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-7QEB6VKU.js";
3
+ } from "./chunk-K2RCQSFM.js";
4
4
  import {
5
5
  countResources,
6
6
  serializeCounts
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-Y7XPSO3E.js";
3
+ } from "./chunk-XIXRWB3Y.js";
4
4
  import {
5
5
  cleanup,
6
6
  getEventCatalogConfigFile
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-Y7YNYWYT.js";
3
+ } from "./chunk-ZW5UIHAH.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import os from "os";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  mapCatalogToAstro
3
- } from "./chunk-IR4IAKWS.js";
3
+ } from "./chunk-VC6VUJIX.js";
4
4
 
5
5
  // src/watcher.js
6
6
  import watcher from "@parcel/watcher";
@@ -16,6 +16,9 @@ var COLLECTION_KEYS = [
16
16
  ];
17
17
  function mapCatalogToAstro({ filePath, astroDir, projectDir }) {
18
18
  const relativeFilePath = removeBasePath(filePath, projectDir);
19
+ if (isLikeC4Source(relativeFilePath)) {
20
+ return [];
21
+ }
19
22
  if (!isCatalogRelated(relativeFilePath)) {
20
23
  return [];
21
24
  }
@@ -30,6 +33,9 @@ function removeBasePath(fullPath, basePath) {
30
33
  function isCollectionKey(key) {
31
34
  return COLLECTION_KEYS.includes(key);
32
35
  }
36
+ function isLikeC4Source(filePath) {
37
+ return filePath.endsWith(".c4") || filePath.endsWith(".likec4");
38
+ }
33
39
  function isCatalogRelated(filePath) {
34
40
  const filePathArr = filePath.split(path.sep).filter(Boolean);
35
41
  if ([
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  mapCatalogToAstro
3
- } from "./chunk-IR4IAKWS.js";
3
+ } from "./chunk-VC6VUJIX.js";
4
4
  import {
5
5
  verifyRequiredFieldsAreInCatalogConfigFile
6
6
  } from "./chunk-6QENHZZP.js";
@@ -40,6 +40,16 @@ var copyFiles = async (source, target) => {
40
40
  });
41
41
  }
42
42
  };
43
+ var removeGeneratedLikeC4Sources = async (target) => {
44
+ const generatedDir = path.join(target, "public", "generated");
45
+ const files = await glob(path.join(generatedDir, "**/*.{c4,likec4}"), {
46
+ nodir: true,
47
+ windowsPathsNoEscape: os.platform() == "win32"
48
+ });
49
+ for (const file of files) {
50
+ fs.rmSync(file);
51
+ }
52
+ };
43
53
  var catalogToAstro = async (source, astroDir) => {
44
54
  const astroContentDir = path.join(astroDir, "src/content/");
45
55
  if (fs.existsSync(astroContentDir)) fs.rmSync(astroContentDir, { recursive: true });
@@ -48,6 +58,7 @@ var catalogToAstro = async (source, astroDir) => {
48
58
  if (!fs.existsSync(path.join(source, "eventcatalog.styles.css"))) {
49
59
  fs.writeFileSync(path.join(source, "eventcatalog.styles.css"), "");
50
60
  }
61
+ await removeGeneratedLikeC4Sources(astroDir);
51
62
  await copyFiles(source, astroDir);
52
63
  };
53
64
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-Y7YNYWYT.js";
3
+ } from "./chunk-ZW5UIHAH.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.47.2";
2
+ var version = "3.47.4";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "3.47.2";
28
+ var version = "3.47.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-Y7YNYWYT.js";
3
+ } from "./chunk-ZW5UIHAH.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 = "3.47.2";
147
+ var version = "3.47.4";
148
148
 
149
149
  // src/constants.ts
150
150
  var VERSION = version;
@@ -429,6 +429,9 @@ var COLLECTION_KEYS = [
429
429
  ];
430
430
  function mapCatalogToAstro({ filePath, astroDir, projectDir }) {
431
431
  const relativeFilePath = removeBasePath(filePath, projectDir);
432
+ if (isLikeC4Source(relativeFilePath)) {
433
+ return [];
434
+ }
432
435
  if (!isCatalogRelated(relativeFilePath)) {
433
436
  return [];
434
437
  }
@@ -443,6 +446,9 @@ function removeBasePath(fullPath, basePath) {
443
446
  function isCollectionKey(key) {
444
447
  return COLLECTION_KEYS.includes(key);
445
448
  }
449
+ function isLikeC4Source(filePath) {
450
+ return filePath.endsWith(".c4") || filePath.endsWith(".likec4");
451
+ }
446
452
  function isCatalogRelated(filePath) {
447
453
  const filePathArr = filePath.split(import_node_path3.default.sep).filter(Boolean);
448
454
  if ([
@@ -626,6 +632,16 @@ var copyFiles = async (source, target) => {
626
632
  });
627
633
  }
628
634
  };
635
+ var removeGeneratedLikeC4Sources = async (target) => {
636
+ const generatedDir = path4.join(target, "public", "generated");
637
+ const files = await (0, import_glob2.glob)(path4.join(generatedDir, "**/*.{c4,likec4}"), {
638
+ nodir: true,
639
+ windowsPathsNoEscape: import_node_os2.default.platform() == "win32"
640
+ });
641
+ for (const file of files) {
642
+ import_fs.default.rmSync(file);
643
+ }
644
+ };
629
645
  var catalogToAstro = async (source, astroDir) => {
630
646
  const astroContentDir = path4.join(astroDir, "src/content/");
631
647
  if (import_fs.default.existsSync(astroContentDir)) import_fs.default.rmSync(astroContentDir, { recursive: true });
@@ -634,6 +650,7 @@ var catalogToAstro = async (source, astroDir) => {
634
650
  if (!import_fs.default.existsSync(path4.join(source, "eventcatalog.styles.css"))) {
635
651
  import_fs.default.writeFileSync(path4.join(source, "eventcatalog.styles.css"), "");
636
652
  }
653
+ await removeGeneratedLikeC4Sources(astroDir);
637
654
  await copyFiles(source, astroDir);
638
655
  };
639
656
 
@@ -10,16 +10,16 @@ import {
10
10
  } from "./chunk-ZONBICNH.js";
11
11
  import {
12
12
  watch
13
- } from "./chunk-3H2RT3CM.js";
13
+ } from "./chunk-O3Y2G6CY.js";
14
14
  import {
15
15
  log_build_default
16
- } from "./chunk-JJXPDJAK.js";
17
- import "./chunk-7QEB6VKU.js";
16
+ } from "./chunk-DFGDA5Y7.js";
17
+ import "./chunk-K2RCQSFM.js";
18
18
  import "./chunk-DAOXTQVS.js";
19
19
  import {
20
20
  catalogToAstro
21
- } from "./chunk-4SMA4HQ3.js";
22
- import "./chunk-IR4IAKWS.js";
21
+ } from "./chunk-WQNKHIDM.js";
22
+ import "./chunk-VC6VUJIX.js";
23
23
  import {
24
24
  getProjectOutDir,
25
25
  isAuthEnabled,
@@ -28,13 +28,13 @@ import {
28
28
  } from "./chunk-B7HCX5HM.js";
29
29
  import {
30
30
  generate
31
- } from "./chunk-XORTIVNN.js";
31
+ } from "./chunk-FLHJWTY2.js";
32
32
  import {
33
33
  logger
34
- } from "./chunk-Y7XPSO3E.js";
34
+ } from "./chunk-XIXRWB3Y.js";
35
35
  import {
36
36
  VERSION
37
- } from "./chunk-Y7YNYWYT.js";
37
+ } from "./chunk-ZW5UIHAH.js";
38
38
  import {
39
39
  getEventCatalogConfigFile,
40
40
  verifyRequiredFieldsAreInCatalogConfigFile
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 = "3.47.2";
111
+ var version = "3.47.4";
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-XORTIVNN.js";
4
- import "./chunk-Y7XPSO3E.js";
5
- import "./chunk-Y7YNYWYT.js";
3
+ } from "./chunk-FLHJWTY2.js";
4
+ import "./chunk-XIXRWB3Y.js";
5
+ import "./chunk-ZW5UIHAH.js";
6
6
  import "./chunk-6QENHZZP.js";
7
7
  export {
8
8
  generate
@@ -50,6 +50,9 @@ var COLLECTION_KEYS = [
50
50
  ];
51
51
  function mapCatalogToAstro({ filePath, astroDir, projectDir }) {
52
52
  const relativeFilePath = removeBasePath(filePath, projectDir);
53
+ if (isLikeC4Source(relativeFilePath)) {
54
+ return [];
55
+ }
53
56
  if (!isCatalogRelated(relativeFilePath)) {
54
57
  return [];
55
58
  }
@@ -64,6 +67,9 @@ function removeBasePath(fullPath, basePath) {
64
67
  function isCollectionKey(key) {
65
68
  return COLLECTION_KEYS.includes(key);
66
69
  }
70
+ function isLikeC4Source(filePath) {
71
+ return filePath.endsWith(".c4") || filePath.endsWith(".likec4");
72
+ }
67
73
  function isCatalogRelated(filePath) {
68
74
  const filePathArr = filePath.split(import_node_path.default.sep).filter(Boolean);
69
75
  if ([
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  mapCatalogToAstro
3
- } from "./chunk-IR4IAKWS.js";
3
+ } from "./chunk-VC6VUJIX.js";
4
4
  export {
5
5
  mapCatalogToAstro
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.47.2";
39
+ var version = "3.47.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-Y7XPSO3E.js";
4
- import "../chunk-Y7YNYWYT.js";
3
+ } from "../chunk-XIXRWB3Y.js";
4
+ import "../chunk-ZW5UIHAH.js";
5
5
  export {
6
6
  logger
7
7
  };
package/dist/watcher.cjs CHANGED
@@ -54,6 +54,9 @@ var COLLECTION_KEYS = [
54
54
  ];
55
55
  function mapCatalogToAstro({ filePath, astroDir, projectDir }) {
56
56
  const relativeFilePath = removeBasePath(filePath, projectDir);
57
+ if (isLikeC4Source(relativeFilePath)) {
58
+ return [];
59
+ }
57
60
  if (!isCatalogRelated(relativeFilePath)) {
58
61
  return [];
59
62
  }
@@ -68,6 +71,9 @@ function removeBasePath(fullPath, basePath) {
68
71
  function isCollectionKey(key) {
69
72
  return COLLECTION_KEYS.includes(key);
70
73
  }
74
+ function isLikeC4Source(filePath) {
75
+ return filePath.endsWith(".c4") || filePath.endsWith(".likec4");
76
+ }
71
77
  function isCatalogRelated(filePath) {
72
78
  const filePathArr = filePath.split(import_node_path.default.sep).filter(Boolean);
73
79
  if ([
package/dist/watcher.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  watch
3
- } from "./chunk-3H2RT3CM.js";
4
- import "./chunk-IR4IAKWS.js";
3
+ } from "./chunk-O3Y2G6CY.js";
4
+ import "./chunk-VC6VUJIX.js";
5
5
  export {
6
6
  watch
7
7
  };
@@ -16,9 +16,9 @@ const likeC4InstallMessage = `LikeC4 diagrams were found, but LikeC4 is not inst
16
16
 
17
17
  Install LikeC4 in your EventCatalog project:
18
18
 
19
- npm install --save-dev likec4@latest @likec4/icons@latest
20
- pnpm add -D likec4@latest @likec4/icons@latest
21
- yarn add -D likec4@latest @likec4/icons@latest`;
19
+ npm install --save-dev likec4@1.55.1 @likec4/icons@1.46.4
20
+ pnpm add -D likec4@1.55.1 @likec4/icons@1.46.4
21
+ yarn add -D likec4@1.55.1 @likec4/icons@1.46.4`;
22
22
 
23
23
  export const eventCatalogLikeC4 = async (workspaceDir: string): Promise<Plugin[]> => {
24
24
  const enabled = hasLikeC4Sources(workspaceDir);
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "license": "SEE LICENSE IN LICENSE",
9
9
  "type": "module",
10
- "version": "3.47.2",
10
+ "version": "3.47.4",
11
11
  "publishConfig": {
12
12
  "access": "public"
13
13
  },
@@ -75,7 +75,7 @@
75
75
  "gray-matter": "^4.0.3",
76
76
  "hono": "4.12.21",
77
77
  "html-to-image": "^1.11.11",
78
- "js-yaml": "^4.1.1",
78
+ "js-yaml": "^4.2.0",
79
79
  "jsonpath-plus": "^10.4.0",
80
80
  "jsonwebtoken": "^9.0.2",
81
81
  "lodash.debounce": "^4.0.8",
@@ -111,9 +111,9 @@
111
111
  "update-notifier": "^7.3.1",
112
112
  "uuid": "^10.0.0",
113
113
  "zod": "^4.3.6",
114
- "@eventcatalog/linter": "1.0.29",
115
- "@eventcatalog/visualiser": "^3.22.1",
116
- "@eventcatalog/sdk": "2.24.1"
114
+ "@eventcatalog/linter": "1.1.0",
115
+ "@eventcatalog/sdk": "2.24.1",
116
+ "@eventcatalog/visualiser": "^3.22.1"
117
117
  },
118
118
  "devDependencies": {
119
119
  "@astrojs/check": "^0.9.9",