@vercel/next 3.4.5 → 3.4.6
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 +19 -2
- package/dist/server-build.js +2 -0
- package/dist/utils.js +10 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
@@ -40874,6 +40874,10 @@ const build = async ({ files, workPath, repoRootPath, entrypoint, config = {}, m
|
|
40874
40874
|
shouldAddHelpers: false,
|
40875
40875
|
shouldAddSourcemapSupport: false,
|
40876
40876
|
supportsMultiPayloads: !!process.env.NEXT_PRIVATE_MULTI_PAYLOAD,
|
40877
|
+
framework: {
|
40878
|
+
slug: 'nextjs',
|
40879
|
+
version: nextVersion,
|
40880
|
+
},
|
40877
40881
|
});
|
40878
40882
|
(0, build_utils_1.debug)(`Created serverless function for page: "${page}"`);
|
40879
40883
|
}));
|
@@ -41363,6 +41367,7 @@ const build = async ({ files, workPath, repoRootPath, entrypoint, config = {}, m
|
|
41363
41367
|
],
|
41364
41368
|
handler: path_1.default.join(path_1.default.relative(baseDir, entryPath), '___next_launcher.cjs'),
|
41365
41369
|
runtime: nodeVersion.runtime,
|
41370
|
+
nextVersion,
|
41366
41371
|
...lambdaOptions,
|
41367
41372
|
});
|
41368
41373
|
}
|
@@ -41379,6 +41384,7 @@ const build = async ({ files, workPath, repoRootPath, entrypoint, config = {}, m
|
|
41379
41384
|
],
|
41380
41385
|
handler: path_1.default.join(path_1.default.relative(baseDir, entryPath), '___next_launcher.cjs'),
|
41381
41386
|
runtime: nodeVersion.runtime,
|
41387
|
+
nextVersion,
|
41382
41388
|
...lambdaOptions,
|
41383
41389
|
});
|
41384
41390
|
}
|
@@ -41524,6 +41530,7 @@ const build = async ({ files, workPath, repoRootPath, entrypoint, config = {}, m
|
|
41524
41530
|
layers: [group.pseudoLayer],
|
41525
41531
|
handler: path_1.default.join(path_1.default.relative(baseDir, entryPath), '___next_launcher.cjs'),
|
41526
41532
|
runtime: nodeVersion.runtime,
|
41533
|
+
nextVersion,
|
41527
41534
|
});
|
41528
41535
|
}));
|
41529
41536
|
}
|
@@ -42876,6 +42883,7 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
|
|
42876
42883
|
maxDuration: group.maxDuration,
|
42877
42884
|
isStreaming: group.isStreaming,
|
42878
42885
|
cron: group.cron,
|
42886
|
+
nextVersion,
|
42879
42887
|
});
|
42880
42888
|
for (const page of group.pages) {
|
42881
42889
|
const pageNoExt = page.replace(/\.js$/, '');
|
@@ -42942,6 +42950,7 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
|
|
42942
42950
|
routesManifest,
|
42943
42951
|
isCorrectMiddlewareOrder,
|
42944
42952
|
prerenderBypassToken: prerenderManifest.bypassToken || '',
|
42953
|
+
nextVersion,
|
42945
42954
|
});
|
42946
42955
|
const isNextDataServerResolving = middleware.staticRoutes.length > 0 &&
|
42947
42956
|
semver_1.default.gte(nextVersion, NEXT_DATA_MIDDLEWARE_RESOLVING_VERSION);
|
@@ -44080,7 +44089,7 @@ exports.createPseudoLayer = createPseudoLayer;
|
|
44080
44089
|
// measured with 1, 2, 5, 10, and `os.cpus().length || 5`
|
44081
44090
|
// and sema(1) produced the best results
|
44082
44091
|
const createLambdaSema = new async_sema_1.Sema(1);
|
44083
|
-
async function createLambdaFromPseudoLayers({ files: baseFiles, layers, isStreaming, ...lambdaOptions }) {
|
44092
|
+
async function createLambdaFromPseudoLayers({ files: baseFiles, layers, isStreaming, nextVersion, ...lambdaOptions }) {
|
44084
44093
|
await createLambdaSema.acquire();
|
44085
44094
|
const files = {};
|
44086
44095
|
const addedFiles = new Set();
|
@@ -44117,6 +44126,10 @@ async function createLambdaFromPseudoLayers({ files: baseFiles, layers, isStream
|
|
44117
44126
|
shouldAddHelpers: false,
|
44118
44127
|
shouldAddSourcemapSupport: false,
|
44119
44128
|
supportsMultiPayloads: !!process.env.NEXT_PRIVATE_MULTI_PAYLOAD,
|
44129
|
+
framework: {
|
44130
|
+
slug: 'nextjs',
|
44131
|
+
version: nextVersion,
|
44132
|
+
},
|
44120
44133
|
});
|
44121
44134
|
}
|
44122
44135
|
exports.createLambdaFromPseudoLayers = createLambdaFromPseudoLayers;
|
@@ -45038,7 +45051,7 @@ async function getPrivateOutputs(dir, entries) {
|
|
45038
45051
|
return { files, routes };
|
45039
45052
|
}
|
45040
45053
|
exports.getPrivateOutputs = getPrivateOutputs;
|
45041
|
-
async function getMiddlewareBundle({ config = {}, entryPath, outputDirectory, routesManifest, isCorrectMiddlewareOrder, prerenderBypassToken, }) {
|
45054
|
+
async function getMiddlewareBundle({ config = {}, entryPath, outputDirectory, routesManifest, isCorrectMiddlewareOrder, prerenderBypassToken, nextVersion, }) {
|
45042
45055
|
const middlewareManifest = await getMiddlewareManifest(entryPath, outputDirectory);
|
45043
45056
|
const sortedFunctions = [
|
45044
45057
|
...(!middlewareManifest
|
@@ -45133,6 +45146,10 @@ async function getMiddlewareBundle({ config = {}, entryPath, outputDirectory, ro
|
|
45133
45146
|
path: `assets/${name}`,
|
45134
45147
|
};
|
45135
45148
|
}),
|
45149
|
+
framework: {
|
45150
|
+
slug: 'nextjs',
|
45151
|
+
version: nextVersion,
|
45152
|
+
},
|
45136
45153
|
});
|
45137
45154
|
})(),
|
45138
45155
|
routeMatchers: getRouteMatchers(edgeFunction, routesManifest),
|
package/dist/server-build.js
CHANGED
@@ -507,6 +507,7 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
|
|
507
507
|
maxDuration: group.maxDuration,
|
508
508
|
isStreaming: group.isStreaming,
|
509
509
|
cron: group.cron,
|
510
|
+
nextVersion,
|
510
511
|
});
|
511
512
|
for (const page of group.pages) {
|
512
513
|
const pageNoExt = page.replace(/\.js$/, '');
|
@@ -573,6 +574,7 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
|
|
573
574
|
routesManifest,
|
574
575
|
isCorrectMiddlewareOrder,
|
575
576
|
prerenderBypassToken: prerenderManifest.bypassToken || '',
|
577
|
+
nextVersion,
|
576
578
|
});
|
577
579
|
const isNextDataServerResolving = middleware.staticRoutes.length > 0 &&
|
578
580
|
semver_1.default.gte(nextVersion, NEXT_DATA_MIDDLEWARE_RESOLVING_VERSION);
|
package/dist/utils.js
CHANGED
@@ -475,7 +475,7 @@ exports.createPseudoLayer = createPseudoLayer;
|
|
475
475
|
// measured with 1, 2, 5, 10, and `os.cpus().length || 5`
|
476
476
|
// and sema(1) produced the best results
|
477
477
|
const createLambdaSema = new async_sema_1.Sema(1);
|
478
|
-
async function createLambdaFromPseudoLayers({ files: baseFiles, layers, isStreaming, ...lambdaOptions }) {
|
478
|
+
async function createLambdaFromPseudoLayers({ files: baseFiles, layers, isStreaming, nextVersion, ...lambdaOptions }) {
|
479
479
|
await createLambdaSema.acquire();
|
480
480
|
const files = {};
|
481
481
|
const addedFiles = new Set();
|
@@ -512,6 +512,10 @@ async function createLambdaFromPseudoLayers({ files: baseFiles, layers, isStream
|
|
512
512
|
shouldAddHelpers: false,
|
513
513
|
shouldAddSourcemapSupport: false,
|
514
514
|
supportsMultiPayloads: !!process.env.NEXT_PRIVATE_MULTI_PAYLOAD,
|
515
|
+
framework: {
|
516
|
+
slug: 'nextjs',
|
517
|
+
version: nextVersion,
|
518
|
+
},
|
515
519
|
});
|
516
520
|
}
|
517
521
|
exports.createLambdaFromPseudoLayers = createLambdaFromPseudoLayers;
|
@@ -1433,7 +1437,7 @@ async function getPrivateOutputs(dir, entries) {
|
|
1433
1437
|
return { files, routes };
|
1434
1438
|
}
|
1435
1439
|
exports.getPrivateOutputs = getPrivateOutputs;
|
1436
|
-
async function getMiddlewareBundle({ config = {}, entryPath, outputDirectory, routesManifest, isCorrectMiddlewareOrder, prerenderBypassToken, }) {
|
1440
|
+
async function getMiddlewareBundle({ config = {}, entryPath, outputDirectory, routesManifest, isCorrectMiddlewareOrder, prerenderBypassToken, nextVersion, }) {
|
1437
1441
|
const middlewareManifest = await getMiddlewareManifest(entryPath, outputDirectory);
|
1438
1442
|
const sortedFunctions = [
|
1439
1443
|
...(!middlewareManifest
|
@@ -1528,6 +1532,10 @@ async function getMiddlewareBundle({ config = {}, entryPath, outputDirectory, ro
|
|
1528
1532
|
path: `assets/${name}`,
|
1529
1533
|
};
|
1530
1534
|
}),
|
1535
|
+
framework: {
|
1536
|
+
slug: 'nextjs',
|
1537
|
+
version: nextVersion,
|
1538
|
+
},
|
1531
1539
|
});
|
1532
1540
|
})(),
|
1533
1541
|
routeMatchers: getRouteMatchers(edgeFunction, routesManifest),
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vercel/next",
|
3
|
-
"version": "3.4.
|
3
|
+
"version": "3.4.6",
|
4
4
|
"license": "MIT",
|
5
5
|
"main": "./dist/index",
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
|
@@ -71,5 +71,5 @@
|
|
71
71
|
"typescript": "4.5.2",
|
72
72
|
"webpack-sources": "3.2.3"
|
73
73
|
},
|
74
|
-
"gitHead": "
|
74
|
+
"gitHead": "1bb7b37e0ce3ea25fad81f9a328de466de67a14e"
|
75
75
|
}
|