@eventcatalog/core 3.48.0 → 3.48.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/dist/analytics/analytics.cjs +1 -1
- package/dist/analytics/analytics.js +2 -2
- package/dist/analytics/log-build.cjs +4 -1
- package/dist/analytics/log-build.js +3 -3
- package/dist/{chunk-4PAHVB2Y.js → chunk-53A6H7VF.js} +1 -1
- package/dist/{chunk-GSDFCY6Q.js → chunk-BKMAFSMI.js} +1 -1
- package/dist/{chunk-BOOGBLDG.js → chunk-IVIC4RNU.js} +1 -1
- package/dist/{chunk-E4TWUZEU.js → chunk-QOROSOZ7.js} +1 -1
- package/dist/{chunk-5WM3KVZ4.js → chunk-WO5WGU7B.js} +6 -3
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +4 -1
- package/dist/eventcatalog.js +10 -10
- 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/stores/sidebar-store/builders/shared.ts +7 -1
- package/eventcatalog/src/stores/sidebar-store/state.ts +1 -7
- package/package.json +4 -4
|
@@ -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.48.
|
|
143
|
+
var version = "3.48.2";
|
|
144
144
|
|
|
145
145
|
// src/constants.ts
|
|
146
146
|
var VERSION = version;
|
|
@@ -222,6 +222,9 @@ var getFeatures = async (configFile) => {
|
|
|
222
222
|
llmsTxt: configFile.llmsTxt?.enabled || false,
|
|
223
223
|
rss: configFile.rss?.enabled || false,
|
|
224
224
|
chat: configFile.chat?.enabled || false,
|
|
225
|
+
changelog: configFile.changelog?.enabled || false,
|
|
226
|
+
auth: configFile.auth?.enabled || false,
|
|
227
|
+
environments: Array.isArray(configFile.environments) && configFile.environments.length > 0,
|
|
225
228
|
output: configFile.output || "static"
|
|
226
229
|
};
|
|
227
230
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-WO5WGU7B.js";
|
|
4
|
+
import "../chunk-53A6H7VF.js";
|
|
4
5
|
import "../chunk-DAOXTQVS.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-E4TWUZEU.js";
|
|
6
|
+
import "../chunk-QOROSOZ7.js";
|
|
7
7
|
import "../chunk-6QENHZZP.js";
|
|
8
8
|
export {
|
|
9
9
|
log_build_default as default
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
raiseEvent
|
|
3
|
+
} from "./chunk-53A6H7VF.js";
|
|
1
4
|
import {
|
|
2
5
|
countResources,
|
|
3
6
|
serializeCounts
|
|
4
7
|
} from "./chunk-DAOXTQVS.js";
|
|
5
|
-
import {
|
|
6
|
-
raiseEvent
|
|
7
|
-
} from "./chunk-4PAHVB2Y.js";
|
|
8
8
|
import {
|
|
9
9
|
getEventCatalogConfigFile,
|
|
10
10
|
verifyRequiredFieldsAreInCatalogConfigFile
|
|
@@ -16,6 +16,9 @@ var getFeatures = async (configFile) => {
|
|
|
16
16
|
llmsTxt: configFile.llmsTxt?.enabled || false,
|
|
17
17
|
rss: configFile.rss?.enabled || false,
|
|
18
18
|
chat: configFile.chat?.enabled || false,
|
|
19
|
+
changelog: configFile.changelog?.enabled || false,
|
|
20
|
+
auth: configFile.auth?.enabled || false,
|
|
21
|
+
environments: Array.isArray(configFile.environments) && configFile.environments.length > 0,
|
|
19
22
|
output: configFile.output || "static"
|
|
20
23
|
};
|
|
21
24
|
};
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
|
@@ -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.48.
|
|
147
|
+
var version = "3.48.2";
|
|
148
148
|
|
|
149
149
|
// src/constants.ts
|
|
150
150
|
var VERSION = version;
|
|
@@ -317,6 +317,9 @@ var getFeatures = async (configFile) => {
|
|
|
317
317
|
llmsTxt: configFile.llmsTxt?.enabled || false,
|
|
318
318
|
rss: configFile.rss?.enabled || false,
|
|
319
319
|
chat: configFile.chat?.enabled || false,
|
|
320
|
+
changelog: configFile.changelog?.enabled || false,
|
|
321
|
+
auth: configFile.auth?.enabled || false,
|
|
322
|
+
environments: Array.isArray(configFile.environments) && configFile.environments.length > 0,
|
|
320
323
|
output: configFile.output || "static"
|
|
321
324
|
};
|
|
322
325
|
};
|
package/dist/eventcatalog.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
2
|
+
runMigrations
|
|
3
|
+
} from "./chunk-XUAF2H54.js";
|
|
4
|
+
import "./chunk-CA4U2JP7.js";
|
|
5
5
|
import {
|
|
6
6
|
resolve_catalog_dependencies_default
|
|
7
7
|
} from "./chunk-LHR4G2UO.js";
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
watch
|
|
13
13
|
} from "./chunk-O3Y2G6CY.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
15
|
+
log_build_default
|
|
16
|
+
} from "./chunk-WO5WGU7B.js";
|
|
17
|
+
import "./chunk-53A6H7VF.js";
|
|
18
|
+
import "./chunk-DAOXTQVS.js";
|
|
19
19
|
import {
|
|
20
20
|
catalogToAstro
|
|
21
21
|
} from "./chunk-WQNKHIDM.js";
|
|
@@ -28,13 +28,13 @@ import {
|
|
|
28
28
|
} from "./chunk-B7HCX5HM.js";
|
|
29
29
|
import {
|
|
30
30
|
generate
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-BKMAFSMI.js";
|
|
32
32
|
import {
|
|
33
33
|
logger
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-IVIC4RNU.js";
|
|
35
35
|
import {
|
|
36
36
|
VERSION
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-QOROSOZ7.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.48.
|
|
111
|
+
var version = "3.48.2";
|
|
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-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-BKMAFSMI.js";
|
|
4
|
+
import "./chunk-IVIC4RNU.js";
|
|
5
|
+
import "./chunk-QOROSOZ7.js";
|
|
6
6
|
import "./chunk-6QENHZZP.js";
|
|
7
7
|
export {
|
|
8
8
|
generate
|
package/dist/utils/cli-logger.js
CHANGED
|
@@ -102,6 +102,12 @@ export const buildOwnersSection = (owners: any[]): NavNode | null => {
|
|
|
102
102
|
};
|
|
103
103
|
};
|
|
104
104
|
|
|
105
|
+
const byAdrName = (a: Adr, b: Adr) => {
|
|
106
|
+
const name = (a.data.name || a.data.id).localeCompare(b.data.name || b.data.id);
|
|
107
|
+
if (name !== 0) return name;
|
|
108
|
+
return a.data.id.localeCompare(b.data.id);
|
|
109
|
+
};
|
|
110
|
+
|
|
105
111
|
export const buildArchitectureDecisionsSection = (resource: AdrResource, adrs: Adr[]): NavNode | null => {
|
|
106
112
|
const relatedAdrs = getAdrsForResource(resource, adrs);
|
|
107
113
|
if (relatedAdrs.length === 0) return null;
|
|
@@ -110,7 +116,7 @@ export const buildArchitectureDecisionsSection = (resource: AdrResource, adrs: A
|
|
|
110
116
|
type: 'group',
|
|
111
117
|
title: 'Decision Records',
|
|
112
118
|
icon: 'BookText',
|
|
113
|
-
pages: relatedAdrs.map(getAdrNodeKey),
|
|
119
|
+
pages: [...relatedAdrs].sort(byAdrName).map(getAdrNodeKey),
|
|
114
120
|
};
|
|
115
121
|
};
|
|
116
122
|
|
|
@@ -58,12 +58,6 @@ const byResourceName = <T extends { data: { name?: string; id: string } }>(a: T,
|
|
|
58
58
|
|
|
59
59
|
const sortByResourceName = <T extends { data: { name?: string; id: string } }>(items: T[]) => [...items].sort(byResourceName);
|
|
60
60
|
|
|
61
|
-
const byAdrDateDesc = (a: Adr, b: Adr) => {
|
|
62
|
-
const date = new Date(b.data.date).getTime() - new Date(a.data.date).getTime();
|
|
63
|
-
if (date !== 0) return date;
|
|
64
|
-
return byResourceName(a, b);
|
|
65
|
-
};
|
|
66
|
-
|
|
67
61
|
const groupAdrsByStatus = (adrs: Adr[]): NavNode[] =>
|
|
68
62
|
ADR_STATUS_VALUES.reduce<NavNode[]>((groups, status) => {
|
|
69
63
|
const adrsForStatus = adrs.filter((adr) => adr.data.status === status);
|
|
@@ -73,7 +67,7 @@ const groupAdrsByStatus = (adrs: Adr[]): NavNode[] =>
|
|
|
73
67
|
type: 'group',
|
|
74
68
|
title: `${formatAdrStatus(status)} (${adrsForStatus.length})`,
|
|
75
69
|
subtle: true,
|
|
76
|
-
pages: [...adrsForStatus].sort(
|
|
70
|
+
pages: [...adrsForStatus].sort(byResourceName).map(getAdrNodeKey),
|
|
77
71
|
});
|
|
78
72
|
|
|
79
73
|
return groups;
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
},
|
|
8
8
|
"license": "SEE LICENSE IN LICENSE",
|
|
9
9
|
"type": "module",
|
|
10
|
-
"version": "3.48.
|
|
10
|
+
"version": "3.48.2",
|
|
11
11
|
"publishConfig": {
|
|
12
12
|
"access": "public"
|
|
13
13
|
},
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"elkjs": "^0.10.0",
|
|
74
74
|
"glob": "^13.0.6",
|
|
75
75
|
"gray-matter": "^4.0.3",
|
|
76
|
-
"hono": "4.12.
|
|
76
|
+
"hono": "4.12.25",
|
|
77
77
|
"html-to-image": "^1.11.11",
|
|
78
78
|
"js-yaml": "^4.2.0",
|
|
79
79
|
"jsonpath-plus": "^10.4.0",
|
|
@@ -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/
|
|
114
|
+
"@eventcatalog/sdk": "2.24.1",
|
|
115
115
|
"@eventcatalog/visualiser": "^3.22.1",
|
|
116
|
-
"@eventcatalog/
|
|
116
|
+
"@eventcatalog/linter": "1.1.0"
|
|
117
117
|
},
|
|
118
118
|
"devDependencies": {
|
|
119
119
|
"@astrojs/check": "^0.9.9",
|