@eventcatalog/core 5.0.0-beta.31 → 5.0.0-beta.33
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/dist/analytics/analytics.cjs +1 -1
- package/dist/analytics/analytics.js +2 -2
- package/dist/analytics/log-build.cjs +1 -1
- package/dist/analytics/log-build.js +3 -3
- package/dist/{chunk-OUEGYMBA.js → chunk-46MTR3KO.js} +1 -1
- package/dist/{chunk-WADZVNCA.js → chunk-7RCPGRLA.js} +1 -1
- package/dist/{chunk-2UCCTEIH.js → chunk-NBFJVJE7.js} +1 -1
- package/dist/{chunk-OX6TSVHY.js → chunk-QJ7KKN2D.js} +1 -1
- package/dist/{chunk-BNSLGNQI.js → chunk-Y5YVOT3I.js} +1 -1
- package/dist/{chunk-XRFL642Z.js → chunk-YFFESNO5.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +1 -1
- package/dist/eventcatalog.js +17 -17
- package/dist/federation/federate.js +3 -3
- package/dist/federation/source-provider.js +2 -2
- package/dist/generate.cjs +1 -1
- package/dist/generate.js +3 -3
- package/dist/utils/cli-logger.cjs +1 -1
- package/dist/utils/cli-logger.js +2 -2
- package/eventcatalog/src/pages/schemas/[type]/[id]/[version]/index.astro +8 -1
- package/eventcatalog/src/utils/collections/flows.ts +20 -7
- package/eventcatalog/src/utils/collections/resource-owners.ts +8 -2
- package/eventcatalog/src/utils/collections/resources.ts +2 -0
- package/package.json +3 -3
- package/dist/{chunk-6K7XZAYI.js → chunk-A2RZR3U4.js} +3 -3
|
@@ -169,7 +169,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
|
|
|
169
169
|
var import_os = __toESM(require("os"), 1);
|
|
170
170
|
|
|
171
171
|
// package.json
|
|
172
|
-
var version = "5.0.0-beta.
|
|
172
|
+
var version = "5.0.0-beta.33";
|
|
173
173
|
|
|
174
174
|
// src/constants.ts
|
|
175
175
|
var VERSION = version;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-YFFESNO5.js";
|
|
4
4
|
import "../chunk-AD7CL772.js";
|
|
5
5
|
import "../chunk-ZAZHAVKB.js";
|
|
6
6
|
import "../chunk-CA6WCQ2T.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-Y5YVOT3I.js";
|
|
8
8
|
import "../chunk-CPW6G62V.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-7RCPGRLA.js";
|
|
10
10
|
import "../chunk-4G7FSRPN.js";
|
|
11
11
|
export {
|
|
12
12
|
log_build_default as default
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
|
@@ -174,7 +174,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
|
|
|
174
174
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
175
175
|
|
|
176
176
|
// package.json
|
|
177
|
-
var version = "5.0.0-beta.
|
|
177
|
+
var version = "5.0.0-beta.33";
|
|
178
178
|
|
|
179
179
|
// src/constants.ts
|
|
180
180
|
var VERSION = version;
|
package/dist/eventcatalog.js
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
FederationConflictError,
|
|
3
|
+
FederationDiagnosticError,
|
|
4
|
+
federateCatalog
|
|
5
|
+
} from "./chunk-QJ7KKN2D.js";
|
|
6
|
+
import "./chunk-WRNH5C3U.js";
|
|
7
|
+
import "./chunk-5EPNFDT5.js";
|
|
8
|
+
import "./chunk-A2RZR3U4.js";
|
|
9
|
+
import "./chunk-SDZQJTJW.js";
|
|
10
|
+
import "./chunk-352FGP6W.js";
|
|
5
11
|
import {
|
|
6
12
|
stopChildWithParent
|
|
7
13
|
} from "./chunk-S5GWAUG5.js";
|
|
8
14
|
import {
|
|
9
15
|
log_build_default
|
|
10
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-YFFESNO5.js";
|
|
11
17
|
import {
|
|
12
18
|
getLicenseStatus,
|
|
13
19
|
printLicenseStatus
|
|
@@ -15,20 +21,14 @@ import {
|
|
|
15
21
|
import "./chunk-ZAZHAVKB.js";
|
|
16
22
|
import "./chunk-CA6WCQ2T.js";
|
|
17
23
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./chunk-OX6TSVHY.js";
|
|
22
|
-
import "./chunk-WRNH5C3U.js";
|
|
23
|
-
import "./chunk-5EPNFDT5.js";
|
|
24
|
-
import "./chunk-6K7XZAYI.js";
|
|
25
|
-
import "./chunk-352FGP6W.js";
|
|
24
|
+
runMigrations
|
|
25
|
+
} from "./chunk-XUAF2H54.js";
|
|
26
|
+
import "./chunk-CA4U2JP7.js";
|
|
26
27
|
import "./chunk-R7Z5ALYI.js";
|
|
27
28
|
import {
|
|
28
29
|
getFederationDiagnosticCounts,
|
|
29
30
|
getVisibleFederationDiagnostics
|
|
30
31
|
} from "./chunk-JJPB6EOZ.js";
|
|
31
|
-
import "./chunk-SDZQJTJW.js";
|
|
32
32
|
import {
|
|
33
33
|
getProjectOutDir,
|
|
34
34
|
isAuthEnabled,
|
|
@@ -37,10 +37,10 @@ import {
|
|
|
37
37
|
} from "./chunk-NKNOXQ62.js";
|
|
38
38
|
import {
|
|
39
39
|
generate
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-46MTR3KO.js";
|
|
41
41
|
import {
|
|
42
42
|
logger
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-NBFJVJE7.js";
|
|
44
44
|
import {
|
|
45
45
|
resolve_catalog_dependencies_default
|
|
46
46
|
} from "./chunk-PD7KTSYN.js";
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
import {
|
|
55
55
|
watch
|
|
56
56
|
} from "./chunk-U63GDPPY.js";
|
|
57
|
-
import "./chunk-
|
|
57
|
+
import "./chunk-Y5YVOT3I.js";
|
|
58
58
|
import "./chunk-CPW6G62V.js";
|
|
59
59
|
import {
|
|
60
60
|
getAstroConfigPath
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
} from "./chunk-LFQJXLHG.js";
|
|
72
72
|
import {
|
|
73
73
|
VERSION
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-7RCPGRLA.js";
|
|
75
75
|
import {
|
|
76
76
|
getEventCatalogConfigFile,
|
|
77
77
|
verifyRequiredFieldsAreInCatalogConfigFile
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
FederationConflictError,
|
|
3
3
|
FederationDiagnosticError,
|
|
4
4
|
federateCatalog
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-QJ7KKN2D.js";
|
|
6
6
|
import "../chunk-WRNH5C3U.js";
|
|
7
7
|
import "../chunk-5EPNFDT5.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-A2RZR3U4.js";
|
|
9
|
+
import "../chunk-SDZQJTJW.js";
|
|
9
10
|
import "../chunk-352FGP6W.js";
|
|
10
11
|
import "../chunk-R7Z5ALYI.js";
|
|
11
12
|
import "../chunk-JJPB6EOZ.js";
|
|
12
|
-
import "../chunk-SDZQJTJW.js";
|
|
13
13
|
import "../chunk-4G7FSRPN.js";
|
|
14
14
|
export {
|
|
15
15
|
FederationConflictError,
|
package/dist/generate.cjs
CHANGED
|
@@ -105,7 +105,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
|
|
|
105
105
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
106
106
|
|
|
107
107
|
// package.json
|
|
108
|
-
var version = "5.0.0-beta.
|
|
108
|
+
var version = "5.0.0-beta.33";
|
|
109
109
|
|
|
110
110
|
// src/constants.ts
|
|
111
111
|
var VERSION = version;
|
package/dist/generate.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generate
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-46MTR3KO.js";
|
|
4
|
+
import "./chunk-NBFJVJE7.js";
|
|
5
|
+
import "./chunk-7RCPGRLA.js";
|
|
6
6
|
import "./chunk-4G7FSRPN.js";
|
|
7
7
|
export {
|
|
8
8
|
generate
|
package/dist/utils/cli-logger.js
CHANGED
|
@@ -190,6 +190,13 @@ if (isDataProduct && contractPath) {
|
|
|
190
190
|
// Render the requested tab on the server so the page does not flash the default tab before hydration.
|
|
191
191
|
// Static builds cannot see the query string, so the panel also restores the tab on the client.
|
|
192
192
|
const initialTab = Astro.url.searchParams.get('tab') ?? undefined;
|
|
193
|
+
|
|
194
|
+
// The versions to switch between and compare. The one being viewed is also `message`, with its usage and flow graphs;
|
|
195
|
+
// switching and comparing only need the schemas, so the list leaves the graphs out (each page carried them twice)
|
|
196
|
+
const versionChoices = sortedVersions.map(({ graph: _graph, ...version }) => {
|
|
197
|
+
const { flows: _flows, ...data } = version.data;
|
|
198
|
+
return { ...version, data };
|
|
199
|
+
});
|
|
193
200
|
---
|
|
194
201
|
|
|
195
202
|
<VerticalSideBarLayout title={pageTitle}>
|
|
@@ -214,7 +221,7 @@ const initialTab = Astro.url.searchParams.get('tab') ?? undefined;
|
|
|
214
221
|
<SchemaPageViewer
|
|
215
222
|
client:load
|
|
216
223
|
message={currentMessage}
|
|
217
|
-
availableVersions={
|
|
224
|
+
availableVersions={versionChoices}
|
|
218
225
|
showOwners={true}
|
|
219
226
|
showProducersConsumers={true}
|
|
220
227
|
initialTab={initialTab}
|
|
@@ -166,30 +166,43 @@ export const getFlowsWithServiceStep = (
|
|
|
166
166
|
);
|
|
167
167
|
};
|
|
168
168
|
|
|
169
|
-
/** A catalog entry a flow step points at (a service, message, agent, data store, data product or flow). */
|
|
169
|
+
/** A catalog entry a flow step points at (a service, system, channel, message, agent, data store, data product or flow). */
|
|
170
170
|
type FlowStepResource = { collection: string; data: { id: string; version: string; [key: string]: any } };
|
|
171
171
|
|
|
172
172
|
/**
|
|
173
173
|
* The catalog resources a flow's steps point at, each listed once in step order: messages,
|
|
174
|
-
* services, agents, data stores, data products and sub-flows (the same steps
|
|
175
|
-
* sidebar lists). Expects steps as getFlows returns them, where messages, agents, data
|
|
176
|
-
* and data products are already resolved; services and sub-flows are
|
|
177
|
-
* pointer without a version meaning the latest.
|
|
174
|
+
* services, systems, channels, agents, data stores, data products and sub-flows (the same steps
|
|
175
|
+
* the flow's sidebar lists). Expects steps as getFlows returns them, where messages, agents, data
|
|
176
|
+
* stores and data products are already resolved; services, systems, channels and sub-flows are
|
|
177
|
+
* resolved here, with a pointer without a version meaning the latest.
|
|
178
178
|
*/
|
|
179
179
|
export const getFlowStepResources = (
|
|
180
180
|
flow: Flow,
|
|
181
|
-
catalog: {
|
|
181
|
+
catalog: {
|
|
182
|
+
services: CollectionEntry<'services'>[];
|
|
183
|
+
flows: Flow[];
|
|
184
|
+
systems?: CollectionEntry<'systems'>[];
|
|
185
|
+
channels?: CollectionEntry<'channels'>[];
|
|
186
|
+
}
|
|
182
187
|
): FlowStepResource[] => {
|
|
183
188
|
const serviceMap = getVersionedMap(catalog.services);
|
|
184
189
|
const flowMap = getVersionedMap(catalog.flows);
|
|
190
|
+
const systemMap = getVersionedMap(catalog.systems ?? []);
|
|
191
|
+
const channelMap = getVersionedMap(catalog.channels ?? []);
|
|
185
192
|
const resources: FlowStepResource[] = [];
|
|
186
193
|
|
|
187
194
|
for (const step of (flow.data.steps || []) as any[]) {
|
|
195
|
+
// `systems` is another name for a step's `system`
|
|
196
|
+
const system = step.system ?? step.systems;
|
|
188
197
|
const resource = step.service
|
|
189
198
|
? findInMap(serviceMap, step.service.id, step.service.version)
|
|
190
199
|
: step.flow
|
|
191
200
|
? findInMap(flowMap, step.flow.id, step.flow.version)
|
|
192
|
-
:
|
|
201
|
+
: system
|
|
202
|
+
? findInMap(systemMap, system.id, system.version)
|
|
203
|
+
: step.channel
|
|
204
|
+
? findInMap(channelMap, step.channel.id, step.channel.version)
|
|
205
|
+
: [step.message, step.agent, step.container, step.dataProduct].find(Array.isArray)?.[0];
|
|
193
206
|
if (resource?.data) resources.push(resource);
|
|
194
207
|
}
|
|
195
208
|
|
|
@@ -70,6 +70,7 @@ export const createResourcesCatalog = () => {
|
|
|
70
70
|
allFlows: once(() => getFlows()),
|
|
71
71
|
currentFlows: once(() => getFlows({ getAllVersions: false })),
|
|
72
72
|
rawChannels: once(() => getCollection('channels')),
|
|
73
|
+
rawSystems: once(() => getCollection('systems')),
|
|
73
74
|
rawMessages: once(async () => [
|
|
74
75
|
...(await getCollection('events')),
|
|
75
76
|
...(await getCollection('commands')),
|
|
@@ -108,10 +109,15 @@ const relatedResourcesFor = async (type: ResourceOwnerCollection, catalog: Resou
|
|
|
108
109
|
});
|
|
109
110
|
}
|
|
110
111
|
case 'flows': {
|
|
111
|
-
const [services, flows] = await Promise.all([
|
|
112
|
+
const [services, flows, systems, channels] = await Promise.all([
|
|
113
|
+
catalog.services(),
|
|
114
|
+
catalog.allFlows(),
|
|
115
|
+
catalog.rawSystems(),
|
|
116
|
+
catalog.rawChannels(),
|
|
117
|
+
]);
|
|
112
118
|
return (owner) => ({
|
|
113
119
|
adrs: adrsFor(owner),
|
|
114
|
-
stepResources: getFlowStepResources(asEntry<'flows'>(owner), { services, flows }),
|
|
120
|
+
stepResources: getFlowStepResources(asEntry<'flows'>(owner), { services, flows, systems, channels }),
|
|
115
121
|
});
|
|
116
122
|
}
|
|
117
123
|
case 'channels': {
|
|
@@ -94,6 +94,7 @@ const messageGroups = (messages: any[]): ResourceGroup[] => [
|
|
|
94
94
|
|
|
95
95
|
// The collections a flow step can point at, in the order the page groups them.
|
|
96
96
|
const FLOW_STEP_COLLECTIONS: ResourceCollection[] = [
|
|
97
|
+
'systems',
|
|
97
98
|
'services',
|
|
98
99
|
'agents',
|
|
99
100
|
'flows',
|
|
@@ -102,6 +103,7 @@ const FLOW_STEP_COLLECTIONS: ResourceCollection[] = [
|
|
|
102
103
|
'events',
|
|
103
104
|
'commands',
|
|
104
105
|
'queries',
|
|
106
|
+
'channels',
|
|
105
107
|
];
|
|
106
108
|
|
|
107
109
|
export const getResourceGroups = (
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
},
|
|
8
8
|
"license": "BUSL-1.1",
|
|
9
9
|
"type": "module",
|
|
10
|
-
"version": "5.0.0-beta.
|
|
10
|
+
"version": "5.0.0-beta.33",
|
|
11
11
|
"publishConfig": {
|
|
12
12
|
"access": "public"
|
|
13
13
|
},
|
|
@@ -142,8 +142,8 @@
|
|
|
142
142
|
"yjs": "^13.6.33",
|
|
143
143
|
"zod": "^4.3.6",
|
|
144
144
|
"@eventcatalog/linter": "1.2.0-beta.4",
|
|
145
|
-
"@eventcatalog/
|
|
146
|
-
"@eventcatalog/
|
|
145
|
+
"@eventcatalog/sdk": "2.30.0-beta.1",
|
|
146
|
+
"@eventcatalog/visualiser": "^5.0.0-beta.7"
|
|
147
147
|
},
|
|
148
148
|
"devDependencies": {
|
|
149
149
|
"@astrojs/check": "^0.9.10",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createGitHubSourceProvider
|
|
3
|
-
} from "./chunk-352FGP6W.js";
|
|
4
1
|
import {
|
|
5
2
|
createFileSystemSourceProvider
|
|
6
3
|
} from "./chunk-SDZQJTJW.js";
|
|
4
|
+
import {
|
|
5
|
+
createGitHubSourceProvider
|
|
6
|
+
} from "./chunk-352FGP6W.js";
|
|
7
7
|
|
|
8
8
|
// src/federation/source-provider.ts
|
|
9
9
|
var createFederationSourceProvider = (projectDirectory, providers = {}) => {
|