@eventcatalog/core 5.1.0 → 5.1.1

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.1.0";
39
+ var version = "5.1.1";
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-FHZXZWCY.js";
3
+ } from "../chunk-UCUZ44U2.js";
4
4
  import "../chunk-CPW6G62V.js";
5
- import "../chunk-OT57IOWN.js";
5
+ import "../chunk-GKEHJQ5K.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.1.0";
172
+ var version = "5.1.1";
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-G3CHTDAE.js";
3
+ } from "../chunk-BEBDEEDY.js";
4
4
  import "../chunk-AD7CL772.js";
5
- import "../chunk-FHZXZWCY.js";
5
+ import "../chunk-UCUZ44U2.js";
6
6
  import "../chunk-ZAZHAVKB.js";
7
7
  import "../chunk-CA6WCQ2T.js";
8
8
  import "../chunk-CPW6G62V.js";
9
- import "../chunk-OT57IOWN.js";
9
+ import "../chunk-GKEHJQ5K.js";
10
10
  import "../chunk-4G7FSRPN.js";
11
11
  export {
12
12
  log_build_default as default
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-WBUSFEBH.js";
3
+ } from "./chunk-NJTLAFFT.js";
4
4
  import {
5
5
  cleanup,
6
6
  getEventCatalogConfigFile
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-AD7CL772.js";
4
4
  import {
5
5
  raiseEvent
6
- } from "./chunk-FHZXZWCY.js";
6
+ } from "./chunk-UCUZ44U2.js";
7
7
  import {
8
8
  countResources,
9
9
  hashCatalogContent,
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "5.1.0";
2
+ var version = "5.1.1";
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-OT57IOWN.js";
3
+ } from "./chunk-GKEHJQ5K.js";
4
4
 
5
5
  // src/utils/cli-logger.ts
6
6
  import pc from "picocolors";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-CPW6G62V.js";
5
5
  import {
6
6
  VERSION
7
- } from "./chunk-OT57IOWN.js";
7
+ } from "./chunk-GKEHJQ5K.js";
8
8
 
9
9
  // src/analytics/analytics.js
10
10
  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.1.0";
28
+ var version = "5.1.1";
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-OT57IOWN.js";
3
+ } from "./chunk-GKEHJQ5K.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -968,6 +968,27 @@ Enable tools like Claude, ChatGPT, GitHub Copilot, and Cursor to quickly underst
968
968
  See the [LLMs documentation](/docs/development/ask-your-architecture/llms.txt) for more information, how you can use it and examples.
969
969
 
970
970
 
971
+ ### `exports.html` {#exports.html}
972
+
973
+ <AddedIn version="5.1.0" />
974
+
975
+ - Type: `object`
976
+ - Default: `{ enabled: true }` (`false` when your catalog uses authentication)
977
+
978
+ Controls the [architecture reference](/docs/development/guides/architecture-reference): your whole catalog as one HTML file, written to `architecture.html` in your build output on every build.
979
+
980
+ ```js title="eventcatalog.config.js"
981
+ module.exports = {
982
+ exports: {
983
+ html: {
984
+ enabled: false, // default is true
985
+ },
986
+ },
987
+ };
988
+ ```
989
+
990
+ Catalogs with authentication only get the reference when `enabled` is `true`, because files in the build output are served without the authentication checks.
991
+
971
992
  ### `fullCatalogAPIEnabled` {#fullCatalogAPIEnabled}
972
993
 
973
994
  <AddedIn version="3.10.2" />
