@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.
- 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/{chunk-TBXLUIJD.js → chunk-BAUH53EV.js} +1 -1
- package/dist/{chunk-G3CHTDAE.js → chunk-BEBDEEDY.js} +1 -1
- package/dist/{chunk-OT57IOWN.js → chunk-GKEHJQ5K.js} +1 -1
- package/dist/{chunk-WBUSFEBH.js → chunk-NJTLAFFT.js} +1 -1
- package/dist/{chunk-FHZXZWCY.js → chunk-UCUZ44U2.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/docs/api/02-config.md +21 -0
- package/dist/docs/development/guides/96-architecture-reference.md +95 -0
- package/dist/eventcatalog.cjs +1 -1
- package/dist/eventcatalog.js +5 -5
- 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 +4 -4
|
@@ -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.
|
|
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-
|
|
3
|
+
} from "../chunk-BEBDEEDY.js";
|
|
4
4
|
import "../chunk-AD7CL772.js";
|
|
5
|
-
import "../chunk-
|
|
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-
|
|
9
|
+
import "../chunk-GKEHJQ5K.js";
|
|
10
10
|
import "../chunk-4G7FSRPN.js";
|
|
11
11
|
export {
|
|
12
12
|
log_build_default as default
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
|
@@ -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
|
+

|
|
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
|
+

|
|
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.
|
package/dist/eventcatalog.cjs
CHANGED
|
@@ -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.
|
|
177
|
+
var version = "5.1.1";
|
|
178
178
|
|
|
179
179
|
// src/constants.ts
|
|
180
180
|
var VERSION = version;
|
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-BEBDEEDY.js";
|
|
11
11
|
import {
|
|
12
12
|
getLicenseStatus,
|
|
13
13
|
printLicenseStatus
|
|
14
14
|
} from "./chunk-AD7CL772.js";
|
|
15
|
-
import "./chunk-
|
|
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-
|
|
42
|
+
} from "./chunk-BAUH53EV.js";
|
|
43
43
|
import {
|
|
44
44
|
logger
|
|
45
|
-
} from "./chunk-
|
|
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-
|
|
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.
|
|
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-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
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
|
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.1.
|
|
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.
|
|
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",
|