@eventcatalog/core 2.16.6 → 2.17.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.
Files changed (33) hide show
  1. package/dist/analytics/analytics.cjs +1 -1
  2. package/dist/analytics/analytics.js +2 -2
  3. package/dist/analytics/log-build.cjs +1 -1
  4. package/dist/analytics/log-build.js +3 -3
  5. package/dist/catalog-to-astro-content-directory.cjs +1 -1
  6. package/dist/{chunk-GY2IBBDA.js → chunk-2SREN5TH.js} +1 -1
  7. package/dist/{chunk-UQCAHPQ5.js → chunk-7UY64I6H.js} +1 -1
  8. package/dist/{chunk-WBHGC6OB.js → chunk-Z6B4BKLB.js} +1 -1
  9. package/dist/constants.cjs +1 -1
  10. package/dist/constants.js +1 -1
  11. package/dist/eventcatalog.cjs +6 -9
  12. package/dist/eventcatalog.js +7 -10
  13. package/eventcatalog/astro.config.mjs +3 -1
  14. package/eventcatalog/package-lock.json +16537 -0
  15. package/eventcatalog/package.json +8 -7
  16. package/eventcatalog/src/components/SideBars/ChannelSideBar.astro +3 -2
  17. package/eventcatalog/src/components/SideBars/DomainSideBar.astro +2 -1
  18. package/eventcatalog/src/components/SideBars/MessageSideBar.astro +2 -1
  19. package/eventcatalog/src/components/SideBars/ServiceSideBar.astro +2 -1
  20. package/eventcatalog/src/pages/docs/teams/[id]/index.astro +2 -2
  21. package/eventcatalog/src/pages/docs/users/[id]/index.astro +1 -1
  22. package/eventcatalog/src/utils/channels.ts +1 -1
  23. package/eventcatalog/src/utils/collections/changelogs.ts +1 -1
  24. package/eventcatalog/src/utils/collections/domains.ts +1 -1
  25. package/eventcatalog/src/utils/collections/flows.ts +1 -1
  26. package/eventcatalog/src/utils/collections/services.ts +1 -1
  27. package/eventcatalog/src/utils/commands.ts +1 -1
  28. package/eventcatalog/src/utils/events.ts +1 -1
  29. package/eventcatalog/src/utils/node-graphs/utils/utils.ts +22 -9
  30. package/eventcatalog/src/utils/queries.ts +1 -1
  31. package/eventcatalog/src/utils/teams.ts +4 -4
  32. package/eventcatalog/src/utils/users.ts +6 -6
  33. package/package.json +9 -8
@@ -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.16.6";
40
+ var version = "2.17.1";
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-UQCAHPQ5.js";
4
- import "../chunk-GY2IBBDA.js";
3
+ } from "../chunk-7UY64I6H.js";
4
+ import "../chunk-2SREN5TH.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.16.6";
109
+ var version = "2.17.1";
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-WBHGC6OB.js";
4
- import "../chunk-UQCAHPQ5.js";
5
- import "../chunk-GY2IBBDA.js";
3
+ } from "../chunk-Z6B4BKLB.js";
4
+ import "../chunk-7UY64I6H.js";
5
+ import "../chunk-2SREN5TH.js";
6
6
  import "../chunk-E7TXTI7G.js";
7
7
  export {
8
8
  log_build_default as default
@@ -35,7 +35,7 @@ __export(catalog_to_astro_content_directory_exports, {
35
35
  module.exports = __toCommonJS(catalog_to_astro_content_directory_exports);
36
36
 
37
37
  // node_modules/tsup/assets/cjs_shims.js
38
- var getImportMetaUrl = () => typeof document === "undefined" ? new URL("file:" + __filename).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
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
 
41
41
  // src/catalog-to-astro-content-directory.js
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "2.16.6";
2
+ var version = "2.17.1";
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-GY2IBBDA.js";
3
+ } from "./chunk-2SREN5TH.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import axios from "axios";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-UQCAHPQ5.js";
3
+ } from "./chunk-7UY64I6H.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 = "2.16.6";
28
+ var version = "2.17.1";
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-GY2IBBDA.js";
3
+ } from "./chunk-2SREN5TH.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -23,7 +23,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
23
23
  ));
