@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.
Files changed (31) hide show
  1. package/dist/__mocks__/astro-content.cjs +32 -0
  2. package/dist/__mocks__/astro-content.d.cts +13 -0
  3. package/dist/__mocks__/astro-content.d.ts +13 -0
  4. package/dist/__mocks__/astro-content.js +7 -0
  5. package/dist/analytics/analytics.cjs +1 -1
  6. package/dist/analytics/analytics.js +2 -2
  7. package/dist/analytics/log-build.cjs +1 -1
  8. package/dist/analytics/log-build.js +3 -3
  9. package/dist/{chunk-7ANM33NO.js → chunk-2FUEBPD3.js} +1 -1
  10. package/dist/{chunk-VDAAJC4X.js → chunk-HABY2LVH.js} +1 -1
  11. package/dist/{chunk-BLIEWBVS.js → chunk-KQAMO3R4.js} +1 -1
  12. package/dist/{chunk-SUPFYBDY.js → chunk-Q6KRYWPV.js} +1 -1
  13. package/dist/{chunk-IZGKMOOO.js → chunk-RRP2B7BL.js} +1 -1
  14. package/dist/constants.cjs +1 -1
  15. package/dist/constants.js +1 -1
  16. package/dist/eventcatalog.cjs +1 -1
  17. package/dist/eventcatalog.js +5 -5
  18. package/dist/generate.cjs +1 -1
  19. package/dist/generate.js +3 -3
  20. package/dist/utils/cli-logger.cjs +1 -1
  21. package/dist/utils/cli-logger.js +2 -2
  22. package/package.json +2 -5
  23. package/default-files-for-collections/changelogs.md +0 -5
  24. package/default-files-for-collections/channels.md +0 -8
  25. package/default-files-for-collections/commands.md +0 -8
  26. package/default-files-for-collections/domains.md +0 -8
  27. package/default-files-for-collections/events.md +0 -8
  28. package/default-files-for-collections/flows.md +0 -11
  29. package/default-files-for-collections/queries.md +0 -8
  30. package/default-files-for-collections/services.md +0 -8
  31. 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 };
@@ -0,0 +1,7 @@
1
+ // src/__mocks__/astro-content.ts
2
+ var getCollection = async (key, filter) => {
3
+ return [];
4
+ };
5
+ export {
6
+ getCollection
7
+ };
@@ -37,7 +37,7 @@ var import_axios = __toESM(require("axios"), 1);
37
37
  var import_os = __toESM(require("os"), 1);
38
38
 
39
39
  // package.json
40
- var version = "3.0.0-beta.20";
40
+ var version = "3.0.0-beta.21";
41
41
 
42
42
  // src/constants.ts
43
43
  var VERSION = version;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "../chunk-7ANM33NO.js";
4
- import "../chunk-BLIEWBVS.js";
3
+ } from "../chunk-2FUEBPD3.js";
4
+ import "../chunk-KQAMO3R4.js";
5
5
  export {
6
6
  raiseEvent
7
7
  };
@@ -106,7 +106,7 @@ var import_axios = __toESM(require("axios"), 1);
106
106
  var import_os = __toESM(require("os"), 1);
107
107
 
108
108
  // package.json
109
- var version = "3.0.0-beta.20";
109
+ var version = "3.0.0-beta.21";
110
110
 
111
111
  // src/constants.ts
112
112
  var VERSION = version;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  log_build_default
3
- } from "../chunk-IZGKMOOO.js";
4
- import "../chunk-7ANM33NO.js";
5
- import "../chunk-BLIEWBVS.js";
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
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-BLIEWBVS.js";
3
+ } from "./chunk-KQAMO3R4.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import axios from "axios";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-SUPFYBDY.js";
3
+ } from "./chunk-Q6KRYWPV.js";
4
4
  import {
5
5
  cleanup,
6
6
  getEventCatalogConfigFile
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "3.0.0-beta.20";
2
+ var version = "3.0.0-beta.21";
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-BLIEWBVS.js";
3
+ } from "./chunk-KQAMO3R4.js";
4
4
 
