@vercel/next 4.16.8 → 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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +3 -3
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.8",
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",
@@ -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/routing-utils": "6.1.1",
57
- "@vercel/build-utils": "13.17.0"
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",