@eventcatalog/core 2.35.0 → 2.35.2

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.
package/README.md CHANGED
@@ -34,7 +34,7 @@
34
34
  <h4>Features: Documentation for Event Driven Architectures, Integration with any broker, Generator from your OpenAPI and AsyncAPI documents, Docs and Code, Markdown driven, Document Domains/Services/Messages/Schemas and more, Content versioning, Assign Owners, Schemas, OpenAPI, MDX Components and more...</h4>
35
35
 
36
36
  <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
37
- [![All Contributors](https://img.shields.io/badge/all_contributors-53-orange.svg?style=flat-square)](#contributors-)
37
+ [![All Contributors](https://img.shields.io/badge/all_contributors-54-orange.svg?style=flat-square)](#contributors-)
38
38
  <!-- ALL-CONTRIBUTORS-BADGE:END -->
39
39
 
40
40
  [Read the Docs](https://www.eventcatalog.dev/docs/development/getting-started/introduction) | [View Demo](https://demo.eventcatalog.dev)
@@ -264,6 +264,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
264
264
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/vienin"><img src="https://avatars.githubusercontent.com/u/2124283?v=4?s=100" width="100px;" alt="Kevin Pouget"/><br /><sub><b>Kevin Pouget</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=vienin" title="Code">💻</a></td>
265
265
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/VitaliiBalash"><img src="https://avatars.githubusercontent.com/u/4520809?v=4?s=100" width="100px;" alt="Vitalii Balash"/><br /><sub><b>Vitalii Balash</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=VitaliiBalash" title="Code">💻</a></td>
266
266
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/ababilone"><img src="https://avatars.githubusercontent.com/u/925013?v=4?s=100" width="100px;" alt="Arnaud Babilone"/><br /><sub><b>Arnaud Babilone</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=ababilone" title="Code">💻</a></td>
267
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/alexanderhorner"><img src="https://avatars.githubusercontent.com/u/18349361?v=4?s=100" width="100px;" alt="Alexander Horner"/><br /><sub><b>Alexander Horner</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=alexanderhorner" title="Code">💻</a></td>
267
268
  </tr>
268
269
  </tbody>
269
270
  </table>
@@ -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.35.0";
40
+ var version = "2.35.2";
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-5XXPX5HQ.js";
4
- import "../chunk-TVAQVUFO.js";
3
+ } from "../chunk-OXVJOENQ.js";
4
+ import "../chunk-YGROHR26.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.35.0";
109
+ var version = "2.35.2";
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-7LCJC7ER.js";
4
- import "../chunk-5XXPX5HQ.js";
5
- import "../chunk-TVAQVUFO.js";
3
+ } from "../chunk-ZUPEUUST.js";
4
+ import "../chunk-OXVJOENQ.js";
5
+ import "../chunk-YGROHR26.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
  VERSION
3
- } from "./chunk-TVAQVUFO.js";
3
+ } from "./chunk-YGROHR26.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import axios from "axios";
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "2.35.0";
2
+ var version = "2.35.2";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-5XXPX5HQ.js";
3
+ } from "./chunk-OXVJOENQ.js";
4
4
  import {
5
5
  getEventCatalogConfigFile,
6
6
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "2.35.0";
28
+ var version = "2.35.2";
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-TVAQVUFO.js";
3
+ } from "./chunk-YGROHR26.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -157,7 +157,7 @@ var import_axios = __toESM(require("axios"), 1);
157
157
  var import_os = __toESM(require("os"), 1);
158
158
 
159
159
  // package.json
160
- var version = "2.35.0";
160
+ var version = "2.35.2";
161
161
 
162
162
  // src/constants.ts
163
163
  var VERSION = version;
