@eventcatalog/core 2.19.1 → 2.19.3

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/README.md CHANGED
@@ -170,8 +170,8 @@ You can find the [contributing guidelines here](https://eventcatalog.dev/docs/co
170
170
  ## Running the project locally
171
171
 
172
172
  1. Clone the repo
173
- 1. Install required dependencies `npm run i`
174
- 1. Run the command `npm run start:catalog`
173
+ 1. Install required dependencies `pnpm install`
174
+ 1. Run the command `pnpm run start:catalog`
175
175
  - This will start the catalog found in `/examples` repo, locally on your machine
176
176
 
177
177
  [license-badge]: https://img.shields.io/github/license/event-catalog/eventcatalog.svg?color=yellow
@@ -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 = "2.19.1";
40
+ var version = "2.19.3";
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-BKWJZFAQ.js";
4
- import "../chunk-HICY5YZU.js";
3
+ } from "../chunk-XVQA6PHI.js";
4
+ import "../chunk-GOZSBK4C.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 = "2.19.1";
109
+ var version = "2.19.3";
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-G3WSEVOS.js";
4
- import "../chunk-BKWJZFAQ.js";
5
- import "../chunk-HICY5YZU.js";
3
+ } from "../chunk-QWOWEO4Q.js";
4
+ import "../chunk-XVQA6PHI.js";
5
+ import "../chunk-GOZSBK4C.js";
6
6
  import "../chunk-E7TXTI7G.js";
7
7
  export {
8
8
  log_build_default as default
@@ -34,7 +34,7 @@ __export(catalog_to_astro_content_directory_exports, {
34
34
  });
35
35
  module.exports = __toCommonJS(catalog_to_astro_content_directory_exports);
36
36
 
37
- // node_modules/tsup/assets/cjs_shims.js
37
+ // node_modules/.pnpm/tsup@8.3.5_jiti@1.21.7_postcss@8.4.49_typescript@5.7.3_yaml@2.7.0/node_modules/tsup/assets/cjs_shims.js
38
38
  var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
39
39
  var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
40
40
 
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "2.19.1";
2
+ var version = "2.19.3";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-BKWJZFAQ.js";
3
+ } from "./chunk-XVQA6PHI.js";
4
4
  import {
5
5
  getEventCatalogConfigFile,
6
6
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-HICY5YZU.js";
3
+ } from "./chunk-GOZSBK4C.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import axios from "axios";
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "2.19.1";
28
+ var version = "2.19.3";
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-HICY5YZU.js";
3
+ } from "./chunk-GOZSBK4C.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -22,7 +22,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
22
22
  mod
23
23
  ));
24
24
 
25
- // node_modules/tsup/assets/cjs_shims.js
25
+ // node_modules/.pnpm/tsup@8.3.5_jiti@1.21.7_postcss@8.4.49_typescript@5.7.3_yaml@2.7.0/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
 
@@ -161,7 +161,7 @@ var import_axios = __toESM(require("axios"), 1);
161
161
  var import_os = __toESM(require("os"), 1);
162
162
 
163
163
  // package.json
164
- var version = "2.19.1";
164
+ var version = "2.19.3";
165
165
 
166
166
  // src/constants.ts
167
167
  var VERSION = version;
@@ -3,14 +3,14 @@ import {
3
3
  } from "./chunk-SHCMAL37.js";
4
4
  import {
5
5
  log_build_default
6
- } from "./chunk-G3WSEVOS.js";
7
- import "./chunk-BKWJZFAQ.js";
6
+ } from "./chunk-QWOWEO4Q.js";
7
+ import "./chunk-XVQA6PHI.js";
8
8
  import {
9
9
  catalogToAstro
10
10
  } from "./chunk-WF34R5UT.js";
11
11
  import {
12
12
  VERSION
13
- } from "./chunk-HICY5YZU.js";
13
+ } from "./chunk-GOZSBK4C.js";
14
14
  import {
15
15
  generate
16
16
  } from "./chunk-YEQVKHST.js";
@@ -8,7 +8,7 @@ export const getChangeLogs = async (item: CollectionEntry<CollectionTypes>): Pro
8
8
 
9
9
  // Get all logs for collection type and filter by given collection
10
10
  const logs = await getCollection('changelogs', (log) => {
11
- return log.id.includes(`${collection}/`) && log.slug.includes(slug);
11
+ return log.id.includes(`${collection}/`) && log.slug.includes('/' + slug + '/');
12
12
  });
13
13
 
