@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 +2 -2
- 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/catalog-to-astro-content-directory.cjs +1 -1
- package/dist/{chunk-HICY5YZU.js → chunk-GOZSBK4C.js} +1 -1
- package/dist/{chunk-G3WSEVOS.js → chunk-QWOWEO4Q.js} +1 -1
- package/dist/{chunk-BKWJZFAQ.js → chunk-XVQA6PHI.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +2 -2
- package/dist/eventcatalog.js +3 -3
- package/eventcatalog/src/utils/collections/changelogs.ts +1 -1
- package/eventcatalog/src/utils/messages.ts +9 -20
- package/package.json +23 -22
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 `
|
|
174
|
-
1. Run the command `
|
|
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
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
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
|
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
|
@@ -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.
|
|
164
|
+
var version = "2.19.3";
|
|
165
165
|
|
|
166
166
|
// src/constants.ts
|
|
167
167
|
var VERSION = version;
|
package/dist/eventcatalog.js
CHANGED
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-SHCMAL37.js";
|
|
4
4
|
import {
|
|
5
5
|
log_build_default
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
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-
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
21
|
+
const [commands, events, queries] = await Promise.all([
|
|
22
|
+
getCommands({ getAllVersions }),
|
|
23
|
+
getEvents({ getAllVersions }),
|
|
24
|
+
getQueries({ getAllVersions }),
|
|
25
|
+
]);
|
|
31
26
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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.
|
|
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
|
+
}
|