@eventcatalog/core 4.12.0-beta.1 → 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.1";
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-5QRWGO2E.js";
4
- import "../chunk-LU4GFIHH.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.1";
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-TVLJNFDW.js";
3
+ } from "../chunk-5MBYZHYS.js";
4
4
  import "../chunk-ZAZHAVKB.js";
5
- import "../chunk-5QRWGO2E.js";
6
- import "../chunk-LU4GFIHH.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-ISBBAOCD.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-5QRWGO2E.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.1";
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-LU4GFIHH.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-LU4GFIHH.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.1";
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-LU4GFIHH.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.1";
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-TVLJNFDW.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-IUPFEQMU.js";
33
+ } from "./chunk-56TJHDS2.js";
34
34
  import {
35
35
  logger
36
- } from "./chunk-ISBBAOCD.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-5QRWGO2E.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-LU4GFIHH.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.1";
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-IUPFEQMU.js";
4
- import "./chunk-ISBBAOCD.js";
5
- import "./chunk-LU4GFIHH.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.1";
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-ISBBAOCD.js";
4
- import "../chunk-LU4GFIHH.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);
@@ -202,6 +203,15 @@ export default defineConfig({
202
203
  commonjsOptions: {
203
204
  transformMixedEsModules: true,
204
205
  },
206
+ rolldownOptions: {
207
+ onLog(level, log, handler) {
208
+ // Astro marks every MDX content entry with "use astro:head-inject". Rolldown
209
+ // warns that the directive may be dropped when chunking, but Astro never reads
210
+ // it after bundling, so this is one harmless warning per MDX file.
211
+ if (log.code === 'MODULE_LEVEL_DIRECTIVE' && log.message?.includes('use astro:head-inject')) return;
212
+ handler(level, log);
213
+ },
214
+ },
205
215
  },
206
216
  ssr: {
207
217
  noExternal: bundledRuntimeDependencies,
@@ -209,29 +219,7 @@ export default defineConfig({
209
219
  },
210
220
  optimizeDeps: {
211
221
  exclude: [],
212
- // Pre-bundle heavy dependencies so Vite doesn't discover and transform
213
- // them lazily on first request. This significantly reduces initial page
214
- // load time in dev mode.
215
- include: [
216
- 'lucide-react',
217
- '@heroicons/react/24/outline',
218
- '@heroicons/react/24/solid',
219
- '@heroicons/react/20/solid',
220
- '@headlessui/react',
221
- '@nanostores/react',
222
- 'nanostores',
223
- 'react',
224
- 'react-dom',
225
- 'semver',
226
- 'diff',
227
- 'diff2html',
228
- // Used by the ArchitectureGraph embeds — discovering these lazily mid-session
229
- // triggers a re-optimize that 504s every already-loaded chunk
230
- 'd3-force',
231
- 'd3-selection',
232
- 'd3-zoom',
233
- 'd3-drag',
234
- ],
222
+ include: clientDependencies,
235
223
  },
236
224
  },
237
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
+ ];
@@ -234,7 +234,10 @@ export default function eventCatalogRuntime({ projectDirectory, runtimeDirectory
234
234
  for (const route of getPackageRoutes()) injectRoute(route);
235
235
  addWatchFile(path.join(projectDirectory, 'eventcatalog.config.js'));
236
236
  addWatchFile(path.join(projectDirectory, 'eventcatalog.styles.css'));
237
- addWatchFile(path.join(projectDirectory, 'pages/homepage.astro'));
237
+ // The virtual homepage imports the user's Astro file, so Vite handles
238
+ // edits through HMR. Registering it as config restarts Astro on every
239
+ // save and can disconnect in-flight module loads. Adding/removing it
240
+ // is already covered by the custom-pages manifest watcher.
238
241
  updateConfig({
239
242
  vite: {
240
243
  resolve: { alias: getRuntimeAliases({ projectDirectory, runtimeDirectory }) },
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.1",
10
+ "version": "4.12.0-beta.3",
11
11
  "publishConfig": {
12
12
  "access": "public"
13
13
  },