@vercel/next 9.0.0 → 10.0.0
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.js +9 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -12404,7 +12404,7 @@ async function getPageLambdaGroups({
|
|
|
12404
12404
|
const normalBudget = getMaxUncompressedLambdaSize(nodeVersion.runtime) - LAMBDA_RESERVED_UNCOMPRESSED_SIZE;
|
|
12405
12405
|
isLargeFunction = standaloneUncompressedSize >= normalBudget;
|
|
12406
12406
|
}
|
|
12407
|
-
const skipGroupBundling = experimentalAllowBundling || isLargeFunction
|
|
12407
|
+
const skipGroupBundling = experimentalAllowBundling || isLargeFunction;
|
|
12408
12408
|
let matchingGroup = skipGroupBundling ? void 0 : groups.find((group) => {
|
|
12409
12409
|
const matches = (
|
|
12410
12410
|
// Never merge a normal route into a large (single-route) group.
|
|
@@ -14011,6 +14011,7 @@ async function getServerActionMetaRoutes(distDir) {
|
|
|
14011
14011
|
const manifestContent = await import_fs_extra3.default.readFile(manifestPath, "utf8");
|
|
14012
14012
|
const manifest = JSON.parse(manifestContent);
|
|
14013
14013
|
const routes = [];
|
|
14014
|
+
const seenActionIds = /* @__PURE__ */ new Set();
|
|
14014
14015
|
for (const runtimeType of ["node", "edge"]) {
|
|
14015
14016
|
const runtime = manifest[runtimeType];
|
|
14016
14017
|
if (!runtime)
|
|
@@ -14018,6 +14019,9 @@ async function getServerActionMetaRoutes(distDir) {
|
|
|
14018
14019
|
for (const [id, entry] of Object.entries(runtime)) {
|
|
14019
14020
|
if (!entry.filename || !entry.exportedName)
|
|
14020
14021
|
continue;
|
|
14022
|
+
if (seenActionIds.has(id))
|
|
14023
|
+
continue;
|
|
14024
|
+
seenActionIds.add(id);
|
|
14021
14025
|
let exportedName = entry.exportedName;
|
|
14022
14026
|
if (exportedName === "$$RSC_SERVER_ACTION_0") {
|
|
14023
14027
|
exportedName = "anonymous_fn";
|
|
@@ -14033,8 +14037,11 @@ async function getServerActionMetaRoutes(distDir) {
|
|
|
14033
14037
|
],
|
|
14034
14038
|
transforms: [
|
|
14035
14039
|
{
|
|
14040
|
+
// `set` rather than `append` so a client-supplied
|
|
14041
|
+
// `x-server-action-name` is replaced instead of preserved
|
|
14042
|
+
// alongside the resolved name.
|
|
14036
14043
|
type: "request.headers",
|
|
14037
|
-
op: "
|
|
14044
|
+
op: "set",
|
|
14038
14045
|
target: {
|
|
14039
14046
|
key: "x-server-action-name"
|
|
14040
14047
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/next",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0",
|
|
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.10.0"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@vercel/build-utils": "14.
|
|
19
|
+
"@vercel/build-utils": "14.8.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@next-community/adapter-vercel": "0.0.1-beta.29",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"vite": "6.4.3",
|
|
58
58
|
"vitest": "4.1.10",
|
|
59
59
|
"webpack-sources": "3.2.3",
|
|
60
|
-
"@vercel/build-utils": "14.
|
|
60
|
+
"@vercel/build-utils": "14.8.0",
|
|
61
61
|
"@vercel/routing-utils": "6.5.0"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|