next 15.0.4-canary.3 → 15.0.4-canary.4
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.
Potentially problematic release.
This version of next might be problematic. Click here for more details.
- package/dist/bin/next +1 -1
- package/dist/build/index.js +2 -2
- 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/@edge-runtime/primitives/abort-controller.js.text.js +1 -1
- package/dist/compiled/@edge-runtime/primitives/blob.js.text.js +1 -1
- package/dist/compiled/@edge-runtime/primitives/console.js.text.js +1 -1
- package/dist/compiled/@edge-runtime/primitives/crypto.js.text.js +1 -1
- package/dist/compiled/@edge-runtime/primitives/events.js.text.js +1 -1
- package/dist/compiled/@edge-runtime/primitives/fetch.js.text.js +1 -1
- package/dist/compiled/@edge-runtime/primitives/package.json +1 -1
- package/dist/compiled/@edge-runtime/primitives/structured-clone.js.text.js +1 -1
- package/dist/compiled/@edge-runtime/primitives/timers.js.text.js +1 -1
- package/dist/compiled/@edge-runtime/primitives/url.js.text.js +1 -1
- package/dist/compiled/babel/bundle.js +11 -11
- package/dist/compiled/babel-packages/packages-bundle.js +3 -3
- package/dist/compiled/edge-runtime/index.js +1 -1
- package/dist/compiled/next-server/server.runtime.prod.js +10 -10
- package/dist/compiled/next-server/server.runtime.prod.js.map +1 -1
- package/dist/esm/build/index.js +2 -2
- 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/esm/server/lib/start-server.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/server/lib/start-server.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/experimental/testing/server.d.ts +1 -1
- package/experimental/testing/server.js +1 -1
- package/package.json +17 -17
package/dist/esm/build/index.js
CHANGED
|
@@ -283,7 +283,7 @@ export default async function build(dir, reactProductionProfiling = false, debug
|
|
|
283
283
|
const nextBuildSpan = trace('next-build', undefined, {
|
|
284
284
|
buildMode: experimentalBuildMode,
|
|
285
285
|
isTurboBuild: String(turboNextBuild),
|
|
286
|
-
version: "15.0.4-canary.
|
|
286
|
+
version: "15.0.4-canary.4"
|
|
287
287
|
});
|
|
288
288
|
NextBuildContext.nextBuildSpan = nextBuildSpan;
|
|
289
289
|
NextBuildContext.dir = dir;
|
|
@@ -684,7 +684,7 @@ export default async function build(dir, reactProductionProfiling = false, debug
|
|
|
684
684
|
// Files outside of the distDir can be "type": "module"
|
|
685
685
|
await writeFileUtf8(path.join(distDir, 'package.json'), '{"type": "commonjs"}');
|
|
686
686
|
// These are written to distDir, so they need to come after creating and cleaning distDr.
|
|
687
|
-
await recordFrameworkVersion("15.0.4-canary.
|
|
687
|
+
await recordFrameworkVersion("15.0.4-canary.4");
|
|
688
688
|
await updateBuildDiagnostics({
|
|
689
689
|
buildStage: 'start'
|
|
690
690
|
});
|
|
@@ -11,7 +11,7 @@ import { isDeepStrictEqual } from 'util';
|
|
|
11
11
|
import { getDefineEnv } from '../webpack/plugins/define-env-plugin';
|
|
12
12
|
import { getReactCompilerLoader } from '../get-babel-loader-config';
|
|
13
13
|
import { TurbopackInternalError } from '../../server/dev/turbopack-utils';
|
|
14
|
-
const nextVersion = "15.0.4-canary.
|
|
14
|
+
const nextVersion = "15.0.4-canary.4";
|
|
15
15
|
const ArchName = arch();
|
|
16
16
|
const PlatformName = platform();
|
|
17
17
|
function infoLog(...args) {
|
|
@@ -1409,7 +1409,7 @@ export default async function getBaseWebpackConfig(dir, { buildId, encryptionKey
|
|
|
1409
1409
|
isClient && new CopyFilePlugin({
|
|
1410
1410
|
// file path to build output of `@next/polyfill-nomodule`
|
|
1411
1411
|
filePath: require.resolve('./polyfills/polyfill-nomodule'),
|
|
1412
|
-
cacheKey: "15.0.4-canary.
|
|
1412
|
+
cacheKey: "15.0.4-canary.4",
|
|
1413
1413
|
name: `static/chunks/polyfills${dev ? '' : '-[hash]'}.js`,
|
|
1414
1414
|
minimize: false,
|
|
1415
1415
|
info: {
|
|
@@ -1637,7 +1637,7 @@ export default async function getBaseWebpackConfig(dir, { buildId, encryptionKey
|
|
|
1637
1637
|
// - Next.js location on disk (some loaders use absolute paths and some resolve options depend on absolute paths)
|
|
1638
1638
|
// - Next.js version
|
|
1639
1639
|
// - next.config.js keys that affect compilation
|
|
1640
|
-
version: `${__dirname}|${"15.0.4-canary.
|
|
1640
|
+
version: `${__dirname}|${"15.0.4-canary.4"}|${configVars}`,
|
|
1641
1641
|
cacheDirectory: path.join(distDir, 'cache', 'webpack'),
|
|
1642
1642
|
// For production builds, it's more efficient to compress all cache files together instead of compression each one individually.
|
|
1643
1643
|
// 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 './react-client-callbacks/shared';
|
|
27
27
|
import tracer from './tracing/tracer';
|
|
28
28
|
import reportToSocket from './tracing/report-to-socket';
|
|
29
|
-
export const version = "15.0.4-canary.
|
|
29
|
+
export const version = "15.0.4-canary.4";
|
|
30
30
|
export let router;
|
|
31
31
|
export const emitter = mitt();
|
|
32
32
|
const looseToArray = (input)=>[].slice.call(input);
|
|
@@ -155,7 +155,7 @@ function assignDefaults(dir, userConfig, silent) {
|
|
|
155
155
|
if (((_result_experimental = result.experimental) == null ? void 0 : _result_experimental.allowDevelopmentBuild) && process.env.NODE_ENV !== 'development') {
|
|
156
156
|
throw new Error(`The experimental.allowDevelopmentBuild option requires NODE_ENV to be explicitly set to 'development'.`);
|
|
157
157
|
}
|
|
158
|
-
if (!((_process_env___NEXT_VERSION = "15.0.4-canary.
|
|
158
|
+
if (!((_process_env___NEXT_VERSION = "15.0.4-canary.4") == null ? void 0 : _process_env___NEXT_VERSION.includes('canary')) && !process.env.__NEXT_TEST_MODE && !process.env.NEXT_PRIVATE_SKIP_CANARY_CHECK) {
|
|
159
159
|
var _result_experimental7, _result_experimental8, _result_experimental_turbo3, _result_experimental9;
|
|
160
160
|
// Prevents usage of certain experimental features outside of canary
|
|
161
161
|
if ((_result_experimental7 = result.experimental) == null ? void 0 : _result_experimental7.ppr) {
|
|
@@ -48,7 +48,7 @@ export async function createHotReloaderTurbopack(opts, serverFields, distDir, re
|
|
|
48
48
|
}
|
|
49
49
|
const hasRewrites = opts.fsChecker.rewrites.afterFiles.length > 0 || opts.fsChecker.rewrites.beforeFiles.length > 0 || opts.fsChecker.rewrites.fallback.length > 0;
|
|
50
50
|
const hotReloaderSpan = trace('hot-reloader', undefined, {
|
|
51
|
-
version: "15.0.4-canary.
|
|
51
|
+
version: "15.0.4-canary.4"
|
|
52
52
|
});
|
|
53
53
|
// Ensure the hotReloaderSpan is flushed immediately as it's the parentSpan for all processing
|
|
54
54
|
// 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: "15.0.4-canary.
|
|
187
|
+
version: "15.0.4-canary.4"
|
|
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 = Infinity }) {
|
|
7
|
-
Log.bootstrap(`${bold(purple(`${Log.prefixes.ready} Next.js ${"15.0.4-canary.
|
|
7
|
+
Log.bootstrap(`${bold(purple(`${Log.prefixes.ready} Next.js ${"15.0.4-canary.4"}`))}${process.env.TURBOPACK ? ' (Turbopack)' : ''}`);
|
|
8
8
|
if (appUrl) {
|
|
9
9
|
Log.bootstrap(`- Local: ${appUrl}`);
|
|
10
10
|
}
|
|
@@ -40,7 +40,7 @@ export async function getRequestHandlers({ dir, port, isDev, onCleanup, server,
|
|
|
40
40
|
export async function startServer(serverOptions) {
|
|
41
41
|
const { dir, isDev, hostname, minimalMode, allowRetry, keepAliveTimeout, selfSignedCertificate } = serverOptions;
|
|
42
42
|
let { port } = serverOptions;
|
|
43
|
-
process.title = `next-server (v${"15.0.4-canary.
|
|
43
|
+
process.title = `next-server (v${"15.0.4-canary.4"})`;
|
|
44
44
|
let handlersReady = ()=>{};
|
|
45
45
|
let handlersError = ()=>{};
|
|
46
46
|
let handlersPromise = new Promise((resolve, reject)=>{
|
package/dist/server/config.js
CHANGED
|
@@ -234,7 +234,7 @@ function assignDefaults(dir, userConfig, silent) {
|
|
|
234
234
|
if (((_result_experimental = result.experimental) == null ? void 0 : _result_experimental.allowDevelopmentBuild) && process.env.NODE_ENV !== 'development') {
|
|
235
235
|
throw new Error(`The experimental.allowDevelopmentBuild option requires NODE_ENV to be explicitly set to 'development'.`);
|
|
236
236
|
}
|
|
237
|
-
if (!((_process_env___NEXT_VERSION = "15.0.4-canary.
|
|
237
|
+
if (!((_process_env___NEXT_VERSION = "15.0.4-canary.4") == null ? void 0 : _process_env___NEXT_VERSION.includes('canary')) && !process.env.__NEXT_TEST_MODE && !process.env.NEXT_PRIVATE_SKIP_CANARY_CHECK) {
|
|
238
238
|
var _result_experimental7, _result_experimental8, _result_experimental_turbo3, _result_experimental9;
|
|
239
239
|
// Prevents usage of certain experimental features outside of canary
|
|
240
240
|
if ((_result_experimental7 = result.experimental) == null ? void 0 : _result_experimental7.ppr) {
|
|
@@ -104,7 +104,7 @@ async function createHotReloaderTurbopack(opts, serverFields, distDir, resetFetc
|
|
|
104
104
|
}
|
|
105
105
|
const hasRewrites = opts.fsChecker.rewrites.afterFiles.length > 0 || opts.fsChecker.rewrites.beforeFiles.length > 0 || opts.fsChecker.rewrites.fallback.length > 0;
|
|
106
106
|
const hotReloaderSpan = (0, _trace.trace)('hot-reloader', undefined, {
|
|
107
|
-
version: "15.0.4-canary.
|
|
107
|
+
version: "15.0.4-canary.4"
|
|
108
108
|
});
|
|
109
109
|
// Ensure the hotReloaderSpan is flushed immediately as it's the parentSpan for all processing
|
|
110
110
|
// of the current `next dev` invocation.
|
|
@@ -260,7 +260,7 @@ class HotReloaderWebpack {
|
|
|
260
260
|
this.previewProps = previewProps;
|
|
261
261
|
this.rewrites = rewrites;
|
|
262
262
|
this.hotReloaderSpan = (0, _trace.trace)('hot-reloader', undefined, {
|
|
263
|
-
version: "15.0.4-canary.
|
|
263
|
+
version: "15.0.4-canary.4"
|
|
264
264
|
});
|
|
265
265
|
// Ensure the hotReloaderSpan is flushed immediately as it's the parentSpan for all processing
|
|
266
266
|
// of the current `next dev` invocation.
|
|
@@ -67,7 +67,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
67
67
|
return newObj;
|
|
68
68
|
}
|
|
69
69
|
function logStartInfo({ networkUrl, appUrl, envInfo, expFeatureInfo, maxExperimentalFeatures = Infinity }) {
|
|
70
|
-
_log.bootstrap(`${(0, _picocolors.bold)((0, _picocolors.purple)(`${_log.prefixes.ready} Next.js ${"15.0.4-canary.
|
|
70
|
+
_log.bootstrap(`${(0, _picocolors.bold)((0, _picocolors.purple)(`${_log.prefixes.ready} Next.js ${"15.0.4-canary.4"}`))}${process.env.TURBOPACK ? ' (Turbopack)' : ''}`);
|
|
71
71
|
if (appUrl) {
|
|
72
72
|
_log.bootstrap(`- Local: ${appUrl}`);
|
|
73
73
|
}
|
|
@@ -108,7 +108,7 @@ async function getRequestHandlers({ dir, port, isDev, onCleanup, server, hostnam
|
|
|
108
108
|
async function startServer(serverOptions) {
|
|
109
109
|
const { dir, isDev, hostname, minimalMode, allowRetry, keepAliveTimeout, selfSignedCertificate } = serverOptions;
|
|
110
110
|
let { port } = serverOptions;
|
|
111
|
-
process.title = `next-server (v${"15.0.4-canary.
|
|
111
|
+
process.title = `next-server (v${"15.0.4-canary.4"})`;
|
|
112
112
|
let handlersReady = ()=>{};
|
|
113
113
|
let handlersError = ()=>{};
|
|
114
114
|
let handlersPromise = new Promise((resolve, reject)=>{
|
|
@@ -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 "15.0.4-canary.
|
|
14
|
+
if (typeof "15.0.4-canary.4" !== 'string') {
|
|
15
15
|
return [];
|
|
16
16
|
}
|
|
17
17
|
const payload = {
|
|
18
|
-
nextVersion: "15.0.4-canary.
|
|
18
|
+
nextVersion: "15.0.4-canary.4",
|
|
19
19
|
nodeVersion: process.version,
|
|
20
20
|
cliCommand: event.cliCommand,
|
|
21
21
|
durationMilliseconds: event.durationMilliseconds,
|
|
@@ -36,12 +36,12 @@ function hasBabelConfig(dir) {
|
|
|
36
36
|
function eventCliSession(dir, nextConfig, event) {
|
|
37
37
|
var _nextConfig_experimental_staleTimes, _nextConfig_experimental_staleTimes1, _nextConfig_experimental_reactCompiler, _nextConfig_experimental_reactCompiler1;
|
|
38
38
|
// This should be an invariant, if it fails our build tooling is broken.
|
|
39
|
-
if (typeof "15.0.4-canary.
|
|
39
|
+
if (typeof "15.0.4-canary.4" !== 'string') {
|
|
40
40
|
return [];
|
|
41
41
|
}
|
|
42
42
|
const { images, i18n } = nextConfig || {};
|
|
43
43
|
const payload = {
|
|
44
|
-
nextVersion: "15.0.4-canary.
|
|
44
|
+
nextVersion: "15.0.4-canary.4",
|
|
45
45
|
nodeVersion: process.version,
|
|
46
46
|
cliCommand: event.cliCommand,
|
|
47
47
|
isSrcDir: event.isSrcDir,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '
|
|
1
|
+
export * from '../../dist/experimental/testing/server'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = require('
|
|
1
|
+
module.exports = require('../../dist/experimental/testing/server')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "next",
|
|
3
|
-
"version": "15.0.4-canary.
|
|
3
|
+
"version": "15.0.4-canary.4",
|
|
4
4
|
"description": "The React Framework",
|
|
5
5
|
"main": "./dist/server/next.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
]
|
|
98
98
|
},
|
|
99
99
|
"dependencies": {
|
|
100
|
-
"@next/env": "15.0.4-canary.
|
|
100
|
+
"@next/env": "15.0.4-canary.4",
|
|
101
101
|
"@swc/counter": "0.1.3",
|
|
102
102
|
"@swc/helpers": "0.5.13",
|
|
103
103
|
"busboy": "1.6.0",
|
|
@@ -129,14 +129,14 @@
|
|
|
129
129
|
},
|
|
130
130
|
"optionalDependencies": {
|
|
131
131
|
"sharp": "^0.33.5",
|
|
132
|
-
"@next/swc-darwin-arm64": "15.0.4-canary.
|
|
133
|
-
"@next/swc-darwin-x64": "15.0.4-canary.
|
|
134
|
-
"@next/swc-linux-arm64-gnu": "15.0.4-canary.
|
|
135
|
-
"@next/swc-linux-arm64-musl": "15.0.4-canary.
|
|
136
|
-
"@next/swc-linux-x64-gnu": "15.0.4-canary.
|
|
137
|
-
"@next/swc-linux-x64-musl": "15.0.4-canary.
|
|
138
|
-
"@next/swc-win32-arm64-msvc": "15.0.4-canary.
|
|
139
|
-
"@next/swc-win32-x64-msvc": "15.0.4-canary.
|
|
132
|
+
"@next/swc-darwin-arm64": "15.0.4-canary.4",
|
|
133
|
+
"@next/swc-darwin-x64": "15.0.4-canary.4",
|
|
134
|
+
"@next/swc-linux-arm64-gnu": "15.0.4-canary.4",
|
|
135
|
+
"@next/swc-linux-arm64-musl": "15.0.4-canary.4",
|
|
136
|
+
"@next/swc-linux-x64-gnu": "15.0.4-canary.4",
|
|
137
|
+
"@next/swc-linux-x64-musl": "15.0.4-canary.4",
|
|
138
|
+
"@next/swc-win32-arm64-msvc": "15.0.4-canary.4",
|
|
139
|
+
"@next/swc-win32-x64-msvc": "15.0.4-canary.4"
|
|
140
140
|
},
|
|
141
141
|
"devDependencies": {
|
|
142
142
|
"@ampproject/toolbox-optimizer": "2.8.3",
|
|
@@ -163,17 +163,17 @@
|
|
|
163
163
|
"@capsizecss/metrics": "3.2.0",
|
|
164
164
|
"@edge-runtime/cookies": "5.0.0",
|
|
165
165
|
"@edge-runtime/ponyfill": "3.0.0",
|
|
166
|
-
"@edge-runtime/primitives": "5.
|
|
166
|
+
"@edge-runtime/primitives": "5.1.1",
|
|
167
167
|
"@hapi/accept": "5.0.2",
|
|
168
168
|
"@jest/transform": "29.5.0",
|
|
169
169
|
"@jest/types": "29.5.0",
|
|
170
170
|
"@mswjs/interceptors": "0.23.0",
|
|
171
171
|
"@napi-rs/triples": "1.2.0",
|
|
172
|
-
"@next/font": "15.0.4-canary.
|
|
173
|
-
"@next/polyfill-module": "15.0.4-canary.
|
|
174
|
-
"@next/polyfill-nomodule": "15.0.4-canary.
|
|
175
|
-
"@next/react-refresh-utils": "15.0.4-canary.
|
|
176
|
-
"@next/swc": "15.0.4-canary.
|
|
172
|
+
"@next/font": "15.0.4-canary.4",
|
|
173
|
+
"@next/polyfill-module": "15.0.4-canary.4",
|
|
174
|
+
"@next/polyfill-nomodule": "15.0.4-canary.4",
|
|
175
|
+
"@next/react-refresh-utils": "15.0.4-canary.4",
|
|
176
|
+
"@next/swc": "15.0.4-canary.4",
|
|
177
177
|
"@opentelemetry/api": "1.6.0",
|
|
178
178
|
"@playwright/test": "1.41.2",
|
|
179
179
|
"@swc/core": "1.7.0-nightly-20240714.1",
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
"debug": "4.1.1",
|
|
251
251
|
"devalue": "2.0.1",
|
|
252
252
|
"domain-browser": "4.19.0",
|
|
253
|
-
"edge-runtime": "3.0.
|
|
253
|
+
"edge-runtime": "3.0.5",
|
|
254
254
|
"events": "3.3.0",
|
|
255
255
|
"find-up": "4.1.0",
|
|
256
256
|
"fresh": "0.5.2",
|