@eventcatalog/core 4.7.8 → 4.7.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.
@@ -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 = "4.7.8";
39
+ var version = "4.7.9";
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-HUEBZBWV.js";
4
- import "../chunk-FLFNI2YB.js";
3
+ } from "../chunk-4MDL35UE.js";
4
+ import "../chunk-XJ57UM4O.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 = "4.7.8";
143
+ var version = "4.7.9";
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-UMO3FJ6E.js";
4
- import "../chunk-HUEBZBWV.js";
3
+ } from "../chunk-LKIDMN7D.js";
4
+ import "../chunk-4MDL35UE.js";
5
5
  import "../chunk-K2XIENVT.js";
6
- import "../chunk-FLFNI2YB.js";
6
+ import "../chunk-XJ57UM4O.js";
7
7
  import "../chunk-6QENHZZP.js";
8
8
  export {
9
9
  log_build_default as default
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-BPE7XT3R.js";
3
+ } from "./chunk-LKZNEPD7.js";
4
4
  import {
5
5
  cleanup,
6
6
  getEventCatalogConfigFile
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-FLFNI2YB.js";
3
+ } from "./chunk-XJ57UM4O.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import os from "os";
@@ -51,6 +51,10 @@ var valueToSearchText = (value) => {
51
51
  if (typeof value === "object") return Object.values(value).map(valueToSearchText).filter(Boolean).join(" ");
52
52
  return "";
53
53
  };
