@nuxt/nitro-server-nightly 3.20.2-29421468.a65e305a → 3.20.2-29421689.75c470fa

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
@@ -14,13 +14,13 @@
14
14
  Nuxt is a free and open-source framework with an intuitive and extendable way to create type-safe, performant and production-grade full-stack web applications and websites with Vue.js.
15
15
 
16
16
  It provides a number of features that make it easy to build fast, SEO-friendly, and scalable web applications, including:
17
- - Server-side rendering, Static Site Generation, Hybrid Rendering and Edge-Side Rendering
17
+ - Server-side rendering, static site generation, hybrid rendering and edge-side rendering
18
18
  - Automatic routing with code-splitting and pre-fetching
19
19
  - Data fetching and state management
20
- - SEO Optimization and Meta tags definition
20
+ - Search engine optimization and defining meta tags
21
21
  - Auto imports of components, composables and utils
22
22
  - TypeScript with zero configuration
23
- - Go fullstack with our server/ directory
23
+ - Go full-stack with our server/ directory
24
24
  - Extensible with [200+ modules](https://nuxt.com/modules)
25
25
  - Deployment to a variety of [hosting platforms](https://nuxt.com/deploy)
26
26
  - ...[and much more](https://nuxt.com) 🚀
@@ -31,7 +31,7 @@ It provides a number of features that make it easy to build fast, SEO-friendly,
31
31
  - 💻 [ Vue Development](#vue-development)
32
32
  - 📖 [Documentation](#documentation)
33
33
  - 🧩 [Modules](#modules)
34
- - ❤️ [Contribute](#contribute)
34
+ - ❤️ [Contribute](#contribute)
35
35
  - 🏠 [Local Development](#local-development)
36
36
  - 🛟 [Professional Support](#professional-support)
37
37
  - 🔗 [Follow Us](#follow-us)
package/dist/index.mjs CHANGED
@@ -17,7 +17,7 @@ import { isWindows } from 'std-env';
17
17
  import { ImpoundPlugin } from 'impound';
18
18
  import { resolveModulePath } from 'exsolve';
19
19
 
20
- const version = "3.20.2-29421468.a65e305a";
20
+ const version = "3.20.2-29421689.75c470fa";
21
21
 
22
22
  function toArray(value) {
23
23
  return Array.isArray(value) ? value : [value];
@@ -44,11 +44,13 @@ function createImportProtectionPatterns(nuxt, options) {
44
44
  "Importing directly from a `nuxt.config` file is not allowed. Instead, use runtime config or a module."
45
45
  ]);
46
46
  patterns.push([/(^|node_modules\/)@vue\/composition-api/]);
47
- for (const mod of nuxt.options.modules.filter((m) => typeof m === "string")) {
48
- patterns.push([
49
- new RegExp(`^${escapeRE(mod)}$`),
50
- "Importing directly from module entry-points is not allowed."
51
- ]);
47
+ for (const mod of nuxt.options._installedModules) {
48
+ if (mod.entryPath) {
49
+ patterns.push([
50
+ new RegExp(`^${escapeRE(mod.entryPath)}$`),
51
+ "Importing directly from module entry-points is not allowed."
52
+ ]);
53
+ }
52
54
  }
53
55
  for (const i of [/(^|node_modules\/)@nuxt\/(cli|kit|test-utils)/, /(^|node_modules\/)nuxi/, /(^|node_modules\/)nitro(?:pack)?(?:-nightly)?(?:$|\/)(?!(?:dist\/)?(?:node_modules|presets|runtime|types))/, /(^|node_modules\/)nuxt\/(config|kit|schema)/]) {
54
56
  patterns.push([i, `This module cannot be imported in ${context}.`]);
@@ -304,6 +306,7 @@ async function bundle(nuxt) {
304
306
  join(moduleDir, "dist/runtime/server")
305
307
  ];
306
308
  }),
309
+ ...layerDirs.map((dirs) => relativeWithDot(nuxt.options.buildDir, join(dirs.server, "**/*"))),
307
310
  ...layerDirs.map((dirs) => relativeWithDot(nuxt.options.buildDir, join(dirs.shared, "**/*.d.ts")))
308
311
  ],
309
312
  exclude: [
@@ -56,7 +56,7 @@ export default (async function errorhandler(error, event, { defaultHandler }) {
56
56
  setResponseHeader(event, header, value);
57
57
  }
58
58
  setResponseStatus(event, res.status && res.status !== 200 ? res.status : defaultRes.status, res.statusText || defaultRes.statusText);
59
- if (import.meta.dev) {
59
+ if (import.meta.dev && !import.meta.test && typeof html === "string") {
60
60
  const prettyResponse = await defaultHandler(error, event, { json: false });
61
61
  return send(event, html.replace("</body>", `${generateErrorOverlayHTML(prettyResponse.body, { startMinimized: 300 <= statusCode && statusCode < 500 })}</body>`));
62
62
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/nitro-server-nightly",
3
- "version": "3.20.2-29421468.a65e305a",
3
+ "version": "3.20.2-29421689.75c470fa",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -19,13 +19,13 @@
19
19
  ],
20
20
  "dependencies": {
21
21
  "@nuxt/devalue": "^2.0.2",
22
- "@nuxt/kit": "npm:@nuxt/kit-nightly@3.20.2-29421468.a65e305a",
22
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@3.20.2-29421689.75c470fa",
23
23
  "@unhead/vue": "^2.0.19",
24
- "@vue/shared": "^3.5.24",
24
+ "@vue/shared": "^3.5.25",
25
25
  "consola": "^3.4.2",
26
26
  "defu": "^6.1.4",
27
27
  "destr": "^2.0.5",
28
- "devalue": "^5.4.2",
28
+ "devalue": "^5.6.0",
29
29
  "errx": "^0.1.0",
30
30
  "escape-string-regexp": "^5.0.0",
31
31
  "exsolve": "^1.0.8",
@@ -40,17 +40,17 @@
40
40
  "std-env": "^3.10.0",
41
41
  "ufo": "^1.6.1",
42
42
  "unctx": "^2.4.1",
43
- "unstorage": "^1.17.2",
44
- "vue": "^3.5.24",
43
+ "unstorage": "^1.17.3",
44
+ "vue": "^3.5.25",
45
45
  "vue-bundle-renderer": "^2.2.0",
46
46
  "vue-devtools-stub": "^0.1.0"
47
47
  },
48
48
  "peerDependencies": {
49
- "nuxt": "npm:nuxt-nightly@3.20.2-29421468.a65e305a"
49
+ "nuxt": "npm:nuxt-nightly@3.20.2-29421689.75c470fa"
50
50
  },
51
51
  "devDependencies": {
52
- "@nuxt/schema": "npm:@nuxt/schema-nightly@3.20.2-29421468.a65e305a",
53
- "nuxt": "npm:nuxt-nightly@3.20.2-29421468.a65e305a",
52
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@3.20.2-29421689.75c470fa",
53
+ "nuxt": "npm:nuxt-nightly@3.20.2-29421689.75c470fa",
54
54
  "unbuild": "3.6.1",
55
55
  "vitest": "3.2.4"
56
56
  },