@vercel/next 4.21.6 → 5.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 +3 -6
- package/package.json +7 -3
package/dist/index.js
CHANGED
|
@@ -11333,10 +11333,6 @@ function getMaxUncompressedLambdaSize(runtime) {
|
|
|
11333
11333
|
}
|
|
11334
11334
|
return runtime.startsWith("bun") ? DEFAULT_MAX_UNCOMPRESSED_LAMBDA_SIZE_BUN : DEFAULT_MAX_UNCOMPRESSED_LAMBDA_SIZE;
|
|
11335
11335
|
}
|
|
11336
|
-
var LARGE_FUNCTIONS_ENV = "NEXT_EXPERIMENTAL_LARGE_FUNCTIONS";
|
|
11337
|
-
function isLargeFunctionsEnabled() {
|
|
11338
|
-
return Boolean(process.env[LARGE_FUNCTIONS_ENV]);
|
|
11339
|
-
}
|
|
11340
11336
|
function getGroupMaxUncompressedLambdaSize(runtime, isLargeFunctions) {
|
|
11341
11337
|
return isLargeFunctions ? DEFAULT_MAX_UNCOMPRESSED_LARGE_LAMBDA_SIZE : getMaxUncompressedLambdaSize(runtime);
|
|
11342
11338
|
}
|
|
@@ -12339,7 +12335,6 @@ async function getPageLambdaGroups({
|
|
|
12339
12335
|
nodeVersion
|
|
12340
12336
|
}) {
|
|
12341
12337
|
const groups = [];
|
|
12342
|
-
const largeFunctionsEnabled = isLargeFunctionsEnabled();
|
|
12343
12338
|
for (const page of pages) {
|
|
12344
12339
|
const newPages = [...internalPages, page];
|
|
12345
12340
|
const routeName = normalizePage(page.replace(/\.js$/, ""));
|
|
@@ -12393,7 +12388,7 @@ async function getPageLambdaGroups({
|
|
|
12393
12388
|
}
|
|
12394
12389
|
}
|
|
12395
12390
|
let isLargeFunction = false;
|
|
12396
|
-
if (
|
|
12391
|
+
if (!experimentalAllowBundling) {
|
|
12397
12392
|
let standaloneUncompressedSize = initialPseudoLayerUncompressed;
|
|
12398
12393
|
const countedFiles = new Set(
|
|
12399
12394
|
Object.keys(initialPseudoLayer.pseudoLayer)
|
|
@@ -16810,12 +16805,14 @@ var build = async (buildOptions) => {
|
|
|
16810
16805
|
lockfilePath,
|
|
16811
16806
|
lockfileVersion,
|
|
16812
16807
|
packageJsonPackageManager,
|
|
16808
|
+
packageJsonDevEngines,
|
|
16813
16809
|
turboSupportsCorepackHome
|
|
16814
16810
|
} = await (0, import_build_utils3.scanParentDirs)(entryPath, true);
|
|
16815
16811
|
const spawnEnv = (0, import_build_utils3.getEnvForPackageManager)({
|
|
16816
16812
|
cliType,
|
|
16817
16813
|
lockfileVersion,
|
|
16818
16814
|
packageJsonPackageManager,
|
|
16815
|
+
packageJsonDevEngines,
|
|
16819
16816
|
nodeVersion,
|
|
16820
16817
|
env: process.env,
|
|
16821
16818
|
turboSupportsCorepackHome,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/next",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.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",
|
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@vercel/nft": "1.10.0"
|
|
17
17
|
},
|
|
18
|
+
"peerDependencies": {
|
|
19
|
+
"@vercel/build-utils": "14.3.0"
|
|
20
|
+
},
|
|
18
21
|
"devDependencies": {
|
|
19
22
|
"@next-community/adapter-vercel": "0.0.1-beta.27",
|
|
20
23
|
"@types/aws-lambda": "8.10.19",
|
|
@@ -54,8 +57,8 @@
|
|
|
54
57
|
"vite": "6.4.3",
|
|
55
58
|
"vitest": "4.1.10",
|
|
56
59
|
"webpack-sources": "3.2.3",
|
|
57
|
-
"@vercel/
|
|
58
|
-
"@vercel/
|
|
60
|
+
"@vercel/build-utils": "14.3.0",
|
|
61
|
+
"@vercel/routing-utils": "6.5.0"
|
|
59
62
|
},
|
|
60
63
|
"scripts": {
|
|
61
64
|
"build": "node build.mjs",
|
|
@@ -65,6 +68,7 @@
|
|
|
65
68
|
"test-next-local-legacy": "vitest run --config ../../vitest.config.mts test/integration/legacy/*.test.js",
|
|
66
69
|
"test-next-local:middleware": "vitest run --config ../../vitest.config.mts test/integration/middleware.test.ts",
|
|
67
70
|
"test-e2e": "rm -f test/builder-info.json; vitest run --config ../../vitest.config.mts test/fixtures/ --exclude test/fixtures/00-bun-runtime/index.test.ts",
|
|
71
|
+
"test-e2e-builder": "pnpm run test-e2e",
|
|
68
72
|
"type-check": "tsc --noEmit"
|
|
69
73
|
}
|
|
70
74
|
}
|