5
5
  // src/utils/cli-logger.ts
6
6
  import pc from "picocolors";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-7ANM33NO.js";
3
+ } from "./chunk-2FUEBPD3.js";
4
4
  import {
5
5
  getEventCatalogConfigFile,
6
6
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "3.0.0-beta.20";
28
+ var version = "3.0.0-beta.21";
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-BLIEWBVS.js";
3
+ } from "./chunk-KQAMO3R4.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -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.20";
112
+ var version = "3.0.0-beta.21";
113
113
 
114
114
  // src/constants.ts
115
115
  var VERSION = version;
@@ -6,8 +6,8 @@ import {
6
6
  } from "./chunk-PLNJC7NZ.js";
7
7
  import {
8
8
  log_build_default
9
- } from "./chunk-IZGKMOOO.js";
10
- import "./chunk-7ANM33NO.js";
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-VDAAJC4X.js";
25
+ } from "./chunk-HABY2LVH.js";
26
26
  import {
27
27
  logger
28
- } from "./chunk-SUPFYBDY.js";
28
+ } from "./chunk-Q6KRYWPV.js";
29
29
  import {
30
30
  VERSION
31
- } from "./chunk-BLIEWBVS.js";
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.20";
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-VDAAJC4X.js";
4
- import "./chunk-SUPFYBDY.js";
5
- import "./chunk-BLIEWBVS.js";
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
@@ -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 = "3.0.0-beta.20";
39
+ var version = "3.0.0-beta.21";
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-SUPFYBDY.js";
4
- import "../chunk-BLIEWBVS.js";
3
+ } from "../chunk-Q6KRYWPV.js";
4
+ import "../chunk-KQAMO3R4.js";
5
5
  export {
6
6
  logger
7
7
  };
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.20",
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,5 +0,0 @@
1
- ---
2
- id: empty
3
- ---
4
-
5
- <!-- Do not delete this file, required for EC, you an ignore this file -->
@@ -1,8 +0,0 @@
1
- ---
2
- id: empty
3
- name: empty
4
- version: 0.0.1
5
- hidden: true
6
- ---
7
-
8
- <!-- Do not delete this file, required for EC, you an ignore this file -->
@@ -1,8 +0,0 @@
1
- ---
2
- id: empty
3
- name: empty
4
- version: 0.0.1
5
- hidden: true
6
- ---
7
-
8
- <!-- Do not delete this file, required for EC, you an ignore this file -->
@@ -1,8 +0,0 @@
1
- ---
2
- id: empty
3
- name: empty
4
- version: 0.0.1
5
- hidden: true
6
- ---
7
-
8
- <!-- Do not delete this file, required for EC, you an ignore this file -->
@@ -1,8 +0,0 @@
1
- ---
2
- id: empty
3
- name: empty
4
- version: 0.0.1
5
- hidden: true
6
- ---
7
-
8
- <!-- Do not delete this file, required for EC, you an ignore this file -->
@@ -1,11 +0,0 @@
1
- ---
2
- id: empty
3
- steps:
4
- - id: "empty"
5
- title: "empty"
6
- name: empty
7
- version: 0.0.1
8
- hidden: true
9
- ---
10
-
11
- <!-- Do not delete this file, required for EC, you an ignore this file -->
@@ -1,8 +0,0 @@
1
- ---
2
- id: empty
3
- name: empty
4
- version: 0.0.1
5
- hidden: true
6
- ---
7
-
8
- <!-- Do not delete this file, required for EC, you an ignore this file -->
@@ -1,8 +0,0 @@
1
- ---
2
- id: empty
3
- name: empty
4
- version: 0.0.1
5
- hidden: true
6
- ---
7
-
8
- <!-- Do not delete this file, required for EC, you an ignore this file -->
@@ -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 -->