@scalar/nuxt 0.4.35 → 0.5.0

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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scalar/nuxt",
3
3
  "configKey": "scalar",
4
- "version": "0.4.35",
4
+ "version": "0.5.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
7
7
  "unbuild": "unknown"
package/dist/module.mjs CHANGED
@@ -27,6 +27,18 @@ const module = defineNuxtModule({
27
27
  _nuxt.options.imports.transform.exclude ||= [];
28
28
  _nuxt.options.imports.transform.exclude.push(/scalar/);
29
29
  _nuxt.options.vite ||= {};
30
+ _nuxt.options.vite.optimizeDeps ||= {};
31
+ _nuxt.options.vite.optimizeDeps.include ||= [];
32
+ _nuxt.options.vite.optimizeDeps.include.push(
33
+ "@scalar/nuxt > @scalar/api-reference",
34
+ "@scalar/nuxt > jsonpointer",
35
+ "@scalar/nuxt > ajv-draft-04",
36
+ "@scalar/nuxt > ajv-formats",
37
+ "@scalar/nuxt > ajv",
38
+ "@scalar/nuxt > ajv-draft-04 > ajv",
39
+ "@scalar/nuxt > ajv-formats > ajv",
40
+ "@scalar/nuxt > whatwg-mimetype"
41
+ );
30
42
  _nuxt.options.vite.ssr ||= {};
31
43
  if (Array.isArray(_nuxt.options.vite.ssr.noExternal)) {
32
44
  _nuxt.options.vite.ssr.noExternal.push("ajv-draft-04", "ajv-formats", "ajv", "jsonpointer", "whatwg-mimetype");
@@ -109,7 +109,7 @@ if (typeof document.value === "string") {
109
109
  throw new Error("Document must be a valid OpenAPI object");
110
110
  }
111
111
  }
112
- store.addDocumentSync({
112
+ store.addDocument({
113
113
  name: route.name,
114
114
  document: parsedDocument
115
115
  });
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "testing",
21
21
  "vue"
22
22
  ],
23
- "version": "0.4.35",
23
+ "version": "0.5.0",
24
24
  "engines": {
25
25
  "node": ">=20"
26
26
  },
@@ -39,11 +39,11 @@
39
39
  "dependencies": {
40
40
  "@nuxt/kit": "^4.0.0",
41
41
  "vue": "^3.5.17",
42
+ "@scalar/api-reference": "1.34.0",
42
43
  "@scalar/types": "0.2.11",
43
- "@scalar/api-client": "2.5.20",
44
- "@scalar/api-reference": "1.33.0",
44
+ "@scalar/api-client": "2.5.21",
45
45
  "@scalar/use-hooks": "0.2.4",
46
- "@scalar/workspace-store": "0.11.0"
46
+ "@scalar/workspace-store": "0.12.0"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@nuxt/devtools": "^2.6.2",