@nuxt/kit 3.12.3 → 3.12.4

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/README.md CHANGED
@@ -34,7 +34,7 @@ It provides a number of features that make it easy to build fast, SEO-friendly,
34
34
  - 🏠 [Local Development](#local-development)
35
35
  - ⛰️ [Nuxt 2](#nuxt-2)
36
36
  - 🛟 [Professional Support](#professional-support)
37
- - 🔗 [Follow us](#follow-us)
37
+ - 🔗 [Follow Us](#follow-us)
38
38
  - ⚖️ [License](#license)
39
39
 
40
40
  ---
@@ -106,7 +106,7 @@ Follow the docs to [Set Up Your Local Development Environment](https://nuxt.com/
106
106
  - Technical audit & consulting: [Nuxt Experts](https://nuxt.com/enterprise/support)
107
107
  - Custom development & more: [Nuxt Agencies Partners](https://nuxt.com/enterprise/agencies)
108
108
 
109
- ## <a name="follow-us">🔗 Follow us</a>
109
+ ## <a name="follow-us">🔗 Follow Us</a>
110
110
 
111
111
  <p valign="center">
112
112
  <a href="https://chat.nuxt.dev"><img width="20px" src="https://github.com/nuxt/nuxt/tree/main/.github/assets/discord.svg" alt="Discord"></a>&nbsp;&nbsp;<a href="https://twitter.nuxt.dev"><img width="20px" src="https://github.com/nuxt/nuxt/tree/main/.github/assets/twitter.svg" alt="Twitter"></a>&nbsp;&nbsp;<a href="https://github.nuxt.dev"><img width="20px" src="https://github.com/nuxt/nuxt/tree/main/.github/assets/github.svg" alt="GitHub"></a>
package/dist/index.d.mts CHANGED
@@ -158,7 +158,7 @@ declare function isNuxt3(nuxt?: Nuxt): boolean;
158
158
  /**
159
159
  * Get nuxt version
160
160
  */
161
- declare function getNuxtVersion(nuxt?: Nuxt | any): any;
161
+ declare function getNuxtVersion(nuxt?: Nuxt | any): string;
162
162
 
163
163
  /**
164
164
  * Register a directory to be scanned for components and imported only when used.
package/dist/index.d.ts CHANGED
@@ -158,7 +158,7 @@ declare function isNuxt3(nuxt?: Nuxt): boolean;
158
158
  /**
159
159
  * Get nuxt version
160
160
  */
161
- declare function getNuxtVersion(nuxt?: Nuxt | any): any;
161
+ declare function getNuxtVersion(nuxt?: Nuxt | any): string;
162
162
 
163
163
  /**
164
164
  * Register a directory to be scanned for components and imported only when used.
package/dist/index.mjs CHANGED
@@ -119,8 +119,8 @@ function isNuxt3(nuxt = useNuxt()) {
119
119
  }
120
120
  function getNuxtVersion(nuxt = useNuxt()) {
121
121
  const rawVersion = nuxt?._version || nuxt?.version || nuxt?.constructor?.version;
122
- if (!rawVersion) {
123
- throw new Error("Cannot determine nuxt version! Is current instance passed?");
122
+ if (typeof rawVersion !== "string") {
123
+ throw new TypeError("Cannot determine nuxt version! Is current instance passed?");
124
124
  }
125
125
  return rawVersion.replace(/^v/g, "");
126
126
  }
@@ -2569,7 +2569,7 @@ async function getNuxtModuleVersion(module, nuxt = useNuxt()) {
2569
2569
  return false;
2570
2570
  }
2571
2571
 
2572
- const layerSchemaKeys = ["future", "srcDir", "rootDir", "dir"];
2572
+ const layerSchemaKeys = ["future", "srcDir", "rootDir", "serverDir", "dir"];
2573
2573
  const layerSchema = /* @__PURE__ */ Object.create(null);
2574
2574
  for (const key of layerSchemaKeys) {
2575
2575
  if (key in NuxtConfigSchema) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/kit",
3
- "version": "3.12.3",
3
+ "version": "3.12.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -35,14 +35,14 @@
35
35
  "knitwork": "^1.1.0",
36
36
  "mlly": "^1.7.1",
37
37
  "pathe": "^1.1.2",
38
- "pkg-types": "^1.1.2",
38
+ "pkg-types": "^1.1.3",
39
39
  "scule": "^1.3.0",
40
- "semver": "^7.6.2",
41
- "ufo": "^1.5.3",
40
+ "semver": "^7.6.3",
41
+ "ufo": "^1.5.4",
42
42
  "unctx": "^2.3.1",
43
- "unimport": "^3.7.2",
43
+ "unimport": "^3.9.0",
44
44
  "untyped": "^1.4.2",
45
- "@nuxt/schema": "3.12.3"
45
+ "@nuxt/schema": "3.12.4"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/hash-sum": "1.0.2",
@@ -51,9 +51,9 @@
51
51
  "lodash-es": "4.17.21",
52
52
  "nitropack": "2.9.7",
53
53
  "unbuild": "latest",
54
- "vite": "5.3.2",
55
- "vitest": "1.6.0",
56
- "webpack": "5.92.1"
54
+ "vite": "5.3.4",
55
+ "vitest": "2.0.3",
56
+ "webpack": "5.93.0"
57
57
  },
58
58
  "engines": {
59
59
  "node": "^14.18.0 || >=16.10.0"