next 15.1.5 → 15.1.6
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/utils.js +5 -14
- package/dist/build/utils.js.map +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 +2 -2
- package/dist/esm/build/swc/index.js +1 -1
- package/dist/esm/build/utils.js +5 -14
- package/dist/esm/build/utils.js.map +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/after/awaiter.js +6 -4
- package/dist/esm/server/after/awaiter.js.map +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/after/awaiter.js +6 -4
- package/dist/server/after/awaiter.js.map +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/package.json +15 -15
|
@@ -1480,7 +1480,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
|
|
|
1480
1480
|
isClient && new _copyfileplugin.CopyFilePlugin({
|
|
1481
1481
|
// file path to build output of `@next/polyfill-nomodule`
|
|
1482
1482
|
filePath: require.resolve('./polyfills/polyfill-nomodule'),
|
|
1483
|
-
cacheKey: "15.1.
|
|
1483
|
+
cacheKey: "15.1.6",
|
|
1484
1484
|
name: `static/chunks/polyfills${dev ? '' : '-[hash]'}.js`,
|
|
1485
1485
|
minimize: false,
|
|
1486
1486
|
info: {
|
|
@@ -1708,7 +1708,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
|
|
|
1708
1708
|
// - Next.js location on disk (some loaders use absolute paths and some resolve options depend on absolute paths)
|
|
1709
1709
|
// - Next.js version
|
|
1710
1710
|
// - next.config.js keys that affect compilation
|
|
1711
|
-
version: `${__dirname}|${"15.1.
|
|
1711
|
+
version: `${__dirname}|${"15.1.6"}|${configVars}`,
|
|
1712
1712
|
cacheDirectory: _path.default.join(distDir, 'cache', 'webpack'),
|
|
1713
1713
|
// For production builds, it's more efficient to compress all cache files together instead of compression each one individually.
|
|
1714
1714
|
// 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 _shared = require("./react-client-callbacks/shared");
|
|
|
62
62
|
const _tracer = /*#__PURE__*/ _interop_require_default._(require("./tracing/tracer"));
|
|
63
63
|
const _reporttosocket = /*#__PURE__*/ _interop_require_default._(require("./tracing/report-to-socket"));
|
|
64
64
|
const _isnextroutererror = require("./components/is-next-router-error");
|
|
65
|
-
const version = "15.1.
|
|
65
|
+
const version = "15.1.6";
|
|
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
|
@@ -289,7 +289,7 @@ export default async function build(dir, reactProductionProfiling = false, debug
|
|
|
289
289
|
const nextBuildSpan = trace('next-build', undefined, {
|
|
290
290
|
buildMode: experimentalBuildMode,
|
|
291
291
|
isTurboBuild: String(turboNextBuild),
|
|
292
|
-
version: "15.1.
|
|
292
|
+
version: "15.1.6"
|
|
293
293
|
});
|
|
294
294
|
NextBuildContext.nextBuildSpan = nextBuildSpan;
|
|
295
295
|
NextBuildContext.dir = dir;
|
|
@@ -627,7 +627,7 @@ export default async function build(dir, reactProductionProfiling = false, debug
|
|
|
627
627
|
// Files outside of the distDir can be "type": "module"
|
|
628
628
|
await writeFileUtf8(path.join(distDir, 'package.json'), '{"type": "commonjs"}');
|
|
629
629
|
// These are written to distDir, so they need to come after creating and cleaning distDr.
|
|
630
|
-
await recordFrameworkVersion("15.1.
|
|
630
|
+
await recordFrameworkVersion("15.1.6");
|
|
631
631
|
await updateBuildDiagnostics({
|
|
632
632
|
buildStage: 'start'
|
|
633
633
|
});
|
|
@@ -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.1.
|
|
14
|
+
const nextVersion = "15.1.6";
|
|
15
15
|
const ArchName = arch();
|
|
16
16
|
const PlatformName = platform();
|
|
17
17
|
function infoLog(...args) {
|
package/dist/esm/build/utils.js
CHANGED
|
@@ -740,17 +740,8 @@ export async function buildAppStaticPaths({ dir, page, distDir, dynamicIO, authI
|
|
|
740
740
|
requestHeaders,
|
|
741
741
|
minimalMode: ciEnvironment.hasNextSupport
|
|
742
742
|
});
|
|
743
|
-
const
|
|
744
|
-
const
|
|
745
|
-
for (const segment of segments){
|
|
746
|
-
if (segment.param) {
|
|
747
|
-
var _segment_config;
|
|
748
|
-
paramKeys.add(segment.param);
|
|
749
|
-
if (((_segment_config = segment.config) == null ? void 0 : _segment_config.dynamicParams) === false) {
|
|
750
|
-
staticParamKeys.add(segment.param);
|
|
751
|
-
}
|
|
752
|
-
}
|
|
753
|
-
}
|
|
743
|
+
const regex = getRouteRegex(page);
|
|
744
|
+
const paramKeys = Object.keys(getRouteMatcher(regex)(page) || {});
|
|
754
745
|
const afterRunner = new AfterRunner();
|
|
755
746
|
const store = createWorkStore({
|
|
756
747
|
page,
|
|
@@ -817,10 +808,10 @@ export async function buildAppStaticPaths({ dir, page, distDir, dynamicIO, authI
|
|
|
817
808
|
});
|
|
818
809
|
let lastDynamicSegmentHadGenerateStaticParams = false;
|
|
819
810
|
for (const segment of segments){
|
|
820
|
-
var
|
|
811
|
+
var _segment_config;
|
|
821
812
|
// Check to see if there are any missing params for segments that have
|
|
822
813
|
// dynamicParams set to false.
|
|
823
|
-
if (segment.param && segment.isDynamicSegment && ((
|
|
814
|
+
if (segment.param && segment.isDynamicSegment && ((_segment_config = segment.config) == null ? void 0 : _segment_config.dynamicParams) === false) {
|
|
824
815
|
for (const params of routeParams){
|
|
825
816
|
if (segment.param in params) continue;
|
|
826
817
|
const relative = segment.filePath ? path.relative(dir, segment.filePath) : undefined;
|
|
@@ -835,7 +826,7 @@ export async function buildAppStaticPaths({ dir, page, distDir, dynamicIO, authI
|
|
|
835
826
|
}
|
|
836
827
|
// Determine if all the segments have had their parameters provided. If there
|
|
837
828
|
// was no dynamic parameters, then we've collected all the params.
|
|
838
|
-
const hadAllParamsGenerated = paramKeys.
|
|
829
|
+
const hadAllParamsGenerated = paramKeys.length === 0 || routeParams.length > 0 && routeParams.every((params)=>{
|
|
839
830
|
for (const key of paramKeys){
|
|
840
831
|
if (key in params) continue;
|
|
841
832
|
return false;
|