@vercel/next 8.0.1 → 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.
@@ -36,9 +36,9 @@ var require_interop_require_default = __commonJS({
36
36
  }
37
37
  });
38
38
 
39
- // ../../node_modules/.pnpm/next@16.3.0-canary.24_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/modern-browserslist-target.js
39
+ // ../../node_modules/.pnpm/next@16.3.0-canary.96_@types+node@20.6.5_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/modern-browserslist-target.js
40
40
  var require_modern_browserslist_target = __commonJS({
41
- "../../node_modules/.pnpm/next@16.3.0-canary.24_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) {
41
+ "../../node_modules/.pnpm/next@16.3.0-canary.96_@types+node@20.6.5_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) {
42
42
  "use strict";
43
43
  var MODERN_BROWSERSLIST_TARGET = [
44
44
  "chrome 111",
@@ -50,9 +50,9 @@ var require_modern_browserslist_target = __commonJS({
50
50
  }
51
51
  });
52
52
 
53
- // ../../node_modules/.pnpm/next@16.3.0-canary.24_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/entry-constants.js
53
+ // ../../node_modules/.pnpm/next@16.3.0-canary.96_@types+node@20.6.5_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/entry-constants.js
54
54
  var require_entry_constants = __commonJS({
55
- "../../node_modules/.pnpm/next@16.3.0-canary.24_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/entry-constants.js"(exports2) {
55
+ "../../node_modules/.pnpm/next@16.3.0-canary.96_@types+node@20.6.5_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/entry-constants.js"(exports2) {
56
56
  "use strict";
57
57
  Object.defineProperty(exports2, "__esModule", {
58
58
  value: true
@@ -84,9 +84,9 @@ var require_entry_constants = __commonJS({
84
84
  }
85
85
  });
86
86
 
87
- // ../../node_modules/.pnpm/next@16.3.0-canary.24_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/constants.js
87
+ // ../../node_modules/.pnpm/next@16.3.0-canary.96_@types+node@20.6.5_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/constants.js
88
88
  var require_constants = __commonJS({
89
- "../../node_modules/.pnpm/next@16.3.0-canary.24_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/constants.js"(exports2, module2) {
89
+ "../../node_modules/.pnpm/next@16.3.0-canary.96_@types+node@20.6.5_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/constants.js"(exports2, module2) {
90
90
  "use strict";
91
91
  Object.defineProperty(exports2, "__esModule", {
92
92
  value: true
@@ -248,6 +248,9 @@ var require_constants = __commonJS({
248
248
  REACT_LOADABLE_MANIFEST: function() {
249
249
  return REACT_LOADABLE_MANIFEST;
250
250
  },
251
+ REQUEST_INSIGHTS_DEV_ENDPOINT: function() {
252
+ return REQUEST_INSIGHTS_DEV_ENDPOINT;
253
+ },
251
254
  ROUTES_MANIFEST: function() {
252
255
  return ROUTES_MANIFEST;
253
256
  },
@@ -351,6 +354,7 @@ var require_constants = __commonJS({
351
354
  var IMAGES_MANIFEST = "images-manifest.json";
352
355
  var SERVER_FILES_MANIFEST = "required-server-files";
353
356
  var DEV_CLIENT_PAGES_MANIFEST = "_devPagesManifest.json";
357
+ var REQUEST_INSIGHTS_DEV_ENDPOINT = "/_next/development/request-insights";
354
358
  var MIDDLEWARE_MANIFEST = "middleware-manifest.json";
355
359
  var TURBOPACK_CLIENT_MIDDLEWARE_MANIFEST = "_clientMiddlewareManifest.js";
356
360
  var TURBOPACK_CLIENT_BUILD_MANIFEST = "client-build-manifest.json";
@@ -447,9 +451,9 @@ var require_constants = __commonJS({
447
451
  }
448
452
  });
449
453
 
450
- // ../../node_modules/.pnpm/next@16.3.0-canary.24_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/constants.js
454
+ // ../../node_modules/.pnpm/next@16.3.0-canary.96_@types+node@20.6.5_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/constants.js
451
455
  var require_constants2 = __commonJS({
452
- "../../node_modules/.pnpm/next@16.3.0-canary.24_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/constants.js"(exports2, module2) {
456
+ "../../node_modules/.pnpm/next@16.3.0-canary.96_@types+node@20.6.5_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/constants.js"(exports2, module2) {
453
457
  module2.exports = require_constants();
454
458
  }
455
459
  });
@@ -10096,6 +10100,20 @@ async function handlePrerenderOutputs(prerenderOutputs, {
10096
10100
  partialFallback: output.config.partialFallback || void 0,
10097
10101
  bypassToken: output.config.bypassToken,
10098
10102
  experimentalBypassFor: output.config.bypassFor,
10103
+ // Build-time serving metadata, carried verbatim from Next.js.
10104
+ // Next.js sets the taxonomy only on a prerender group's primary
10105
+ // output, so sibling RSC/data/segment configs omit the field,
10106
+ // and older Next.js versions omit it everywhere. The values
10107
+ // describe the deployment as it was built — revalidation can
10108
+ // change a route's behavior over the deployment's lifetime.
10109
+ initialMetadata: output.compute !== void 0 ? {
10110
+ compute: output.compute,
10111
+ // Zero is a real shell size — a shell that postponed
10112
+ // everything — so this tests for presence, not
10113
+ // truthiness. Absent means there is no HTML shell to
10114
+ // measure (route handlers, Pages Router).
10115
+ ...output.htmlSize !== void 0 ? { htmlSize: output.htmlSize } : {}
10116
+ } : void 0,
10099
10117
  initialHeaders,
10100
10118
  initialStatus: output.fallback?.initialStatus,
10101
10119
  fallback: prerenderFallbackPath ? import_node_path.default.posix.relative(
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 || opts.maxConcurrency !== void 0;
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: "append",
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": "8.0.1",
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,10 +16,10 @@
16
16
  "@vercel/nft": "1.10.0"
17
17
  },
18
18
  "peerDependencies": {
19
- "@vercel/build-utils": "14.6.1"
19
+ "@vercel/build-utils": "14.8.0"
20
20
  },
21
21
  "devDependencies": {
22
- "@next-community/adapter-vercel": "0.0.1-beta.27",
22
+ "@next-community/adapter-vercel": "0.0.1-beta.29",
23
23
  "@types/aws-lambda": "8.10.19",
24
24
  "@types/buffer-crc32": "0.2.0",
25
25
  "@types/bytes": "3.1.1",
@@ -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.6.1",
60
+ "@vercel/build-utils": "14.8.0",
61
61
  "@vercel/routing-utils": "6.5.0"
62
62
  },
63
63
  "scripts": {