@eventcatalog/core 5.10.0 → 5.11.0

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.10.0";
39
+ var version = "5.11.0";
40
40
 
41
41
  // src/constants.ts
42
42
  var VERSION = version;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "../chunk-EXBUNFIM.js";
3
+ } from "../chunk-54GBEFRV.js";
4
4
  import "../chunk-CPW6G62V.js";
5
- import "../chunk-EETSYUKN.js";
5
+ import "../chunk-Y32K66EM.js";
6
6
  export {
7
7
  raiseEvent
8
8
  };
@@ -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.10.0";
172
+ var version = "5.11.0";
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-5QOG7UYZ.js";
3
+ } from "../chunk-EJXOHDUL.js";
4
4
  import "../chunk-AD7CL772.js";
5
- import "../chunk-EXBUNFIM.js";
5
+ import "../chunk-54GBEFRV.js";
6
6
  import "../chunk-YRZK7HKX.js";
7
7
  import "../chunk-CA6WCQ2T.js";
8
8
  import "../chunk-CPW6G62V.js";
9
- import "../chunk-EETSYUKN.js";
9
+ import "../chunk-Y32K66EM.js";
10
10
  import "../chunk-4G7FSRPN.js";
11
11
  export {
12
12
  log_build_default as default
@@ -36,7 +36,7 @@ __export(catalog_runtime_exports, {
36
36
  });
37
37
  module.exports = __toCommonJS(catalog_runtime_exports);
38
38
 
39
- // ../../node_modules/.pnpm/tsup@8.5.0_jiti@2.7.0_postcss@8.5.31_tsx@4.23.15_typescript@5.9.3_yaml@2.9.1/node_modules/tsup/assets/cjs_shims.js
39
+ // ../../node_modules/.pnpm/tsup@8.5.0_jiti@2.7.0_postcss@8.5.32_tsx@4.23.15_typescript@5.9.3_yaml@2.9.1/node_modules/tsup/assets/cjs_shims.js
40
40
  var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
41
41
  var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
42
42
 
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-CPW6G62V.js";
5
5
  import {
6
6
  VERSION
7
- } from "./chunk-EETSYUKN.js";
7
+ } from "./chunk-Y32K66EM.js";
8
8
 
9
9
  // src/analytics/analytics.js
10
10
  import os from "os";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-ZE2RPUNY.js";
3
+ } from "./chunk-EJU3H6C4.js";
4
4
  import {
5
5
  cleanup,
6
6
  getEventCatalogConfigFile
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-EETSYUKN.js";
3
+ } from "./chunk-Y32K66EM.js";
4
4
 
5
5
  // src/utils/cli-logger.ts
6
6
  import pc from "picocolors";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-AD7CL772.js";
4
4
  import {
5
5
  raiseEvent
6
- } from "./chunk-EXBUNFIM.js";
6
+ } from "./chunk-54GBEFRV.js";
7
7
  import {
8
8
  countResources,
9
9
  hashCatalogContent,
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "5.10.0";
2
+ var version = "5.11.0";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "5.10.0";
28
+ var version = "5.11.0";
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-EETSYUKN.js";
3
+ } from "./chunk-Y32K66EM.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -58,6 +58,25 @@ Note that this previews your code as it existed when the build command was last
58
58
 
59
59
  Use (Ctrl + C) to quit the preview and run another terminal command, such as restarting the dev server to go back to working in development mode which does update as you edit to show a live preview of your code changes.
60
60
 
61
+ ### Find out where build time goes
62
+
63
+ <AddedIn version="5.11.0" />
64
+
65
+ If your catalog takes longer to build than you expect, add `--timings` to the build command. When the build finishes, EventCatalog prints a summary of where the time went:
66
+
67
+ ```bash
68
+ npx eventcatalog build --timings
69
+ ```
70
+
71
+ The summary breaks the build down into:
72
+
73
+ - **Build phases**: how long bundling and generating pages took.
74
+ - **Markdown plugins**: the time spent processing your Markdown and MDX files, such as syntax highlighting code blocks.
75
+ - **Slowest files to bundle** and **slowest pages**: the individual files and pages that took the longest.
76
+ - **Integrations**: the time spent in steps that run during the build, such as link validation.
77
+
78
+ Use it to decide what to look at first, or to compare build times before and after a change to your catalog.
79
+
61
80
 
62
81
  ## EventCatalog static vs server output
63
82
 
@@ -22,7 +22,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
22
22
  mod
23
23
  ));
24
24
 
25
- // ../../node_modules/.pnpm/tsup@8.5.0_jiti@2.7.0_postcss@8.5.31_tsx@4.23.15_typescript@5.9.3_yaml@2.9.1/node_modules/tsup/assets/cjs_shims.js
25
+ // ../../node_modules/.pnpm/tsup@8.5.0_jiti@2.7.0_postcss@8.5.32_tsx@4.23.15_typescript@5.9.3_yaml@2.9.1/node_modules/tsup/assets/cjs_shims.js
26
26
  var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
27
27
  var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
28
28
 
@@ -175,7 +175,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
175
175
  var import_picocolors = __toESM(require("picocolors"), 1);
176
176
 
177
177
  // package.json
178
- var version = "5.10.0";
178
+ var version = "5.11.0";
179
179
 
180
180
  // src/constants.ts
181
181
  var VERSION = version;
@@ -3431,7 +3431,7 @@ program.command("dev").description("Run development server of EventCatalog").opt
3431
3431
  await watchUnsub?.();
3432
3432
  }
3433
3433
  });
3434
- program.command("build").description("Run build of EventCatalog").action(async (options, command) => {
3434
+ program.command("build").description("Run build of EventCatalog").option("--timings", "Print a summary of where the build spent its time").action(async (options, command) => {
3435
3435
  logger.welcome();
3436
3436
  logger.info("Building EventCatalog...", "build");
3437
3437
  const isServer = await isOutputServer();
@@ -3463,7 +3463,7 @@ program.command("build").description("Run build of EventCatalog").action(async (
3463
3463
  checkForUpdate();
3464
3464
  await runCommandWithFilteredOutput({
3465
3465
  command: process.execPath,
3466
- args: [astroCli, "build", "--config", astroConfigPath(), ...command.args],
3466
+ args: [astroCli, "build", "--config", astroConfigPath(), ...options.timings ? ["--timings"] : [], ...command.args],
3467
3467
  cwd: dir,
3468
3468
  env: {
3469
3469
  PROJECT_DIR: dir,
@@ -7,12 +7,12 @@ import {
7
7
  import "./chunk-CA4U2JP7.js";
8
8
  import {
9
9
  log_build_default
10
- } from "./chunk-5QOG7UYZ.js";
10
+ } from "./chunk-EJXOHDUL.js";
11
11
  import {
12
12
  getLicenseStatus,
13
13
  printLicenseStatus
14
14
  } from "./chunk-AD7CL772.js";
15
- import "./chunk-EXBUNFIM.js";
15
+ import "./chunk-54GBEFRV.js";
16
16
  import "./chunk-YRZK7HKX.js";
17
17
  import "./chunk-CA6WCQ2T.js";
18
18
  import "./chunk-CPW6G62V.js";
@@ -39,10 +39,10 @@ import {
39
39
  } from "./chunk-NKNOXQ62.js";
40
40
  import {
41
41
  generate
42
- } from "./chunk-EGOTM5ZG.js";
42
+ } from "./chunk-C4KPS65M.js";
43
43
  import {
44
44
  logger
45
- } from "./chunk-ZE2RPUNY.js";
45
+ } from "./chunk-EJU3H6C4.js";
46
46
  import {
47
47
  resolve_catalog_dependencies_default
48
48
  } from "./chunk-PD7KTSYN.js";
@@ -79,7 +79,7 @@ import {
79
79
  } from "./chunk-LFQJXLHG.js";
80
80
  import {
81
81
  VERSION
82
- } from "./chunk-EETSYUKN.js";
82
+ } from "./chunk-Y32K66EM.js";
83
83
  import {
84
84
  getEventCatalogConfigFile,
85
85
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -989,7 +989,7 @@ program.command("dev").description("Run development server of EventCatalog").opt
989
989
  await watchUnsub?.();
990
990
  }
991
991
  });
992
- program.command("build").description("Run build of EventCatalog").action(async (options, command) => {
992
+ program.command("build").description("Run build of EventCatalog").option("--timings", "Print a summary of where the build spent its time").action(async (options, command) => {
993
993
  logger.welcome();
994
994
  logger.info("Building EventCatalog...", "build");
995
995
  const isServer = await isOutputServer();
@@ -1021,7 +1021,7 @@ program.command("build").description("Run build of EventCatalog").action(async (
1021
1021
  checkForUpdate();
1022
1022
  await runCommandWithFilteredOutput({
1023
1023
  command: process.execPath,
1024
- args: [astroCli, "build", "--config", astroConfigPath(), ...command.args],
1024
+ args: [astroCli, "build", "--config", astroConfigPath(), ...options.timings ? ["--timings"] : [], ...command.args],
1025
1025
  cwd: dir,
1026
1026
  env: {
1027
1027
  PROJECT_DIR: dir,
package/dist/generate.cjs CHANGED
@@ -106,7 +106,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
106
106
  var import_picocolors = __toESM(require("picocolors"), 1);
107
107
 
108
108
  // package.json
109
- var version = "5.10.0";
109
+ var version = "5.11.0";
110
110
 
111
111
  // src/constants.ts
112
112
  var VERSION = version;
package/dist/generate.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generate
3
- } from "./chunk-EGOTM5ZG.js";
4
- import "./chunk-ZE2RPUNY.js";
5
- import "./chunk-EETSYUKN.js";
3
+ } from "./chunk-C4KPS65M.js";
4
+ import "./chunk-EJU3H6C4.js";
5
+ import "./chunk-Y32K66EM.js";
6
6
  import "./chunk-4G7FSRPN.js";
7
7
  export {
8
8
  generate
@@ -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.10.0";
39
+ var version = "5.11.0";
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-ZE2RPUNY.js";
4
- import "../chunk-EETSYUKN.js";
3
+ } from "../chunk-EJU3H6C4.js";
4
+ import "../chunk-Y32K66EM.js";
5
5
  export {
6
6
  logger
7
7
  };
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "license": "BUSL-1.1",
9
9
  "type": "module",
10
- "version": "5.10.0",
10
+ "version": "5.11.0",
11
11
  "publishConfig": {
12
12
  "access": "public"
13
13
  },
@@ -47,10 +47,10 @@
47
47
  ],
48
48
  "dependencies": {
49
49
  "@ai-sdk/react": "^4.0.109",
50
- "@astrojs/markdown-remark": "^7.3.2",
51
- "@astrojs/mdx": "^8.0.3",
52
- "@astrojs/node": "^11.1.7",
53
- "@astrojs/react": "^7.0.1",
50
+ "@astrojs/markdown-remark": "^7.3.6",
51
+ "@astrojs/mdx": "^8.1.3",
52
+ "@astrojs/node": "^11.1.11",
53
+ "@astrojs/react": "^7.1.5",
54
54
  "@astrojs/rss": "^4.0.19",
55
55
  "@asyncapi/avro-schema-parser": "3.0.24",
56
56
  "@asyncapi/parser": "^3.6.0",
@@ -81,7 +81,7 @@
81
81
  "@tanstack/react-table": "^8.17.3",
82
82
  "@xyflow/react": "^12.12.0",
83
83
  "ai": "^7.0.106",
84
- "astro": "7.3.8",
84
+ "astro": "7.4.7",
85
85
  "astro-expressive-code": "^0.44.3",
86
86
  "astro-seo": "^1.2.0",
87
87
  "boxen": "^8.0.1",
@@ -141,14 +141,14 @@
141
141
  "y-protocols": "^1.0.7",
142
142
  "yjs": "^13.6.33",
143
143
  "zod": "^4.6.6",
144
- "@eventcatalog/exporters": "0.1.4",
145
- "@eventcatalog/fitness": "0.1.1",
146
- "@eventcatalog/linter": "1.3.1",
147
- "@eventcatalog/sdk": "2.32.0",
148
- "@eventcatalog/visualiser": "^5.3.0"
144
+ "@eventcatalog/fitness": "0.1.2",
145
+ "@eventcatalog/exporters": "0.1.5",
146
+ "@eventcatalog/sdk": "2.32.1",
147
+ "@eventcatalog/visualiser": "^5.3.0",
148
+ "@eventcatalog/linter": "1.3.2"
149
149
  },
150
150
  "devDependencies": {
151
- "@astrojs/check": "^0.9.10",
151
+ "@astrojs/check": "^0.9.12",
152
152
  "@types/d3-drag": "^3.0.7",
153
153
  "@types/d3-force": "^3.0.10",
154
154
  "@types/d3-selection": "^3.0.11",