@eventcatalog/core 2.0.24 → 2.0.25

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @eventcatalog/core
2
2
 
3
+ ## 2.0.25
4
+
5
+ ### Patch Changes
6
+
7
+ - 109ce19: feat(core): added optimize flag to make eventcatalog work with large catalogs
8
+
3
9
  ## 2.0.24
4
10
 
5
11
  ### Patch Changes
package/astro.config.mjs CHANGED
@@ -2,16 +2,12 @@ import { defineConfig } from 'astro/config';
2
2
  import tailwind from '@astrojs/tailwind';
3
3
  import mdx from '@astrojs/mdx';
4
4
  import react from '@astrojs/react';
5
- // import { rehypeHeadingIds } from '@astrojs/markdown-remark';
6
- // import rehypeMinifyHtml from 'rehype-minify-html';
7
- import rehypeSlug from 'rehype-slug';
8
- import remarkGFM from 'remark-gfm';
9
5
  import pagefind from "astro-pagefind";
10
6
  import { mermaid } from "./src/remark-plugins/mermaid"
11
7
 
12
-
13
- import expressiveCode from 'astro-expressive-code';
8
+ /** @type {import('bin/eventcatalog.config').Config} */
14
9
  import config from './eventcatalog.config';
10
+ import expressiveCode from 'astro-expressive-code';
15
11
 
16
12
  // https://astro.build/config
17
13
  export default defineConfig({
@@ -30,27 +26,13 @@ export default defineConfig({
30
26
  react(),
31
27
  tailwind(),
32
28
  expressiveCode({
33
- // themes: ['github-light'],
34
29
  themes: ['github-light'],
35
30
  }),
36
31
 
37
32
  mdx({
38
- remarkPlugins: [
39
- // Add ids to headings
40
- // rehypeSlug,
41
- // remarkGFM
42
- ],
43
- // rehypePlugins: [rehypeMinifyHtml],
44
- // syntaxHighlight: 'shiki',
45
- // shikiConfig: {
46
- // theme: 'github-light',
47
- // langs: ['yaml']
48
- // },
49
-
33
+ // https://docs.astro.build/en/guides/integrations-guide/mdx/#optimize
34
+ optimize: config.mdxOptimize || false,
50
35
  remarkPlugins: [mermaid],
51
- // remarkRehype: {
52
- // footnoteLabel: 'Footnotes',
53
- // },
54
36
  gfm: false,
55
37
  }),
56
38
  pagefind(),
@@ -15,6 +15,7 @@ interface Config {
15
15
  src: string;
16
16
  text?: string;
17
17
  };
18
+ mdxOptimize?: boolean;
18
19
  docs: {
19
20
  sidebar: {
20
21
  showPageHeadings: true;
@@ -15,6 +15,7 @@ interface Config {
15
15
  src: string;
16
16
  text?: string;
17
17
  };
18
+ mdxOptimize?: boolean;
18
19
  docs: {
19
20
  sidebar: {
20
21
  showPageHeadings: true;
@@ -16,6 +16,7 @@ export interface Config {
16
16
  src: string;
17
17
  text?: string;
18
18
  };
19
+ mdxOptimize?: boolean;
19
20
  docs: {
20
21
  sidebar: {
21
22
  showPageHeadings: true;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@eventcatalog/core",
3
3
  "type": "module",
4
- "version": "2.0.24",
4
+ "version": "2.0.25",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },