next 16.3.6 → 16.3.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/bin/next +2 -2
- package/dist/build/index.js +3 -3
- package/dist/build/swc/index.js +1 -1
- package/dist/build/turbopack-analyze/index.js +1 -1
- package/dist/build/turbopack-build/impl.js +1 -1
- package/dist/build/webpack-config.js +3 -3
- package/dist/cli/next-build.js +1 -1
- package/dist/cli/next-post-build.js +1 -1
- package/dist/client/app-bootstrap.js +1 -1
- package/dist/client/index.js +1 -1
- package/dist/compiled/next-server/pages-api-turbo.runtime.dev.js +1 -1
- package/dist/compiled/next-server/pages-api-turbo.runtime.dev.js.map +1 -1
- package/dist/compiled/next-server/pages-api-turbo.runtime.prod.js +1 -1
- package/dist/compiled/next-server/pages-api-turbo.runtime.prod.js.map +1 -1
- package/dist/compiled/next-server/pages-api.runtime.dev.js +1 -1
- package/dist/compiled/next-server/pages-api.runtime.dev.js.map +1 -1
- package/dist/compiled/next-server/pages-turbo.runtime.dev.js +1 -1
- package/dist/compiled/next-server/pages-turbo.runtime.dev.js.map +1 -1
- package/dist/compiled/next-server/pages-turbo.runtime.prod.js +1 -1
- package/dist/compiled/next-server/pages-turbo.runtime.prod.js.map +1 -1
- package/dist/compiled/next-server/pages.runtime.dev.js +1 -1
- package/dist/compiled/next-server/pages.runtime.dev.js.map +1 -1
- package/dist/esm/build/index.js +3 -3
- package/dist/esm/build/swc/index.js +1 -1
- package/dist/esm/build/turbopack-analyze/index.js +1 -1
- package/dist/esm/build/turbopack-build/impl.js +1 -1
- package/dist/esm/build/webpack-config.js +3 -3
- package/dist/esm/client/app-bootstrap.js +1 -1
- package/dist/esm/client/index.js +1 -1
- package/dist/esm/lib/patch-incorrect-lockfile.js +3 -3
- package/dist/esm/server/config.js +1 -1
- package/dist/esm/server/dev/hot-reloader-turbopack.js +2 -2
- 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/esm/shared/lib/errors/canary-only-config-error.js +1 -1
- package/dist/lib/patch-incorrect-lockfile.js +3 -3
- package/dist/server/config.js +1 -1
- package/dist/server/dev/hot-reloader-turbopack.js +2 -2
- 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/shared/lib/errors/canary-only-config-error.js +1 -1
- package/dist/telemetry/anonymous-meta.js +1 -1
- package/dist/telemetry/events/session-stopped.js +2 -2
- package/dist/telemetry/events/swc-load-failure.js +1 -1
- package/dist/telemetry/events/version.js +2 -2
- package/package.json +10 -10
package/dist/bin/next
CHANGED
|
@@ -105,7 +105,7 @@ const program = new NextRootCommand();
|
|
|
105
105
|
program.name('next').description('The Next.js CLI allows you to develop, build, start your application, and more.').configureHelp({
|
|
106
106
|
formatHelp: (cmd, helper)=>(0, _formatclihelpoutput.formatCliHelpOutput)(cmd, helper),
|
|
107
107
|
subcommandTerm: (cmd)=>`${cmd.name()} ${cmd.usage()}`
|
|
108
|
-
}).helpCommand(false).helpOption('-h, --help', 'Displays this message.').version(`Next.js v${"16.3.
|
|
108
|
+
}).helpCommand(false).helpOption('-h, --help', 'Displays this message.').version(`Next.js v${"16.3.7"}`, '-v, --version', 'Outputs the Next.js version.');
|
|
109
109
|
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('--experimental-analyze', 'Analyze bundle output. Only compatible with Turbopack.').option('-d, --debug', 'Enables a more verbose build output.').option('--debug-prerender', 'Enables debug mode for prerendering. Not for production use!').option('--no-mangling', 'Disables mangling.').option('--profile', 'Enables production profiling for React.').option('--experimental-app-only', 'Builds only App Router routes.').option('--turbo', 'Builds using Turbopack.').option('--turbopack', 'Builds using Turbopack.').option('--webpack', 'Builds using webpack.').addOption(new _commander.Option('--experimental-build-mode [mode]', 'Uses an experimental build mode.').choices([
|
|
110
110
|
'compile',
|
|
111
111
|
'generate',
|
|
@@ -205,7 +205,7 @@ program.command('typegen').description('Generate TypeScript definitions for rout
|
|
|
205
205
|
console.error(err);
|
|
206
206
|
process.exit(1);
|
|
207
207
|
}))).usage('[directory] [options]');
|
|
208
|
-
const nextVersion = "16.3.
|
|
208
|
+
const nextVersion = "16.3.7" || 'unknown';
|
|
209
209
|
program.command('upgrade').description('Upgrade Next.js apps to desired versions with a single command.').argument('[directory]', `A Next.js project directory to upgrade. ${(0, _picocolors.italic)('If no directory is provided, the current directory will be used.')}`).usage('[directory] [options]').option('--revision <revision>', 'Specify the target Next.js version using an NPM dist tag (e.g. "latest", "canary", "rc", "beta") or an exact version number (e.g. "15.0.0").', nextVersion.includes('-canary.') ? 'canary' : nextVersion.includes('-rc.') ? 'rc' : nextVersion.includes('-beta.') ? 'beta' : 'latest').option('--verbose', 'Verbose output', false).action(async (directory, options)=>{
|
|
210
210
|
const mod = await import('../cli/next-upgrade.js');
|
|
211
211
|
mod.spawnNextUpgrade(directory, options);
|
package/dist/build/index.js
CHANGED
|
@@ -472,7 +472,7 @@ async function build(dir, experimentalAnalyze = false, reactProductionProfiling
|
|
|
472
472
|
try {
|
|
473
473
|
const nextBuildSpan = (0, _trace.trace)('next-build', undefined, {
|
|
474
474
|
buildMode: experimentalBuildMode,
|
|
475
|
-
version: "16.3.
|
|
475
|
+
version: "16.3.7",
|
|
476
476
|
...enabledFeatures
|
|
477
477
|
});
|
|
478
478
|
_buildcontext.NextBuildContext.nextBuildSpan = nextBuildSpan;
|
|
@@ -917,7 +917,7 @@ async function build(dir, experimentalAnalyze = false, reactProductionProfiling
|
|
|
917
917
|
// Files outside of the distDir can be "type": "module"
|
|
918
918
|
await writeFileUtf8(_path.default.join(distDir, 'package.json'), '{"type": "commonjs"}');
|
|
919
919
|
// These are written to distDir, so they need to come after creating and cleaning distDr.
|
|
920
|
-
await (0, _builddiagnostics.recordFrameworkVersion)("16.3.
|
|
920
|
+
await (0, _builddiagnostics.recordFrameworkVersion)("16.3.7");
|
|
921
921
|
await (0, _builddiagnostics.updateBuildDiagnostics)({
|
|
922
922
|
buildStage: 'start'
|
|
923
923
|
});
|
|
@@ -2794,7 +2794,7 @@ async function build(dir, experimentalAnalyze = false, reactProductionProfiling
|
|
|
2794
2794
|
configOutDir: _path.default.join(dir, configOutDir),
|
|
2795
2795
|
staticPages,
|
|
2796
2796
|
serverPropsPages,
|
|
2797
|
-
nextVersion: "16.3.
|
|
2797
|
+
nextVersion: "16.3.7",
|
|
2798
2798
|
repoRoot: config.repoRoot,
|
|
2799
2799
|
outputFileTracingRoot,
|
|
2800
2800
|
hasNodeMiddleware,
|
package/dist/build/swc/index.js
CHANGED
|
@@ -139,7 +139,7 @@ var HmrTarget = /*#__PURE__*/ function(HmrTarget) {
|
|
|
139
139
|
HmrTarget["Server"] = "server";
|
|
140
140
|
return HmrTarget;
|
|
141
141
|
}({});
|
|
142
|
-
const nextVersion = "16.3.
|
|
142
|
+
const nextVersion = "16.3.7";
|
|
143
143
|
const ArchName = (0, _os.arch)();
|
|
144
144
|
const PlatformName = (0, _os.platform)();
|
|
145
145
|
function infoLog(...args) {
|
|
@@ -93,7 +93,7 @@ async function turbopackAnalyze(analyzeContext) {
|
|
|
93
93
|
writeRoutesHashesManifest: false,
|
|
94
94
|
currentNodeJsVersion,
|
|
95
95
|
isPersistentCachingEnabled: persistentCaching,
|
|
96
|
-
nextVersion: "16.3.
|
|
96
|
+
nextVersion: "16.3.7"
|
|
97
97
|
}, {
|
|
98
98
|
turbopackMemoryEviction: config.experimental.turbopackMemoryEvictionMode,
|
|
99
99
|
dependencyTracking: persistentCaching,
|
|
@@ -116,7 +116,7 @@ async function turbopackBuild(telemetry) {
|
|
|
116
116
|
currentNodeJsVersion,
|
|
117
117
|
isPersistentCachingEnabled: persistentCaching,
|
|
118
118
|
deferredEntries: config.experimental.deferredEntries,
|
|
119
|
-
nextVersion: "16.3.
|
|
119
|
+
nextVersion: "16.3.7"
|
|
120
120
|
};
|
|
121
121
|
if (config.experimental.turbopackSeedCacheFromWorktree) {
|
|
122
122
|
(0, _turbopackcacheseed.seedTurbopackCacheIfNeeded)({
|
|
@@ -1770,7 +1770,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
|
|
|
1770
1770
|
isClient && new _copyfileplugin.CopyFilePlugin({
|
|
1771
1771
|
// file path to build output of `@next/polyfill-nomodule`
|
|
1772
1772
|
filePath: require.resolve('./polyfills/polyfill-nomodule'),
|
|
1773
|
-
cacheKey: "16.3.
|
|
1773
|
+
cacheKey: "16.3.7",
|
|
1774
1774
|
name: `static/chunks/polyfills${dev ? '' : '-[hash]'}.js`,
|
|
1775
1775
|
minimize: false,
|
|
1776
1776
|
info: {
|
|
@@ -1971,7 +1971,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
|
|
|
1971
1971
|
// - Next.js location on disk (some loaders use absolute paths and some resolve options depend on absolute paths)
|
|
1972
1972
|
// - Next.js version
|
|
1973
1973
|
// - next.config.js keys that affect compilation
|
|
1974
|
-
version: `${__dirname}|${"16.3.
|
|
1974
|
+
version: `${__dirname}|${"16.3.7"}|${configVars}`,
|
|
1975
1975
|
cacheDirectory: _path.default.join(distDir, 'cache', 'webpack'),
|
|
1976
1976
|
// For production builds, it's more efficient to compress all cache files together instead of compression each one individually.
|
|
1977
1977
|
// So we disable compression here and allow the build runner to take care of compressing the cache as a whole.
|
|
@@ -2027,7 +2027,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
|
|
|
2027
2027
|
type: 'filesystem',
|
|
2028
2028
|
directory: _path.default.join(distDir, 'cache', 'rspack', rspackCacheKey)
|
|
2029
2029
|
},
|
|
2030
|
-
version: `${__dirname}|${"16.3.
|
|
2030
|
+
version: `${__dirname}|${"16.3.7"}|${configVars}|${rspackCacheKey}`
|
|
2031
2031
|
};
|
|
2032
2032
|
}
|
|
2033
2033
|
if (process.env.NEXT_WEBPACK_LOGGING) {
|
package/dist/cli/next-build.js
CHANGED
|
@@ -39,7 +39,7 @@ function _interop_require_default(obj) {
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
const nextBuild = async (options, directory)=>{
|
|
42
|
-
process.title = `next-build (v${"16.3.
|
|
42
|
+
process.title = `next-build (v${"16.3.7"})`;
|
|
43
43
|
process.on('SIGTERM', ()=>{
|
|
44
44
|
(0, _cpuprofile.saveCpuProfile)();
|
|
45
45
|
process.exit(143);
|
|
@@ -40,7 +40,7 @@ const nextPostBuild = async (_options, directory)=>{
|
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
42
42
|
const bindings = await (0, _swc.loadBindings)((_config_experimental1 = config.experimental) == null ? void 0 : _config_experimental1.useWasmBinary);
|
|
43
|
-
await bindings.turbo.databaseCompact(cachePath, "16.3.
|
|
43
|
+
await bindings.turbo.databaseCompact(cachePath, "16.3.7");
|
|
44
44
|
console.log('Turbopack database compaction complete.');
|
|
45
45
|
};
|
|
46
46
|
|
|
@@ -15,7 +15,7 @@ Object.defineProperty(exports, "appBootstrap", {
|
|
|
15
15
|
});
|
|
16
16
|
const _assetprefix = require("./asset-prefix");
|
|
17
17
|
const _setattributesfromprops = require("./set-attributes-from-props");
|
|
18
|
-
const version = "16.3.
|
|
18
|
+
const version = "16.3.7";
|
|
19
19
|
window.next = {
|
|
20
20
|
version,
|
|
21
21
|
appDir: true
|
package/dist/client/index.js
CHANGED
|
@@ -60,7 +60,7 @@ const _hooksclientcontextsharedruntime = require("../shared/lib/hooks-client-con
|
|
|
60
60
|
const _onrecoverableerror = require("./react-client-callbacks/on-recoverable-error");
|
|
61
61
|
const _tracer = /*#__PURE__*/ _interop_require_default._(require("./tracing/tracer"));
|
|
62
62
|
const _isnextroutererror = require("./components/is-next-router-error");
|
|
63
|
-
const version = "16.3.
|
|
63
|
+
const version = "16.3.7";
|
|
64
64
|
let router;
|
|
65
65
|
const emitter = (0, _mitt.default)();
|
|
66
66
|
const looseToArray = (input)=>[].slice.call(input);
|