@nuxt/nitro-server-nightly 4.6.0-29776095.3d108708 → 4.6.0-29776185.65fb0aaa

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/index.mjs CHANGED
@@ -21,7 +21,7 @@ import { ImpoundPlugin } from "impound";
21
21
  import { resolveModulePath } from "exsolve";
22
22
  import { runtimeDependencies } from "nitropack/runtime/meta";
23
23
  //#region package.json
24
- var version = "4.6.0-29776095.3d108708";
24
+ var version = "4.6.0-29776185.65fb0aaa";
25
25
  //#endregion
26
26
  //#region src/utils.ts
27
27
  function toArray(value) {
@@ -1,5 +1,4 @@
1
1
  import { sharedPrerenderCache } from "../cache.mjs";
2
- import { encodePath } from "ufo";
3
2
  import { useRuntimeConfig } from "nitropack/runtime";
4
3
  import { NUXT_NO_SSR, NUXT_SHARED_DATA } from "#internal/nuxt/nitro-config.mjs";
5
4
  import { createHead } from "@unhead/vue/server";
@@ -10,10 +9,19 @@ const PRERENDER_NO_SSR_ROUTES = /* @__PURE__ */ new Set([
10
9
  "/200.html",
11
10
  "/404.html"
12
11
  ]);
12
+ const ENC_PIPE_RE = /%7C/g;
13
+ const ENC_BRACKET_OPEN_RE = /%5B/g;
14
+ const ENC_BRACKET_CLOSE_RE = /%5D/g;
15
+ const ENC_ENC_SLASH_RE = /%252F/gi;
16
+ const HASH_RE = /#/g;
17
+ const QUESTION_MARK_RE = /\?/g;
13
18
  function encodeEventPath(path) {
14
19
  const queryIndex = path.indexOf("?");
15
- if (queryIndex === -1) return encodePath(path);
16
- return encodePath(path.slice(0, queryIndex)) + path.slice(queryIndex);
20
+ if (queryIndex === -1) return encodeVueRouterPath(path);
21
+ return encodeVueRouterPath(path.slice(0, queryIndex)) + path.slice(queryIndex);
22
+ }
23
+ function encodeVueRouterPath(path) {
24
+ return encodeURI(path).replace(ENC_PIPE_RE, "|").replace(ENC_BRACKET_OPEN_RE, "[").replace(ENC_BRACKET_CLOSE_RE, "]").replace(HASH_RE, "%23").replace(QUESTION_MARK_RE, "%3F").replace(ENC_ENC_SLASH_RE, "%2F");
17
25
  }
18
26
  function createSSRContext(event) {
19
27
  const url = encodeEventPath(event.path);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/nitro-server-nightly",
3
- "version": "4.6.0-29776095.3d108708",
3
+ "version": "4.6.0-29776185.65fb0aaa",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -32,7 +32,7 @@
32
32
  ],
33
33
  "dependencies": {
34
34
  "@nuxt/devalue": "^2.0.2",
35
- "@nuxt/kit": "npm:@nuxt/kit-nightly@4.6.0-29776095.3d108708",
35
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@4.6.0-29776185.65fb0aaa",
36
36
  "@unhead/vue": "^3.3.1",
37
37
  "@vue/shared": "^3.5.40",
38
38
  "consola": "^3.4.2",
@@ -54,7 +54,7 @@
54
54
  "std-env": "^4.2.0",
55
55
  "ufo": "^1.6.4",
56
56
  "unctx": "^3.0.0",
57
- "unrouting": "^0.2.2",
57
+ "unrouting": "^0.2.3",
58
58
  "unstorage": "^1.17.5",
59
59
  "vue": "^3.5.40",
60
60
  "vue-bundle-renderer": "^2.3.1",
@@ -64,7 +64,7 @@
64
64
  "@babel/plugin-proposal-decorators": "^7.25.0 || ^8.0.0",
65
65
  "@babel/plugin-syntax-typescript": "^7.25.0 || ^8.0.0",
66
66
  "@rollup/plugin-babel": "^6.0.0 || ^7.0.0",
67
- "nuxt": "npm:nuxt-nightly@4.6.0-29776095.3d108708"
67
+ "nuxt": "npm:nuxt-nightly@4.6.0-29776185.65fb0aaa"
68
68
  },
69
69
  "peerDependenciesMeta": {
70
70
  "@babel/plugin-proposal-decorators": {
@@ -80,9 +80,9 @@
80
80
  "devDependencies": {
81
81
  "@babel/plugin-proposal-decorators": "8.0.2",
82
82
  "@babel/plugin-syntax-typescript": "8.0.3",
83
- "@nuxt/schema": "npm:@nuxt/schema-nightly@4.6.0-29776095.3d108708",
83
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@4.6.0-29776185.65fb0aaa",
84
84
  "@rollup/plugin-babel": "7.1.0",
85
- "nuxt": "npm:nuxt-nightly@4.6.0-29776095.3d108708",
85
+ "nuxt": "npm:nuxt-nightly@4.6.0-29776185.65fb0aaa",
86
86
  "tsdown": "0.22.14",
87
87
  "vitest": "4.1.10"
88
88
  },