@eventcatalog/core 5.0.0-beta.3 → 5.0.0-beta.4

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 = "5.0.0-beta.3";
39
+ var version = "5.0.0-beta.4";
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-NDJOAITI.js";
4
- import "../chunk-GYIVJXOJ.js";
3
+ } from "../chunk-VA77ENFQ.js";
4
+ import "../chunk-Q7FBYUCZ.js";
5
5
  export {
6
6
  raiseEvent
7
7
  };
@@ -176,7 +176,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
176
176
  var import_os = __toESM(require("os"), 1);
177
177
 
178
178
  // package.json
179
- var version = "5.0.0-beta.3";
179
+ var version = "5.0.0-beta.4";
180
180
 
181
181
  // src/constants.ts
182
182
  var VERSION = version;
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  log_build_default
3
- } from "../chunk-6OC46WQJ.js";
3
+ } from "../chunk-PL3T5TWF.js";
4
4
  import "../chunk-TQLRG35T.js";
5
5
  import "../chunk-ZAZHAVKB.js";
6
- import "../chunk-NDJOAITI.js";
7
- import "../chunk-GYIVJXOJ.js";
6
+ import "../chunk-VA77ENFQ.js";
7
+ import "../chunk-Q7FBYUCZ.js";
8
8
  import "../chunk-RFIXKATC.js";
9
9
  export {
10
10
  log_build_default as default
@@ -1,12 +1,9 @@
1
- import {
2
- withFederationOutputTransaction
3
- } from "./chunk-WRNH5C3U.js";
4
1
  import {
5
2
  composePublicAssets
6
3
  } from "./chunk-5EPNFDT5.js";
7
4
  import {
8
5
  createFederationSourceProvider
9
- } from "./chunk-6K7XZAYI.js";
6
+ } from "./chunk-A2RZR3U4.js";
10
7
  import {
11
8
  createFederationContentCache
12
9
  } from "./chunk-R7Z5ALYI.js";
@@ -14,6 +11,9 @@ import {
14
11
  getFederationDiagnostics,
15
12
  resolveFederationRules
16
13
  } from "./chunk-JJPB6EOZ.js";
14
+ import {
15
+ withFederationOutputTransaction
16
+ } from "./chunk-WRNH5C3U.js";
17
17
  import {
18
18
  getEventCatalogConfigFile
19
19
  } from "./chunk-RFIXKATC.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-BH2F5WPN.js";
3
+ } from "./chunk-TOMV5YJH.js";
4
4
  import {
5
5
  cleanup,
6
6
  getEventCatalogConfigFile
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-ZAZHAVKB.js";
9
9
  import {
10
10
  raiseEvent
11
- } from "./chunk-NDJOAITI.js";
11
+ } from "./chunk-VA77ENFQ.js";
12
12
  import {
13
13
  getEventCatalogConfigFile,
14
14
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "5.0.0-beta.3";
2
+ var version = "5.0.0-beta.4";
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-GYIVJXOJ.js";
3
+ } from "./chunk-Q7FBYUCZ.js";
4
4
 
5
5
  // src/utils/cli-logger.ts
6
6
  import pc from "picocolors";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-GYIVJXOJ.js";
3
+ } from "./chunk-Q7FBYUCZ.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import os from "os";
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "5.0.0-beta.3";
28
+ var version = "5.0.0-beta.4";
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-GYIVJXOJ.js";
3
+ } from "./chunk-Q7FBYUCZ.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -181,7 +181,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
181
181
  var import_picocolors = __toESM(require("picocolors"), 1);
182
182
 
183
183
  // package.json
184
- var version = "5.0.0-beta.3";
184
+ var version = "5.0.0-beta.4";
185
185
 
186
186
  // src/constants.ts
187
187
  var VERSION = version;
@@ -1,30 +1,30 @@
1
+ import {
2
+ runMigrations
3
+ } from "./chunk-XUAF2H54.js";
4
+ import "./chunk-CA4U2JP7.js";
1
5
  import {
2
6
  log_build_default
3
- } from "./chunk-6OC46WQJ.js";
7
+ } from "./chunk-PL3T5TWF.js";
4
8
  import {
5
9
  getLicenseStatus,
6
10
  printLicenseStatus
7
11
  } from "./chunk-TQLRG35T.js";
8
12
  import "./chunk-ZAZHAVKB.js";
9
- import {
10
- runMigrations
11
- } from "./chunk-XUAF2H54.js";
12
- import "./chunk-CA4U2JP7.js";
13
13
  import {
14
14
  FederationConflictError,
15
15
  FederationDiagnosticError,
16
16
  federateCatalog
17
- } from "./chunk-3PKS2IIP.js";
18
- import "./chunk-WRNH5C3U.js";
17
+ } from "./chunk-AYNZXUB5.js";
19
18
  import "./chunk-5EPNFDT5.js";
