nitro-nightly 3.0.1-20260120-133934-74e8d674 → 3.0.1-20260120-140218-d2383f00

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.
@@ -17845,8 +17845,17 @@ function libChunkName(id) {
17845
17845
  return `_libs/${id.match(/.*(?:[/\\])node_modules(?:[/\\])(?<package>@[^/\\]+[/\\][^/\\]+|[^/\\.][^/\\]*)/)?.groups?.package || "common"}`;
17846
17846
  }
17847
17847
  function getChunkName(chunk, nitro) {
17848
- if (chunk.name.startsWith("_libs/")) return `${chunk.name}.mjs`;
17849
- if (chunk.name === "rolldown-runtime") return "_rolldown.mjs";
17848
+ if (chunk.name === "rolldown-runtime") return "_runtime.mjs";
17849
+ if (chunk.moduleIds.every((id) => id.includes("node_modules"))) {
17850
+ const pkgNames = [...new Set(chunk.moduleIds.map((id) => id.match(/.*[/\\]node_modules[/\\](?<package>@[^/\\]+[/\\][^/\\]+|[^/\\]+)/)?.groups?.package).filter(Boolean).map((name) => name.split(/[/\\]/).pop()).filter(Boolean))].sort((a$1, b$2) => a$1.length - b$2.length);
17851
+ let chunkName = "";
17852
+ for (const name of pkgNames) {
17853
+ const separator = chunkName ? "+" : "";
17854
+ if ((chunkName + separator + name).length > 30) return `_libs/_[hash].mjs`;
17855
+ chunkName += separator + name;
17856
+ }
17857
+ return `_libs/${chunkName || "_"}.mjs`;
17858
+ }
17850
17859
  if (chunk.moduleIds.length === 0) return `_chunks/${chunk.name}.mjs`;
17851
17860
  const ids = chunk.moduleIds.filter((id) => !virtualRe.test(id));
17852
17861
  if (ids.length === 0) {
@@ -6,6 +6,7 @@ const nitroApp = useNitroApp();
6
6
  export default async function netlifyEdge(netlifyReq, context) {
7
7
  // srvx compatibility
8
8
  const req = netlifyReq;
9
+ req.ip = context.ip;
9
10
  req.runtime ??= { name: "netlify-edge" };
10
11
  // @ts-expect-error (add to srvx types)
11
12
  req.runtime.netlify ??= { context };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitro-nightly",
3
- "version": "3.0.1-20260120-133934-74e8d674",
3
+ "version": "3.0.1-20260120-140218-d2383f00",
4
4
  "description": "Build and Deploy Universal JavaScript Servers",
5
5
  "keywords": [
6
6
  "api-routes",