@@ -756,7 +756,7 @@ program.command("build").description("Run build of EventCatalog").action(async (
756
756
  await catalogToAstro(dir, core);
757
757
  checkForUpdate();
758
758
  const windowsCommand = `npx astro build ${command.args.join(" ").trim()} | findstr /V "The collection"`;
759
- const unixCommand = `npx astro build ${command.args.join(" ").trim()} 2>&1 | grep -v "The collection.*does not exist"`;
759
+ const unixCommand = `bash -c "set -o pipefail; npx astro build ${command.args.join(" ").trim()} 2>&1 | grep -v \\"The collection.*does not exist\\""`;
760
760
  const buildCommand = process.platform === "win32" ? windowsCommand : unixCommand;
761
761
  (0, import_node_child_process.execSync)(
762
762
  `cross-env PROJECT_DIR='${dir}' CATALOG_DIR='${core}' ENABLE_EMBED=${canEmbedPages} EVENTCATALOG_STARTER=${isEventCatalogStarter} EVENTCATALOG_SCALE=${isEventCatalogScale} ${buildCommand}`,
@@ -6,15 +6,15 @@ import {
6
6
  } from "./chunk-UKJ7F5WR.js";
7
7
  import {
8
8
  log_build_default
9
- } from "./chunk-7LCJC7ER.js";
10
- import "./chunk-5XXPX5HQ.js";
9
+ } from "./chunk-ZUPEUUST.js";
10
+ import "./chunk-OXVJOENQ.js";
11
11
  import {
12
12
  catalogToAstro,
13
13
  checkAndConvertMdToMdx
14
14
  } from "./chunk-7SI5EVOX.js";
15
15
  import {
16
16
  VERSION
17
- } from "./chunk-TVAQVUFO.js";
17
+ } from "./chunk-YGROHR26.js";
18
18
  import {
19
19
  isBackstagePluginEnabled,
20
20
  isEventCatalogScaleEnabled,
@@ -186,7 +186,7 @@ program.command("build").description("Run build of EventCatalog").action(async (
186
186
  await catalogToAstro(dir, core);
187
187
  checkForUpdate();
188
188
  const windowsCommand = `npx astro build ${command.args.join(" ").trim()} | findstr /V "The collection"`;
189
- const unixCommand = `npx astro build ${command.args.join(" ").trim()} 2>&1 | grep -v "The collection.*does not exist"`;
189
+ const unixCommand = `bash -c "set -o pipefail; npx astro build ${command.args.join(" ").trim()} 2>&1 | grep -v \\"The collection.*does not exist\\""`;
190
190
  const buildCommand = process.platform === "win32" ? windowsCommand : unixCommand;
191
191
  execSync(
192
192
  `cross-env PROJECT_DIR='${dir}' CATALOG_DIR='${core}' ENABLE_EMBED=${canEmbedPages} EVENTCATALOG_STARTER=${isEventCatalogStarter} EVENTCATALOG_SCALE=${isEventCatalogScale} ${buildCommand}`,
@@ -41,7 +41,7 @@ const ProtocolList = ({ title, pills, emptyMessage, color = 'gray', ...props }:
41
41
  <div className="mx-auto w-full max-w-lg divide-y divide-white/5 rounded-xl bg-white/5">
42
42
  <Disclosure as="div" className="pb-8" defaultOpen={pills.length <= 10}>
43
43
  <DisclosureButton className="group flex w-full items-center justify-start space-x-4">
44
- <span className="text-sm text-black group-data-[hover]:text-black/80 capitalize"> {title} </span>
44
+ <span className="text-sm text-black font-semibold group-data-[hover]:text-black/80 capitalize"> {title} </span>
45
45
  <ChevronDownIcon className="size-5 ml-2 fill-black/60 group-data-[hover]:fill-black/50 group-data-[open]:rotate-180" />
46
46
  </DisclosureButton>
47
47
  <DisclosurePanel className="mt-2 text-sm/5 text-black/50">
@@ -80,7 +80,7 @@ const messageList = (channel.data.messages ?? []).map((p) => ({
80
80
  {
81
81
  channel.data.versions && (
82
82
  <VersionList
83
- title={`Channel versions (${channel.data.versions?.length})`}
83
+ title={`Versions (${channel.data.versions?.length})`}
84
84
  versions={channel.data.versions}
85
85
  collectionItem={channel}
86
86
  />
@@ -88,7 +88,7 @@ const messageList = (channel.data.messages ?? []).map((p) => ({
88
88
  }
89
89
 
90
90
  <OwnersList
91
- title={`Channel owners (${filteredOwners.length})`}
91
+ title={`Owners (${filteredOwners.length})`}
92
92
  owners={ownersList}
93
93
  emptyMessage={`This channel does not have any documented owners.`}
94
94
  client:load
@@ -102,7 +102,7 @@ const messageList = (channel.data.messages ?? []).map((p) => ({
102
102
 
103
103
  {
104
104
  paramsList.length > 0 && (
105
- <PillListFlat color="pink" title={`Channel parameters (${paramsList.length})`} pills={paramsList} client:load />
105
+ <PillListFlat color="pink" title={`Parameters (${paramsList.length})`} pills={paramsList} client:load />
106
106
  )
107
107
  }
108
108
 
@@ -167,7 +167,7 @@ const ownersList = filteredOwners.map((o) => ({
167
167
  )
168
168
  }
169
169
  <OwnersList
170
- title={`Domain owners (${ownersList.length})`}
170
+ title={`Owners (${ownersList.length})`}
171
171
  owners={ownersList}
172
172
  emptyMessage={`This domain does not have any documented owners.`}
173
173
  client:load
@@ -40,7 +40,7 @@ const isRSSEnabled = config.rss?.enabled;
40
40
  {flow.data.versions && <VersionList versions={flow.data.versions} collectionItem={flow} />}
41
41
 
42
42
  <OwnersList
43
- title={`Flow owners (${ownersList.length})`}
43
+ title={`Owners (${ownersList.length})`}
44
44
  owners={ownersList}
45
45
  emptyMessage={`This flow does not have any documented owners.`}
46
46
  client:load
@@ -49,7 +49,7 @@ const isRSSEnabled = config.rss?.enabled;
49
49
  {
50
50
  isRSSEnabled && (
51
51
  <div class="mx-auto pb-4 w-full max-w-lg divide-y divide-white/5 rounded-xl bg-white/5 border-b border-gray-100 mb-4">
52
- <span class="text-sm text-black group-data-[hover]:text-black/80 capitalize">Flow RSS Feed</span>
52
+ <span class="text-sm text-black font-semibold group-data-[hover]:text-black/80 capitalize">Flow RSS Feed</span>
53
53
  <ul role="list" class="space-y-2 mt-2">
54
54
  <li class="has-tooltip rounded-md text-gray-600 group px-1 w-full hover:bg-gradient-to-l hover:from-purple-500 hover:to-purple-700 hover:text-white hover:font-normal ">
55
55
  <a class={`flex items-center space-x-2`} target="_blank" href={buildUrl(`/rss/flows/rss.xml`)}>
@@ -110,7 +110,7 @@ const schemaURL = path.join(publicPath, schemaFilePath || '');
110
110
  producerList.length > 0 && (
111
111
  <PillListFlat
112
112
  color="pink"
113
- title={`${type} Producers (${producerList.length})`}
113
+ title={`Producers (${producerList.length})`}
114
114
  pills={producerList}
115
115
  emptyMessage={getProducerEmptyMessage(type)}
116
116
  client:load
@@ -121,7 +121,7 @@ const schemaURL = path.join(publicPath, schemaFilePath || '');
121
121
  consumerList.length > 0 && (
122
122
  <PillListFlat
123
123
  color="pink"
124
- title={`${type} Consumers (${consumerList.length})`}
124
+ title={`Consumers (${consumerList.length})`}
125
125
  pills={consumerList}
126
126
  emptyMessage={getConsumerEmptyMessage(type)}
127
127
  client:load
@@ -137,7 +137,7 @@ const schemaURL = path.join(publicPath, schemaFilePath || '');
137
137
  {
138
138
  message.data.versions && (
139
139
  <VersionList
140
- title={`${type} versions (${message.data.versions?.length})`}
140
+ title={`Versions (${message.data.versions?.length})`}
141
141
  versions={message.data.versions}
142
142
  collectionItem={message}
143
143
  />
@@ -145,7 +145,7 @@ const schemaURL = path.join(publicPath, schemaFilePath || '');
145
145
  }
146
146
 
147
147
  <OwnersList
148
- title={`${type} owners (${ownersList.length})`}
148
+ title={`Owners (${ownersList.length})`}
149
149
  owners={ownersList}
150
150
  emptyMessage={`This ${type} does not have any documented owners.`}
151
151
  client:load
@@ -160,7 +160,7 @@ const schemaURL = path.join(publicPath, schemaFilePath || '');
160
160
  {
161
161
  isRSSEnabled && (
162
162
  <div class="mx-auto pb-8 w-full max-w-lg divide-y divide-white/5 rounded-xl bg-white/5">
163
- <span class="text-sm text-black group-data-[hover]:text-black/80 capitalize">{type} RSS Feed</span>
163
+ <span class="text-sm text-black font-semibold group-data-[hover]:text-black/80 capitalize">{type} RSS Feed</span>
164
164
  <ul role="list" class="space-y-2 mt-2">
165
165
  <li class="has-tooltip rounded-md text-gray-600 group px-1 w-full hover:bg-gradient-to-l hover:from-purple-500 hover:to-purple-700 hover:text-white hover:font-normal ">
166
166
  <a class={`flex items-center space-x-2`} target="_blank" href={buildUrl(`/rss/${message.collection}/rss.xml`)}>
@@ -114,7 +114,7 @@ const schemaURL = join(publicPath, schemaFilePath || '');
114
114
  {service.data.specifications && <SpecificationsList collectionItem={service} />}
115
115
 
116
116
  <OwnersList
117
- title={`Service owners (${ownersList.length})`}
117
+ title={`Owners (${ownersList.length})`}
118
118
  owners={ownersList}
119
119
  emptyMessage={`This service does not have any documented owners.`}
120
120
  client:load
@@ -129,7 +129,7 @@ const schemaURL = join(publicPath, schemaFilePath || '');
129
129
  {
130
130
  isRSSEnabled && (
131
131
  <div class="mx-auto pb-4 w-full max-w-lg divide-y divide-white/5 rounded-xl bg-white/5 border-b border-gray-100 mb-4">
132
- <span class="text-sm text-black group-data-[hover]:text-black/80 capitalize">Services RSS Feed</span>
132
+ <span class="text-sm text-black font-semibold group-data-[hover]:text-black/80 capitalize">Services RSS Feed</span>
133
133
  <ul role="list" class="space-y-2 mt-2">
134
134
  <li class="has-tooltip rounded-md text-gray-600 group px-1 w-full hover:bg-gradient-to-l hover:from-purple-500 hover:to-purple-700 hover:text-white hover:font-normal ">
135
135
  <a class={`flex items-center space-x-2`} target="_blank" href={buildUrl(`/rss/services/rss.xml`)}>
@@ -11,6 +11,7 @@ import { getDomains } from '@utils/collections/domains';
11
11
  import { getEvents } from '@utils/events';
12
12
  import { getCommands } from '@utils/commands';
13
13
  import { getServices } from '@utils/collections/services';
14
+ import { buildUrl } from '@utils/url-builder';
14
15
 
15
16
  const isEnabled = config.chat?.enabled || false;
16
17
  const chatConfig = config.chat || {};
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.35.0",
9
+ "version": "2.35.2",
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },