@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.
- 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/catalog-runtime.cjs +1 -1
- package/dist/{chunk-EXBUNFIM.js → chunk-54GBEFRV.js} +1 -1
- package/dist/{chunk-EGOTM5ZG.js → chunk-C4KPS65M.js} +1 -1
- package/dist/{chunk-ZE2RPUNY.js → chunk-EJU3H6C4.js} +1 -1
- package/dist/{chunk-5QOG7UYZ.js → chunk-EJXOHDUL.js} +1 -1
- package/dist/{chunk-EETSYUKN.js → chunk-Y32K66EM.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/docs/development/01-getting-started/develop-and-build.md +19 -0
- package/dist/eventcatalog.cjs +4 -4
- package/dist/eventcatalog.js +7 -7
- 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/package.json +12 -12
|
@@ -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.
|
|
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-
|
|
3
|
+
} from "../chunk-EJXOHDUL.js";
|
|
4
4
|
import "../chunk-AD7CL772.js";
|
|
5
|
-
import "../chunk-
|
|
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-
|
|
9
|
+
import "../chunk-Y32K66EM.js";
|
|
10
10
|
import "../chunk-4G7FSRPN.js";
|
|
11
11
|
export {
|
|
12
12
|
log_build_default as default
|
package/dist/catalog-runtime.cjs
CHANGED
|
@@ -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.
|
|
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
|
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
|
@@ -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
|
|
package/dist/eventcatalog.cjs
CHANGED
|
@@ -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.
|
|
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.
|
|
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,
|
package/dist/eventcatalog.js
CHANGED
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
import "./chunk-CA4U2JP7.js";
|
|
8
8
|
import {
|
|
9
9
|
log_build_default
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EJXOHDUL.js";
|
|
11
11
|
import {
|
|
12
12
|
getLicenseStatus,
|
|
13
13
|
printLicenseStatus
|
|
14
14
|
} from "./chunk-AD7CL772.js";
|
|
15
|
-
import "./chunk-
|
|
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-
|
|
42
|
+
} from "./chunk-C4KPS65M.js";
|
|
43
43
|
import {
|
|
44
44
|
logger
|
|
45
|
-
} from "./chunk-
|
|
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-
|
|
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.
|
|
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-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
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
|
package/dist/utils/cli-logger.js
CHANGED
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
},
|
|
8
8
|
"license": "BUSL-1.1",
|
|
9
9
|
"type": "module",
|
|
10
|
-
"version": "5.
|
|
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.
|
|
51
|
-
"@astrojs/mdx": "^8.
|
|
52
|
-
"@astrojs/node": "^11.1.
|
|
53
|
-
"@astrojs/react": "^7.
|
|
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.
|
|
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/
|
|
145
|
-
"@eventcatalog/
|
|
146
|
-
"@eventcatalog/
|
|
147
|
-
"@eventcatalog/
|
|
148
|
-
"@eventcatalog/
|
|
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.
|
|
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",
|