@eventcatalog/core 2.18.4 → 2.18.6

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 = "2.18.4";
40
+ var version = "2.18.6";
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-RS3HF4IW.js";
4
- import "../chunk-PCKSHEKP.js";
3
+ } from "../chunk-PMKIIHTY.js";
4
+ import "../chunk-H23OJDR7.js";
5
5
  export {
6
6
  raiseEvent
7
7
  };
@@ -106,7 +106,7 @@ var import_axios = __toESM(require("axios"), 1);
106
106
  var import_os = __toESM(require("os"), 1);
107
107
 
108
108
  // package.json
109
- var version = "2.18.4";
109
+ var version = "2.18.6";
110
110
 
111
111
  // src/constants.ts
112
112
  var VERSION = version;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  log_build_default
3
- } from "../chunk-OOOLFBRN.js";
4
- import "../chunk-RS3HF4IW.js";
5
- import "../chunk-PCKSHEKP.js";
3
+ } from "../chunk-A6WKKOVK.js";
4
+ import "../chunk-PMKIIHTY.js";
5
+ import "../chunk-H23OJDR7.js";
6
6
  import "../chunk-E7TXTI7G.js";
7
7
  export {
8
8
  log_build_default as default
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-RS3HF4IW.js";
3
+ } from "./chunk-PMKIIHTY.js";
4
4
  import {
5
5
  getEventCatalogConfigFile,
6
6
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "2.18.4";
2
+ var version = "2.18.6";
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-PCKSHEKP.js";
3
+ } from "./chunk-H23OJDR7.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 = "2.18.4";
28
+ var version = "2.18.6";
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-PCKSHEKP.js";
3
+ } from "./chunk-H23OJDR7.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -161,7 +161,7 @@ var import_axios = __toESM(require("axios"), 1);
161
161
  var import_os = __toESM(require("os"), 1);
162
162
 
163
163
  // package.json
164
- var version = "2.18.4";
164
+ var version = "2.18.6";
165
165
 
166
166
  // src/constants.ts
167
167
  var VERSION = version;
@@ -3,14 +3,14 @@ import {
3
3
  } from "./chunk-SHCMAL37.js";
4
4
  import {
5
5
  log_build_default
6
- } from "./chunk-OOOLFBRN.js";
7
- import "./chunk-RS3HF4IW.js";
6
+ } from "./chunk-A6WKKOVK.js";
7
+ import "./chunk-PMKIIHTY.js";
8
8
  import {
9
9
  catalogToAstro
10
10
  } from "./chunk-WF34R5UT.js";
11
11
  import {
12
12
  VERSION
13
- } from "./chunk-PCKSHEKP.js";
13
+ } from "./chunk-H23OJDR7.js";
14
14
  import {
15
15
  generate
16
16
  } from "./chunk-YEQVKHST.js";
@@ -47,7 +47,7 @@ export default defineConfig({
47
47
  // https://docs.astro.build/en/guides/integrations-guide/mdx/#optimize
48
48
  optimize: config.mdxOptimize || false,
49
49
  remarkPlugins: [remarkDirective, remarkDirectives, remarkComment, mermaid],
50
- gfm: false,
50
+ gfm: true,
51
51
  }),
52
52
  pagefind(),
53
53
  ],
@@ -422,7 +422,7 @@ const NodeGraph = ({
422
422
  <div className="flex justify-between" id="visualiser-footer">
423
423
  {footerLabel && (
424
424
  <div className="py-2 w-full text-left ">
425
- <span className=" text-sm no-underline py-2 text-gray-300">{footerLabel}</span>
425
+ <span className=" text-sm no-underline py-2 text-gray-500">{footerLabel}</span>
426
426
  </div>
427
427
  )}
428
428
 
@@ -13,3 +13,4 @@ export { default as SQS } from '@icons/protocols/sqs.svg?raw';
13
13
  export { default as EventBridge } from '@icons/protocols/eventbridge.svg?raw';
14
14
  export { default as Redis } from '@icons/protocols/redis.svg?raw';
15
15
  export { default as GooglePubSub } from '@icons/protocols/googlepubsub.svg?raw';
16
+ export { default as Kinesis } from '@icons/protocols/kinesis.svg?raw';
@@ -0,0 +1,14 @@
1
+ <svg viewBox="0 0 80 80" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2
+ <defs>
3
+ <linearGradient x1="0%" y1="100%" x2="100%" y2="0%" id="linearGradient-1">
4
+ <stop stop-color="#4D27A8" offset="0%"></stop>
5
+ <stop stop-color="#A166FF" offset="100%"></stop>
6
+ </linearGradient>
7
+ </defs>
8
+ <g id="Icon-Architecture/64/Arch_Amazon-Kinesis_64" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
9
+ <g id="Icon-Architecture-BG/64/Analytics" fill="url(#linearGradient-1)">
10
+ <rect id="Rectangle" x="0" y="0" width="80" height="80"></rect>
11
+ </g>
12
+ <path d="M19,62 L21,62 C21,53.594 26.465,45 67,45 L67,43 C24.703,43 19,52.604 19,62 M25,68 L27,68 C27,60.434 27,49 67,49 L67,47 C48.663,47 36.728,49.359 30.51,54.212 C25,58.512 25,63.996 25,68 M15,26 L13,26 C13,33.396 23.039,38.08 42.893,40 C23.039,41.92 13,46.604 13,54 L15,54 C15,49.145 21.756,41 67,41 L67,39 C21.756,39 15,30.855 15,26 M21,18 L19,18 C19,27.396 24.703,37 67,37 L67,35 C26.465,35 21,26.406 21,18 M67,31 L67,33 C48.663,33 36.728,30.641 30.51,25.788 C25,21.488 25,16.004 25,12 L27,12 C27,19.566 27,31 67,31" id="Amazon-Kinesis_Icon_64_Squid" fill="#FFFFFF"></path>
13
+ </g>
14
+ </svg>
@@ -74,5 +74,10 @@ export const getChannels = async ({ getAllVersions = true }: Props = {}): Promis
74
74
  };
75
75
  });