20
- import "./chunk-6K7XZAYI.js";
21
- import "./chunk-352FGP6W.js";
19
+ import "./chunk-A2RZR3U4.js";
22
20
  import "./chunk-R7Z5ALYI.js";
23
21
  import {
24
22
  getFederationDiagnosticCounts,
25
23
  getVisibleFederationDiagnostics
26
24
  } from "./chunk-JJPB6EOZ.js";
27
25
  import "./chunk-SDZQJTJW.js";
26
+ import "./chunk-352FGP6W.js";
27
+ import "./chunk-WRNH5C3U.js";
28
28
  import {
29
29
  getProjectOutDir,
30
30
  isAuthEnabled,
@@ -33,10 +33,10 @@ import {
33
33
  } from "./chunk-MDWB5HLO.js";
34
34
  import {
35
35
  generate
36
- } from "./chunk-423S2KHN.js";
36
+ } from "./chunk-M7OVJHPV.js";
37
37
  import {
38
38
  logger
39
- } from "./chunk-BH2F5WPN.js";
39
+ } from "./chunk-TOMV5YJH.js";
40
40
  import {
41
41
  resolve_catalog_dependencies_default
42
42
  } from "./chunk-36RYTYT5.js";
@@ -50,7 +50,7 @@ import {
50
50
  import {
51
51
  watch
52
52
  } from "./chunk-U63GDPPY.js";
53
- import "./chunk-NDJOAITI.js";
53
+ import "./chunk-VA77ENFQ.js";
54
54
  import {
55
55
  getAstroConfigPath
56
56
  } from "./chunk-VIJJ7JKH.js";
@@ -66,7 +66,7 @@ import {
66
66
  } from "./chunk-LFQJXLHG.js";
67
67
  import {
68
68
  VERSION
69
- } from "./chunk-GYIVJXOJ.js";
69
+ } from "./chunk-Q7FBYUCZ.js";
70
70
  import {
71
71
  getEventCatalogConfigFile,
72
72
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -2,14 +2,14 @@ import {
2
2
  FederationConflictError,
3
3
  FederationDiagnosticError,
4
4
  federateCatalog
5
- } from "../chunk-3PKS2IIP.js";
6
- import "../chunk-WRNH5C3U.js";
5
+ } from "../chunk-AYNZXUB5.js";
7
6
  import "../chunk-5EPNFDT5.js";
8
- import "../chunk-6K7XZAYI.js";
9
- import "../chunk-352FGP6W.js";
7
+ import "../chunk-A2RZR3U4.js";
10
8
  import "../chunk-R7Z5ALYI.js";
11
9
  import "../chunk-JJPB6EOZ.js";
12
10
  import "../chunk-SDZQJTJW.js";
11
+ import "../chunk-352FGP6W.js";
12
+ import "../chunk-WRNH5C3U.js";
13
13
  import "../chunk-RFIXKATC.js";
14
14
  export {
15
15
  FederationConflictError,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  createFederationSourceProvider
3
- } from "../chunk-6K7XZAYI.js";
4
- import "../chunk-352FGP6W.js";
3
+ } from "../chunk-A2RZR3U4.js";
5
4
  import "../chunk-SDZQJTJW.js";
5
+ import "../chunk-352FGP6W.js";
6
6
  export {
7
7
  createFederationSourceProvider
8
8
  };
package/dist/generate.cjs CHANGED
@@ -112,7 +112,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
112
112
  var import_picocolors = __toESM(require("picocolors"), 1);
113
113
 
114
114
  // package.json
115
- var version = "5.0.0-beta.3";
115
+ var version = "5.0.0-beta.4";
116
116
 
117
117
  // src/constants.ts
118
118
  var VERSION = version;
package/dist/generate.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generate
3
- } from "./chunk-423S2KHN.js";
4
- import "./chunk-BH2F5WPN.js";
5
- import "./chunk-GYIVJXOJ.js";
3
+ } from "./chunk-M7OVJHPV.js";
4
+ import "./chunk-TOMV5YJH.js";
5
+ import "./chunk-Q7FBYUCZ.js";
6
6
  import "./chunk-RFIXKATC.js";
