@eventcatalog/core 3.0.0-beta.20 → 3.0.0-beta.21
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/__mocks__/astro-content.cjs +32 -0
- package/dist/__mocks__/astro-content.d.cts +13 -0
- package/dist/__mocks__/astro-content.d.ts +13 -0
- package/dist/__mocks__/astro-content.js +7 -0
- 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-7ANM33NO.js → chunk-2FUEBPD3.js} +1 -1
- package/dist/{chunk-VDAAJC4X.js → chunk-HABY2LVH.js} +1 -1
- package/dist/{chunk-BLIEWBVS.js → chunk-KQAMO3R4.js} +1 -1
- package/dist/{chunk-SUPFYBDY.js → chunk-Q6KRYWPV.js} +1 -1
- package/dist/{chunk-IZGKMOOO.js → chunk-RRP2B7BL.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- 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 +2 -5
- package/default-files-for-collections/changelogs.md +0 -5
- package/default-files-for-collections/channels.md +0 -8
- package/default-files-for-collections/commands.md +0 -8
- package/default-files-for-collections/domains.md +0 -8
- package/default-files-for-collections/events.md +0 -8
- package/default-files-for-collections/flows.md +0 -11
- package/default-files-for-collections/queries.md +0 -8
- package/default-files-for-collections/services.md +0 -8
- package/default-files-for-collections/ubiquitousLanguages.md +0 -7
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/__mocks__/astro-content.ts
|
|
21
|
+
var astro_content_exports = {};
|
|
22
|
+
__export(astro_content_exports, {
|
|
23
|
+
getCollection: () => getCollection
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(astro_content_exports);
|
|
26
|
+
var getCollection = async (key, filter) => {
|
|
27
|
+
return [];
|
|
28
|
+
};
|
|
29
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
30
|
+
0 && (module.exports = {
|
|
31
|
+
getCollection
|
|
32
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const getCollection: (key: string, filter?: (entry: any) => boolean) => Promise<never[]>;
|
|
2
|
+
type ContentCollectionKey = 'events' | 'services' | 'commands' | 'queries' | 'domains' | 'channels' | 'flows' | 'messages' | 'entities' | 'schemas';
|
|
3
|
+
type CollectionEntry<T extends ContentCollectionKey> = {
|
|
4
|
+
id: string;
|
|
5
|
+
slug: string;
|
|
6
|
+
body: string;
|
|
7
|
+
collection: T;
|
|
8
|
+
data: any;
|
|
9
|
+
filePath?: string;
|
|
10
|
+
render?: () => Promise<any>;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { type CollectionEntry, type ContentCollectionKey, getCollection };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const getCollection: (key: string, filter?: (entry: any) => boolean) => Promise<never[]>;
|
|
2
|
+
type ContentCollectionKey = 'events' | 'services' | 'commands' | 'queries' | 'domains' | 'channels' | 'flows' | 'messages' | 'entities' | 'schemas';
|
|
3
|
+
type CollectionEntry<T extends ContentCollectionKey> = {
|
|
4
|
+
id: string;
|
|
5
|
+
slug: string;
|
|
6
|
+
body: string;
|
|
7
|
+
collection: T;
|
|
8
|
+
data: any;
|
|
9
|
+
filePath?: string;
|
|
10
|
+
render?: () => Promise<any>;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { type CollectionEntry, type ContentCollectionKey, getCollection };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-RRP2B7BL.js";
|
|
4
|
+
import "../chunk-2FUEBPD3.js";
|
|
5
|
+
import "../chunk-KQAMO3R4.js";
|
|
6
6
|
import "../chunk-UPONRQSN.js";
|
|
7
7
|
export {
|
|
8
8
|
log_build_default as default
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
|
@@ -109,7 +109,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
|
|
|
109
109
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
110
110
|
|
|
111
111
|
// package.json
|
|
112
|
-
var version = "3.0.0-beta.
|
|
112
|
+
var version = "3.0.0-beta.21";
|
|
113
113
|
|
|
114
114
|
// src/constants.ts
|
|
115
115
|
var VERSION = version;
|
package/dist/eventcatalog.js
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
} from "./chunk-PLNJC7NZ.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-RRP2B7BL.js";
|
|
10
|
+
import "./chunk-2FUEBPD3.js";
|
|
11
11
|
import {
|
|
12
12
|
runMigrations
|
|
13
13
|
} from "./chunk-BH3JMNAV.js";
|
|
@@ -22,13 +22,13 @@ import {
|
|
|
22
22
|
} from "./chunk-5VBIXL6C.js";
|
|
23
23
|
import {
|
|
24
24
|
generate
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-HABY2LVH.js";
|
|
26
26
|
import {
|
|
27
27
|
logger
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-Q6KRYWPV.js";
|
|
29
29
|
import {
|
|
30
30
|
VERSION
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-KQAMO3R4.js";
|
|
32
32
|
import "./chunk-UPONRQSN.js";
|
|
33
33
|
|
|
34
34
|
// src/eventcatalog.ts
|
package/dist/generate.cjs
CHANGED
|
@@ -73,7 +73,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
|
|
|
73
73
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
74
74
|
|
|
75
75
|
// package.json
|
|
76
|
-
var version = "3.0.0-beta.
|
|
76
|
+
var version = "3.0.0-beta.21";
|
|
77
77
|
|
|
78
78
|
// src/constants.ts
|
|
79
79
|
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-HABY2LVH.js";
|
|
4
|
+
import "./chunk-Q6KRYWPV.js";
|
|
5
|
+
import "./chunk-KQAMO3R4.js";
|
|
6
6
|
import "./chunk-UPONRQSN.js";
|
|
7
7
|
export {
|
|
8
8
|
generate
|
package/dist/utils/cli-logger.js
CHANGED
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"url": "https://github.com/event-catalog/eventcatalog.git"
|
|
7
7
|
},
|
|
8
8
|
"type": "module",
|
|
9
|
-
"version": "3.0.0-beta.
|
|
9
|
+
"version": "3.0.0-beta.21",
|
|
10
10
|
"publishConfig": {
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
@@ -17,8 +17,7 @@
|
|
|
17
17
|
"eventcatalog/",
|
|
18
18
|
"!eventcatalog/**/__tests__/",
|
|
19
19
|
"bin/",
|
|
20
|
-
"dist/"
|
|
21
|
-
"default-files-for-collections/"
|
|
20
|
+
"dist/"
|
|
22
21
|
],
|
|
23
22
|
"dependencies": {
|
|
24
23
|
"@ai-sdk/react": "^2.0.60",
|
|
@@ -82,7 +81,6 @@
|
|
|
82
81
|
"marked": "^15.0.6",
|
|
83
82
|
"mermaid": "^11.12.1",
|
|
84
83
|
"nanostores": "^1.1.0",
|
|
85
|
-
"pagefind": "^1.3.0",
|
|
86
84
|
"pako": "^2.1.0",
|
|
87
85
|
"picocolors": "^1.1.1",
|
|
88
86
|
"react": "^18.3.1",
|
|
@@ -146,7 +144,6 @@
|
|
|
146
144
|
"astro": "astro",
|
|
147
145
|
"start:catalog": "node scripts/start-catalog-locally.js",
|
|
148
146
|
"start:catalog:server": "node scripts/start-server-locally.js",
|
|
149
|
-
"pagefind": "node scripts/pagefind.js",
|
|
150
147
|
"preview:catalog": "node scripts/preview-catalog-locally.js",
|
|
151
148
|
"generate:catalog": "node scripts/generate-catalog-locally.js",
|
|
152
149
|
"verify-build:catalog": "rimraf dist && pnpm run build:cd",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
id: ubiquitous-language
|
|
3
|
-
name: Ubiquitous Language
|
|
4
|
-
summary: A shared language used by all team members to communicate about the system.
|
|
5
|
-
description: A shared language used by all team members to communicate about the system.
|
|
6
|
-
---
|
|
7
|
-
<!-- Do not delete this file, required for EC, you an ignore this file -->
|