@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.
- 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/{chunk-IUPFEQMU.js → chunk-56TJHDS2.js} +1 -1
- package/dist/{chunk-TVLJNFDW.js → chunk-5MBYZHYS.js} +1 -1
- package/dist/{chunk-LU4GFIHH.js → chunk-AVRFMQJX.js} +1 -1
- package/dist/{chunk-5QRWGO2E.js → chunk-GGPT4I3K.js} +1 -1
- package/dist/{chunk-ISBBAOCD.js → chunk-TAGBLT3L.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +1 -1
- package/dist/eventcatalog.js +5 -5
- package/dist/generate.cjs +1 -1
- package/dist/generate.js +3 -3
- package/dist/utils/cli-logger.cjs +1 -1
- package/dist/utils/cli-logger.js +2 -2
- package/eventcatalog/astro.config.mjs +11 -23
- package/eventcatalog/integrations/client-dependencies.mjs +27 -0
- package/eventcatalog/integrations/eventcatalog-runtime.mjs +4 -1
- package/package.json +1 -1
|
@@ -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.
|
|
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-
|
|
3
|
+
} from "../chunk-5MBYZHYS.js";
|
|
4
4
|
import "../chunk-ZAZHAVKB.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
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
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
|
@@ -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.
|
|
154
|
+
var version = "4.12.0-beta.3";
|
|
155
155
|
|
|
156
156
|
// src/constants.ts
|
|
157
157
|
var VERSION = version;
|
package/dist/eventcatalog.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import "./chunk-CA4U2JP7.js";
|
|
5
5
|
import {
|
|
6
6
|
log_build_default
|
|
7
|
-
} from "./chunk-
|
|
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-
|
|
33
|
+
} from "./chunk-56TJHDS2.js";
|
|
34
34
|
import {
|
|
35
35
|
logger
|
|
36
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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.
|
|
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-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
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
|
package/dist/utils/cli-logger.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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 }) },
|