7
7
  export {
8
8
  generate
@@ -132,7 +132,6 @@
132
132
  "rimraf": "rimraf.mjs",
133
133
  "semver": "semver.mjs",
134
134
  "set-cookie-parser": "set-cookie-parser.mjs",
135
- "shelljs": "shelljs.mjs",
136
135
  "sonner": "sonner.mjs",
137
136
  "sql.js": "sql.js.mjs",
138
137
  "tailwindcss": "tailwindcss.mjs",
@@ -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 = "5.0.0-beta.3";
39
+ var version = "5.0.0-beta.4";
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-BH2F5WPN.js";
4
- import "../chunk-GYIVJXOJ.js";
3
+ } from "../chunk-TOMV5YJH.js";
4
+ import "../chunk-Q7FBYUCZ.js";
5
5
  export {
6
6
  logger
7
7
  };
@@ -25,6 +25,7 @@ import {
25
25
  findNodeKeyByUrl,
26
26
  getBadgeClasses,
27
27
  getDefaultCollapsedState,
28
+ hidesDefaultItemIcon,
28
29
  isGroupCollapsed,
29
30
  toggleGroupCollapsed,
30
31
  } from './utils';
@@ -663,6 +664,11 @@ export default function NestedSideBar() {
663
664
 
664
665
  const isTopLevel = navigationStack.length === 1;
665
666
 
667
+ // The list drilled into (e.g. Channels): its items, even those in groups under it (e.g. ADRs
668
+ // grouped by status), drop a default icon that repeats the list's own
669
+ const levelNode = currentLevel.key ? resolveRef(currentLevel.key) : null;
670
+ const repeatsLevelIcon = (item: NavNode) => !!levelNode && hidesDefaultItemIcon(levelNode, item, false);
671
+
666
672
  /**
667
673
  * Render a list of child refs (resolving keys as needed)
668
674
  */
@@ -674,7 +680,7 @@ export default function NestedSideBar() {
674
680
  if (currentItemGroup.length > 0) {
675
681
  result.push(
676
682
  <div key={`items-${result.length}`} className="flex flex-col gap-0.5 mb-1.5">
677
- {currentItemGroup.map((item, idx) => renderItem(item.node, item.key, idx))}
683
+ {currentItemGroup.map((item, idx) => renderItem(item.node, item.key, idx, repeatsLevelIcon(item.node)))}
678
684
  </div>
679
685
  );
680
686
  currentItemGroup = [];
@@ -795,9 +801,12 @@ export default function NestedSideBar() {
795
801
  return renderGroup(child, childKey, childIndex, depth + 1);
796
802
  }
797
803
 
798
- // Under a nested group the header already conveys the resource type, so the
799
- // default per-collection glyph is dropped; custom icons still show.
800
- return renderItem(child, childKey, childIndex, isNested);
804
+ return renderItem(
805
+ child,
806
+ childKey,
807
+ childIndex,
808
+ hidesDefaultItemIcon(group, child, isNested) || repeatsLevelIcon(child)
809
+ );
801
810
  })}
802
811
  </div>
803
812
  )}
