next 16.3.0-preview.0 → 16.3.0-preview.2
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/.build-commit +1 -1
- 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.runtime.dev.js +1 -1
- package/dist/compiled/next-server/pages-api.runtime.dev.js.map +1 -1
- package/dist/compiled/next-server/pages-api.runtime.prod.js +1 -1
- package/dist/compiled/next-server/pages-api.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/compiled/next-server/pages.runtime.prod.js +1 -1
- package/dist/compiled/next-server/pages.runtime.prod.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 +15 -15
package/dist/.build-commit
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
e54d183b2315d4bd52574623155fe7b9b393541e
|
package/dist/bin/next
CHANGED
|
@@ -89,7 +89,7 @@ const program = new NextRootCommand();
|
|
|
89
89
|
program.name('next').description('The Next.js CLI allows you to develop, build, start your application, and more.').configureHelp({
|
|
90
90
|
formatHelp: (cmd, helper)=>(0, _formatclihelpoutput.formatCliHelpOutput)(cmd, helper),
|
|
91
91
|
subcommandTerm: (cmd)=>`${cmd.name()} ${cmd.usage()}`
|
|
92
|
-
}).helpCommand(false).helpOption('-h, --help', 'Displays this message.').version(`Next.js v${"16.3.0-preview.
|
|
92
|
+
}).helpCommand(false).helpOption('-h, --help', 'Displays this message.').version(`Next.js v${"16.3.0-preview.2"}`, '-v, --version', 'Outputs the Next.js version.');
|
|
93
93
|
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([
|
|
94
94
|
'compile',
|
|
95
95
|
'generate',
|
|
@@ -207,7 +207,7 @@ program.command('typegen').description('Generate TypeScript definitions for rout
|
|
|
207
207
|
console.error(err);
|
|
208
208
|
process.exit(1);
|
|
209
209
|
}))).usage('[directory] [options]');
|
|
210
|
-
const nextVersion = "16.3.0-preview.
|
|
210
|
+
const nextVersion = "16.3.0-preview.2" || 'unknown';
|
|
211
211
|
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)=>{
|
|
212
212
|
const mod = await import('../cli/next-upgrade.js');
|
|
213
213
|
mod.spawnNextUpgrade(directory, options);
|
package/dist/build/index.js
CHANGED
|
@@ -406,7 +406,7 @@ async function build(dir, experimentalAnalyze = false, reactProductionProfiling
|
|
|
406
406
|
try {
|
|
407
407
|
const nextBuildSpan = (0, _trace.trace)('next-build', undefined, {
|
|
408
408
|
buildMode: experimentalBuildMode,
|
|
409
|
-
version: "16.3.0-preview.
|
|
409
|
+
version: "16.3.0-preview.2",
|
|
410
410
|
...enabledFeatures
|
|
411
411
|
});
|
|
412
412
|
_buildcontext.NextBuildContext.nextBuildSpan = nextBuildSpan;
|
|
@@ -843,7 +843,7 @@ async function build(dir, experimentalAnalyze = false, reactProductionProfiling
|
|
|
843
843
|
// Files outside of the distDir can be "type": "module"
|
|
844
844
|
await writeFileUtf8(_path.default.join(distDir, 'package.json'), '{"type": "commonjs"}');
|
|
845
845
|
// These are written to distDir, so they need to come after creating and cleaning distDr.
|
|
846
|
-
await (0, _builddiagnostics.recordFrameworkVersion)("16.3.0-preview.
|
|
846
|
+
await (0, _builddiagnostics.recordFrameworkVersion)("16.3.0-preview.2");
|
|
847
847
|
await (0, _builddiagnostics.updateBuildDiagnostics)({
|
|
848
848
|
buildStage: 'start'
|
|
849
849
|
});
|
|
@@ -2628,7 +2628,7 @@ async function build(dir, experimentalAnalyze = false, reactProductionProfiling
|
|
|
2628
2628
|
configOutDir: _path.default.join(dir, configOutDir),
|
|
2629
2629
|
staticPages,
|
|
2630
2630
|
serverPropsPages,
|
|
2631
|
-
nextVersion: "16.3.0-preview.
|
|
2631
|
+
nextVersion: "16.3.0-preview.2",
|
|
2632
2632
|
tracingRoot: outputFileTracingRoot,
|
|
2633
2633
|
hasNodeMiddleware,
|
|
2634
2634
|
hasInstrumentationHook,
|
package/dist/build/swc/index.js
CHANGED
|
@@ -135,7 +135,7 @@ var HmrTarget = /*#__PURE__*/ function(HmrTarget) {
|
|
|
135
135
|
HmrTarget["Server"] = "server";
|
|
136
136
|
return HmrTarget;
|
|
137
137
|
}({});
|
|
138
|
-
const nextVersion = "16.3.0-preview.
|
|
138
|
+
const nextVersion = "16.3.0-preview.2";
|
|
139
139
|
const ArchName = (0, _os.arch)();
|
|
140
140
|
const PlatformName = (0, _os.platform)();
|
|
141
141
|
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.0-preview.
|
|
96
|
+
nextVersion: "16.3.0-preview.2"
|
|
97
97
|
}, {
|
|
98
98
|
turbopackMemoryEviction: config.experimental.turbopackMemoryEvictionMode,
|
|
99
99
|
dependencyTracking: persistentCaching,
|
|
@@ -115,7 +115,7 @@ async function turbopackBuild(telemetry) {
|
|
|
115
115
|
currentNodeJsVersion,
|
|
116
116
|
isPersistentCachingEnabled: persistentCaching,
|
|
117
117
|
deferredEntries: config.experimental.deferredEntries,
|
|
118
|
-
nextVersion: "16.3.0-preview.
|
|
118
|
+
nextVersion: "16.3.0-preview.2"
|
|
119
119
|
};
|
|
120
120
|
const sharedTurboOptions = {
|
|
121
121
|
turbopackMemoryEviction: config.experimental.turbopackMemoryEvictionMode,
|
|
@@ -1754,7 +1754,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
|
|
|
1754
1754
|
isClient && new _copyfileplugin.CopyFilePlugin({
|
|
1755
1755
|
// file path to build output of `@next/polyfill-nomodule`
|
|
1756
1756
|
filePath: require.resolve('./polyfills/polyfill-nomodule'),
|
|
1757
|
-
cacheKey: "16.3.0-preview.
|
|
1757
|
+
cacheKey: "16.3.0-preview.2",
|
|
1758
1758
|
name: `static/chunks/polyfills${dev ? '' : '-[hash]'}.js`,
|
|
1759
1759
|
minimize: false,
|
|
1760
1760
|
info: {
|
|
@@ -1955,7 +1955,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
|
|
|
1955
1955
|
// - Next.js location on disk (some loaders use absolute paths and some resolve options depend on absolute paths)
|
|
1956
1956
|
// - Next.js version
|
|
1957
1957
|
// - next.config.js keys that affect compilation
|
|
1958
|
-
version: `${__dirname}|${"16.3.0-preview.
|
|
1958
|
+
version: `${__dirname}|${"16.3.0-preview.2"}|${configVars}`,
|
|
1959
1959
|
cacheDirectory: _path.default.join(distDir, 'cache', 'webpack'),
|
|
1960
1960
|
// For production builds, it's more efficient to compress all cache files together instead of compression each one individually.
|
|
1961
1961
|
// So we disable compression here and allow the build runner to take care of compressing the cache as a whole.
|
|
@@ -2011,7 +2011,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
|
|
|
2011
2011
|
type: 'filesystem',
|
|
2012
2012
|
directory: cache.cacheDirectory
|
|
2013
2013
|
},
|
|
2014
|
-
version: `${__dirname}|${"16.3.0-preview.
|
|
2014
|
+
version: `${__dirname}|${"16.3.0-preview.2"}|${configVars}`
|
|
2015
2015
|
};
|
|
2016
2016
|
}
|
|
2017
2017
|
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.0-preview.
|
|
42
|
+
process.title = `next-build (v${"16.3.0-preview.2"})`;
|
|
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.0-preview.
|
|
43
|
+
await bindings.turbo.databaseCompact(cachePath, "16.3.0-preview.2");
|
|
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.0-preview.
|
|
18
|
+
const version = "16.3.0-preview.2";
|
|
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.0-preview.
|
|
63
|
+
const version = "16.3.0-preview.2";
|
|
64
64
|
let router;
|
|
65
65
|
const emitter = (0, _mitt.default)();
|
|
66
66
|
const looseToArray = (input)=>[].slice.call(input);
|