next 14.1.2-canary.2 → 14.1.2-canary.3
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 +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 +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/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/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/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
|
@@ -71,7 +71,7 @@ const program = new MyRootCommand();
|
|
|
71
71
|
program.name("next").description("The Next.js CLI allows you to develop, build, start your application, and more.").configureHelp({
|
|
72
72
|
formatHelp: (cmd, helper)=>(0, _formatclihelpoutput.formatCliHelpOutput)(cmd, helper),
|
|
73
73
|
subcommandTerm: (cmd)=>`${cmd.name()} ${cmd.usage()}`
|
|
74
|
-
}).helpCommand(false).helpOption("-h, --help", "Displays this message.").version(`Next.js v${"14.1.2-canary.
|
|
74
|
+
}).helpCommand(false).helpOption("-h, --help", "Displays this message.").version(`Next.js v${"14.1.2-canary.3"}`, "-v, --version", "Outputs the Next.js version.");
|
|
75
75
|
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("--profile", "Enables production profiling for React.").option("--no-lint", "Disables linting.").option("--no-mangling", "Disables mangling.").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([
|
|
76
76
|
"compile",
|
|
77
77
|
"generate"
|
package/dist/build/index.js
CHANGED
|
@@ -338,7 +338,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
|
|
|
338
338
|
const nextBuildSpan = (0, _trace.trace)("next-build", undefined, {
|
|
339
339
|
buildMode: experimentalBuildMode,
|
|
340
340
|
isTurboBuild: String(turboNextBuild),
|
|
341
|
-
version: "14.1.2-canary.
|
|
341
|
+
version: "14.1.2-canary.3"
|
|
342
342
|
});
|
|
343
343
|
_buildcontext.NextBuildContext.nextBuildSpan = nextBuildSpan;
|
|
344
344
|
_buildcontext.NextBuildContext.dir = dir;
|
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 = "14.1.2-canary.
|
|
130
|
+
const nextVersion = "14.1.2-canary.3";
|
|
131
131
|
const ArchName = (0, _os.arch)();
|
|
132
132
|
const PlatformName = (0, _os.platform)();
|
|
133
133
|
const infoLog = (...args)=>{
|
|
@@ -1510,7 +1510,7 @@ async function getBaseWebpackConfig(dir, { buildId, config, compilerType, dev =
|
|
|
1510
1510
|
new _wellknownerrorsplugin.WellKnownErrorsPlugin(),
|
|
1511
1511
|
isClient && new _copyfileplugin.CopyFilePlugin({
|
|
1512
1512
|
filePath: require.resolve("./polyfills/polyfill-nomodule"),
|
|
1513
|
-
cacheKey: "14.1.2-canary.
|
|
1513
|
+
cacheKey: "14.1.2-canary.3",
|
|
1514
1514
|
name: `static/chunks/polyfills${dev ? "" : "-[hash]"}.js`,
|
|
1515
1515
|
minimize: false,
|
|
1516
1516
|
info: {
|
|
@@ -1736,7 +1736,7 @@ async function getBaseWebpackConfig(dir, { buildId, config, compilerType, dev =
|
|
|
1736
1736
|
// - Next.js location on disk (some loaders use absolute paths and some resolve options depend on absolute paths)
|
|
1737
1737
|
// - Next.js version
|
|
1738
1738
|
// - next.config.js keys that affect compilation
|
|
1739
|
-
version: `${__dirname}|${"14.1.2-canary.
|
|
1739
|
+
version: `${__dirname}|${"14.1.2-canary.3"}|${configVars}`,
|
|
1740
1740
|
cacheDirectory: _path.default.join(distDir, "cache", "webpack"),
|
|
1741
1741
|
// For production builds, it's more efficient to compress all cache files together instead of compression each one individually.
|
|
1742
1742
|
// So we disable compression here and allow the build runner to take care of compressing the cache as a whole.
|
package/dist/client/index.js
CHANGED
|
@@ -62,7 +62,7 @@ const _hooksclientcontextsharedruntime = require("../shared/lib/hooks-client-con
|
|
|
62
62
|
const _onrecoverableerror = /*#__PURE__*/ _interop_require_default._(require("./on-recoverable-error"));
|
|
63
63
|
const _tracer = /*#__PURE__*/ _interop_require_default._(require("./tracing/tracer"));
|
|
64
64
|
const _reporttosocket = /*#__PURE__*/ _interop_require_default._(require("./tracing/report-to-socket"));
|
|
65
|
-
const version = "14.1.2-canary.
|
|
65
|
+
const version = "14.1.2-canary.3";
|
|
66
66
|
let router;
|
|
67
67
|
const emitter = (0, _mitt.default)();
|
|
68
68
|
const looseToArray = (input)=>[].slice.call(input);
|
package/dist/esm/build/index.js
CHANGED
|
@@ -284,7 +284,7 @@ export default async function build(dir, reactProductionProfiling = false, debug
|
|
|
284
284
|
const nextBuildSpan = trace("next-build", undefined, {
|
|
285
285
|
buildMode: experimentalBuildMode,
|
|
286
286
|
isTurboBuild: String(turboNextBuild),
|
|
287
|
-
version: "14.1.2-canary.
|
|
287
|
+
version: "14.1.2-canary.3"
|
|
288
288
|
});
|
|
289
289
|
NextBuildContext.nextBuildSpan = nextBuildSpan;
|
|
290
290
|
NextBuildContext.dir = dir;
|
|
@@ -9,7 +9,7 @@ import { patchIncorrectLockfile } from "../../lib/patch-incorrect-lockfile";
|
|
|
9
9
|
import { downloadNativeNextSwc, downloadWasmSwc } from "../../lib/download-swc";
|
|
10
10
|
import { isDeepStrictEqual } from "util";
|
|
11
11
|
import { getDefineEnv } from "../webpack/plugins/define-env-plugin";
|
|
12
|
-
const nextVersion = "14.1.2-canary.
|
|
12
|
+
const nextVersion = "14.1.2-canary.3";
|
|
13
13
|
const ArchName = arch();
|
|
14
14
|
const PlatformName = platform();
|
|
15
15
|
const infoLog = (...args)=>{
|
|
@@ -1405,7 +1405,7 @@ export default async function getBaseWebpackConfig(dir, { buildId, config, compi
|
|
|
1405
1405
|
new WellKnownErrorsPlugin(),
|
|
1406
1406
|
isClient && new CopyFilePlugin({
|
|
1407
1407
|
filePath: require.resolve("./polyfills/polyfill-nomodule"),
|
|
1408
|
-
cacheKey: "14.1.2-canary.
|
|
1408
|
+
cacheKey: "14.1.2-canary.3",
|
|
1409
1409
|
name: `static/chunks/polyfills${dev ? "" : "-[hash]"}.js`,
|
|
1410
1410
|
minimize: false,
|
|
1411
1411
|
info: {
|
|
@@ -1631,7 +1631,7 @@ export default async function getBaseWebpackConfig(dir, { buildId, config, compi
|
|
|
1631
1631
|
// - Next.js location on disk (some loaders use absolute paths and some resolve options depend on absolute paths)
|
|
1632
1632
|
// - Next.js version
|
|
1633
1633
|
// - next.config.js keys that affect compilation
|
|
1634
|
-
version: `${__dirname}|${"14.1.2-canary.
|
|
1634
|
+
version: `${__dirname}|${"14.1.2-canary.3"}|${configVars}`,
|
|
1635
1635
|
cacheDirectory: path.join(distDir, "cache", "webpack"),
|
|
1636
1636
|
// For production builds, it's more efficient to compress all cache files together instead of compression each one individually.
|
|
1637
1637
|
// So we disable compression here and allow the build runner to take care of compressing the cache as a whole.
|
package/dist/esm/client/index.js
CHANGED
|
@@ -26,7 +26,7 @@ import { SearchParamsContext, PathParamsContext } from "../shared/lib/hooks-clie
|
|
|
26
26
|
import onRecoverableError from "./on-recoverable-error";
|
|
27
27
|
import tracer from "./tracing/tracer";
|
|
28
28
|
import reportToSocket from "./tracing/report-to-socket";
|
|
29
|
-
export const version = "14.1.2-canary.
|
|
29
|
+
export const version = "14.1.2-canary.3";
|
|
30
30
|
export let router;
|
|
31
31
|
export const emitter = mitt();
|
|
32
32
|
const looseToArray = (input)=>[].slice.call(input);
|
|
@@ -184,7 +184,7 @@ function assignDefaults(dir, userConfig, silent) {
|
|
|
184
184
|
...defaultConfig,
|
|
185
185
|
...config
|
|
186
186
|
};
|
|
187
|
-
if (((_result_experimental = result.experimental) == null ? void 0 : _result_experimental.ppr) && !"14.1.2-canary.
|
|
187
|
+
if (((_result_experimental = result.experimental) == null ? void 0 : _result_experimental.ppr) && !"14.1.2-canary.3".includes("canary") && !process.env.__NEXT_TEST_MODE) {
|
|
188
188
|
throw new Error(`The experimental.ppr preview feature can only be enabled when using the latest canary version of Next.js. See more info here: https://nextjs.org/docs/messages/ppr-preview`);
|
|
189
189
|
}
|
|
190
190
|
if (result.output === "export") {
|
|
@@ -39,7 +39,7 @@ export async function createHotReloaderTurbopack(opts, serverFields, distDir) {
|
|
|
39
39
|
}
|
|
40
40
|
const hasRewrites = opts.fsChecker.rewrites.afterFiles.length > 0 || opts.fsChecker.rewrites.beforeFiles.length > 0 || opts.fsChecker.rewrites.fallback.length > 0;
|
|
41
41
|
const hotReloaderSpan = trace("hot-reloader", undefined, {
|
|
42
|
-
version: "14.1.2-canary.
|
|
42
|
+
version: "14.1.2-canary.3"
|
|
43
43
|
});
|
|
44
44
|
// Ensure the hotReloaderSpan is flushed immediately as it's the parentSpan for all processing
|
|
45
45
|
// of the current `next dev` invocation.
|
|
@@ -184,7 +184,7 @@ export default class HotReloaderWebpack {
|
|
|
184
184
|
this.previewProps = previewProps;
|
|
185
185
|
this.rewrites = rewrites;
|
|
186
186
|
this.hotReloaderSpan = trace("hot-reloader", undefined, {
|
|
187
|
-
version: "14.1.2-canary.
|
|
187
|
+
version: "14.1.2-canary.3"
|
|
188
188
|
});
|
|
189
189
|
// Ensure the hotReloaderSpan is flushed immediately as it's the parentSpan for all processing
|
|
190
190
|
// of the current `next dev` invocation.
|
|
@@ -4,7 +4,7 @@ import { bold, purple } from "../../lib/picocolors";
|
|
|
4
4
|
import { PHASE_DEVELOPMENT_SERVER, PHASE_PRODUCTION_BUILD } from "../../shared/lib/constants";
|
|
5
5
|
import loadConfig, { getEnabledExperimentalFeatures } from "../config";
|
|
6
6
|
export function logStartInfo({ networkUrl, appUrl, envInfo, expFeatureInfo, maxExperimentalFeatures }) {
|
|
7
|
-
Log.bootstrap(bold(purple(` ${Log.prefixes.ready} Next.js ${"14.1.2-canary.
|
|
7
|
+
Log.bootstrap(bold(purple(` ${Log.prefixes.ready} Next.js ${"14.1.2-canary.3"}${process.env.TURBOPACK ? " (turbo)" : ""}`)));
|
|
8
8
|
if (appUrl) {
|
|
9
9
|
Log.bootstrap(` - Local: ${appUrl}`);
|
|
10
10
|
}
|
package/dist/server/config.js
CHANGED
|
@@ -261,7 +261,7 @@ function assignDefaults(dir, userConfig, silent) {
|
|
|
261
261
|
..._configshared.defaultConfig,
|
|
262
262
|
...config
|
|
263
263
|
};
|
|
264
|
-
if (((_result_experimental = result.experimental) == null ? void 0 : _result_experimental.ppr) && !"14.1.2-canary.
|
|
264
|
+
if (((_result_experimental = result.experimental) == null ? void 0 : _result_experimental.ppr) && !"14.1.2-canary.3".includes("canary") && !process.env.__NEXT_TEST_MODE) {
|
|
265
265
|
throw new Error(`The experimental.ppr preview feature can only be enabled when using the latest canary version of Next.js. See more info here: https://nextjs.org/docs/messages/ppr-preview`);
|
|
266
266
|
}
|
|
267
267
|
if (result.output === "export") {
|
|
@@ -93,7 +93,7 @@ async function createHotReloaderTurbopack(opts, serverFields, distDir) {
|
|
|
93
93
|
}
|
|
94
94
|
const hasRewrites = opts.fsChecker.rewrites.afterFiles.length > 0 || opts.fsChecker.rewrites.beforeFiles.length > 0 || opts.fsChecker.rewrites.fallback.length > 0;
|
|
95
95
|
const hotReloaderSpan = (0, _trace.trace)("hot-reloader", undefined, {
|
|
96
|
-
version: "14.1.2-canary.
|
|
96
|
+
version: "14.1.2-canary.3"
|
|
97
97
|
});
|
|
98
98
|
// Ensure the hotReloaderSpan is flushed immediately as it's the parentSpan for all processing
|
|
99
99
|
// of the current `next dev` invocation.
|
|
@@ -258,7 +258,7 @@ class HotReloaderWebpack {
|
|
|
258
258
|
this.previewProps = previewProps;
|
|
259
259
|
this.rewrites = rewrites;
|
|
260
260
|
this.hotReloaderSpan = (0, _trace.trace)("hot-reloader", undefined, {
|
|
261
|
-
version: "14.1.2-canary.
|
|
261
|
+
version: "14.1.2-canary.3"
|
|
262
262
|
});
|
|
263
263
|
// Ensure the hotReloaderSpan is flushed immediately as it's the parentSpan for all processing
|
|
264
264
|
// of the current `next dev` invocation.
|
|
@@ -65,7 +65,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
65
65
|
return newObj;
|
|
66
66
|
}
|
|
67
67
|
function logStartInfo({ networkUrl, appUrl, envInfo, expFeatureInfo, maxExperimentalFeatures }) {
|
|
68
|
-
_log.bootstrap((0, _picocolors.bold)((0, _picocolors.purple)(` ${_log.prefixes.ready} Next.js ${"14.1.2-canary.
|
|
68
|
+
_log.bootstrap((0, _picocolors.bold)((0, _picocolors.purple)(` ${_log.prefixes.ready} Next.js ${"14.1.2-canary.3"}${process.env.TURBOPACK ? " (turbo)" : ""}`)));
|
|
69
69
|
if (appUrl) {
|
|
70
70
|
_log.bootstrap(` - Local: ${appUrl}`);
|
|
71
71
|
}
|
|
@@ -11,11 +11,11 @@ Object.defineProperty(exports, "eventCliSessionStopped", {
|
|
|
11
11
|
const EVENT_VERSION = "NEXT_CLI_SESSION_STOPPED";
|
|
12
12
|
function eventCliSessionStopped(event) {
|
|
13
13
|
// This should be an invariant, if it fails our build tooling is broken.
|
|
14
|
-
if (typeof "14.1.2-canary.
|
|
14
|
+
if (typeof "14.1.2-canary.3" !== "string") {
|
|
15
15
|
return [];
|
|
16
16
|
}
|
|
17
17
|
const payload = {
|
|
18
|
-
nextVersion: "14.1.2-canary.
|
|
18
|
+
nextVersion: "14.1.2-canary.3",
|
|
19
19
|
nodeVersion: process.version,
|
|
20
20
|
cliCommand: event.cliCommand,
|
|
21
21
|
durationMilliseconds: event.durationMilliseconds,
|
|
@@ -35,12 +35,12 @@ function hasBabelConfig(dir) {
|
|
|
35
35
|
}
|
|
36
36
|
function eventCliSession(dir, nextConfig, event) {
|
|
37
37
|
// This should be an invariant, if it fails our build tooling is broken.
|
|
38
|
-
if (typeof "14.1.2-canary.
|
|
38
|
+
if (typeof "14.1.2-canary.3" !== "string") {
|
|
39
39
|
return [];
|
|
40
40
|
}
|
|
41
41
|
const { images, i18n } = nextConfig || {};
|
|
42
42
|
const payload = {
|
|
43
|
-
nextVersion: "14.1.2-canary.
|
|
43
|
+
nextVersion: "14.1.2-canary.3",
|
|
44
44
|
nodeVersion: process.version,
|
|
45
45
|
cliCommand: event.cliCommand,
|
|
46
46
|
isSrcDir: event.isSrcDir,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "next",
|
|
3
|
-
"version": "14.1.2-canary.
|
|
3
|
+
"version": "14.1.2-canary.3",
|
|
4
4
|
"description": "The React Framework",
|
|
5
5
|
"main": "./dist/server/next.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
]
|
|
93
93
|
},
|
|
94
94
|
"dependencies": {
|
|
95
|
-
"@next/env": "14.1.2-canary.
|
|
95
|
+
"@next/env": "14.1.2-canary.3",
|
|
96
96
|
"@swc/helpers": "0.5.5",
|
|
97
97
|
"busboy": "1.6.0",
|
|
98
98
|
"caniuse-lite": "^1.0.30001579",
|
|
@@ -145,10 +145,10 @@
|
|
|
145
145
|
"@jest/types": "29.5.0",
|
|
146
146
|
"@mswjs/interceptors": "0.23.0",
|
|
147
147
|
"@napi-rs/triples": "1.2.0",
|
|
148
|
-
"@next/polyfill-module": "14.1.2-canary.
|
|
149
|
-
"@next/polyfill-nomodule": "14.1.2-canary.
|
|
150
|
-
"@next/react-refresh-utils": "14.1.2-canary.
|
|
151
|
-
"@next/swc": "14.1.2-canary.
|
|
148
|
+
"@next/polyfill-module": "14.1.2-canary.3",
|
|
149
|
+
"@next/polyfill-nomodule": "14.1.2-canary.3",
|
|
150
|
+
"@next/react-refresh-utils": "14.1.2-canary.3",
|
|
151
|
+
"@next/swc": "14.1.2-canary.3",
|
|
152
152
|
"@opentelemetry/api": "1.6.0",
|
|
153
153
|
"@playwright/test": "1.41.2",
|
|
154
154
|
"@taskr/clear": "1.1.0",
|
|
@@ -320,14 +320,14 @@
|
|
|
320
320
|
"node": ">=18.17.0"
|
|
321
321
|
},
|
|
322
322
|
"optionalDependencies": {
|
|
323
|
-
"@next/swc-darwin-arm64": "14.1.2-canary.
|
|
324
|
-
"@next/swc-darwin-x64": "14.1.2-canary.
|
|
325
|
-
"@next/swc-linux-arm64-gnu": "14.1.2-canary.
|
|
326
|
-
"@next/swc-linux-arm64-musl": "14.1.2-canary.
|
|
327
|
-
"@next/swc-linux-x64-gnu": "14.1.2-canary.
|
|
328
|
-
"@next/swc-linux-x64-musl": "14.1.2-canary.
|
|
329
|
-
"@next/swc-win32-arm64-msvc": "14.1.2-canary.
|
|
330
|
-
"@next/swc-win32-ia32-msvc": "14.1.2-canary.
|
|
331
|
-
"@next/swc-win32-x64-msvc": "14.1.2-canary.
|
|
323
|
+
"@next/swc-darwin-arm64": "14.1.2-canary.3",
|
|
324
|
+
"@next/swc-darwin-x64": "14.1.2-canary.3",
|
|
325
|
+
"@next/swc-linux-arm64-gnu": "14.1.2-canary.3",
|
|
326
|
+
"@next/swc-linux-arm64-musl": "14.1.2-canary.3",
|
|
327
|
+
"@next/swc-linux-x64-gnu": "14.1.2-canary.3",
|
|
328
|
+
"@next/swc-linux-x64-musl": "14.1.2-canary.3",
|
|
329
|
+
"@next/swc-win32-arm64-msvc": "14.1.2-canary.3",
|
|
330
|
+
"@next/swc-win32-ia32-msvc": "14.1.2-canary.3",
|
|
331
|
+
"@next/swc-win32-x64-msvc": "14.1.2-canary.3"
|
|
332
332
|
}
|
|
333
333
|
}
|