next 15.1.5 → 15.1.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.
Potentially problematic release.
This version of next might be problematic. Click here for more details.
- package/dist/bin/next +1 -1
- package/dist/build/index.js +2 -2
- package/dist/build/swc/index.js +1 -1
- package/dist/build/utils.js +5 -14
- package/dist/build/utils.js.map +1 -1
- package/dist/build/webpack-config.js +2 -2
- package/dist/client/app-bootstrap.js +1 -1
- package/dist/client/index.js +1 -1
- package/dist/esm/build/index.js +2 -2
- package/dist/esm/build/swc/index.js +1 -1
- package/dist/esm/build/utils.js +5 -14
- package/dist/esm/build/utils.js.map +1 -1
- package/dist/esm/build/webpack-config.js +2 -2
- package/dist/esm/client/app-bootstrap.js +1 -1
- package/dist/esm/client/index.js +1 -1
- package/dist/esm/server/after/awaiter.js +6 -4
- package/dist/esm/server/after/awaiter.js.map +1 -1
- package/dist/esm/server/config.js +1 -1
- package/dist/esm/server/dev/hot-reloader-turbopack.js +1 -1
- package/dist/esm/server/dev/hot-reloader-webpack.js +1 -1
- package/dist/esm/server/lib/app-info-log.js +1 -1
- package/dist/esm/server/lib/start-server.js +1 -1
- package/dist/server/after/awaiter.js +6 -4
- package/dist/server/after/awaiter.js.map +1 -1
- package/dist/server/config.js +1 -1
- package/dist/server/dev/hot-reloader-turbopack.js +1 -1
- package/dist/server/dev/hot-reloader-webpack.js +1 -1
- package/dist/server/lib/app-info-log.js +1 -1
- package/dist/server/lib/start-server.js +1 -1
- package/dist/telemetry/anonymous-meta.js +1 -1
- package/dist/telemetry/events/session-stopped.js +2 -2
- package/dist/telemetry/events/version.js +2 -2
- package/package.json +15 -15
package/dist/bin/next
CHANGED
|
@@ -75,7 +75,7 @@ const program = new NextRootCommand();
|
|
|
75
75
|
program.name('next').description('The Next.js CLI allows you to develop, build, start your application, and more.').configureHelp({
|
|
76
76
|
formatHelp: (cmd, helper)=>(0, _formatclihelpoutput.formatCliHelpOutput)(cmd, helper),
|
|
77
77
|
subcommandTerm: (cmd)=>`${cmd.name()} ${cmd.usage()}`
|
|
78
|
-
}).helpCommand(false).helpOption('-h, --help', 'Displays this message.').version(`Next.js v${"15.1.
|
|
78
|
+
}).helpCommand(false).helpOption('-h, --help', 'Displays this message.').version(`Next.js v${"15.1.6"}`, '-v, --version', 'Outputs the Next.js version.');
|
|
79
79
|
program.command('build').description('Creates an optimized production build of your application. The output displays information about each route.').argument('[directory]', `A directory on which to build the application. ${(0, _picocolors.italic)('If no directory is provided, the current directory will be used.')}`).option('-d, --debug', 'Enables a more verbose build output.').option('--no-lint', 'Disables linting.').option('--no-mangling', 'Disables mangling.').option('--profile', 'Enables production profiling for React.').option('--experimental-app-only', 'Builds only App Router routes.').addOption(new _commander.Option('--experimental-turbo').hideHelp()).addOption(new _commander.Option('--experimental-build-mode [mode]', 'Uses an experimental build mode.').choices([
|
|
80
80
|
'compile',
|
|
81
81
|
'generate'
|
package/dist/build/index.js
CHANGED
|
@@ -357,7 +357,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
|
|
|
357
357
|
const nextBuildSpan = (0, _trace.trace)('next-build', undefined, {
|
|
358
358
|
buildMode: experimentalBuildMode,
|
|
359
359
|
isTurboBuild: String(turboNextBuild),
|
|
360
|
-
version: "15.1.
|
|
360
|
+
version: "15.1.6"
|
|
361
361
|
});
|
|
362
362
|
_buildcontext.NextBuildContext.nextBuildSpan = nextBuildSpan;
|
|
363
363
|
_buildcontext.NextBuildContext.dir = dir;
|
|
@@ -695,7 +695,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
|
|
|
695
695
|
// Files outside of the distDir can be "type": "module"
|
|
696
696
|
await writeFileUtf8(_path.default.join(distDir, 'package.json'), '{"type": "commonjs"}');
|
|
697
697
|
// These are written to distDir, so they need to come after creating and cleaning distDr.
|
|
698
|
-
await (0, _builddiagnostics.recordFrameworkVersion)("15.1.
|
|
698
|
+
await (0, _builddiagnostics.recordFrameworkVersion)("15.1.6");
|
|
699
699
|
await (0, _builddiagnostics.updateBuildDiagnostics)({
|
|
700
700
|
buildStage: 'start'
|
|
701
701
|
});
|
package/dist/build/swc/index.js
CHANGED
|
@@ -127,7 +127,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
127
127
|
}
|
|
128
128
|
return newObj;
|
|
129
129
|
}
|
|
130
|
-
const nextVersion = "15.1.
|
|
130
|
+
const nextVersion = "15.1.6";
|
|
131
131
|
const ArchName = (0, _os.arch)();
|
|
132
132
|
const PlatformName = (0, _os.platform)();
|
|
133
133
|
function infoLog(...args) {
|
package/dist/build/utils.js
CHANGED
|
@@ -927,17 +927,8 @@ async function buildAppStaticPaths({ dir, page, distDir, dynamicIO, authInterrup
|
|
|
927
927
|
requestHeaders,
|
|
928
928
|
minimalMode: _ciinfo.hasNextSupport
|
|
929
929
|
});
|
|
930
|
-
const
|
|
931
|
-
const
|
|
932
|
-
for (const segment of segments){
|
|
933
|
-
if (segment.param) {
|
|
934
|
-
var _segment_config;
|
|
935
|
-
paramKeys.add(segment.param);
|
|
936
|
-
if (((_segment_config = segment.config) == null ? void 0 : _segment_config.dynamicParams) === false) {
|
|
937
|
-
staticParamKeys.add(segment.param);
|
|
938
|
-
}
|
|
939
|
-
}
|
|
940
|
-
}
|
|
930
|
+
const regex = (0, _routeregex.getRouteRegex)(page);
|
|
931
|
+
const paramKeys = Object.keys((0, _routematcher.getRouteMatcher)(regex)(page) || {});
|
|
941
932
|
const afterRunner = new _runwithafter.AfterRunner();
|
|
942
933
|
const store = (0, _workstore.createWorkStore)({
|
|
943
934
|
page,
|
|
@@ -1004,10 +995,10 @@ async function buildAppStaticPaths({ dir, page, distDir, dynamicIO, authInterrup
|
|
|
1004
995
|
});
|
|
1005
996
|
let lastDynamicSegmentHadGenerateStaticParams = false;
|
|
1006
997
|
for (const segment of segments){
|
|
1007
|
-
var
|
|
998
|
+
var _segment_config;
|
|
1008
999
|
// Check to see if there are any missing params for segments that have
|
|
1009
1000
|
// dynamicParams set to false.
|
|
1010
|
-
if (segment.param && segment.isDynamicSegment && ((
|
|
1001
|
+
if (segment.param && segment.isDynamicSegment && ((_segment_config = segment.config) == null ? void 0 : _segment_config.dynamicParams) === false) {
|
|
1011
1002
|
for (const params of routeParams){
|
|
1012
1003
|
if (segment.param in params) continue;
|
|
1013
1004
|
const relative = segment.filePath ? _path.default.relative(dir, segment.filePath) : undefined;
|
|
@@ -1022,7 +1013,7 @@ async function buildAppStaticPaths({ dir, page, distDir, dynamicIO, authInterrup
|
|
|
1022
1013
|
}
|
|
1023
1014
|
// Determine if all the segments have had their parameters provided. If there
|
|
1024
1015
|
// was no dynamic parameters, then we've collected all the params.
|
|
1025
|
-
const hadAllParamsGenerated = paramKeys.
|
|
1016
|
+
const hadAllParamsGenerated = paramKeys.length === 0 || routeParams.length > 0 && routeParams.every((params)=>{
|
|
1026
1017
|
for (const key of paramKeys){
|
|
1027
1018
|
if (key in params) continue;
|
|
1028
1019
|
return false;
|