@eventcatalog/core 4.12.0-beta.2 → 4.12.0-beta.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.
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(analytics_exports);
36
36
  var import_os = __toESM(require("os"), 1);
37
37
 
38
38
  // package.json
39
- var version = "4.12.0-beta.2";
39
+ var version = "4.12.0-beta.3";
40
40
 
41
41
  // src/constants.ts
42
42
  var VERSION = version;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "../chunk-TI3Y63NZ.js";
4
- import "../chunk-SETCQKS3.js";
3
+ } from "../chunk-GGPT4I3K.js";
4
+ import "../chunk-AVRFMQJX.js";
5
5
  export {
6
6
  raiseEvent
7
7
  };
@@ -146,7 +146,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
146
146
  var import_os = __toESM(require("os"), 1);
147
147
 
148
148
  // package.json
149
- var version = "4.12.0-beta.2";
149
+ var version = "4.12.0-beta.3";
150
150
 
151
151
  // src/constants.ts
152
152
  var VERSION = version;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  log_build_default
3
- } from "../chunk-ZER6HESL.js";
3
+ } from "../chunk-5MBYZHYS.js";
4
4
  import "../chunk-ZAZHAVKB.js";
5
- import "../chunk-TI3Y63NZ.js";
6
- import "../chunk-SETCQKS3.js";
5
+ import "../chunk-GGPT4I3K.js";
6
+ import "../chunk-AVRFMQJX.js";
7
7
  import "../chunk-JE6RX7SJ.js";
8
8
  export {
9
9
  log_build_default as default
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-FZEJ62MJ.js";
3
+ } from "./chunk-TAGBLT3L.js";
4
4
  import {
5
5
  cleanup,
6
6
  getEventCatalogConfigFile
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-ZAZHAVKB.js";
6
6
  import {
7
7
  raiseEvent
8
- } from "./chunk-TI3Y63NZ.js";
8
+ } from "./chunk-GGPT4I3K.js";
9
9
  import {
10
10
  getEventCatalogConfigFile,
11
11
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "4.12.0-beta.2";
2
+ var version = "4.12.0-beta.3";
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-SETCQKS3.js";
3
+ } from "./chunk-AVRFMQJX.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import os from "os";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-SETCQKS3.js";
3
+ } from "./chunk-AVRFMQJX.js";
4
4
 
5
5
  // src/utils/cli-logger.ts
6
6
  import pc from "picocolors";
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "4.12.0-beta.2";
28
+ var version = "4.12.0-beta.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-SETCQKS3.js";
3
+ } from "./chunk-AVRFMQJX.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -151,7 +151,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
151
151
  var import_picocolors = __toESM(require("picocolors"), 1);
152
152
 
153
153
  // package.json
154
- var version = "4.12.0-beta.2";
154
+ var version = "4.12.0-beta.3";
155
155
 
156
156
  // src/constants.ts
157
157
  var VERSION = version;
@@ -4,7 +4,7 @@ import {
4
4
  import "./chunk-CA4U2JP7.js";
5
5
  import {
6
6
  log_build_default
7
- } from "./chunk-ZER6HESL.js";
7
+ } from "./chunk-5MBYZHYS.js";
8
8
  import "./chunk-ZAZHAVKB.js";
9
9
  import {
10
10
  FederationConflictError,
@@ -30,10 +30,10 @@ import {
30
30
  } from "./chunk-3SJDIENM.js";
31
31
  import {
32
32
  generate
33
- } from "./chunk-C326DCDM.js";
33
+ } from "./chunk-56TJHDS2.js";
34
34
  import {
35
35
  logger
36
- } from "./chunk-FZEJ62MJ.js";
36
+ } from "./chunk-TAGBLT3L.js";
37
37
  import {
38
38
  resolve_catalog_dependencies_default
39
39
  } from "./chunk-EEZXGNF6.js";
@@ -47,7 +47,7 @@ import {
47
47
  import {
48
48
  watch
49
49
  } from "./chunk-U63GDPPY.js";
50
- import "./chunk-TI3Y63NZ.js";
50
+ import "./chunk-GGPT4I3K.js";
51
51
  import {
52
52
  getAstroConfigPath
53
53
  } from "./chunk-VIJJ7JKH.js";
@@ -62,7 +62,7 @@ import {
62
62
  } from "./chunk-SAN4U2WU.js";
63
63
  import {
64
64
  VERSION
65
- } from "./chunk-SETCQKS3.js";
65
+ } from "./chunk-AVRFMQJX.js";
66
66
  import {
67
67
  getEventCatalogConfigFile,
68
68
  verifyRequiredFieldsAreInCatalogConfigFile
package/dist/generate.cjs CHANGED
@@ -112,7 +112,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
112
112
  var import_picocolors = __toESM(require("picocolors"), 1);
113
113
 
114
114
  // package.json
115
- var version = "4.12.0-beta.2";
115
+ var version = "4.12.0-beta.3";
116
116
 
117
117
  // src/constants.ts
118
118
  var VERSION = version;
package/dist/generate.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generate
3
- } from "./chunk-C326DCDM.js";
4
- import "./chunk-FZEJ62MJ.js";
5
- import "./chunk-SETCQKS3.js";
3
+ } from "./chunk-56TJHDS2.js";
4
+ import "./chunk-TAGBLT3L.js";
5
+ import "./chunk-AVRFMQJX.js";
6
6
  import "./chunk-JE6RX7SJ.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 = "4.12.0-beta.2";
