next 15.3.0-canary.4 → 15.3.0-canary.5
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 +9 -10
- package/dist/build/index.js.map +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 +9 -10
- package/dist/esm/build/index.js.map +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/lib/inline-static-env.js +13 -18
- package/dist/esm/lib/inline-static-env.js.map +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/canary-only.js +1 -1
- package/dist/lib/inline-static-env.d.ts +1 -2
- package/dist/lib/inline-static-env.js +13 -18
- package/dist/lib/inline-static-env.js.map +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/canary-only.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/build/swc/index.js
CHANGED
@@ -119,7 +119,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
119
119
|
}
|
120
120
|
return newObj;
|
121
121
|
}
|
122
|
-
const nextVersion = "15.3.0-canary.
|
122
|
+
const nextVersion = "15.3.0-canary.5";
|
123
123
|
const ArchName = (0, _os.arch)();
|
124
124
|
const PlatformName = (0, _os.platform)();
|
125
125
|
function infoLog(...args) {
|
@@ -1626,7 +1626,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
|
|
1626
1626
|
isClient && new _copyfileplugin.CopyFilePlugin({
|
1627
1627
|
// file path to build output of `@next/polyfill-nomodule`
|
1628
1628
|
filePath: require.resolve('./polyfills/polyfill-nomodule'),
|
1629
|
-
cacheKey: "15.3.0-canary.
|
1629
|
+
cacheKey: "15.3.0-canary.5",
|
1630
1630
|
name: `static/chunks/polyfills${dev ? '' : '-[hash]'}.js`,
|
1631
1631
|
minimize: false,
|
1632
1632
|
info: {
|
@@ -1803,7 +1803,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
|
|
1803
1803
|
// - Next.js location on disk (some loaders use absolute paths and some resolve options depend on absolute paths)
|
1804
1804
|
// - Next.js version
|
1805
1805
|
// - next.config.js keys that affect compilation
|
1806
|
-
version: `${__dirname}|${"15.3.0-canary.
|
1806
|
+
version: `${__dirname}|${"15.3.0-canary.5"}|${configVars}`,
|
1807
1807
|
cacheDirectory: _path.default.join(distDir, 'cache', 'webpack'),
|
1808
1808
|
// For production builds, it's more efficient to compress all cache files together instead of compression each one individually.
|
1809
1809
|
// 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
@@ -61,7 +61,7 @@ const _hooksclientcontextsharedruntime = require("../shared/lib/hooks-client-con
|
|
61
61
|
const _onrecoverableerror = require("./react-client-callbacks/on-recoverable-error");
|
62
62
|
const _tracer = /*#__PURE__*/ _interop_require_default._(require("./tracing/tracer"));
|
63
63
|
const _isnextroutererror = require("./components/is-next-router-error");
|
64
|
-
const version = "15.3.0-canary.
|
64
|
+
const version = "15.3.0-canary.5";
|
65
65
|
let router;
|
66
66
|
const emitter = (0, _mitt.default)();
|
67
67
|
const looseToArray = (input)=>[].slice.call(input);
|
package/dist/esm/build/index.js
CHANGED
@@ -300,7 +300,7 @@ export default async function build(dir, reactProductionProfiling = false, debug
|
|
300
300
|
const nextBuildSpan = trace('next-build', undefined, {
|
301
301
|
buildMode: experimentalBuildMode,
|
302
302
|
isTurboBuild: String(turboNextBuild),
|
303
|
-
version: "15.3.0-canary.
|
303
|
+
version: "15.3.0-canary.5"
|
304
304
|
});
|
305
305
|
NextBuildContext.nextBuildSpan = nextBuildSpan;
|
306
306
|
NextBuildContext.dir = dir;
|
@@ -664,7 +664,7 @@ export default async function build(dir, reactProductionProfiling = false, debug
|
|
664
664
|
// Files outside of the distDir can be "type": "module"
|
665
665
|
await writeFileUtf8(path.join(distDir, 'package.json'), '{"type": "commonjs"}');
|
666
666
|
// These are written to distDir, so they need to come after creating and cleaning distDr.
|
667
|
-
await recordFrameworkVersion("15.3.0-canary.
|
667
|
+
await recordFrameworkVersion("15.3.0-canary.5");
|
668
668
|
await updateBuildDiagnostics({
|
669
669
|
buildStage: 'start'
|
670
670
|
});
|
@@ -1242,7 +1242,7 @@ export default async function build(dir, reactProductionProfiling = false, debug
|
|
1242
1242
|
cacheHandlers: normalizedCacheHandlers,
|
1243
1243
|
trustHostHeader: ciEnvironment.hasNextSupport,
|
1244
1244
|
// @ts-expect-error internal field TODO: fix this, should use a separate mechanism to pass the info.
|
1245
|
-
isExperimentalCompile: isCompileMode
|
1245
|
+
isExperimentalCompile: isCompileMode || isGenerateMode && config.experimental.generateOnlyEnv
|
1246
1246
|
}
|
1247
1247
|
},
|
1248
1248
|
appDir: dir,
|
@@ -1410,18 +1410,17 @@ export default async function build(dir, reactProductionProfiling = false, debug
|
|
1410
1410
|
await nextBuildSpan.traceChild('inline-static-env').traceAsyncFn(async ()=>{
|
1411
1411
|
await inlineStaticEnv({
|
1412
1412
|
distDir,
|
1413
|
-
config
|
1414
|
-
buildId
|
1413
|
+
config
|
1415
1414
|
});
|
1416
1415
|
});
|
1417
1416
|
// users might only want to inline env during experimental generate
|
1418
|
-
// instead of also prerendering e.g. for
|
1417
|
+
// instead of also prerendering e.g. for test mode so exit after
|
1419
1418
|
if (config.experimental.generateOnlyEnv) {
|
1420
|
-
Log.info('
|
1419
|
+
Log.info('Inlined static env, exiting due to experimental.generateOnlyEnv');
|
1420
|
+
await flushAllTraces();
|
1421
|
+
teardownTraceSubscriber();
|
1422
|
+
process.exit(0);
|
1421
1423
|
}
|
1422
|
-
await flushAllTraces();
|
1423
|
-
teardownTraceSubscriber();
|
1424
|
-
process.exit(0);
|
1425
1424
|
}
|
1426
1425
|
const middlewareManifest = await readManifest(path.join(distDir, SERVER_DIRECTORY, MIDDLEWARE_MANIFEST));
|
1427
1426
|
const prerenderManifest = {
|