@@ -814,9 +823,9 @@ export default function NestedSideBar() {
814
823
  const isFav = isFavorited(itemKey);
815
824
  const canFavorite = itemKey !== null; // Only items with keys can be favorited
816
825
 
817
- // Get icon component from lucide-react. When suppressDefaultIcon is set (e.g. items
818
- // listed under a typed subtle subgroup) the default per-collection glyph is hidden;
819
- // a custom icon (item.leftIcon) is always still shown.
826
+ // Get icon component from lucide-react. When suppressDefaultIcon is set (the group heading
827
+ // already shows the item's type, see hidesDefaultItemIcon) the default per-collection glyph
828
+ // is hidden; a custom icon (item.leftIcon) is always still shown.
820
829
  const IconComponent =
821
830
  item.icon && !suppressDefaultIcon ? (LucideIcons as unknown as Record<string, LucideIcons.LucideIcon>)[item.icon] : null;
822
831
  const handleStarClick = (e: React.MouseEvent) => {
@@ -1,5 +1,7 @@
1
1
  // Shared utilities for NestedSideBar components
2
2
 
3
+ import type { NavNode } from '@stores/sidebar-store/state';
4
+
3
5
  export const SIDEBAR_GROUP_COLLAPSE_THRESHOLD = 5;
4
6
 
5
7
  /**
@@ -67,6 +69,14 @@ export const toggleGroupCollapsed = (
67
69
  * Finds the sidebar node represented by a resource URL.
68
70
  * The URL must have its configured base path removed before it is passed in.
69
71
  */
72
+ /**
73
+ * Whether an item in a group drops its default per-collection icon because the group heading
74
+ * already conveys its type: every item under a nested group, and items whose icon is the
75
+ * group's own (e.g. events listed under Events). Custom icons (`leftIcon`) always show.
76
+ */
77
+ export const hidesDefaultItemIcon = (group: NavNode, item: NavNode, isNested: boolean): boolean =>
78
+ isNested || (!!group.icon && group.icon === item.icon);
79
+
70
80
  export const findNodeKeyByUrl = (
71
81
  url: string,
72
82
  nodes: Record<string, unknown>,
@@ -1,7 +1,6 @@
1
1
  import { execFileSync } from 'node:child_process';
2
2
  import fs from 'node:fs';
3
3
  import path from 'node:path';
4
- import shell from 'shelljs';
5
4
 
6
5
  type Commit = { timestamp: number; author: string };
7
6
 
@@ -9,10 +8,6 @@ const COMMIT_MARKER = '\x1e';
9
8
 
10
9
  const newestCommitsByRepository = new Map<string, Map<string, Commit> | undefined>();
11
10
 
12
- export function hasGit() {
13
- return !!shell.which('git');
14
- }
15
-
16
11
  const runGit = (args: string[]) => {
17
12
  try {
18
13
  return execFileSync('git', ['-c', 'log.showSignature=false', ...args], {
@@ -25,6 +20,17 @@ const runGit = (args: string[]) => {
25
20
  }
26
21
  };
27
22
 
23
+ // Checked once per PATH, as git history is read for every page
24
+ const gitInstalledByPath = new Map<string | undefined, boolean>();
25
+
26
+ export function hasGit() {
27
+ const searchPath = process.env.PATH;
28
+ if (!gitInstalledByPath.has(searchPath)) {
29
+ gitInstalledByPath.set(searchPath, runGit(['--version']) !== undefined);
30
+ }
31
+ return gitInstalledByPath.get(searchPath)!;
32
+ }
33
+
28
34
  const parseCommit = (header: string): Commit => {
29
35
  const [timestamp, ...author] = header.split(',');
30
36
  return { timestamp: Number(timestamp) * 1_000, author: author.join(',') };
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.3",
10
+ "version": "5.0.0-beta.4",
11
11
  "publishConfig": {
12
12
  "access": "public"
13
13
  },
@@ -79,7 +79,7 @@
79
79
  "ai": "^7.0.106",
80
80
  "astro": "7.3.3",
81
81
  "astro-expressive-code": "^0.44.0",
82
- "astro-seo": "^0.8.4",
82
+ "astro-seo": "^1.2.0",
83
83
  "boxen": "^8.0.1",
84
84
  "commander": "^12.1.0",
85
85
  "cross-env": "^7.0.3",
@@ -93,7 +93,7 @@
93
93
  "elkjs": "^0.10.0",
94
94
  "glob": "^13.0.6",
95
95
  "gray-matter": "^4.0.3",
96
- "hono": "4.13.5",
96
+ "hono": "^4.13.7",
97
97
  "html-to-image": "^1.11.11",
98
98
  "js-yaml": "^4.3.2",
99
99
  "jsonpath-plus": "^10.4.0",
@@ -125,7 +125,6 @@
125
125
  "rimraf": "^6.1.3",
126
126
  "semver": "7.6.3",
127
127
  "set-cookie-parser": "^2.7.1",
128
- "shelljs": "^0.9.0",
129
128
  "sonner": "^2.0.7",
130
129
  "sql.js": "^1.12.0",
131
130
  "tailwindcss": "^4.3.1",
@@ -134,9 +133,9 @@
134
133
  "update-notifier": "^7.3.1",
135
134
  "uuid": "^11.1.1",
136
135
  "zod": "^4.3.6",
137
- "@eventcatalog/linter": "1.2.0-beta.0",
138
- "@eventcatalog/sdk": "2.30.0-beta.0",
139
- "@eventcatalog/visualiser": "^5.0.0-beta.2"
136
+ "@eventcatalog/linter": "1.2.0-beta.1",
137
+ "@eventcatalog/visualiser": "^5.0.0-beta.2",
138
+ "@eventcatalog/sdk": "2.30.0-beta.0"
140
139
  },
141
140
  "devDependencies": {
142
141
  "@astrojs/check": "^0.9.10",
@@ -156,7 +155,6 @@
156
155
  "@types/react-syntax-highlighter": "^15.5.13",
157
156
  "@types/semver": "^7.5.8",
158
157
  "@types/set-cookie-parser": "^2.4.10",
159
- "@types/shelljs": "^0.8.15",
160
158
  "@types/update-notifier": "^6.0.8",
161
159
  "@types/uuid": "^10.0.0",
162
160
  "jsdom": "27.0.0",
@@ -1,3 +0,0 @@
1
- export * from "shelljs";
2
- import * as dependency from "shelljs";
3
- export default dependency.default;
@@ -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 = {}) => {