next 15.3.0-canary.3 → 15.3.0-canary.5
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/bin/next +1 -1
- package/dist/build/index.js +9 -10
- package/dist/build/index.js.map +1 -1
- package/dist/build/swc/index.js +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 +9 -10
- package/dist/esm/build/index.js.map +1 -1
- package/dist/esm/build/swc/index.js +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/lib/inline-static-env.js +13 -18
- package/dist/esm/lib/inline-static-env.js.map +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/router-utils/block-cross-site.js +3 -2
- package/dist/esm/server/lib/router-utils/block-cross-site.js.map +1 -1
- package/dist/esm/server/lib/start-server.js +1 -1
- package/dist/esm/shared/lib/canary-only.js +1 -1
- package/dist/lib/inline-static-env.d.ts +1 -2
- package/dist/lib/inline-static-env.js +13 -18
- package/dist/lib/inline-static-env.js.map +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/router-utils/block-cross-site.js +3 -2
- package/dist/server/lib/router-utils/block-cross-site.js.map +1 -1
- package/dist/server/lib/start-server.js +1 -1
- package/dist/shared/lib/canary-only.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
@@ -79,7 +79,7 @@ const program = new NextRootCommand();
|
|
79
79
|
program.name('next').description('The Next.js CLI allows you to develop, build, start your application, and more.').configureHelp({
|
80
80
|
formatHelp: (cmd, helper)=>(0, _formatclihelpoutput.formatCliHelpOutput)(cmd, helper),
|
81
81
|
subcommandTerm: (cmd)=>`${cmd.name()} ${cmd.usage()}`
|
82
|
-
}).helpCommand(false).helpOption('-h, --help', 'Displays this message.').version(`Next.js v${"15.3.0-canary.
|
82
|
+
}).helpCommand(false).helpOption('-h, --help', 'Displays this message.').version(`Next.js v${"15.3.0-canary.5"}`, '-v, --version', 'Outputs the Next.js version.');
|
83
83
|
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([
|
84
84
|
'compile',
|
85
85
|
'generate'
|
package/dist/build/index.js
CHANGED
@@ -368,7 +368,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
|
|
368
368
|
const nextBuildSpan = (0, _trace.trace)('next-build', undefined, {
|
369
369
|
buildMode: experimentalBuildMode,
|
370
370
|
isTurboBuild: String(turboNextBuild),
|
371
|
-
version: "15.3.0-canary.
|
371
|
+
version: "15.3.0-canary.5"
|
372
372
|
});
|
373
373
|
_buildcontext.NextBuildContext.nextBuildSpan = nextBuildSpan;
|
374
374
|
_buildcontext.NextBuildContext.dir = dir;
|
@@ -732,7 +732,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
|
|
732
732
|
// Files outside of the distDir can be "type": "module"
|
733
733
|
await writeFileUtf8(_path.default.join(distDir, 'package.json'), '{"type": "commonjs"}');
|
734
734
|
// These are written to distDir, so they need to come after creating and cleaning distDr.
|
735
|
-
await (0, _builddiagnostics.recordFrameworkVersion)("15.3.0-canary.
|
735
|
+
await (0, _builddiagnostics.recordFrameworkVersion)("15.3.0-canary.5");
|
736
736
|
await (0, _builddiagnostics.updateBuildDiagnostics)({
|
737
737
|
buildStage: 'start'
|
738
738
|
});
|
@@ -1310,7 +1310,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
|
|
1310
1310
|
cacheHandlers: normalizedCacheHandlers,
|
1311
1311
|
trustHostHeader: _ciinfo.hasNextSupport,
|
1312
1312
|
// @ts-expect-error internal field TODO: fix this, should use a separate mechanism to pass the info.
|
1313
|
-
isExperimentalCompile: isCompileMode
|
1313
|
+
isExperimentalCompile: isCompileMode || isGenerateMode && config.experimental.generateOnlyEnv
|
1314
1314
|
}
|
1315
1315
|
},
|
1316
1316
|
appDir: dir,
|
@@ -1478,18 +1478,17 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
|
|
1478
1478
|
await nextBuildSpan.traceChild('inline-static-env').traceAsyncFn(async ()=>{
|
1479
1479
|
await (0, _inlinestaticenv.inlineStaticEnv)({
|
1480
1480
|
distDir,
|
1481
|
-
config
|
1482
|
-
buildId
|
1481
|
+
config
|
1483
1482
|
});
|
1484
1483
|
});
|
1485
1484
|
// users might only want to inline env during experimental generate
|
1486
|
-
// instead of also prerendering e.g. for
|
1485
|
+
// instead of also prerendering e.g. for test mode so exit after
|
1487
1486
|
if (config.experimental.generateOnlyEnv) {
|
1488
|
-
_log.info('
|
1487
|
+
_log.info('Inlined static env, exiting due to experimental.generateOnlyEnv');
|
1488
|
+
await (0, _trace.flushAllTraces)();
|
1489
|
+
(0, _swc.teardownTraceSubscriber)();
|
1490
|
+
process.exit(0);
|
1489
1491
|
}
|
1490
|
-
await (0, _trace.flushAllTraces)();
|
1491
|
-
(0, _swc.teardownTraceSubscriber)();
|
1492
|
-
process.exit(0);
|
1493
1492
|
}
|
1494
1493
|
const middlewareManifest = await readManifest(_path.default.join(distDir, _constants1.SERVER_DIRECTORY, _constants1.MIDDLEWARE_MANIFEST));
|
1495
1494
|
const prerenderManifest = {
|