@movk/nuxt-docs 1.11.0 → 1.11.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 (2) hide show
  1. package/nuxt.config.ts +13 -4
  2. package/package.json +6 -6
package/nuxt.config.ts CHANGED
@@ -81,10 +81,13 @@ export default defineNuxtConfig({
81
81
 
82
82
  hooks: {
83
83
  'vite:extendConfig': async (config) => {
84
- // Rewrite optimizeDeps paths for layer architecture
85
- const include = config.optimizeDeps?.include
86
- if (!include) return
84
+ // Ensure optimizeDeps.include exists
85
+ const cfg = config as { optimizeDeps?: { include?: string[] } }
86
+ cfg.optimizeDeps ??= {}
87
+ cfg.optimizeDeps.include ??= []
88
+ const include = cfg.optimizeDeps.include
87
89
 
90
+ // Rewrite optimizeDeps paths for layer architecture
88
91
  const layerPkgs = /^(?:@nuxt\/content|@nuxtjs\/mdc|@nuxt\/a11y) > /
89
92
  include.forEach((id, i) => {
90
93
  if (layerPkgs.test(id)) include[i] = `@movk/nuxt-docs > ${id}`
@@ -92,7 +95,13 @@ export default defineNuxtConfig({
92
95
 
93
96
  include.push(
94
97
  '@movk/nuxt-docs > @nuxt/content > slugify',
95
- '@movk/nuxt-docs > @ai-sdk/gateway > @vercel/oidc'
98
+ '@movk/nuxt-docs > @ai-sdk/gateway > @vercel/oidc',
99
+ // Fix mermaid ESM compatibility issues
100
+ '@movk/nuxt-docs > mermaid',
101
+ '@movk/nuxt-docs > mermaid > dayjs',
102
+ '@movk/nuxt-docs > mermaid > @braintree/sanitize-url',
103
+ '@movk/nuxt-docs > mermaid > d3',
104
+ '@movk/nuxt-docs > mermaid > dompurify'
96
105
  )
97
106
 
98
107
  // WASM plugin support for Shiki
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@movk/nuxt-docs",
3
3
  "type": "module",
4
- "version": "1.11.0",
4
+ "version": "1.11.1",
5
5
  "private": false,
6
6
  "description": "Modern Nuxt 4 documentation theme with auto-generated component docs, AI chat assistant, MCP server, and complete developer experience optimization.",
7
7
  "author": "YiXuan <mhaibaraai@gmail.com>",
@@ -29,11 +29,11 @@
29
29
  "README.md"
30
30
  ],
31
31
  "dependencies": {
32
- "@ai-sdk/gateway": "^3.0.29",
33
- "@ai-sdk/mcp": "^1.0.16",
34
- "@ai-sdk/vue": "^3.0.64",
32
+ "@ai-sdk/gateway": "^3.0.32",
33
+ "@ai-sdk/mcp": "^1.0.18",
34
+ "@ai-sdk/vue": "^3.0.67",
35
35
  "@iconify-json/lucide": "^1.2.87",
36
- "@iconify-json/simple-icons": "^1.2.68",
36
+ "@iconify-json/simple-icons": "^1.2.69",
37
37
  "@iconify-json/vscode-icons": "^1.2.40",
38
38
  "@movk/core": "^1.1.0",
39
39
  "@nuxt/a11y": "^1.0.0-alpha.1",
@@ -49,7 +49,7 @@
49
49
  "@vercel/speed-insights": "^1.3.1",
50
50
  "@vueuse/core": "^14.2.0",
51
51
  "@vueuse/nuxt": "^14.2.0",
52
- "ai": "^6.0.64",
52
+ "ai": "^6.0.67",
53
53
  "defu": "^6.1.4",
54
54
  "dompurify": "^3.3.1",
55
55
  "exsolve": "^1.0.8",