@vercel/next 4.15.39 → 4.15.41
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/adapter/index.js +7 -6
- package/dist/index.js +9 -9
- package/package.json +2 -2
package/dist/adapter/index.js
CHANGED
|
@@ -2314,9 +2314,9 @@ var require_interop_require_default = __commonJS({
|
|
|
2314
2314
|
}
|
|
2315
2315
|
});
|
|
2316
2316
|
|
|
2317
|
-
// ../../node_modules/.pnpm/next@16.2.0-canary.
|
|
2317
|
+
// ../../node_modules/.pnpm/next@16.2.0-canary.79_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/modern-browserslist-target.js
|
|
2318
2318
|
var require_modern_browserslist_target = __commonJS({
|
|
2319
|
-
"../../node_modules/.pnpm/next@16.2.0-canary.
|
|
2319
|
+
"../../node_modules/.pnpm/next@16.2.0-canary.79_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/modern-browserslist-target.js"(exports2, module2) {
|
|
2320
2320
|
"use strict";
|
|
2321
2321
|
var MODERN_BROWSERSLIST_TARGET = [
|
|
2322
2322
|
"chrome 111",
|
|
@@ -2328,9 +2328,9 @@ var require_modern_browserslist_target = __commonJS({
|
|
|
2328
2328
|
}
|
|
2329
2329
|
});
|
|
2330
2330
|
|
|
2331
|
-
// ../../node_modules/.pnpm/next@16.2.0-canary.
|
|
2331
|
+
// ../../node_modules/.pnpm/next@16.2.0-canary.79_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/entry-constants.js
|
|
2332
2332
|
var require_entry_constants = __commonJS({
|
|
2333
|
-
"../../node_modules/.pnpm/next@16.2.0-canary.
|
|
2333
|
+
"../../node_modules/.pnpm/next@16.2.0-canary.79_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/entry-constants.js"(exports2) {
|
|
2334
2334
|
"use strict";
|
|
2335
2335
|
Object.defineProperty(exports2, "__esModule", {
|
|
2336
2336
|
value: true
|
|
@@ -2362,9 +2362,9 @@ var require_entry_constants = __commonJS({
|
|
|
2362
2362
|
}
|
|
2363
2363
|
});
|
|
2364
2364
|
|
|
2365
|
-
// ../../node_modules/.pnpm/next@16.2.0-canary.
|
|
2365
|
+
// ../../node_modules/.pnpm/next@16.2.0-canary.79_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/constants.js
|
|
2366
2366
|
var require_constants = __commonJS({
|
|
2367
|
-
"../../node_modules/.pnpm/next@16.2.0-canary.
|
|
2367
|
+
"../../node_modules/.pnpm/next@16.2.0-canary.79_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/constants.js"(exports2, module2) {
|
|
2368
2368
|
"use strict";
|
|
2369
2369
|
Object.defineProperty(exports2, "__esModule", {
|
|
2370
2370
|
value: true
|
|
@@ -9896,6 +9896,7 @@ async function handlePrerenderOutputs(prerenderOutputs, {
|
|
|
9896
9896
|
passQuery: true,
|
|
9897
9897
|
allowQuery: output.config.allowQuery,
|
|
9898
9898
|
allowHeader: output.config.allowHeader,
|
|
9899
|
+
partialFallback: output.config.partialFallback || void 0,
|
|
9899
9900
|
bypassToken: output.config.bypassToken,
|
|
9900
9901
|
experimentalBypassFor: output.config.bypassFor,
|
|
9901
9902
|
initialHeaders,
|
package/dist/index.js
CHANGED
|
@@ -928,7 +928,7 @@ var require_superstatic = __commonJS({
|
|
|
928
928
|
route.missing = r.missing;
|
|
929
929
|
}
|
|
930
930
|
return route;
|
|
931
|
-
} catch (
|
|
931
|
+
} catch (_e) {
|
|
932
932
|
throw new Error(`Failed to parse redirect: ${JSON.stringify(r)}`);
|
|
933
933
|
}
|
|
934
934
|
});
|
|
@@ -961,7 +961,7 @@ var require_superstatic = __commonJS({
|
|
|
961
961
|
route.status = r.statusCode;
|
|
962
962
|
}
|
|
963
963
|
return route;
|
|
964
|
-
} catch (
|
|
964
|
+
} catch (_e) {
|
|
965
965
|
throw new Error(`Failed to parse rewrite: ${JSON.stringify(r)}`);
|
|
966
966
|
}
|
|
967
967
|
});
|
|
@@ -1172,7 +1172,7 @@ var require_superstatic = __commonJS({
|
|
|
1172
1172
|
if (attemptDirectCompile) {
|
|
1173
1173
|
try {
|
|
1174
1174
|
return (0, import_path_to_regexp.compile)(value, { validate: false })(indexes);
|
|
1175
|
-
} catch (
|
|
1175
|
+
} catch (_e) {
|
|
1176
1176
|
}
|
|
1177
1177
|
}
|
|
1178
1178
|
for (const key of Object.keys(indexes)) {
|
|
@@ -12839,6 +12839,7 @@ var onPrerenderRoute = (prerenderRouteArgs) => async (routeKey, {
|
|
|
12839
12839
|
headers: { "x-matched-path": paths.pathname }
|
|
12840
12840
|
};
|
|
12841
12841
|
}
|
|
12842
|
+
const partialFallback = isAppPathRoute && renderingMode === "PARTIALLY_STATIC" /* PARTIALLY_STATIC */ && isFallback && Boolean(postponedState);
|
|
12842
12843
|
let htmlAllowQuery = allowQuery;
|
|
12843
12844
|
if (renderingMode === "PARTIALLY_STATIC" /* PARTIALLY_STATIC */ && // TODO(NAR-402): Investigate omitted routes
|
|
12844
12845
|
(isFallback || isBlocking)) {
|
|
@@ -12850,10 +12851,9 @@ var onPrerenderRoute = (prerenderRouteArgs) => async (routeKey, {
|
|
|
12850
12851
|
) {
|
|
12851
12852
|
htmlAllowQuery = fallbackRootParams;
|
|
12852
12853
|
} else if (postponedPrerender) {
|
|
12853
|
-
htmlAllowQuery = [];
|
|
12854
|
+
htmlAllowQuery = partialFallback && isAppClientParamParsingEnabled ? allowQuery : [];
|
|
12854
12855
|
}
|
|
12855
12856
|
}
|
|
12856
|
-
const partialFallback = isAppPathRoute && renderingMode === "PARTIALLY_STATIC" /* PARTIALLY_STATIC */ && isFallback && Boolean(postponedState);
|
|
12857
12857
|
const staticMetadataFile = getSourceFileRefOfStaticMetadata(
|
|
12858
12858
|
routeKey,
|
|
12859
12859
|
appPathnameFilesMap
|
|
@@ -13847,7 +13847,7 @@ async function getServerActionMetaRoutes(distDir) {
|
|
|
13847
13847
|
}
|
|
13848
13848
|
}
|
|
13849
13849
|
return routes;
|
|
13850
|
-
} catch (
|
|
13850
|
+
} catch (_error) {
|
|
13851
13851
|
return [];
|
|
13852
13852
|
}
|
|
13853
13853
|
}
|
|
@@ -14912,7 +14912,7 @@ ${JSON.stringify(
|
|
|
14912
14912
|
await import_fs_extra5.default.readFile(`${serverComponentFile}.nft.json`, "utf8")
|
|
14913
14913
|
);
|
|
14914
14914
|
scTrace.files.forEach((file) => files2.push(file));
|
|
14915
|
-
} catch (
|
|
14915
|
+
} catch (_err) {
|
|
14916
14916
|
}
|
|
14917
14917
|
}
|
|
14918
14918
|
fileList = [];
|
|
@@ -16465,7 +16465,7 @@ async function readPackageJson(entryPath) {
|
|
|
16465
16465
|
const packagePath = import_path6.default.join(entryPath, "package.json");
|
|
16466
16466
|
try {
|
|
16467
16467
|
return JSON.parse(await (0, import_fs_extra6.readFile)(packagePath, "utf8"));
|
|
16468
|
-
} catch (
|
|
16468
|
+
} catch (_err) {
|
|
16469
16469
|
(0, import_build_utils3.debug)("package.json not found in entry");
|
|
16470
16470
|
return {};
|
|
16471
16471
|
}
|
|
@@ -16896,7 +16896,7 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
|
|
|
16896
16896
|
"utf8"
|
|
16897
16897
|
);
|
|
16898
16898
|
escapedBuildId = (0, import_escape_string_regexp3.default)(buildId);
|
|
16899
|
-
} catch (
|
|
16899
|
+
} catch (_err) {
|
|
16900
16900
|
throw new import_build_utils3.NowBuildError({
|
|
16901
16901
|
code: "NOW_NEXT_NO_BUILD_ID",
|
|
16902
16902
|
message: 'The BUILD_ID file was not found in the Output Directory. Did you forget to run "next build" in your Build Command?'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/next",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.41",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"@vercel/nft": "1.1.1"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@next-community/adapter-vercel": "0.0.1-beta.
|
|
19
|
+
"@next-community/adapter-vercel": "0.0.1-beta.13",
|
|
20
20
|
"@types/aws-lambda": "8.10.19",
|
|
21
21
|
"@types/buffer-crc32": "0.2.0",
|
|
22
22
|
"@types/bytes": "3.1.1",
|