next 14.0.1 → 14.0.2-canary.0
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/dev/hot-reloader-webpack.js +1 -1
- package/dist/esm/server/lib/app-info-log.js +1 -1
- package/dist/esm/shared/lib/hash.js +8 -2
- package/dist/esm/shared/lib/hash.js.map +1 -1
- package/dist/server/dev/hot-reloader-webpack.js +1 -1
- package/dist/server/lib/app-info-log.js +1 -1
- package/dist/shared/lib/hash.js +8 -2
- package/dist/shared/lib/hash.js.map +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 +16 -16
package/dist/bin/next
CHANGED
|
@@ -69,7 +69,7 @@ const args = (0, _index.default)({
|
|
|
69
69
|
});
|
|
70
70
|
// Version is inlined into the file using taskr build pipeline
|
|
71
71
|
if (args["--version"]) {
|
|
72
|
-
console.log(`Next.js v${"14.0.
|
|
72
|
+
console.log(`Next.js v${"14.0.2-canary.0"}`);
|
|
73
73
|
process.exit(0);
|
|
74
74
|
}
|
|
75
75
|
// Check if we are running `next <subcommand>` or `next`
|
package/dist/build/index.js
CHANGED
|
@@ -178,7 +178,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
|
|
|
178
178
|
const nextBuildSpan = (0, _trace.trace)("next-build", undefined, {
|
|
179
179
|
buildMode: buildMode,
|
|
180
180
|
isTurboBuild: String(turboNextBuild),
|
|
181
|
-
version: "14.0.
|
|
181
|
+
version: "14.0.2-canary.0"
|
|
182
182
|
});
|
|
183
183
|
_buildcontext.NextBuildContext.nextBuildSpan = nextBuildSpan;
|
|
184
184
|
_buildcontext.NextBuildContext.dir = dir;
|
package/dist/build/swc/index.js
CHANGED
|
@@ -131,7 +131,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
131
131
|
}
|
|
132
132
|
return newObj;
|
|
133
133
|
}
|
|
134
|
-
const nextVersion = "14.0.
|
|
134
|
+
const nextVersion = "14.0.2-canary.0";
|
|
135
135
|
const ArchName = (0, _os.arch)();
|
|
136
136
|
const PlatformName = (0, _os.platform)();
|
|
137
137
|
const infoLog = (...args)=>{
|
|
@@ -1395,7 +1395,7 @@ async function getBaseWebpackConfig(dir, { buildId, config, compilerType, dev =
|
|
|
1395
1395
|
new _wellknownerrorsplugin.WellKnownErrorsPlugin(),
|
|
1396
1396
|
isClient && new _copyfileplugin.CopyFilePlugin({
|
|
1397
1397
|
filePath: require.resolve("./polyfills/polyfill-nomodule"),
|
|
1398
|
-
cacheKey: "14.0.
|
|
1398
|
+
cacheKey: "14.0.2-canary.0",
|
|
1399
1399
|
name: `static/chunks/polyfills${dev ? "" : "-[hash]"}.js`,
|
|
1400
1400
|
minimize: false,
|
|
1401
1401
|
info: {
|
|
@@ -1618,7 +1618,7 @@ async function getBaseWebpackConfig(dir, { buildId, config, compilerType, dev =
|
|
|
1618
1618
|
// Includes:
|
|
1619
1619
|
// - Next.js version
|
|
1620
1620
|
// - next.config.js keys that affect compilation
|
|
1621
|
-
version: `${"14.0.
|
|
1621
|
+
version: `${"14.0.2-canary.0"}|${configVars}`,
|
|
1622
1622
|
cacheDirectory: _path.default.join(distDir, "cache", "webpack"),
|
|
1623
1623
|
// For production builds, it's more efficient to compress all cache files together instead of compression each one individually.
|
|
1624
1624
|
// 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
|
@@ -60,7 +60,7 @@ const _hooksclientcontextsharedruntime = require("../shared/lib/hooks-client-con
|
|
|
60
60
|
const _onrecoverableerror = /*#__PURE__*/ _interop_require_default._(require("./on-recoverable-error"));
|
|
61
61
|
const _tracer = /*#__PURE__*/ _interop_require_default._(require("./tracing/tracer"));
|
|
62
62
|
const _reporttosocket = /*#__PURE__*/ _interop_require_default._(require("./tracing/report-to-socket"));
|
|
63
|
-
const version = "14.0.
|
|
63
|
+
const version = "14.0.2-canary.0";
|
|
64
64
|
let router;
|
|
65
65
|
const emitter = (0, _mitt.default)();
|
|
66
66
|
const looseToArray = (input)=>[].slice.call(input);
|
package/dist/esm/build/index.js
CHANGED
|
@@ -112,7 +112,7 @@ export default async function build(dir, reactProductionProfiling = false, debug
|
|
|
112
112
|
const nextBuildSpan = trace("next-build", undefined, {
|
|
113
113
|
buildMode: buildMode,
|
|
114
114
|
isTurboBuild: String(turboNextBuild),
|
|
115
|
-
version: "14.0.
|
|
115
|
+
version: "14.0.2-canary.0"
|
|
116
116
|
});
|
|
117
117
|
NextBuildContext.nextBuildSpan = nextBuildSpan;
|
|
118
118
|
NextBuildContext.dir = dir;
|
|
@@ -9,7 +9,7 @@ import { patchIncorrectLockfile } from "../../lib/patch-incorrect-lockfile";
|
|
|
9
9
|
import { downloadWasmSwc, downloadNativeNextSwc } from "../../lib/download-swc";
|
|
10
10
|
import { isDeepStrictEqual } from "util";
|
|
11
11
|
import { getDefineEnv } from "../webpack/plugins/define-env-plugin";
|
|
12
|
-
const nextVersion = "14.0.
|
|
12
|
+
const nextVersion = "14.0.2-canary.0";
|
|
13
13
|
const ArchName = arch();
|
|
14
14
|
const PlatformName = platform();
|
|
15
15
|
const infoLog = (...args)=>{
|
|
@@ -1297,7 +1297,7 @@ export default async function getBaseWebpackConfig(dir, { buildId, config, compi
|
|
|
1297
1297
|
new WellKnownErrorsPlugin(),
|
|
1298
1298
|
isClient && new CopyFilePlugin({
|
|
1299
1299
|
filePath: require.resolve("./polyfills/polyfill-nomodule"),
|
|
1300
|
-
cacheKey: "14.0.
|
|
1300
|
+
cacheKey: "14.0.2-canary.0",
|
|
1301
1301
|
name: `static/chunks/polyfills${dev ? "" : "-[hash]"}.js`,
|
|
1302
1302
|
minimize: false,
|
|
1303
1303
|
info: {
|
|
@@ -1520,7 +1520,7 @@ export default async function getBaseWebpackConfig(dir, { buildId, config, compi
|
|
|
1520
1520
|
// Includes:
|
|
1521
1521
|
// - Next.js version
|
|
1522
1522
|
// - next.config.js keys that affect compilation
|
|
1523
|
-
version: `${"14.0.
|
|
1523
|
+
version: `${"14.0.2-canary.0"}|${configVars}`,
|
|
1524
1524
|
cacheDirectory: path.join(distDir, "cache", "webpack"),
|
|
1525
1525
|
// For production builds, it's more efficient to compress all cache files together instead of compression each one individually.
|
|
1526
1526
|
// 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
|
@@ -25,7 +25,7 @@ import { SearchParamsContext, PathParamsContext } from "../shared/lib/hooks-clie
|
|
|
25
25
|
import onRecoverableError from "./on-recoverable-error";
|
|
26
26
|
import tracer from "./tracing/tracer";
|
|
27
27
|
import reportToSocket from "./tracing/report-to-socket";
|
|
28
|
-
export const version = "14.0.
|
|
28
|
+
export const version = "14.0.2-canary.0";
|
|
29
29
|
export let router;
|
|
30
30
|
export const emitter = mitt();
|
|
31
31
|
const looseToArray = (input)=>[].slice.call(input);
|
|
@@ -144,7 +144,7 @@ export default class HotReloader {
|
|
|
144
144
|
this.previewProps = previewProps;
|
|
145
145
|
this.rewrites = rewrites;
|
|
146
146
|
this.hotReloaderSpan = trace("hot-reloader", undefined, {
|
|
147
|
-
version: "14.0.
|
|
147
|
+
version: "14.0.2-canary.0"
|
|
148
148
|
});
|
|
149
149
|
// Ensure the hotReloaderSpan is flushed immediately as it's the parentSpan for all processing
|
|
150
150
|
// of the current `next dev` invocation.
|
|
@@ -4,7 +4,7 @@ import { bold, purple } from "../../lib/picocolors";
|
|
|
4
4
|
import { PHASE_DEVELOPMENT_SERVER } 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.0.
|
|
7
|
+
Log.bootstrap(bold(purple(` ${Log.prefixes.ready} Next.js ${"14.0.2-canary.0"}${process.env.TURBOPACK ? " (turbo)" : ""}`)));
|
|
8
8
|
if (appUrl) {
|
|
9
9
|
Log.bootstrap(` - Local: ${appUrl}`);
|
|
10
10
|
}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
// http://www.cse.yorku.ca/~oz/hash.html
|
|
2
|
+
// More specifically, 32-bit hash via djbxor
|
|
3
|
+
// (ref: https://gist.github.com/eplawless/52813b1d8ad9af510d85?permalink_comment_id=3367765#gistcomment-3367765)
|
|
4
|
+
// This is due to number type differences between rust for turbopack to js number types,
|
|
5
|
+
// where rust does not have easy way to repreesnt js's 53-bit float number type for the matching
|
|
6
|
+
// overflow behavior. This is more `correct` in terms of having canonical hash across different runtime / implementation
|
|
7
|
+
// as can gaurantee determinstic output from 32bit hash.
|
|
2
8
|
export function djb2Hash(str) {
|
|
3
9
|
let hash = 5381;
|
|
4
10
|
for(let i = 0; i < str.length; i++){
|
|
5
11
|
const char = str.charCodeAt(i);
|
|
6
|
-
hash = (hash << 5) + hash + char;
|
|
12
|
+
hash = (hash << 5) + hash + char & 0xffffffff;
|
|
7
13
|
}
|
|
8
|
-
return
|
|
14
|
+
return hash >>> 0;
|
|
9
15
|
}
|
|
10
16
|
export function hexHash(str) {
|
|
11
17
|
return djb2Hash(str).toString(36).slice(0, 5);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/shared/lib/hash.ts"],"names":["djb2Hash","str","hash","i","length","char","charCodeAt","
|
|
1
|
+
{"version":3,"sources":["../../../src/shared/lib/hash.ts"],"names":["djb2Hash","str","hash","i","length","char","charCodeAt","hexHash","toString","slice"],"mappings":"AAAA,wCAAwC;AACxC,4CAA4C;AAC5C,iHAAiH;AACjH,wFAAwF;AACxF,gGAAgG;AAChG,wHAAwH;AACxH,wDAAwD;AACxD,OAAO,SAASA,SAASC,GAAW;IAClC,IAAIC,OAAO;IACX,IAAK,IAAIC,IAAI,GAAGA,IAAIF,IAAIG,MAAM,EAAED,IAAK;QACnC,MAAME,OAAOJ,IAAIK,UAAU,CAACH;QAC5BD,OAAO,AAAEA,CAAAA,QAAQ,CAAA,IAAKA,OAAOG,OAAQ;IACvC;IACA,OAAOH,SAAS;AAClB;AAEA,OAAO,SAASK,QAAQN,GAAW;IACjC,OAAOD,SAASC,KAAKO,QAAQ,CAAC,IAAIC,KAAK,CAAC,GAAG;AAC7C"}
|
|
@@ -214,7 +214,7 @@ class HotReloader {
|
|
|
214
214
|
this.previewProps = previewProps;
|
|
215
215
|
this.rewrites = rewrites;
|
|
216
216
|
this.hotReloaderSpan = (0, _trace.trace)("hot-reloader", undefined, {
|
|
217
|
-
version: "14.0.
|
|
217
|
+
version: "14.0.2-canary.0"
|
|
218
218
|
});
|
|
219
219
|
// Ensure the hotReloaderSpan is flushed immediately as it's the parentSpan for all processing
|
|
220
220
|
// 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.0.
|
|
68
|
+
_log.bootstrap((0, _picocolors.bold)((0, _picocolors.purple)(` ${_log.prefixes.ready} Next.js ${"14.0.2-canary.0"}${process.env.TURBOPACK ? " (turbo)" : ""}`)));
|
|
69
69
|
if (appUrl) {
|
|
70
70
|
_log.bootstrap(` - Local: ${appUrl}`);
|
|
71
71
|
}
|
package/dist/shared/lib/hash.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
// http://www.cse.yorku.ca/~oz/hash.html
|
|
2
|
+
// More specifically, 32-bit hash via djbxor
|
|
3
|
+
// (ref: https://gist.github.com/eplawless/52813b1d8ad9af510d85?permalink_comment_id=3367765#gistcomment-3367765)
|
|
4
|
+
// This is due to number type differences between rust for turbopack to js number types,
|
|
5
|
+
// where rust does not have easy way to repreesnt js's 53-bit float number type for the matching
|
|
6
|
+
// overflow behavior. This is more `correct` in terms of having canonical hash across different runtime / implementation
|
|
7
|
+
// as can gaurantee determinstic output from 32bit hash.
|
|
2
8
|
"use strict";
|
|
3
9
|
Object.defineProperty(exports, "__esModule", {
|
|
4
10
|
value: true
|
|
@@ -25,9 +31,9 @@ function djb2Hash(str) {
|
|
|
25
31
|
let hash = 5381;
|
|
26
32
|
for(let i = 0; i < str.length; i++){
|
|
27
33
|
const char = str.charCodeAt(i);
|
|
28
|
-
hash = (hash << 5) + hash + char;
|
|
34
|
+
hash = (hash << 5) + hash + char & 0xffffffff;
|
|
29
35
|
}
|
|
30
|
-
return
|
|
36
|
+
return hash >>> 0;
|
|
31
37
|
}
|
|
32
38
|
function hexHash(str) {
|
|
33
39
|
return djb2Hash(str).toString(36).slice(0, 5);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/shared/lib/hash.ts"],"names":["djb2Hash","hexHash","str","hash","i","length","char","charCodeAt","
|
|
1
|
+
{"version":3,"sources":["../../../src/shared/lib/hash.ts"],"names":["djb2Hash","hexHash","str","hash","i","length","char","charCodeAt","toString","slice"],"mappings":"AAAA,wCAAwC;AACxC,4CAA4C;AAC5C,iHAAiH;AACjH,wFAAwF;AACxF,gGAAgG;AAChG,wHAAwH;AACxH,wDAAwD;;;;;;;;;;;;;;;;IACxCA,QAAQ;eAARA;;IASAC,OAAO;eAAPA;;;AATT,SAASD,SAASE,GAAW;IAClC,IAAIC,OAAO;IACX,IAAK,IAAIC,IAAI,GAAGA,IAAIF,IAAIG,MAAM,EAAED,IAAK;QACnC,MAAME,OAAOJ,IAAIK,UAAU,CAACH;QAC5BD,OAAO,AAAEA,CAAAA,QAAQ,CAAA,IAAKA,OAAOG,OAAQ;IACvC;IACA,OAAOH,SAAS;AAClB;AAEO,SAASF,QAAQC,GAAW;IACjC,OAAOF,SAASE,KAAKM,QAAQ,CAAC,IAAIC,KAAK,CAAC,GAAG;AAC7C"}
|
|
@@ -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.0.
|
|
14
|
+
if (typeof "14.0.2-canary.0" !== "string") {
|
|
15
15
|
return [];
|
|
16
16
|
}
|
|
17
17
|
const payload = {
|
|
18
|
-
nextVersion: "14.0.
|
|
18
|
+
nextVersion: "14.0.2-canary.0",
|
|
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.0.
|
|
38
|
+
if (typeof "14.0.2-canary.0" !== "string") {
|
|
39
39
|
return [];
|
|
40
40
|
}
|
|
41
41
|
const { images, i18n } = nextConfig || {};
|
|
42
42
|
const payload = {
|
|
43
|
-
nextVersion: "14.0.
|
|
43
|
+
nextVersion: "14.0.2-canary.0",
|
|
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.0.
|
|
3
|
+
"version": "14.0.2-canary.0",
|
|
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.0.
|
|
95
|
+
"@next/env": "14.0.2-canary.0",
|
|
96
96
|
"@swc/helpers": "0.5.2",
|
|
97
97
|
"busboy": "1.6.0",
|
|
98
98
|
"caniuse-lite": "^1.0.30001406",
|
|
@@ -146,11 +146,11 @@
|
|
|
146
146
|
"@mswjs/interceptors": "0.23.0",
|
|
147
147
|
"@napi-rs/cli": "2.16.2",
|
|
148
148
|
"@napi-rs/triples": "1.1.0",
|
|
149
|
-
"@next/polyfill-module": "14.0.
|
|
150
|
-
"@next/polyfill-nomodule": "14.0.
|
|
151
|
-
"@next/react-dev-overlay": "14.0.
|
|
152
|
-
"@next/react-refresh-utils": "14.0.
|
|
153
|
-
"@next/swc": "14.0.
|
|
149
|
+
"@next/polyfill-module": "14.0.2-canary.0",
|
|
150
|
+
"@next/polyfill-nomodule": "14.0.2-canary.0",
|
|
151
|
+
"@next/react-dev-overlay": "14.0.2-canary.0",
|
|
152
|
+
"@next/react-refresh-utils": "14.0.2-canary.0",
|
|
153
|
+
"@next/swc": "14.0.2-canary.0",
|
|
154
154
|
"@opentelemetry/api": "1.4.1",
|
|
155
155
|
"@playwright/test": "^1.35.1",
|
|
156
156
|
"@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.0.
|
|
324
|
-
"@next/swc-darwin-x64": "14.0.
|
|
325
|
-
"@next/swc-linux-arm64-gnu": "14.0.
|
|
326
|
-
"@next/swc-linux-arm64-musl": "14.0.
|
|
327
|
-
"@next/swc-linux-x64-gnu": "14.0.
|
|
328
|
-
"@next/swc-linux-x64-musl": "14.0.
|
|
329
|
-
"@next/swc-win32-arm64-msvc": "14.0.
|
|
330
|
-
"@next/swc-win32-ia32-msvc": "14.0.
|
|
331
|
-
"@next/swc-win32-x64-msvc": "14.0.
|
|
323
|
+
"@next/swc-darwin-arm64": "14.0.2-canary.0",
|
|
324
|
+
"@next/swc-darwin-x64": "14.0.2-canary.0",
|
|
325
|
+
"@next/swc-linux-arm64-gnu": "14.0.2-canary.0",
|
|
326
|
+
"@next/swc-linux-arm64-musl": "14.0.2-canary.0",
|
|
327
|
+
"@next/swc-linux-x64-gnu": "14.0.2-canary.0",
|
|
328
|
+
"@next/swc-linux-x64-musl": "14.0.2-canary.0",
|
|
329
|
+
"@next/swc-win32-arm64-msvc": "14.0.2-canary.0",
|
|
330
|
+
"@next/swc-win32-ia32-msvc": "14.0.2-canary.0",
|
|
331
|
+
"@next/swc-win32-x64-msvc": "14.0.2-canary.0"
|
|
332
332
|
}
|
|
333
333
|
}
|