@vercel/next 3.4.6 → 3.4.7
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 +2 -17
- package/dist/server-build.js +0 -1
- package/dist/utils.js +2 -16
- package/package.json +3 -3
package/dist/index.js
CHANGED
@@ -42882,7 +42882,6 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
|
|
42882
42882
|
runtime: nodeVersion.runtime,
|
42883
42883
|
maxDuration: group.maxDuration,
|
42884
42884
|
isStreaming: group.isStreaming,
|
42885
|
-
cron: group.cron,
|
42886
42885
|
nextVersion,
|
42887
42886
|
});
|
42888
42887
|
for (const page of group.pages) {
|
@@ -44442,8 +44441,7 @@ async function getPageLambdaGroups({ entryPath, config, pages, prerenderRoutes,
|
|
44442
44441
|
let matchingGroup = groups.find(group => {
|
44443
44442
|
const matches = group.maxDuration === opts.maxDuration &&
|
44444
44443
|
group.memory === opts.memory &&
|
44445
|
-
group.isPrerenders === isPrerenderRoute
|
44446
|
-
!opts.cron; // Functions with a cronjob must be on their own
|
44444
|
+
group.isPrerenders === isPrerenderRoute;
|
44447
44445
|
if (matches) {
|
44448
44446
|
let newTracedFilesSize = group.pseudoLayerBytes;
|
44449
44447
|
let newTracedFilesUncompressedSize = group.pseudoLayerUncompressedBytes;
|
@@ -45051,7 +45049,7 @@ async function getPrivateOutputs(dir, entries) {
|
|
45051
45049
|
return { files, routes };
|
45052
45050
|
}
|
45053
45051
|
exports.getPrivateOutputs = getPrivateOutputs;
|
45054
|
-
async function getMiddlewareBundle({
|
45052
|
+
async function getMiddlewareBundle({ entryPath, outputDirectory, routesManifest, isCorrectMiddlewareOrder, prerenderBypassToken, nextVersion, }) {
|
45055
45053
|
const middlewareManifest = await getMiddlewareManifest(entryPath, outputDirectory);
|
45056
45054
|
const sortedFunctions = [
|
45057
45055
|
...(!middlewareManifest
|
@@ -45081,18 +45079,6 @@ async function getMiddlewareBundle({ config = {}, entryPath, outputDirectory, ro
|
|
45081
45079
|
i18n: routesManifest.i18n,
|
45082
45080
|
},
|
45083
45081
|
}, path_1.default.resolve(entryPath, outputDirectory), edgeFunction.wasm);
|
45084
|
-
const edgeFunctionOptions = {};
|
45085
|
-
if (config.functions) {
|
45086
|
-
const sourceFile = await getSourceFilePathFromPage({
|
45087
|
-
workPath: entryPath,
|
45088
|
-
page: `${edgeFunction.page}.js`,
|
45089
|
-
});
|
45090
|
-
const opts = await (0, build_utils_1.getLambdaOptionsFromFunction)({
|
45091
|
-
sourceFile,
|
45092
|
-
config,
|
45093
|
-
});
|
45094
|
-
edgeFunctionOptions.cron = opts.cron;
|
45095
|
-
}
|
45096
45082
|
return {
|
45097
45083
|
type,
|
45098
45084
|
page: edgeFunction.page,
|
@@ -45118,7 +45104,6 @@ async function getMiddlewareBundle({ config = {}, entryPath, outputDirectory, ro
|
|
45118
45104
|
return acc;
|
45119
45105
|
}, {});
|
45120
45106
|
return new build_utils_1.EdgeFunction({
|
45121
|
-
...edgeFunctionOptions,
|
45122
45107
|
deploymentTarget: 'v8-worker',
|
45123
45108
|
name: edgeFunction.name,
|
45124
45109
|
files: {
|
package/dist/server-build.js
CHANGED
@@ -506,7 +506,6 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
|
|
506
506
|
runtime: nodeVersion.runtime,
|
507
507
|
maxDuration: group.maxDuration,
|
508
508
|
isStreaming: group.isStreaming,
|
509
|
-
cron: group.cron,
|
510
509
|
nextVersion,
|
511
510
|
});
|
512
511
|
for (const page of group.pages) {
|
package/dist/utils.js
CHANGED
@@ -828,8 +828,7 @@ async function getPageLambdaGroups({ entryPath, config, pages, prerenderRoutes,
|
|
828
828
|
let matchingGroup = groups.find(group => {
|
829
829
|
const matches = group.maxDuration === opts.maxDuration &&
|
830
830
|
group.memory === opts.memory &&
|
831
|
-
group.isPrerenders === isPrerenderRoute
|
832
|
-
!opts.cron; // Functions with a cronjob must be on their own
|
831
|
+
group.isPrerenders === isPrerenderRoute;
|
833
832
|
if (matches) {
|
834
833
|
let newTracedFilesSize = group.pseudoLayerBytes;
|
835
834
|
let newTracedFilesUncompressedSize = group.pseudoLayerUncompressedBytes;
|
@@ -1437,7 +1436,7 @@ async function getPrivateOutputs(dir, entries) {
|
|
1437
1436
|
return { files, routes };
|
1438
1437
|
}
|
1439
1438
|
exports.getPrivateOutputs = getPrivateOutputs;
|
1440
|
-
async function getMiddlewareBundle({
|
1439
|
+
async function getMiddlewareBundle({ entryPath, outputDirectory, routesManifest, isCorrectMiddlewareOrder, prerenderBypassToken, nextVersion, }) {
|
1441
1440
|
const middlewareManifest = await getMiddlewareManifest(entryPath, outputDirectory);
|
1442
1441
|
const sortedFunctions = [
|
1443
1442
|
...(!middlewareManifest
|
@@ -1467,18 +1466,6 @@ async function getMiddlewareBundle({ config = {}, entryPath, outputDirectory, ro
|
|
1467
1466
|
i18n: routesManifest.i18n,
|
1468
1467
|
},
|
1469
1468
|
}, path_1.default.resolve(entryPath, outputDirectory), edgeFunction.wasm);
|
1470
|
-
const edgeFunctionOptions = {};
|
1471
|
-
if (config.functions) {
|
1472
|
-
const sourceFile = await getSourceFilePathFromPage({
|
1473
|
-
workPath: entryPath,
|
1474
|
-
page: `${edgeFunction.page}.js`,
|
1475
|
-
});
|
1476
|
-
const opts = await (0, build_utils_1.getLambdaOptionsFromFunction)({
|
1477
|
-
sourceFile,
|
1478
|
-
config,
|
1479
|
-
});
|
1480
|
-
edgeFunctionOptions.cron = opts.cron;
|
1481
|
-
}
|
1482
1469
|
return {
|
1483
1470
|
type,
|
1484
1471
|
page: edgeFunction.page,
|
@@ -1504,7 +1491,6 @@ async function getMiddlewareBundle({ config = {}, entryPath, outputDirectory, ro
|
|
1504
1491
|
return acc;
|
1505
1492
|
}, {});
|
1506
1493
|
return new build_utils_1.EdgeFunction({
|
1507
|
-
...edgeFunctionOptions,
|
1508
1494
|
deploymentTarget: 'v8-worker',
|
1509
1495
|
name: edgeFunction.name,
|
1510
1496
|
files: {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vercel/next",
|
3
|
-
"version": "3.4.
|
3
|
+
"version": "3.4.7",
|
4
4
|
"license": "MIT",
|
5
5
|
"main": "./dist/index",
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
|
@@ -45,7 +45,7 @@
|
|
45
45
|
"@types/semver": "6.0.0",
|
46
46
|
"@types/text-table": "0.2.1",
|
47
47
|
"@types/webpack-sources": "3.2.0",
|
48
|
-
"@vercel/build-utils": "6.
|
48
|
+
"@vercel/build-utils": "6.3.0",
|
49
49
|
"@vercel/nft": "0.22.5",
|
50
50
|
"@vercel/routing-utils": "2.1.9",
|
51
51
|
"async-sema": "3.0.1",
|
@@ -71,5 +71,5 @@
|
|
71
71
|
"typescript": "4.5.2",
|
72
72
|
"webpack-sources": "3.2.3"
|
73
73
|
},
|
74
|
-
"gitHead": "
|
74
|
+
"gitHead": "3d98d1cdea151b7125deb082c2c8469c865027d0"
|
75
75
|
}
|