14
14
  const hydratedLogs = logs.map((log) => {
@@ -16,28 +16,17 @@ type Messages = {
16
16
  queries: CollectionEntry<'queries'>[];
17
17
  };
18
18
 
19
- // Cache for build time
20
- let cachedMessages: Messages = {
21
- commands: [],
22
- events: [],
23
- queries: [],
24
- };
25
-
26
19
  // Main function that uses the imported functions
27
20
  export const getMessages = async ({ getAllVersions = true }: Props = {}): Promise<Messages> => {
28
- if (cachedMessages.commands.length > 0) {
29
- return cachedMessages;
30
- }
21
+ const [commands, events, queries] = await Promise.all([
22
+ getCommands({ getAllVersions }),
23
+ getEvents({ getAllVersions }),
24
+ getQueries({ getAllVersions }),
25
+ ]);
31
26
 
32
- const commands = await getCommands({ getAllVersions });
33
- const events = await getEvents({ getAllVersions });
34
- const queries = await getQueries({ getAllVersions });
35
-
36
- cachedMessages = {
37
- commands: commands as CollectionEntry<'commands'>[],
38
- events: events as CollectionEntry<'events'>[],
39
- queries: queries as CollectionEntry<'queries'>[],
27
+ return {
28
+ commands,
29
+ events,
30
+ queries,
40
31
  };
41
-
42
- return cachedMessages;
43
32
  };
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": "2.19.1",
9
+ "version": "2.19.3",
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },
@@ -20,32 +20,13 @@
20
20
  "dist/",
21
21
  "default-files-for-collections/"
22
22
  ],
23
- "scripts": {
24
- "dev": "astro dev",
25
- "build:bin": "tsup",
26
- "prepublishOnly": "npm run build:bin",
27
- "test": "vitest",
28
- "test:ci": "node scripts/ci/test.js",
29
- "test:e2e": "playwright test",
30
- "start": "astro dev",
31
- "build": "astro build",
32
- "build:cd": "node scripts/build-ci.js",
33
- "preview": "astro preview",
34
- "astro": "astro",
35
- "start:catalog": "node scripts/start-catalog-locally.js",
36
- "verify-build:catalog": "rimraf dist && npm run build:cd",
37
- "changeset": "changeset",
38
- "generate": "npm run build:bin && npx . generate",
39
- "release": "changeset publish",
40
- "format": "prettier --config .prettierrc --write \"**/*.{js,jsx,ts,tsx,json,astro}\"",
41
- "format:diff": "prettier --config .prettierrc --list-different \"**/*.{js,jsx,ts,tsx,json,astro}\""
42
- },
43
23
  "dependencies": {
44
24
  "@astrojs/markdown-remark": "^6.0.1",
45
25
  "@astrojs/mdx": "^4.0.5",
46
26
  "@astrojs/react": "^4.1.3",
47
27
  "@astrojs/tailwind": "^5.1.4",
48
28
  "@asyncapi/avro-schema-parser": "^3.0.24",
29
+ "@asyncapi/parser": "^3.4.0",
49
30
  "@asyncapi/react-component": "^2.4.3",
50
31
  "@headlessui/react": "^2.0.3",
51
32
  "@heroicons/react": "^2.1.3",
@@ -76,6 +57,7 @@
76
57
  "lucide-react": "^0.453.0",
77
58
  "marked": "^15.0.6",
78
59
  "mermaid": "^11.4.1",
60
+ "prismjs": "^1.29.0",
79
61
  "rapidoc": "^9.3.4",
80
62
  "react": "^18.3.1",
81
63
  "react-dom": "^18.3.1",
@@ -108,5 +90,24 @@
108
90
  "tsup": "^8.1.0",
109
91
  "vite-tsconfig-paths": "^4.3.2",
110
92
  "vitest": "2.1.6"
93
+ },
94
+ "scripts": {
95
+ "dev": "astro dev",
96
+ "build:bin": "tsup",
97
+ "test": "vitest",
98
+ "test:ci": "node scripts/ci/test.js",
99
+ "test:e2e": "playwright test",
100
+ "start": "astro dev",
101
+ "build": "astro build",
102
+ "build:cd": "node scripts/build-ci.js",
103
+ "preview": "astro preview",
104
+ "astro": "astro",
105
+ "start:catalog": "node scripts/start-catalog-locally.js",
106
+ "verify-build:catalog": "rimraf dist && pnpm run build:cd",
107
+ "changeset": "changeset",
108
+ "generate": "pnpm run build:bin && npx . generate",
109
+ "release": "changeset publish",
110
+ "format": "prettier --config .prettierrc --write \"**/*.{js,jsx,ts,tsx,json,astro}\"",
111
+ "format:diff": "prettier --config .prettierrc --list-different \"**/*.{js,jsx,ts,tsx,json,astro}\""
111
112
  }
112
- }
113
+ }