@@ -0,0 +1,95 @@
1
+ ---
2
+ sidebar_position: 96
3
+ keywords:
4
+ - EventCatalog architecture reference
5
+ - Export architecture documentation
6
+ - Single HTML file
7
+ - Share architecture
8
+ sidebar_label: Architecture Reference
9
+ title: Architecture reference
10
+ description: Export your whole catalog as one self-contained HTML file you can share, attach or host anywhere.
11
+ ---
12
+
13
+ import AddedIn from '@site/src/components/MDX/AddedIn';
14
+
15
+ <AddedIn version="5.1.0" />
16
+
17
+ The architecture reference is your whole catalog in **one self-contained HTML file**. Every domain, system, service, message, channel, data store, flow, entity and team gets its own section, linked to everything it relates to.
18
+
19
+ It doesn't need a server: everything is in the file, so you can attach it to an email, add it to a design review, keep it with an audit, or host it next to your catalog.
20
+
21
+ ![The overview of an architecture reference, listing the domains, systems and services in the sidebar and a summary of the catalog](./img/architecture-reference-overview.png)
22
+
23
+ [See demo architecture reference](https://demo.eventcatalog.dev/architecture.html)
24
+
25
+ ## What's in it
26
+
27
+ - **An overview of the catalog**, with how many of each resource it documents.
28
+ - **A section for every resource**, with its summary, owners, badges and documentation (including mermaid diagrams).
29
+ - **Relationships on every section**: who produces and consumes a message, what a service sends and receives, which services read and write a data store, what lives inside a domain or system. Every relationship is a link.
30
+ - **Message attributes** from your JSON Schema, Avro and Protobuf schemas, with an example payload, a TypeScript type and the raw schema.
31
+ - **Your specifications** (OpenAPI, AsyncAPI and GraphQL), which you can view and download from the page.
32
+ - **Flows**, step by step, with every resource each step touches.
33
+ - **Search** across the document (press `⌘K` or `Ctrl+K`), a sidebar filter, and light and dark themes.
34
+
35
+ Only the latest version of each resource is included. Resources marked as hidden are left out.
36
+
37
+ ![A message in the architecture reference, with its attributes, producers, consumers and an example payload](./img/architecture-reference-message.png)
38
+
39
+ ## Get it on every build
40
+
41
+ The reference is generated every time you build your catalog. You don't need to set anything up.
42
+
43
+ ```bash
44
+ npm run build
45
+ ```
46
+
47
+ It is written to `dist/architecture.html`, or to `dist/client/architecture.html` when your catalog [runs in server mode](/docs/development/deployment/build-ssr-mode). Wherever you host your catalog, the reference is available at `/architecture.html`.
48
+
49
+ ### Turn it off
50
+
51
+ Set `exports.html.enabled` to `false` in your `eventcatalog.config.js` file:
52
+
53
+ ```js title="eventcatalog.config.js"
54
+ module.exports = {
55
+ exports: {
56
+ html: {
57
+ enabled: false,
58
+ },
59
+ },
60
+ };
61
+ ```
62
+
63
+ ### Catalogs with authentication
64
+
65
+ If your catalog uses [authentication](/docs/development/authentication/introduction), the reference is **not** generated unless you turn it on. Files in the build output are served without the authentication checks, so anyone who knows the URL could read it.
66
+
67
+ To generate it anyway, set `exports.html.enabled` to `true`.
68
+
69
+ ## Export it with the CLI
70
+
71
+ Use the [`export` command](/docs/cli/cli-export) of the [EventCatalog CLI](/docs/cli) to export the reference on demand, without building the catalog. From the root of your catalog, run:
72
+
73
+ ```bash
74
+ npx @eventcatalog/cli export --format html
75
+ ```
76
+
77
+ This writes `architecture.html` and opens it in your browser.
78
+
79
+ | Option | Description |
80
+ | --- | --- |
81
+ | `--output <path>` | Where to write the file. Defaults to `architecture.html` |
82
+ | `--no-open` | Don't open the reference in your browser (useful in CI) |
83
+ | `--dir <path>` | Path to your catalog, if you aren't running the command from it |
84
+
85
+ For example, to export the reference in a CI pipeline and publish it as a build artifact:
86
+
87
+ ```bash
88
+ npx @eventcatalog/cli export --format html --output reports/architecture.html --no-open
89
+ ```
90
+
91
+ ## Sharing the reference
92
+
93
+ The reference uses the `title`, `organizationName` and `logo` from your `eventcatalog.config.js` file. When you share a link to a hosted reference in Slack, Teams or on social media, the preview shows the catalog's name and what it documents.
94
+
95
+ The file shows when it was generated, and the command to generate it again.
@@ -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.1.0";
177
+ var version = "5.1.1";
178
178
 
179
179
  // src/constants.ts
180
180
  var VERSION = version;
@@ -7,12 +7,12 @@ import {
7
7
  import "./chunk-CA4U2JP7.js";
8
8
  import {
9
9
  log_build_default
10
- } from "./chunk-G3CHTDAE.js";
10
+ } from "./chunk-BEBDEEDY.js";
11
11
  import {
12
12
  getLicenseStatus,
13
13
  printLicenseStatus
14
14
  } from "./chunk-AD7CL772.js";
15
- import "./chunk-FHZXZWCY.js";
15
+ import "./chunk-UCUZ44U2.js";
16
16
  import "./chunk-ZAZHAVKB.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-TBXLUIJD.js";
42
+ } from "./chunk-BAUH53EV.js";
43
43
  import {
44
44
  logger
45
- } from "./chunk-WBUSFEBH.js";
45
+ } from "./chunk-NJTLAFFT.js";
46
46
  import {
47
47
  resolve_catalog_dependencies_default
48
48
  } from "./chunk-PD7KTSYN.js";
@@ -76,7 +76,7 @@ import {
76
76
  } from "./chunk-LFQJXLHG.js";
77
77
  import {
78
78
  VERSION
79
- } from "./chunk-OT57IOWN.js";
79
+ } from "./chunk-GKEHJQ5K.js";
80
80
  import {
81
81
  getEventCatalogConfigFile,
82
82
  verifyRequiredFieldsAreInCatalogConfigFile
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.1.0";
108
+ var version = "5.1.1";
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-TBXLUIJD.js";
4
- import "./chunk-WBUSFEBH.js";
5
- import "./chunk-OT57IOWN.js";
3
+ } from "./chunk-BAUH53EV.js";
4
+ import "./chunk-NJTLAFFT.js";
5
+ import "./chunk-GKEHJQ5K.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.1.0";
39
+ var version = "5.1.1";
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-WBUSFEBH.js";
4
- import "../chunk-OT57IOWN.js";
3
+ } from "../chunk-NJTLAFFT.js";
4
+ import "../chunk-GKEHJQ5K.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.1.0",
10
+ "version": "5.1.1",
11
11
  "publishConfig": {
12
12
  "access": "public"
13
13
  },
@@ -140,10 +140,10 @@
140
140
  "y-protocols": "^1.0.7",
141
141
  "yjs": "^13.6.33",
142
142
  "zod": "^4.6.6",
143
- "@eventcatalog/exporters": "0.0.2",
144
- "@eventcatalog/linter": "1.2.1",
143
+ "@eventcatalog/exporters": "0.0.3",
145
144
  "@eventcatalog/sdk": "2.30.0",
146
- "@eventcatalog/visualiser": "^5.0.0"
145
+ "@eventcatalog/visualiser": "^5.0.0",
146
+ "@eventcatalog/linter": "1.2.1"
147
147
  },
148
148
  "devDependencies": {
149
149
  "@astrojs/check": "^0.9.10",