@vercel/next 4.16.7 → 4.17.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.
@@ -9699,6 +9699,13 @@ async function getGeneratedWorkflowLambdaOptions({
9699
9699
  return generatedConfig.workflows;
9700
9700
  }
9701
9701
  }
9702
+ function resolveNodeFunctionMaxDuration({
9703
+ generatedConfigOpts,
9704
+ outputConfigMaxDuration,
9705
+ vercelConfigMaxDuration
9706
+ }) {
9707
+ return generatedConfigOpts?.maxDuration ?? outputConfigMaxDuration ?? vercelConfigMaxDuration;
9708
+ }
9702
9709
  async function writeDeterministicRoutesManifest(distDir) {
9703
9710
  const manifest = require(import_node_path.default.join(distDir, "routes-manifest.json"));
9704
9711
  manifest.headers = [];
@@ -9860,7 +9867,11 @@ async function handleNodeOutputs(nodeOutputs, {
9860
9867
  if (generatedConfigOpts) {
9861
9868
  Object.assign(vercelConfigOpts, generatedConfigOpts);
9862
9869
  }
9863
- const maxDuration = generatedConfigOpts?.maxDuration ?? output.config.maxDuration;
9870
+ const maxDuration = resolveNodeFunctionMaxDuration({
9871
+ generatedConfigOpts,
9872
+ outputConfigMaxDuration: output.config.maxDuration,
9873
+ vercelConfigMaxDuration: vercelConfigOpts.maxDuration
9874
+ });
9864
9875
  const nodeConfig = {
9865
9876
  ...vercelConfigOpts,
9866
9877
  filePathMap: files,
package/dist/index.js CHANGED
@@ -10980,12 +10980,12 @@ function getWasmImportStatements(wasm = []) {
10980
10980
  }).join("\n");
10981
10981
  }
10982
10982
  async function validateSize(script, wasmFiles) {
10983
- const buffers = [Buffer.from(script, "utf8")];
10983
+ const buffers = [Uint8Array.from(Buffer.from(script, "utf8"))];
10984
10984
  for (const filePath of wasmFiles) {
10985
- buffers.push(await (0, import_fs_extra2.readFile)(filePath));
10985
+ buffers.push(Uint8Array.from(await (0, import_fs_extra2.readFile)(filePath)));
10986
10986
  }
10987
10987
  const content = Buffer.concat(buffers);
10988
- const gzipped = await gzip(content);
10988
+ const gzipped = await gzip(Uint8Array.from(content));
10989
10989
  if (gzipped.length > EDGE_FUNCTION_SIZE_LIMIT) {
10990
10990
  throw new Error(
10991
10991
  `Exceeds maximum edge function size: ${prettyBytes(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/next",
3
- "version": "4.16.7",
3
+ "version": "4.17.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.5.0"
17
17
  },
18
18
  "devDependencies": {
19
- "@next-community/adapter-vercel": "0.0.1-beta.18",
19
+ "@next-community/adapter-vercel": "0.0.1-beta.19",
20
20
  "@types/aws-lambda": "8.10.19",
21
21
  "@types/buffer-crc32": "0.2.0",
22
22
  "@types/bytes": "3.1.1",
@@ -53,8 +53,8 @@
53
53
  "test-listen": "1.1.0",
54
54
  "text-table": "0.2.0",
55
55
  "webpack-sources": "3.2.3",
56
- "@vercel/build-utils": "13.15.0",
57
- "@vercel/routing-utils": "6.1.1"
56
+ "@vercel/build-utils": "13.21.0",
57
+ "@vercel/routing-utils": "6.2.0"
58
58
  },
59
59
  "scripts": {
60
60
  "build": "node build.mjs",