24
24
 
25
25
  // node_modules/tsup/assets/cjs_shims.js
26
- var getImportMetaUrl = () => typeof document === "undefined" ? new URL("file:" + __filename).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
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
 
29
29
  // src/eventcatalog.ts
@@ -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.16.6";
164
+ var version = "2.17.1";
165
165
 
166
166
  // src/constants.ts
167
167
  var VERSION = version;
@@ -535,13 +535,10 @@ program.command("build").description("Run build of EventCatalog").action(async (
535
535
  });
536
536
  });
537
537
  var previewCatalog = ({ command }) => {
538
- (0, import_node_child_process.execSync)(
539
- `cross-env PROJECT_DIR='${dir}' CATALOG_DIR='${core}' npx astro preview --root ${dir} --port 3000 ${command.args.join(" ").trim()}`,
540
- {
541
- cwd: core,
542
- stdio: "inherit"
543
- }
544
- );
538
+ (0, import_node_child_process.execSync)(`cross-env PROJECT_DIR='${dir}' CATALOG_DIR='${core}' npx astro preview ${command.args.join(" ").trim()}`, {
539
+ cwd: core,
540
+ stdio: "inherit"
541
+ });
545
542
  };
546
543
  program.command("preview").description("Serves the contents of your eventcatalog build directory").action((options, command) => {
547
544
  console.log("Starting preview of your build...");
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  log_build_default
3
- } from "./chunk-WBHGC6OB.js";
4
- import "./chunk-UQCAHPQ5.js";
3
+ } from "./chunk-Z6B4BKLB.js";
4
+ import "./chunk-7UY64I6H.js";
5
5
  import {
6
6
  catalogToAstro
7
7
  } from "./chunk-55YPRY5U.js";
8
8
  import {
9
9
  VERSION
10
- } from "./chunk-GY2IBBDA.js";
10
+ } from "./chunk-2SREN5TH.js";
11
11
  import {
12
12
  generate
13
13
  } from "./chunk-YEQVKHST.js";
@@ -94,13 +94,10 @@ program.command("build").description("Run build of EventCatalog").action(async (
94
94
  });
95
95
  });
96
96
  var previewCatalog = ({ command }) => {
97
- execSync(
98
- `cross-env PROJECT_DIR='${dir}' CATALOG_DIR='${core}' npx astro preview --root ${dir} --port 3000 ${command.args.join(" ").trim()}`,
99
- {
100
- cwd: core,
101
- stdio: "inherit"
102
- }
103
- );
97
+ execSync(`cross-env PROJECT_DIR='${dir}' CATALOG_DIR='${core}' npx astro preview ${command.args.join(" ").trim()}`, {
98
+ cwd: core,
99
+ stdio: "inherit"
100
+ });
104
101
  };
105
102
  program.command("preview").description("Serves the contents of your eventcatalog build directory").action((options, command) => {
106
103
  console.log("Starting preview of your build...");
@@ -8,6 +8,8 @@ import { join } from 'node:path';
8
8
  import remarkDirective from 'remark-directive';
9
9
  import { remarkDirectives } from "./src/remark-plugins/directives"
10
10
 
11
+ import remarkComment from 'remark-comment'
12
+
11
13
  /** @type {import('bin/eventcatalog.config').Config} */
12
14
  import config from './eventcatalog.config';
13
15
  import expressiveCode from 'astro-expressive-code';
@@ -44,7 +46,7 @@ export default defineConfig({
44
46
  mdx({
45
47
  // https://docs.astro.build/en/guides/integrations-guide/mdx/#optimize
46
48
  optimize: config.mdxOptimize || false,
47
- remarkPlugins: [remarkDirective, remarkDirectives, mermaid],
49
+ remarkPlugins: [remarkDirective, remarkDirectives, remarkComment, mermaid],
48
50
  gfm: false,
49
51
  }),
50
52
  pagefind(),