next 16.0.1-canary.0 → 16.0.1-canary.1
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 +3 -3
 - 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/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-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-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/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/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/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/esm/shared/lib/errors/canary-only-config-error.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/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/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${"16.0.1-canary. 
     | 
| 
      
 82 
     | 
    
         
            +
            }).helpCommand(false).helpOption('-h, --help', 'Displays this message.').version(`Next.js v${"16.0.1-canary.1"}`, '-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('--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([
         
     | 
| 
       84 
84 
     | 
    
         
             
                'compile',
         
     | 
| 
       85 
85 
     | 
    
         
             
                'generate',
         
     | 
    
        package/dist/build/index.js
    CHANGED
    
    | 
         @@ -375,7 +375,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false, 
     | 
|
| 
       375 
375 
     | 
    
         
             
                try {
         
     | 
| 
       376 
376 
     | 
    
         
             
                    const nextBuildSpan = (0, _trace.trace)('next-build', undefined, {
         
     | 
| 
       377 
377 
     | 
    
         
             
                        buildMode: experimentalBuildMode,
         
     | 
| 
       378 
     | 
    
         
            -
                        version: "16.0.1-canary. 
     | 
| 
      
 378 
     | 
    
         
            +
                        version: "16.0.1-canary.1"
         
     | 
| 
       379 
379 
     | 
    
         
             
                    });
         
     | 
| 
       380 
380 
     | 
    
         
             
                    _buildcontext.NextBuildContext.nextBuildSpan = nextBuildSpan;
         
     | 
| 
       381 
381 
     | 
    
         
             
                    _buildcontext.NextBuildContext.dir = dir;
         
     | 
| 
         @@ -896,7 +896,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false, 
     | 
|
| 
       896 
896 
     | 
    
         
             
                        // Files outside of the distDir can be "type": "module"
         
     | 
| 
       897 
897 
     | 
    
         
             
                        await writeFileUtf8(_path.default.join(distDir, 'package.json'), '{"type": "commonjs"}');
         
     | 
| 
       898 
898 
     | 
    
         
             
                        // These are written to distDir, so they need to come after creating and cleaning distDr.
         
     | 
| 
       899 
     | 
    
         
            -
                        await (0, _builddiagnostics.recordFrameworkVersion)("16.0.1-canary. 
     | 
| 
      
 899 
     | 
    
         
            +
                        await (0, _builddiagnostics.recordFrameworkVersion)("16.0.1-canary.1");
         
     | 
| 
       900 
900 
     | 
    
         
             
                        await (0, _builddiagnostics.updateBuildDiagnostics)({
         
     | 
| 
       901 
901 
     | 
    
         
             
                            buildStage: 'start'
         
     | 
| 
       902 
902 
     | 
    
         
             
                        });
         
     | 
| 
         @@ -2573,7 +2573,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false, 
     | 
|
| 
       2573 
2573 
     | 
    
         
             
                                    configOutDir: _path.default.join(dir, configOutDir),
         
     | 
| 
       2574 
2574 
     | 
    
         
             
                                    staticPages,
         
     | 
| 
       2575 
2575 
     | 
    
         
             
                                    serverPropsPages,
         
     | 
| 
       2576 
     | 
    
         
            -
                                    nextVersion: "16.0.1-canary. 
     | 
| 
      
 2576 
     | 
    
         
            +
                                    nextVersion: "16.0.1-canary.1",
         
     | 
| 
       2577 
2577 
     | 
    
         
             
                                    tracingRoot: outputFileTracingRoot,
         
     | 
| 
       2578 
2578 
     | 
    
         
             
                                    hasNodeMiddleware,
         
     | 
| 
       2579 
2579 
     | 
    
         
             
                                    hasInstrumentationHook,
         
     | 
    
        package/dist/build/swc/index.js
    CHANGED
    
    | 
         @@ -130,7 +130,7 @@ function _interop_require_wildcard(obj, nodeInterop) { 
     | 
|
| 
       130 
130 
     | 
    
         
             
                }
         
     | 
| 
       131 
131 
     | 
    
         
             
                return newObj;
         
     | 
| 
       132 
132 
     | 
    
         
             
            }
         
     | 
| 
       133 
     | 
    
         
            -
            const nextVersion = "16.0.1-canary. 
     | 
| 
      
 133 
     | 
    
         
            +
            const nextVersion = "16.0.1-canary.1";
         
     | 
| 
       134 
134 
     | 
    
         
             
            const ArchName = (0, _os.arch)();
         
     | 
| 
       135 
135 
     | 
    
         
             
            const PlatformName = (0, _os.platform)();
         
     | 
| 
       136 
136 
     | 
    
         
             
            function infoLog(...args) {
         
     | 
| 
         @@ -1714,7 +1714,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi 
     | 
|
| 
       1714 
1714 
     | 
    
         
             
                        isClient && new _copyfileplugin.CopyFilePlugin({
         
     | 
| 
       1715 
1715 
     | 
    
         
             
                            // file path to build output of `@next/polyfill-nomodule`
         
     | 
| 
       1716 
1716 
     | 
    
         
             
                            filePath: require.resolve('./polyfills/polyfill-nomodule'),
         
     | 
| 
       1717 
     | 
    
         
            -
                            cacheKey: "16.0.1-canary. 
     | 
| 
      
 1717 
     | 
    
         
            +
                            cacheKey: "16.0.1-canary.1",
         
     | 
| 
       1718 
1718 
     | 
    
         
             
                            name: `static/chunks/polyfills${dev ? '' : '-[hash]'}.js`,
         
     | 
| 
       1719 
1719 
     | 
    
         
             
                            minimize: false,
         
     | 
| 
       1720 
1720 
     | 
    
         
             
                            info: {
         
     | 
| 
         @@ -1905,7 +1905,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi 
     | 
|
| 
       1905 
1905 
     | 
    
         
             
                    //  - Next.js location on disk (some loaders use absolute paths and some resolve options depend on absolute paths)
         
     | 
| 
       1906 
1906 
     | 
    
         
             
                    //  - Next.js version
         
     | 
| 
       1907 
1907 
     | 
    
         
             
                    //  - next.config.js keys that affect compilation
         
     | 
| 
       1908 
     | 
    
         
            -
                    version: `${__dirname}|${"16.0.1-canary. 
     | 
| 
      
 1908 
     | 
    
         
            +
                    version: `${__dirname}|${"16.0.1-canary.1"}|${configVars}`,
         
     | 
| 
       1909 
1909 
     | 
    
         
             
                    cacheDirectory: _path.default.join(distDir, 'cache', 'webpack'),
         
     | 
| 
       1910 
1910 
     | 
    
         
             
                    // For production builds, it's more efficient to compress all cache files together instead of compression each one individually.
         
     | 
| 
       1911 
1911 
     | 
    
         
             
                    // So we disable compression here and allow the build runner to take care of compressing the cache as a whole.
         
     | 
| 
         @@ -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.0.1-canary. 
     | 
| 
      
 18 
     | 
    
         
            +
            const version = "16.0.1-canary.1";
         
     | 
| 
       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.0.1-canary. 
     | 
| 
      
 63 
     | 
    
         
            +
            const version = "16.0.1-canary.1";
         
     | 
| 
       64 
64 
     | 
    
         
             
            let router;
         
     | 
| 
       65 
65 
     | 
    
         
             
            const emitter = (0, _mitt.default)();
         
     | 
| 
       66 
66 
     | 
    
         
             
            const looseToArray = (input)=>[].slice.call(input);
         
     |