54
+ var getDictionarySearchFields = (dictionary) => {
55
+ if (!Array.isArray(dictionary)) return void 0;
56
+ return dictionary.filter((entry) => typeof entry === "object" && entry !== null).map(({ id, name, summary, description }) => ({ id, name, summary, description }));
57
+ };
54
58
  var markdownToSearchText = (content) => {
55
59
  return content.replace(/<!--[\s\S]*?-->/g, " ").replace(/^\s*import\s+.*$/gm, " ").replace(/^\s*export\s+.*$/gm, " ").replace(/```[\s\S]*?```/g, (match) => match.replace(/```[a-zA-Z0-9-]*\n?/g, " ").replace(/```/g, " ")).replace(/<([A-Z][A-Za-z0-9.]*)\b([^>]*)\/?>/g, (_match, _component, attributes) => {
56
60
  const quotedValues = [...String(attributes).matchAll(/(?:title|label|description|alt|summary)=["'`]([^"'`]+)["'`]/g)];
@@ -242,7 +246,8 @@ var collectSearchRecords = async ({
242
246
  date: parsed.data.date,
243
247
  decisionMakers: parsed.data.decisionMakers,
244
248
  appliesTo: parsed.data.appliesTo,
245
- badges: parsed.data.badges
249
+ badges: parsed.data.badges,
250
+ dictionary: getDictionarySearchFields(parsed.data.dictionary)
246
251
  });
247
252
  const content = [frontmatterText, markdownToSearchText(parsed.content)].filter(Boolean).join("\n\n");
248
253
  if (!content.trim()) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-HUEBZBWV.js";
3
+ } from "./chunk-4MDL35UE.js";
4
4
  import {
5
5
  countResources,
6
6
  serializeCounts
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-FLFNI2YB.js";
3
+ } from "./chunk-XJ57UM4O.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 = "4.7.8";
2
+ var version = "4.7.9";
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 = "4.7.8";
28
+ var version = "4.7.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-FLFNI2YB.js";
3
+ } from "./chunk-XJ57UM4O.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 = "4.7.8";
147
+ var version = "4.7.9";
148
148
 
149
149
  // src/constants.ts
150
150
  var VERSION = version;
@@ -1568,6 +1568,10 @@ var valueToSearchText = (value) => {
1568
1568
  if (typeof value === "object") return Object.values(value).map(valueToSearchText).filter(Boolean).join(" ");
1569
1569
  return "";
1570
1570
  };
1571
+ var getDictionarySearchFields = (dictionary) => {
1572
+ if (!Array.isArray(dictionary)) return void 0;
1573
+ return dictionary.filter((entry) => typeof entry === "object" && entry !== null).map(({ id, name, summary, description }) => ({ id, name, summary, description }));
1574
+ };
1571
1575
  var markdownToSearchText = (content) => {
1572
1576
  return content.replace(/<!--[\s\S]*?-->/g, " ").replace(/^\s*import\s+.*$/gm, " ").replace(/^\s*export\s+.*$/gm, " ").replace(/```[\s\S]*?```/g, (match) => match.replace(/```[a-zA-Z0-9-]*\n?/g, " ").replace(/```/g, " ")).replace(/<([A-Z][A-Za-z0-9.]*)\b([^>]*)\/?>/g, (_match, _component, attributes) => {
1573
1577
  const quotedValues = [...String(attributes).matchAll(/(?:title|label|description|alt|summary)=["'`]([^"'`]+)["'`]/g)];
@@ -1759,7 +1763,8 @@ var collectSearchRecords = async ({
1759
1763
  date: parsed.data.date,
1760
1764
  decisionMakers: parsed.data.decisionMakers,
1761
1765
  appliesTo: parsed.data.appliesTo,
1762
- badges: parsed.data.badges
1766
+ badges: parsed.data.badges,
1767
+ dictionary: getDictionarySearchFields(parsed.data.dictionary)
1763
1768
  });
1764
1769
  const content = [frontmatterText, markdownToSearchText(parsed.content)].filter(Boolean).join("\n\n");
1765
1770
  if (!content.trim()) {
@@ -4,8 +4,8 @@ import {
4
4
  import "./chunk-CA4U2JP7.js";
5
5
  import {
6
6
  log_build_default
7
- } from "./chunk-UMO3FJ6E.js";
8
- import "./chunk-HUEBZBWV.js";
7
+ } from "./chunk-LKIDMN7D.js";
8
+ import "./chunk-4MDL35UE.js";
9
9
  import "./chunk-K2XIENVT.js";
10
10
  import {
11
11
  FederationConflictError,
@@ -31,16 +31,16 @@ import {
31
31
  } from "./chunk-B7HCX5HM.js";
32
32
  import {
33
33
  generate
34
- } from "./chunk-ATTSNDSU.js";
34
+ } from "./chunk-2C5JYUFZ.js";
35
35
  import {
36
36
  logger
37
- } from "./chunk-BPE7XT3R.js";
37
+ } from "./chunk-LKZNEPD7.js";
38
38
  import {
39
39
  resolve_catalog_dependencies_default
40
40
  } from "./chunk-LHR4G2UO.js";
41
41
  import {
42
42
  buildSearchIndex
43
- } from "./chunk-ZONBICNH.js";
43
+ } from "./chunk-6U72KINX.js";
44
44
  import {
45
45
  watch
46
46
  } from "./chunk-CAJUIMDJ.js";
@@ -54,7 +54,7 @@ import {
54
54
  import "./chunk-W5JQON7Z.js";
55
55
  import {
56
56
  VERSION
57
- } from "./chunk-FLFNI2YB.js";
57
+ } from "./chunk-XJ57UM4O.js";
58
58
  import {
59
59
  linkCoreNodeModules,
60
60
  resolveInstalledCoreNodeModules
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 = "4.7.8";
111
+ var version = "4.7.9";
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-ATTSNDSU.js";
4
- import "./chunk-BPE7XT3R.js";
5
- import "./chunk-FLFNI2YB.js";
3
+ } from "./chunk-2C5JYUFZ.js";
4
+ import "./chunk-LKZNEPD7.js";
5
+ import "./chunk-XJ57UM4O.js";
6
6
  import "./chunk-6QENHZZP.js";
7
7
  export {
8
8
  generate
@@ -87,6 +87,10 @@ var valueToSearchText = (value) => {
87
87
  if (typeof value === "object") return Object.values(value).map(valueToSearchText).filter(Boolean).join(" ");
88
88
  return "";
89
89
  };
90
+ var getDictionarySearchFields = (dictionary) => {
91
+ if (!Array.isArray(dictionary)) return void 0;
92
+ return dictionary.filter((entry) => typeof entry === "object" && entry !== null).map(({ id, name, summary, description }) => ({ id, name, summary, description }));
93
+ };
90
94
  var markdownToSearchText = (content) => {
91
95
  return content.replace(/<!--[\s\S]*?-->/g, " ").replace(/^\s*import\s+.*$/gm, " ").replace(/^\s*export\s+.*$/gm, " ").replace(/```[\s\S]*?```/g, (match) => match.replace(/```[a-zA-Z0-9-]*\n?/g, " ").replace(/```/g, " ")).replace(/<([A-Z][A-Za-z0-9.]*)\b([^>]*)\/?>/g, (_match, _component, attributes) => {
92
96
  const quotedValues = [...String(attributes).matchAll(/(?:title|label|description|alt|summary)=["'`]([^"'`]+)["'`]/g)];
@@ -278,7 +282,8 @@ var collectSearchRecords = async ({
278
282
  date: parsed.data.date,
279
283
  decisionMakers: parsed.data.decisionMakers,
280
284
  appliesTo: parsed.data.appliesTo,
281
- badges: parsed.data.badges
285
+ badges: parsed.data.badges,
286
+ dictionary: getDictionarySearchFields(parsed.data.dictionary)
282
287
  });
283
288
  const content = [frontmatterText, markdownToSearchText(parsed.content)].filter(Boolean).join("\n\n");
284
289
  if (!content.trim()) {
@@ -2,7 +2,7 @@ import {
2
2
  buildSearchIndex,
3
3
  collectSearchRecords,
4
4
  markdownToSearchText
5
- } from "./chunk-ZONBICNH.js";
5
+ } from "./chunk-6U72KINX.js";
6
6
  export {
7
7
  buildSearchIndex,
8
8
  collectSearchRecords,
@@ -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 = "4.7.8";
39
+ var version = "4.7.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-BPE7XT3R.js";
4
- import "../chunk-FLFNI2YB.js";
3
+ } from "../chunk-LKZNEPD7.js";
4
+ import "../chunk-XJ57UM4O.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": "4.7.8",
10
+ "version": "4.7.9",
11
11
  "publishConfig": {
12
12
  "access": "public"
13
13
  },
@@ -119,9 +119,9 @@
119
119
  "update-notifier": "^7.3.1",
120
120
  "uuid": "^11.1.1",
121
121
  "zod": "^4.3.6",
122
- "@eventcatalog/sdk": "2.27.4",
122
+ "@eventcatalog/linter": "1.1.14",
123
123
  "@eventcatalog/visualiser": "^4.1.3",
124
- "@eventcatalog/linter": "1.1.14"
124
+ "@eventcatalog/sdk": "2.27.4"
125
125
  },
126
126
  "devDependencies": {
127
127
  "@astrojs/check": "^0.9.10",