39
+ var version = "4.12.0-beta.3";
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-FZEJ62MJ.js";
4
- import "../chunk-SETCQKS3.js";
3
+ } from "../chunk-TAGBLT3L.js";
4
+ import "../chunk-AVRFMQJX.js";
5
5
  export {
6
6
  logger
7
7
  };
@@ -34,6 +34,7 @@ import preprocessExpressiveCodeConfig from './integrations/expressive-code-confi
34
34
  import catalogAssets from './integrations/catalog-assets.mjs';
35
35
  import runtimeDependencies from './integrations/runtime-dependencies.mjs';
36
36
  import { getRuntimePaths } from './integrations/runtime-paths.mjs';
37
+ import { clientDependencies } from './integrations/client-dependencies.mjs';
37
38
 
38
39
  const projectDirectory = process.env.PROJECT_DIR || process.cwd();
39
40
  const { runtimeDirectory } = getRuntimePaths(projectDirectory, process.env.CATALOG_DIR);
@@ -218,29 +219,7 @@ export default defineConfig({
218
219
  },
219
220
  optimizeDeps: {
220
221
  exclude: [],
221
- // Pre-bundle heavy dependencies so Vite doesn't discover and transform
222
- // them lazily on first request. This significantly reduces initial page
223
- // load time in dev mode.
224
- include: [
225
- 'lucide-react',
226
- '@heroicons/react/24/outline',
227
- '@heroicons/react/24/solid',
228
- '@heroicons/react/20/solid',
229
- '@headlessui/react',
230
- '@nanostores/react',
231
- 'nanostores',
232
- 'react',
233
- 'react-dom',
234
- 'semver',
235
- 'diff',
236
- 'diff2html',
237
- // Used by the ArchitectureGraph embeds — discovering these lazily mid-session
238
- // triggers a re-optimize that 504s every already-loaded chunk
239
- 'd3-force',
240
- 'd3-selection',
241
- 'd3-zoom',
242
- 'd3-drag',
243
- ],
222
+ include: clientDependencies,
244
223
  },
245
224
  },
246
225
  });
@@ -0,0 +1,27 @@
1
+ // Core's browser components live in node_modules in an installed catalog. Vite
2
+ // skips discovering dependencies imported from there, so explicitly pre-bundle
3
+ // the graph and chat entrypoints, including their nested CommonJS dependencies.
4
+ export const clientDependencies = [
5
+ '@eventcatalog/visualiser',
6
+ '@xyflow/react',
7
+ '@ai-sdk/react',
8
+ 'ai',
9
+ 'lucide-react',
10
+ '@heroicons/react/24/outline',
11
+ '@heroicons/react/24/solid',
12
+ '@heroicons/react/20/solid',
13
+ '@headlessui/react',
14
+ '@nanostores/react',
15
+ 'nanostores',
16
+ 'react',
17
+ 'react-dom',
18
+ 'semver',
19
+ 'diff',
20
+ 'diff2html',
21
+ // ArchitectureGraph embeds also need these ready before the first request.
22
+ // Discovering them mid-session can invalidate already-loaded chunks.
23
+ 'd3-force',
24
+ 'd3-selection',
25
+ 'd3-zoom',
26
+ 'd3-drag',
27
+ ];
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "license": "SEE LICENSE IN LICENSE",
9
9
  "type": "module",
10
- "version": "4.12.0-beta.2",
10
+ "version": "4.12.0-beta.3",
11
11
  "publishConfig": {
12
12
  "access": "public"
13
13
  },
@@ -133,9 +133,9 @@
133
133
  "update-notifier": "^7.3.1",
134
134
  "uuid": "^11.1.1",
135
135
  "zod": "^4.3.6",
136
- "@eventcatalog/sdk": "2.29.1",
137
136
  "@eventcatalog/linter": "1.1.20",
138
- "@eventcatalog/visualiser": "^4.1.4"
137
+ "@eventcatalog/visualiser": "^4.1.4",
138
+ "@eventcatalog/sdk": "2.29.1"
139
139
  },
140
140
  "devDependencies": {
141
141
  "@astrojs/check": "^0.9.10",