76
76
 
77
+ // order them by the name of the channel
78
+ cachedChannels[cacheKey].sort((a, b) => {
79
+ return (a.data.name || a.data.id).localeCompare(b.data.name || b.data.id);
80
+ });
81
+
77
82
  return cachedChannels[cacheKey];
78
83
  };
@@ -65,14 +65,18 @@ export const getDomains = async ({ getAllVersions = true }: Props = {}): Promise
65
65
  };
66
66
  });
67
67
 
68
+ // order them by the name of the domain
69
+ cachedDomains[cacheKey].sort((a, b) => {
70
+ return (a.data.name || a.data.id).localeCompare(b.data.name || b.data.id);
71
+ });
72
+
68
73
  return cachedDomains[cacheKey];
69
74
  };
70
75
 
71
76
  export const getUbiquitousLanguage = async (domain: Domain): Promise<UbiquitousLanguage[]> => {
72
- const { collection, data } = domain;
73
-
74
- const ubiquitousLanguages = await getCollection('ubiquitousLanguages', (ubiquitousLanguage) => {
75
- return ubiquitousLanguage.id.toLowerCase().includes(`${collection}/${data.name}`.toLowerCase());
77
+ const ubiquitousLanguages = await getCollection('ubiquitousLanguages', (ubiquitousLanguage: UbiquitousLanguage) => {
78
+ const folderPath = ubiquitousLanguage.id.replace('ubiquitous-language', '');
79
+ return domain.filePath?.toLowerCase().includes(folderPath.toLowerCase());
76
80
  });
77
81
 
78
82
  return ubiquitousLanguages;
@@ -69,5 +69,10 @@ export const getFlows = async ({ getAllVersions = true }: Props = {}): Promise<F
69
69
  };
70
70
  });
71
71
 
72
+ // order them by the name of the flow
73
+ cachedFlows[cacheKey].sort((a, b) => {
74
+ return (a.data.name || a.data.id).localeCompare(b.data.name || b.data.id);
75
+ });
76
+
72
77
  return cachedFlows[cacheKey];
73
78
  };
@@ -79,6 +79,11 @@ export const getServices = async ({ getAllVersions = true }: Props = {}): Promis
79
79
  };
80
80
  });
81
81
 
82
+ // order them by the name of the service
83
+ cachedServices[cacheKey].sort((a, b) => {
84
+ return (a.data.name || a.data.id).localeCompare(b.data.name || b.data.id);
85
+ });
86
+
82
87
  return cachedServices[cacheKey];
83
88
  };
84
89
 
@@ -80,5 +80,10 @@ export const getCommands = async ({ getAllVersions = true }: Props = {}): Promis
80
80
  };
81
81
  });
82
82
 
83
+ // order them by the name of the command
84
+ cachedCommands[cacheKey].sort((a, b) => {
85
+ return (a.data.name || a.data.id).localeCompare(b.data.name || b.data.id);
86
+ });
87
+
83
88
  return cachedCommands[cacheKey];
84
89
  };
@@ -80,5 +80,10 @@ export const getEvents = async ({ getAllVersions = true }: Props = {}): Promise<
80
80
  };
81
81
  });
82
82
 
83
+ // order them by the name of the event
84
+ cachedEvents[cacheKey].sort((a, b) => {
85
+ return (a.data.name || a.data.id).localeCompare(b.data.name || b.data.id);
86
+ });
87
+
83
88
  return cachedEvents[cacheKey];
84
89
  };
@@ -80,5 +80,10 @@ export const getQueries = async ({ getAllVersions = true }: Props = {}): Promise
80
80
  };
81
81
  });
82
82
 
83
+ // order them by the name of the query
84
+ cachedQueries[cacheKey].sort((a, b) => {
85
+ return (a.data.name || a.data.id).localeCompare(b.data.name || b.data.id);
86
+ });
87
+
83
88
  return cachedQueries[cacheKey];
84
89
  };
@@ -58,5 +58,10 @@ export const getTeams = async (): Promise<Team[]> => {
58
58
  };
59
59
  });
60
60
 
61
+ // order them by the name of the team
62
+ cachedTeams.sort((a, b) => {
63
+ return (a.data.name || a.data.id).localeCompare(b.data.name || b.data.id);
64
+ });
65
+
61
66
  return cachedTeams;
62
67
  };
@@ -26,7 +26,7 @@ export const getUsers = async (): Promise<User[]> => {
26
26
  return team.data.hidden !== true;
27
27
  });
28
28
 
29
- return users.map((user) => {
29
+ const mappedUsers = users.map((user) => {
30
30
  const associatedTeams = teams.filter((team) => {
31
31
  return team.data.members?.some((member) => member.id === user.data.id);
32
32
  });
@@ -66,4 +66,11 @@ export const getUsers = async (): Promise<User[]> => {
66
66
  },
67
67
  };
68
68
  });
69
+
70
+ // order them by the name of the user
71
+ mappedUsers.sort((a, b) => {
72
+ return (a.data.name || a.data.id).localeCompare(b.data.name || b.data.id);
73
+ });
74
+
75
+ return mappedUsers;
69
76
  };
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "url": "https://github.com/event-catalog/eventcatalog.git"
7
7
  },
8
8
  "type": "module",
9
- "version": "2.18.4",
9
+ "version": "2.18.6",
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },