next 14.2.32 → 14.2.33
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/components/router-reducer/fetch-server-response.js +2 -1
- package/dist/client/components/router-reducer/fetch-server-response.js.map +1 -1
- package/dist/client/components/router-reducer/reducers/server-action-reducer.js +2 -1
- package/dist/client/components/router-reducer/reducers/server-action-reducer.js.map +1 -1
- package/dist/client/flight-data-helpers.d.ts +10 -0
- package/dist/client/flight-data-helpers.js +67 -0
- package/dist/client/flight-data-helpers.js.map +1 -0
- package/dist/client/flight-data-helpers.test.d.ts +1 -0
- 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/components/router-reducer/fetch-server-response.js +2 -1
- package/dist/esm/client/components/router-reducer/fetch-server-response.js.map +1 -1
- package/dist/esm/client/components/router-reducer/reducers/server-action-reducer.js +2 -1
- package/dist/esm/client/components/router-reducer/reducers/server-action-reducer.js.map +1 -1
- package/dist/esm/client/flight-data-helpers.js +58 -0
- package/dist/esm/client/flight-data-helpers.js.map +1 -0
- 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/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.2.
|
|
74
|
+
}).helpCommand(false).helpOption("-h, --help", "Displays this message.").version(`Next.js v${"14.2.33"}`, "-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("--no-lint", "Disables linting.").option("--no-mangling", "Disables mangling.").option("--profile", "Enables production profiling for React.").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
|
@@ -358,7 +358,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
|
|
|
358
358
|
const nextBuildSpan = (0, _trace.trace)("next-build", undefined, {
|
|
359
359
|
buildMode: experimentalBuildMode,
|
|
360
360
|
isTurboBuild: String(turboNextBuild),
|
|
361
|
-
version: "14.2.
|
|
361
|
+
version: "14.2.33"
|
|
362
362
|
});
|
|
363
363
|
_buildcontext.NextBuildContext.nextBuildSpan = nextBuildSpan;
|
|
364
364
|
_buildcontext.NextBuildContext.dir = dir;
|
package/dist/build/swc/index.js
CHANGED
|
@@ -129,7 +129,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
129
129
|
}
|
|
130
130
|
return newObj;
|
|
131
131
|
}
|
|
132
|
-
const nextVersion = "14.2.
|
|
132
|
+
const nextVersion = "14.2.33";
|
|
133
133
|
const ArchName = (0, _os.arch)();
|
|
134
134
|
const PlatformName = (0, _os.platform)();
|
|
135
135
|
const infoLog = (...args)=>{
|
|
@@ -1515,7 +1515,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
|
|
|
1515
1515
|
new _wellknownerrorsplugin.WellKnownErrorsPlugin(),
|
|
1516
1516
|
isClient && new _copyfileplugin.CopyFilePlugin({
|
|
1517
1517
|
filePath: require.resolve("./polyfills/polyfill-nomodule"),
|
|
1518
|
-
cacheKey: "14.2.
|
|
1518
|
+
cacheKey: "14.2.33",
|
|
1519
1519
|
name: `static/chunks/polyfills${dev ? "" : "-[hash]"}.js`,
|
|
1520
1520
|
minimize: false,
|
|
1521
1521
|
info: {
|
|
@@ -1743,7 +1743,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
|
|
|
1743
1743
|
// - Next.js location on disk (some loaders use absolute paths and some resolve options depend on absolute paths)
|
|
1744
1744
|
// - Next.js version
|
|
1745
1745
|
// - next.config.js keys that affect compilation
|
|
1746
|
-
version: `${__dirname}|${"14.2.
|
|
1746
|
+
version: `${__dirname}|${"14.2.33"}|${configVars}`,
|
|
1747
1747
|
cacheDirectory: _path.default.join(distDir, "cache", "webpack"),
|
|
1748
1748
|
// For production builds, it's more efficient to compress all cache files together instead of compression each one individually.
|
|
1749
1749
|
// So we disable compression here and allow the build runner to take care of compressing the cache as a whole.
|
|
@@ -15,6 +15,7 @@ const _approuter = require("../app-router");
|
|
|
15
15
|
const _appcallserver = require("../../app-call-server");
|
|
16
16
|
const _routerreducertypes = require("./router-reducer-types");
|
|
17
17
|
const _hash = require("../../../shared/lib/hash");
|
|
18
|
+
const _flightdatahelpers = require("../../flight-data-helpers");
|
|
18
19
|
// @ts-ignore
|
|
19
20
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
20
21
|
// import { createFromFetch } from 'react-server-dom-webpack/client'
|
|
@@ -32,7 +33,7 @@ async function fetchServerResponse(url, flightRouterState, nextUrl, currentBuild
|
|
|
32
33
|
// Enable flight response
|
|
33
34
|
[_approuterheaders.RSC_HEADER]: "1",
|
|
34
35
|
// Provide the current router state
|
|
35
|
-
[_approuterheaders.NEXT_ROUTER_STATE_TREE]:
|
|
36
|
+
[_approuterheaders.NEXT_ROUTER_STATE_TREE]: (0, _flightdatahelpers.prepareFlightRouterStateForRequest)(flightRouterState)
|
|
36
37
|
};
|
|
37
38
|
/**
|
|
38
39
|
* Three cases:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/client/components/router-reducer/fetch-server-response.ts"],"names":["fetchServerResponse","createFromFetch","process","env","NEXT_RUNTIME","require","doMpaNavigation","url","urlToUrlWithoutFlightMarker","toString","undefined","flightRouterState","nextUrl","currentBuildId","prefetchKind","headers","RSC_HEADER","NEXT_ROUTER_STATE_TREE","
|
|
1
|
+
{"version":3,"sources":["../../../../src/client/components/router-reducer/fetch-server-response.ts"],"names":["fetchServerResponse","createFromFetch","process","env","NEXT_RUNTIME","require","doMpaNavigation","url","urlToUrlWithoutFlightMarker","toString","undefined","flightRouterState","nextUrl","currentBuildId","prefetchKind","headers","RSC_HEADER","NEXT_ROUTER_STATE_TREE","prepareFlightRouterStateForRequest","PrefetchKind","AUTO","NEXT_ROUTER_PREFETCH_HEADER","NEXT_URL","NEXT_DEPLOYMENT_ID","uniqueCacheQuery","hexHash","join","res","fetchUrl","URL","NODE_ENV","__NEXT_CONFIG_OUTPUT","pathname","endsWith","searchParams","set","NEXT_RSC_UNION_QUERY","fetch","credentials","responseUrl","canonicalUrl","redirected","contentType","get","postponed","NEXT_DID_POSTPONE_HEADER","interception","includes","isFlightResponse","RSC_CONTENT_TYPE_HEADER","startsWith","ok","hash","buildId","flightData","Promise","resolve","callServer","err","console","error"],"mappings":"AAAA;;;;;+BA+CsBA;;;eAAAA;;;kCArBf;2BACqC;+BACjB;oCACE;sBACL;mCAC2B;AA7BnD,aAAa;AACb,6DAA6D;AAC7D,oEAAoE;AACpE,MAAM,EAAEC,eAAe,EAAE,GACvB,CAAC,CAACC,QAAQC,GAAG,CAACC,YAAY,GAEtBC,QAAQ,0CAERA,QAAQ;AA8Bd,SAASC,gBAAgBC,GAAW;IAClC,OAAO;QAACC,IAAAA,sCAA2B,EAACD,KAAKE,QAAQ;QAAIC;QAAW;QAAO;KAAM;AAC/E;AAKO,eAAeV,oBACpBO,GAAQ,EACRI,iBAAoC,EACpCC,OAAsB,EACtBC,cAAsB,EACtBC,YAA2B;IAE3B,MAAMC,UAMF;QACF,yBAAyB;QACzB,CAACC,4BAAU,CAAC,EAAE;QACd,mCAAmC;QACnC,CAACC,wCAAsB,CAAC,EACtBC,IAAAA,qDAAkC,EAACP;IACvC;IAEA;;;;;GAKC,GACD,IAAIG,iBAAiBK,gCAAY,CAACC,IAAI,EAAE;QACtCL,OAAO,CAACM,6CAA2B,CAAC,GAAG;IACzC;IAEA,IAAIT,SAAS;QACXG,OAAO,CAACO,0BAAQ,CAAC,GAAGV;IACtB;IAEA,IAAIV,QAAQC,GAAG,CAACoB,kBAAkB,EAAE;QAClCR,OAAO,CAAC,kBAAkB,GAAGb,QAAQC,GAAG,CAACoB,kBAAkB;IAC7D;IAEA,MAAMC,mBAAmBC,IAAAA,aAAO,EAC9B;QACEV,OAAO,CAACM,6CAA2B,CAAC,IAAI;QACxCN,OAAO,CAACE,wCAAsB,CAAC;QAC/BF,OAAO,CAACO,0BAAQ,CAAC;KAClB,CAACI,IAAI,CAAC;IAGT,IAAI;YA0BqBC;QAzBvB,IAAIC,WAAW,IAAIC,IAAItB;QACvB,IAAIL,QAAQC,GAAG,CAAC2B,QAAQ,KAAK,cAAc;YACzC,IAAI5B,QAAQC,GAAG,CAAC4B,oBAAoB,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AAO,CAAC7B,MAChB;YACE8B,YAAAA,yBAAU;QACZ;QAGF,IAAI5C,mBAAmBwC,SAAS;YAC9B,OAAO/C,gBAAgBqB,IAAIpB,GAAG;QAChC;QAEA,OAAO;YAAC+C;YAAYd;YAAcI;YAAWE;SAAa;IAC5D,EAAE,OAAOY,KAAK;QACZC,QAAQC,KAAK,CACX,AAAC,qCAAkCrD,MAAI,yCACvCmD;QAEF,iDAAiD;QACjD,qHAAqH;QACrH,iGAAiG;QACjG,OAAO;YAACnD,IAAIE,QAAQ;YAAIC;YAAW;YAAO;SAAM;IAClD;AACF"}
|
|
@@ -21,6 +21,7 @@ const _approuter = require("../../app-router");
|
|
|
21
21
|
const _hasinterceptionrouteincurrenttree = require("./has-interception-route-in-current-tree");
|
|
22
22
|
const _handlesegmentmismatch = require("../handle-segment-mismatch");
|
|
23
23
|
const _refetchinactiveparallelsegments = require("../refetch-inactive-parallel-segments");
|
|
24
|
+
const _flightdatahelpers = require("../../../flight-data-helpers");
|
|
24
25
|
// // eslint-disable-next-line import/no-extraneous-dependencies
|
|
25
26
|
// import { createFromFetch } from 'react-server-dom-webpack/client'
|
|
26
27
|
// // eslint-disable-next-line import/no-extraneous-dependencies
|
|
@@ -34,7 +35,7 @@ async function fetchServerAction(state, nextUrl, param) {
|
|
|
34
35
|
headers: {
|
|
35
36
|
Accept: _approuterheaders.RSC_CONTENT_TYPE_HEADER,
|
|
36
37
|
[_approuterheaders.ACTION]: actionId,
|
|
37
|
-
[_approuterheaders.NEXT_ROUTER_STATE_TREE]:
|
|
38
|
+
[_approuterheaders.NEXT_ROUTER_STATE_TREE]: (0, _flightdatahelpers.prepareFlightRouterStateForRequest)(state.tree),
|
|
38
39
|
...process.env.NEXT_DEPLOYMENT_ID ? {
|
|
39
40
|
"x-deployment-id": process.env.NEXT_DEPLOYMENT_ID
|
|
40
41
|
} : {},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/client/components/router-reducer/reducers/server-action-reducer.ts"],"names":["serverActionReducer","createFromFetch","encodeReply","process","env","NEXT_RUNTIME","require","fetchServerAction","state","nextUrl","actionId","actionArgs","body","res","fetch","method","headers","Accept","RSC_CONTENT_TYPE_HEADER","ACTION","NEXT_ROUTER_STATE_TREE","
|
|
1
|
+
{"version":3,"sources":["../../../../../src/client/components/router-reducer/reducers/server-action-reducer.ts"],"names":["serverActionReducer","createFromFetch","encodeReply","process","env","NEXT_RUNTIME","require","fetchServerAction","state","nextUrl","actionId","actionArgs","body","res","fetch","method","headers","Accept","RSC_CONTENT_TYPE_HEADER","ACTION","NEXT_ROUTER_STATE_TREE","prepareFlightRouterStateForRequest","tree","NEXT_DEPLOYMENT_ID","NEXT_URL","location","get","revalidatedParts","revalidatedHeader","JSON","parse","paths","tag","cookie","e","redirectLocation","URL","addBasePath","canonicalUrl","window","href","undefined","isFlightResponse","response","Promise","resolve","callServer","actionFlightData","actionResult","action","reject","mutable","currentTree","preserveCustomHistoryState","hasInterceptionRouteInCurrentTree","inFlightServerAction","then","flightData","pushRef","pendingPush","handleExternalUrl","newHref","createHrefFromUrl","flightDataPath","length","console","log","treePatch","newTree","applyRouterStatePatchToTree","handleSegmentMismatch","isNavigatingToNewRootLayout","cacheNodeSeedData","head","slice","rsc","cache","createEmptyCacheNode","prefetchRsc","fillLazyItemsTillLeafWithHead","refreshInactiveParallelSegments","updatedTree","updatedCache","includeNextUrl","Boolean","prefetchCache","Map","patchedTree","handleMutable"],"mappings":";;;;+BAqJgBA;;;eAAAA;;;+BAhJW;kCAMpB;6BAmBqB;mCACM;iCACA;6CACU;6CACA;+BAEd;+CACgB;2BACT;mDACa;uCACZ;iDACU;mCACG;AA9BnD,gEAAgE;AAChE,oEAAoE;AACpE,gEAAgE;AAChE,gEAAgE;AAChE,MAAM,EAAEC,eAAe,EAAEC,WAAW,EAAE,GACpC,CAAC,CAACC,QAAQC,GAAG,CAACC,YAAY,GAEtBC,QAAQ,0CAERA,QAAQ;AAkCd,eAAeC,kBACbC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AA4F;gBAC5FnC,WACA0B,WACAK,mBACAC;gBAGF,MAAMO,IAAAA,gEAA+B,EAAC;oBACpCxE;oBACAyE,aAAab;oBACbc,cAAcN;oBACdO,gBAAgBC,QAAQ3E;oBACxB6B,cAAca,QAAQb,YAAY,IAAI9B,MAAM8B,YAAY;gBAC1D;gBAEAa,QAAQyB,KAAK,GAAGA;gBAChBzB,QAAQkC,aAAa,GAAG,IAAIC;YAC9B;YAEAnC,QAAQoC,WAAW,GAAGnB;YACtBhB,cAAcgB;QAChB;QAEAvB,QAAQG;QAER,OAAOwC,IAAAA,4BAAa,EAAChF,OAAO2C;IAC9B,GACA,CAACjB;QACC,mHAAmH;QACnHgB,OAAOhB;QAEP,OAAO1B;IACT;AAEJ"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { FlightRouterState } from '../server/app-render/types';
|
|
2
|
+
/**
|
|
3
|
+
* This function is used to prepare the flight router state for the request.
|
|
4
|
+
* It removes markers that are not needed by the server, and are purely used
|
|
5
|
+
* for stashing state on the client.
|
|
6
|
+
* @param flightRouterState - The flight router state to prepare.
|
|
7
|
+
* @param isHmrRefresh - Whether this is an HMR refresh request.
|
|
8
|
+
* @returns The prepared flight router state.
|
|
9
|
+
*/
|
|
10
|
+
export declare function prepareFlightRouterStateForRequest(flightRouterState: FlightRouterState, isHmrRefresh?: boolean): string;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "prepareFlightRouterStateForRequest", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return prepareFlightRouterStateForRequest;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _segment = require("../shared/lib/segment");
|
|
12
|
+
function prepareFlightRouterStateForRequest(flightRouterState, isHmrRefresh) {
|
|
13
|
+
// HMR requests need the complete, unmodified state for proper functionality
|
|
14
|
+
if (isHmrRefresh) {
|
|
15
|
+
return encodeURIComponent(JSON.stringify(flightRouterState));
|
|
16
|
+
}
|
|
17
|
+
return encodeURIComponent(JSON.stringify(stripClientOnlyDataFromFlightRouterState(flightRouterState)));
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Recursively strips client-only data from FlightRouterState while preserving
|
|
21
|
+
* server-needed information for proper rendering decisions.
|
|
22
|
+
*/ function stripClientOnlyDataFromFlightRouterState(flightRouterState) {
|
|
23
|
+
const [segment, parallelRoutes, , refreshMarker, isRootLayout] = flightRouterState;
|
|
24
|
+
// __PAGE__ segments are always fetched from the server, so there's
|
|
25
|
+
// no need to send them up
|
|
26
|
+
const cleanedSegment = stripSearchParamsFromPageSegment(segment);
|
|
27
|
+
// Recursively process parallel routes
|
|
28
|
+
const cleanedParallelRoutes = {};
|
|
29
|
+
for (const [key, childState] of Object.entries(parallelRoutes)){
|
|
30
|
+
cleanedParallelRoutes[key] = stripClientOnlyDataFromFlightRouterState(childState);
|
|
31
|
+
}
|
|
32
|
+
const result = [
|
|
33
|
+
cleanedSegment,
|
|
34
|
+
cleanedParallelRoutes,
|
|
35
|
+
null,
|
|
36
|
+
shouldPreserveRefreshMarker(refreshMarker) ? refreshMarker : null
|
|
37
|
+
];
|
|
38
|
+
// Append optional fields if present
|
|
39
|
+
if (isRootLayout !== undefined) {
|
|
40
|
+
result[4] = isRootLayout;
|
|
41
|
+
}
|
|
42
|
+
return result;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Strips search parameters from __PAGE__ segments to prevent sensitive
|
|
46
|
+
* client-side data from being sent to the server.
|
|
47
|
+
*/ function stripSearchParamsFromPageSegment(segment) {
|
|
48
|
+
if (typeof segment === "string" && segment.startsWith(_segment.PAGE_SEGMENT_KEY + "?")) {
|
|
49
|
+
return _segment.PAGE_SEGMENT_KEY;
|
|
50
|
+
}
|
|
51
|
+
return segment;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Determines whether the refresh marker should be sent to the server
|
|
55
|
+
* Client-only markers like 'refresh' are stripped, while server-needed markers
|
|
56
|
+
* like 'refetch' and 'inside-shared-layout' are preserved.
|
|
57
|
+
*/ function shouldPreserveRefreshMarker(refreshMarker) {
|
|
58
|
+
return Boolean(refreshMarker && refreshMarker !== "refresh");
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
|
62
|
+
Object.defineProperty(exports.default, '__esModule', { value: true });
|
|
63
|
+
Object.assign(exports.default, exports);
|
|
64
|
+
module.exports = exports.default;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
//# sourceMappingURL=flight-data-helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/client/flight-data-helpers.ts"],"names":["prepareFlightRouterStateForRequest","flightRouterState","isHmrRefresh","encodeURIComponent","JSON","stringify","stripClientOnlyDataFromFlightRouterState","segment","parallelRoutes","refreshMarker","isRootLayout","cleanedSegment","stripSearchParamsFromPageSegment","cleanedParallelRoutes","key","childState","Object","entries","result","shouldPreserveRefreshMarker","undefined","startsWith","PAGE_SEGMENT_KEY","Boolean"],"mappings":";;;;+BAWgBA;;;eAAAA;;;yBAViB;AAU1B,SAASA,mCACdC,iBAAoC,EACpCC,YAAsB;IAEtB,4EAA4E;IAC5E,IAAIA,cAAc;QAChB,OAAOC,mBAAmBC,KAAKC,SAAS,CAACJ;IAC3C;IAEA,OAAOE,mBACLC,KAAKC,SAAS,CAACC,yCAAyCL;AAE5D;AAEA;;;CAGC,GACD,SAASK,yCACPL,iBAAoC;IAEpC,MAAM,CAACM,SAASC,kBAAkBC,eAAeC,aAAa,GAC5DT;IAEF,mEAAmE;IACnE,0BAA0B;IAC1B,MAAMU,iBAAiBC,iCAAiCL;IAExD,sCAAsC;IACtC,MAAMM,wBAA8D,CAAC;IACrE,KAAK,MAAM,CAACC,KAAKC,WAAW,IAAIC,OAAOC,OAAO,CAACT,gBAAiB;QAC9DK,qBAAqB,CAACC,IAAI,GACxBR,yCAAyCS;IAC7C;IAEA,MAAMG,SAA4B;QAChCP;QACAE;QACA;QACAM,4BAA4BV,iBAAiBA,gBAAgB;KAC9D;IAED,oCAAoC;IACpC,IAAIC,iBAAiBU,WAAW;QAC9BF,MAAM,CAAC,EAAE,GAAGR;IACd;IAEA,OAAOQ;AACT;AAEA;;;CAGC,GACD,SAASN,iCAAiCL,OAAgB;IACxD,IACE,OAAOA,YAAY,YACnBA,QAAQc,UAAU,CAACC,yBAAgB,GAAG,MACtC;QACA,OAAOA,yBAAgB;IACzB;IACA,OAAOf;AACT;AAEA;;;;CAIC,GACD,SAASY,4BACPV,aAAmC;IAEnC,OAAOc,QAAQd,iBAAiBA,kBAAkB;AACpD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
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.2.
|
|
65
|
+
const version = "14.2.33";
|
|
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
|
@@ -302,7 +302,7 @@ export default async function build(dir, reactProductionProfiling = false, debug
|
|
|
302
302
|
const nextBuildSpan = trace("next-build", undefined, {
|
|
303
303
|
buildMode: experimentalBuildMode,
|
|
304
304
|
isTurboBuild: String(turboNextBuild),
|
|
305
|
-
version: "14.2.
|
|
305
|
+
version: "14.2.33"
|
|
306
306
|
});
|
|
307
307
|
NextBuildContext.nextBuildSpan = nextBuildSpan;
|
|
308
308
|
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.2.
|
|
12
|
+
const nextVersion = "14.2.33";
|
|
13
13
|
const ArchName = arch();
|
|
14
14
|
const PlatformName = platform();
|
|
15
15
|
const infoLog = (...args)=>{
|
|
@@ -1408,7 +1408,7 @@ export default async function getBaseWebpackConfig(dir, { buildId, encryptionKey
|
|
|
1408
1408
|
new WellKnownErrorsPlugin(),
|
|
1409
1409
|
isClient && new CopyFilePlugin({
|
|
1410
1410
|
filePath: require.resolve("./polyfills/polyfill-nomodule"),
|
|
1411
|
-
cacheKey: "14.2.
|
|
1411
|
+
cacheKey: "14.2.33",
|
|
1412
1412
|
name: `static/chunks/polyfills${dev ? "" : "-[hash]"}.js`,
|
|
1413
1413
|
minimize: false,
|
|
1414
1414
|
info: {
|
|
@@ -1636,7 +1636,7 @@ export default async function getBaseWebpackConfig(dir, { buildId, encryptionKey
|
|
|
1636
1636
|
// - Next.js location on disk (some loaders use absolute paths and some resolve options depend on absolute paths)
|
|
1637
1637
|
// - Next.js version
|
|
1638
1638
|
// - next.config.js keys that affect compilation
|
|
1639
|
-
version: `${__dirname}|${"14.2.
|
|
1639
|
+
version: `${__dirname}|${"14.2.33"}|${configVars}`,
|
|
1640
1640
|
cacheDirectory: path.join(distDir, "cache", "webpack"),
|
|
1641
1641
|
// For production builds, it's more efficient to compress all cache files together instead of compression each one individually.
|
|
1642
1642
|
// So we disable compression here and allow the build runner to take care of compressing the cache as a whole.
|
|
@@ -9,6 +9,7 @@ import { urlToUrlWithoutFlightMarker } from "../app-router";
|
|
|
9
9
|
import { callServer } from "../../app-call-server";
|
|
10
10
|
import { PrefetchKind } from "./router-reducer-types";
|
|
11
11
|
import { hexHash } from "../../../shared/lib/hash";
|
|
12
|
+
import { prepareFlightRouterStateForRequest } from "../../flight-data-helpers";
|
|
12
13
|
function doMpaNavigation(url) {
|
|
13
14
|
return [
|
|
14
15
|
urlToUrlWithoutFlightMarker(url).toString(),
|
|
@@ -24,7 +25,7 @@ function doMpaNavigation(url) {
|
|
|
24
25
|
// Enable flight response
|
|
25
26
|
[RSC_HEADER]: "1",
|
|
26
27
|
// Provide the current router state
|
|
27
|
-
[NEXT_ROUTER_STATE_TREE]:
|
|
28
|
+
[NEXT_ROUTER_STATE_TREE]: prepareFlightRouterStateForRequest(flightRouterState)
|
|
28
29
|
};
|
|
29
30
|
/**
|
|
30
31
|
* Three cases:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/client/components/router-reducer/fetch-server-response.ts"],"names":["createFromFetch","process","env","NEXT_RUNTIME","require","NEXT_ROUTER_PREFETCH_HEADER","NEXT_ROUTER_STATE_TREE","NEXT_RSC_UNION_QUERY","NEXT_URL","RSC_HEADER","RSC_CONTENT_TYPE_HEADER","NEXT_DID_POSTPONE_HEADER","urlToUrlWithoutFlightMarker","callServer","PrefetchKind","hexHash","doMpaNavigation","url","toString","undefined","fetchServerResponse","flightRouterState","nextUrl","currentBuildId","prefetchKind","headers","
|
|
1
|
+
{"version":3,"sources":["../../../../src/client/components/router-reducer/fetch-server-response.ts"],"names":["createFromFetch","process","env","NEXT_RUNTIME","require","NEXT_ROUTER_PREFETCH_HEADER","NEXT_ROUTER_STATE_TREE","NEXT_RSC_UNION_QUERY","NEXT_URL","RSC_HEADER","RSC_CONTENT_TYPE_HEADER","NEXT_DID_POSTPONE_HEADER","urlToUrlWithoutFlightMarker","callServer","PrefetchKind","hexHash","prepareFlightRouterStateForRequest","doMpaNavigation","url","toString","undefined","fetchServerResponse","flightRouterState","nextUrl","currentBuildId","prefetchKind","headers","AUTO","NEXT_DEPLOYMENT_ID","uniqueCacheQuery","join","res","fetchUrl","URL","NODE_ENV","__NEXT_CONFIG_OUTPUT","pathname","endsWith","searchParams","set","fetch","credentials","responseUrl","canonicalUrl","redirected","contentType","get","postponed","interception","includes","isFlightResponse","startsWith","ok","hash","buildId","flightData","Promise","resolve","err","console","error"],"mappings":"AAAA;AAEA,aAAa;AACb,6DAA6D;AAC7D,oEAAoE;AACpE,MAAM,EAAEA,eAAe,EAAE,GACvB,CAAC,CAACC,QAAQC,GAAG,CAACC,YAAY,GAEtBC,QAAQ,0CAERA,QAAQ;AAQd,SACEC,2BAA2B,EAC3BC,sBAAsB,EACtBC,oBAAoB,EACpBC,QAAQ,EACRC,UAAU,EACVC,uBAAuB,EACvBC,wBAAwB,QACnB,wBAAuB;AAC9B,SAASC,2BAA2B,QAAQ,gBAAe;AAC3D,SAASC,UAAU,QAAQ,wBAAuB;AAClD,SAASC,YAAY,QAAQ,yBAAwB;AACrD,SAASC,OAAO,QAAQ,2BAA0B;AAClD,SAASC,kCAAkC,QAAQ,4BAA2B;AAS9E,SAASC,gBAAgBC,GAAW;IAClC,OAAO;QAACN,4BAA4BM,KAAKC,QAAQ;QAAIC;QAAW;QAAO;KAAM;AAC/E;AAEA;;CAEC,GACD,OAAO,eAAeC,oBACpBH,GAAQ,EACRI,iBAAoC,EACpCC,OAAsB,EACtBC,cAAsB,EACtBC,YAA2B;IAE3B,MAAMC,UAMF;QACF,yBAAyB;QACzB,CAACjB,WAAW,EAAE;QACd,mCAAmC;QACnC,CAACH,uBAAuB,EACtBU,mCAAmCM;IACvC;IAEA;;;;;GAKC,GACD,IAAIG,iBAAiBX,aAAaa,IAAI,EAAE;QACtCD,OAAO,CAACrB,4BAA4B,GAAG;IACzC;IAEA,IAAIkB,SAAS;QACXG,OAAO,CAAClB,SAAS,GAAGe;IACtB;IAEA,IAAItB,QAAQC,GAAG,CAAC0B,kBAAkB,EAAE;QAClCF,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4FAA4F;QAC5F,oEAAoE;QACpE,IAAI,CAACD,oBAAoB,CAACnB,IAAIqB,EAAE,EAAE;YAChC,2FAA2F;YAC3F,IAAIlC,IAAImC,IAAI,EAAE;gBACZX,YAAYW,IAAI,GAAGnC,IAAImC,IAAI;YAC7B;YAEA,OAAOpC,gBAAgByB,YAAYvB,QAAQ;QAC7C;QAEA,2EAA2E;QAC3E,MAAM,CAACmC,SAASC,WAAW,GAAuB,MAAMvD,gBACtDwD,QAAQC,OAAO,CAAC1B,MAChB;YACElB;QACF;QAGF,IAAIW,mBAAmB8B,SAAS;YAC9B,OAAOrC,gBAAgBc,IAAIb,GAAG;QAChC;QAEA,OAAO;YAACqC;YAAYZ;YAAcI;YAAWC;SAAa;IAC5D,EAAE,OAAOU,KAAK;QACZC,QAAQC,KAAK,CACX,AAAC,qCAAkC1C,MAAI,yCACvCwC;QAEF,iDAAiD;QACjD,qHAAqH;QACrH,iGAAiG;QACjG,OAAO;YAACxC,IAAIC,QAAQ;YAAIC;YAAW;YAAO;SAAM;IAClD;AACF"}
|
|
@@ -16,6 +16,7 @@ import { createEmptyCacheNode } from "../../app-router";
|
|
|
16
16
|
import { hasInterceptionRouteInCurrentTree } from "./has-interception-route-in-current-tree";
|
|
17
17
|
import { handleSegmentMismatch } from "../handle-segment-mismatch";
|
|
18
18
|
import { refreshInactiveParallelSegments } from "../refetch-inactive-parallel-segments";
|
|
19
|
+
import { prepareFlightRouterStateForRequest } from "../../../flight-data-helpers";
|
|
19
20
|
async function fetchServerAction(state, nextUrl, param) {
|
|
20
21
|
let { actionId, actionArgs } = param;
|
|
21
22
|
const body = await encodeReply(actionArgs);
|
|
@@ -24,7 +25,7 @@ async function fetchServerAction(state, nextUrl, param) {
|
|
|
24
25
|
headers: {
|
|
25
26
|
Accept: RSC_CONTENT_TYPE_HEADER,
|
|
26
27
|
[ACTION]: actionId,
|
|
27
|
-
[NEXT_ROUTER_STATE_TREE]:
|
|
28
|
+
[NEXT_ROUTER_STATE_TREE]: prepareFlightRouterStateForRequest(state.tree),
|
|
28
29
|
...process.env.NEXT_DEPLOYMENT_ID ? {
|
|
29
30
|
"x-deployment-id": process.env.NEXT_DEPLOYMENT_ID
|
|
30
31
|
} : {},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/client/components/router-reducer/reducers/server-action-reducer.ts"],"names":["callServer","ACTION","NEXT_ROUTER_STATE_TREE","NEXT_URL","RSC_CONTENT_TYPE_HEADER","createFromFetch","encodeReply","process","env","NEXT_RUNTIME","require","addBasePath","createHrefFromUrl","handleExternalUrl","applyRouterStatePatchToTree","isNavigatingToNewRootLayout","handleMutable","fillLazyItemsTillLeafWithHead","createEmptyCacheNode","hasInterceptionRouteInCurrentTree","handleSegmentMismatch","refreshInactiveParallelSegments","fetchServerAction","state","nextUrl","actionId","actionArgs","body","res","fetch","method","headers","Accept","
|
|
1
|
+
{"version":3,"sources":["../../../../../src/client/components/router-reducer/reducers/server-action-reducer.ts"],"names":["callServer","ACTION","NEXT_ROUTER_STATE_TREE","NEXT_URL","RSC_CONTENT_TYPE_HEADER","createFromFetch","encodeReply","process","env","NEXT_RUNTIME","require","addBasePath","createHrefFromUrl","handleExternalUrl","applyRouterStatePatchToTree","isNavigatingToNewRootLayout","handleMutable","fillLazyItemsTillLeafWithHead","createEmptyCacheNode","hasInterceptionRouteInCurrentTree","handleSegmentMismatch","refreshInactiveParallelSegments","prepareFlightRouterStateForRequest","fetchServerAction","state","nextUrl","actionId","actionArgs","body","res","fetch","method","headers","Accept","tree","NEXT_DEPLOYMENT_ID","location","get","revalidatedParts","revalidatedHeader","JSON","parse","paths","tag","cookie","e","redirectLocation","URL","canonicalUrl","window","href","undefined","isFlightResponse","response","Promise","resolve","actionFlightData","actionResult","serverActionReducer","action","reject","mutable","currentTree","preserveCustomHistoryState","inFlightServerAction","then","flightData","pushRef","pendingPush","newHref","flightDataPath","length","console","log","treePatch","newTree","cacheNodeSeedData","head","slice","rsc","cache","prefetchRs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,4BACd,sBAAsB;YACtB;gBAAC;aAAG,EACJgD,aACAY,WACA5B,mBACIlC,kBAAkBkC,oBAClBtB,MAAMwB,YAAY;YAGxB,IAAI2B,YAAY,MAAM;gBACpB,OAAOvD,sBAAsBI,OAAOmC,QAAQe;YAC9C;YAEA,IAAI3D,4BAA4B+C,aAAaa,UAAU;gBACrD,OAAO9D,kBACLW,OACAqC,SACAX,MACA1B,MAAM2C,OAAO,CAACC,WAAW;YAE7B;YAEA,0DAA0D;YAC1D,MAAM,CAACQ,mBAAmBC,KAAK,GAAGP,eAAeQ,KAAK,CAAC,CAAC;YACxD,MAAMC,MAAMH,sBAAsB,OAAOA,iBAAiB,CAAC,EAAE,GAAG;YAEhE,8FAA8F;YAC9F,IAAIG,QAAQ,MAAM;gBAChB,MAAMC,QAAmB9D;gBACzB8D,MAAMD,GAAG,GAAGA;gBACZC,MAAMC,WAAW,GAAG;gBACpBhE,8BACE+D,OACA,4FAA4F;gBAC5F7B,WACAuB,WACAE,mBACAC;gBAGF,MAAMxD,gCAAgC;oBACpCG;oBACA0D,aAAaP;oBACbQ,cAAcH;oBACdI,gBAAgBC,QAAQ5D;oBACxBuB,cAAca,QAAQb,YAAY,IAAIxB,MAAMwB,YAAY;gBAC1D;gBAEAa,QAAQmB,KAAK,GAAGA;gBAChBnB,QAAQyB,aAAa,GAAG,IAAIC;YAC9B;YAEA1B,QAAQ2B,WAAW,GAAGb;YACtBb,cAAca;QAChB;QAEApB,QAAQE;QAER,OAAOzC,cAAcQ,OAAOqC;IAC9B,GACA,CAAChB;QACC,mHAAmH;QACnHe,OAAOf;QAEP,OAAOrB;IACT;AAEJ"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { PAGE_SEGMENT_KEY } from "../shared/lib/segment";
|
|
2
|
+
/**
|
|
3
|
+
* This function is used to prepare the flight router state for the request.
|
|
4
|
+
* It removes markers that are not needed by the server, and are purely used
|
|
5
|
+
* for stashing state on the client.
|
|
6
|
+
* @param flightRouterState - The flight router state to prepare.
|
|
7
|
+
* @param isHmrRefresh - Whether this is an HMR refresh request.
|
|
8
|
+
* @returns The prepared flight router state.
|
|
9
|
+
*/ export function prepareFlightRouterStateForRequest(flightRouterState, isHmrRefresh) {
|
|
10
|
+
// HMR requests need the complete, unmodified state for proper functionality
|
|
11
|
+
if (isHmrRefresh) {
|
|
12
|
+
return encodeURIComponent(JSON.stringify(flightRouterState));
|
|
13
|
+
}
|
|
14
|
+
return encodeURIComponent(JSON.stringify(stripClientOnlyDataFromFlightRouterState(flightRouterState)));
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Recursively strips client-only data from FlightRouterState while preserving
|
|
18
|
+
* server-needed information for proper rendering decisions.
|
|
19
|
+
*/ function stripClientOnlyDataFromFlightRouterState(flightRouterState) {
|
|
20
|
+
const [segment, parallelRoutes, , refreshMarker, isRootLayout] = flightRouterState;
|
|
21
|
+
// __PAGE__ segments are always fetched from the server, so there's
|
|
22
|
+
// no need to send them up
|
|
23
|
+
const cleanedSegment = stripSearchParamsFromPageSegment(segment);
|
|
24
|
+
// Recursively process parallel routes
|
|
25
|
+
const cleanedParallelRoutes = {};
|
|
26
|
+
for (const [key, childState] of Object.entries(parallelRoutes)){
|
|
27
|
+
cleanedParallelRoutes[key] = stripClientOnlyDataFromFlightRouterState(childState);
|
|
28
|
+
}
|
|
29
|
+
const result = [
|
|
30
|
+
cleanedSegment,
|
|
31
|
+
cleanedParallelRoutes,
|
|
32
|
+
null,
|
|
33
|
+
shouldPreserveRefreshMarker(refreshMarker) ? refreshMarker : null
|
|
34
|
+
];
|
|
35
|
+
// Append optional fields if present
|
|
36
|
+
if (isRootLayout !== undefined) {
|
|
37
|
+
result[4] = isRootLayout;
|
|
38
|
+
}
|
|
39
|
+
return result;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Strips search parameters from __PAGE__ segments to prevent sensitive
|
|
43
|
+
* client-side data from being sent to the server.
|
|
44
|
+
*/ function stripSearchParamsFromPageSegment(segment) {
|
|
45
|
+
if (typeof segment === "string" && segment.startsWith(PAGE_SEGMENT_KEY + "?")) {
|
|
46
|
+
return PAGE_SEGMENT_KEY;
|
|
47
|
+
}
|
|
48
|
+
return segment;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Determines whether the refresh marker should be sent to the server
|
|
52
|
+
* Client-only markers like 'refresh' are stripped, while server-needed markers
|
|
53
|
+
* like 'refetch' and 'inside-shared-layout' are preserved.
|
|
54
|
+
*/ function shouldPreserveRefreshMarker(refreshMarker) {
|
|
55
|
+
return Boolean(refreshMarker && refreshMarker !== "refresh");
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
//# sourceMappingURL=flight-data-helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/client/flight-data-helpers.ts"],"names":["PAGE_SEGMENT_KEY","prepareFlightRouterStateForRequest","flightRouterState","isHmrRefresh","encodeURIComponent","JSON","stringify","stripClientOnlyDataFromFlightRouterState","segment","parallelRoutes","refreshMarker","isRootLayout","cleanedSegment","stripSearchParamsFromPageSegment","cleanedParallelRoutes","key","childState","Object","entries","result","shouldPreserveRefreshMarker","undefined","startsWith","Boolean"],"mappings":"AACA,SAASA,gBAAgB,QAAQ,wBAAuB;AAExD;;;;;;;CAOC,GACD,OAAO,SAASC,mCACdC,iBAAoC,EACpCC,YAAsB;IAEtB,4EAA4E;IAC5E,IAAIA,cAAc;QAChB,OAAOC,mBAAmBC,KAAKC,SAAS,CAACJ;IAC3C;IAEA,OAAOE,mBACLC,KAAKC,SAAS,CAACC,yCAAyCL;AAE5D;AAEA;;;CAGC,GACD,SAASK,yCACPL,iBAAoC;IAEpC,MAAM,CAACM,SAASC,kBAAkBC,eAAeC,aAAa,GAC5DT;IAEF,mEAAmE;IACnE,0BAA0B;IAC1B,MAAMU,iBAAiBC,iCAAiCL;IAExD,sCAAsC;IACtC,MAAMM,wBAA8D,CAAC;IACrE,KAAK,MAAM,CAACC,KAAKC,WAAW,IAAIC,OAAOC,OAAO,CAACT,gBAAiB;QAC9DK,qBAAqB,CAACC,IAAI,GACxBR,yCAAyCS;IAC7C;IAEA,MAAMG,SAA4B;QAChCP;QACAE;QACA;QACAM,4BAA4BV,iBAAiBA,gBAAgB;KAC9D;IAED,oCAAoC;IACpC,IAAIC,iBAAiBU,WAAW;QAC9BF,MAAM,CAAC,EAAE,GAAGR;IACd;IAEA,OAAOQ;AACT;AAEA;;;CAGC,GACD,SAASN,iCAAiCL,OAAgB;IACxD,IACE,OAAOA,YAAY,YACnBA,QAAQc,UAAU,CAACtB,mBAAmB,MACtC;QACA,OAAOA;IACT;IACA,OAAOQ;AACT;AAEA;;;;CAIC,GACD,SAASY,4BACPV,aAAmC;IAEnC,OAAOa,QAAQb,iBAAiBA,kBAAkB;AACpD"}
|
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.2.
|
|
29
|
+
export const version = "14.2.33";
|
|
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.2.
|
|
187
|
+
if (((_result_experimental = result.experimental) == null ? void 0 : _result_experimental.ppr) && !"14.2.33".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") {
|
|
@@ -40,7 +40,7 @@ export async function createHotReloaderTurbopack(opts, serverFields, distDir) {
|
|
|
40
40
|
}
|
|
41
41
|
const hasRewrites = opts.fsChecker.rewrites.afterFiles.length > 0 || opts.fsChecker.rewrites.beforeFiles.length > 0 || opts.fsChecker.rewrites.fallback.length > 0;
|
|
42
42
|
const hotReloaderSpan = trace("hot-reloader", undefined, {
|
|
43
|
-
version: "14.2.
|
|
43
|
+
version: "14.2.33"
|
|
44
44
|
});
|
|
45
45
|
// Ensure the hotReloaderSpan is flushed immediately as it's the parentSpan for all processing
|
|
46
46
|
// of the current `next dev` invocation.
|
|
@@ -189,7 +189,7 @@ export default class HotReloaderWebpack {
|
|
|
189
189
|
this.previewProps = previewProps;
|
|
190
190
|
this.rewrites = rewrites;
|
|
191
191
|
this.hotReloaderSpan = trace("hot-reloader", undefined, {
|
|
192
|
-
version: "14.2.
|
|
192
|
+
version: "14.2.33"
|
|
193
193
|
});
|
|
194
194
|
// Ensure the hotReloaderSpan is flushed immediately as it's the parentSpan for all processing
|
|
195
195
|
// 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 ${"14.2.
|
|
7
|
+
Log.bootstrap(`${bold(purple(`${Log.prefixes.ready} Next.js ${"14.2.33"}`))}${process.env.TURBOPACK ? " (turbo)" : ""}`);
|
|
8
8
|
if (appUrl) {
|
|
9
9
|
Log.bootstrap(`- Local: ${appUrl}`);
|
|
10
10
|
}
|
|
@@ -39,7 +39,7 @@ export async function getRequestHandlers({ dir, port, isDev, server, hostname, m
|
|
|
39
39
|
export async function startServer(serverOptions) {
|
|
40
40
|
const { dir, isDev, hostname, minimalMode, allowRetry, keepAliveTimeout, selfSignedCertificate } = serverOptions;
|
|
41
41
|
let { port } = serverOptions;
|
|
42
|
-
process.title = `next-server (v${"14.2.
|
|
42
|
+
process.title = `next-server (v${"14.2.33"})`;
|
|
43
43
|
let handlersReady = ()=>{};
|
|
44
44
|
let handlersError = ()=>{};
|
|
45
45
|
let handlersPromise = new Promise((resolve, reject)=>{
|
package/dist/server/config.js
CHANGED
|
@@ -263,7 +263,7 @@ function assignDefaults(dir, userConfig, silent) {
|
|
|
263
263
|
..._configshared.defaultConfig,
|
|
264
264
|
...config
|
|
265
265
|
};
|
|
266
|
-
if (((_result_experimental = result.experimental) == null ? void 0 : _result_experimental.ppr) && !"14.2.
|
|
266
|
+
if (((_result_experimental = result.experimental) == null ? void 0 : _result_experimental.ppr) && !"14.2.33".includes("canary") && !process.env.__NEXT_TEST_MODE) {
|
|
267
267
|
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`);
|
|
268
268
|
}
|
|
269
269
|
if (result.output === "export") {
|
|
@@ -96,7 +96,7 @@ async function createHotReloaderTurbopack(opts, serverFields, distDir) {
|
|
|
96
96
|
}
|
|
97
97
|
const hasRewrites = opts.fsChecker.rewrites.afterFiles.length > 0 || opts.fsChecker.rewrites.beforeFiles.length > 0 || opts.fsChecker.rewrites.fallback.length > 0;
|
|
98
98
|
const hotReloaderSpan = (0, _trace.trace)("hot-reloader", undefined, {
|
|
99
|
-
version: "14.2.
|
|
99
|
+
version: "14.2.33"
|
|
100
100
|
});
|
|
101
101
|
// Ensure the hotReloaderSpan is flushed immediately as it's the parentSpan for all processing
|
|
102
102
|
// of the current `next dev` invocation.
|
|
@@ -265,7 +265,7 @@ class HotReloaderWebpack {
|
|
|
265
265
|
this.previewProps = previewProps;
|
|
266
266
|
this.rewrites = rewrites;
|
|
267
267
|
this.hotReloaderSpan = (0, _trace.trace)("hot-reloader", undefined, {
|
|
268
|
-
version: "14.2.
|
|
268
|
+
version: "14.2.33"
|
|
269
269
|
});
|
|
270
270
|
// Ensure the hotReloaderSpan is flushed immediately as it's the parentSpan for all processing
|
|
271
271
|
// 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 ${"14.2.
|
|
70
|
+
_log.bootstrap(`${(0, _picocolors.bold)((0, _picocolors.purple)(`${_log.prefixes.ready} Next.js ${"14.2.33"}`))}${process.env.TURBOPACK ? " (turbo)" : ""}`);
|
|
71
71
|
if (appUrl) {
|
|
72
72
|
_log.bootstrap(`- Local: ${appUrl}`);
|
|
73
73
|
}
|
|
@@ -107,7 +107,7 @@ async function getRequestHandlers({ dir, port, isDev, server, hostname, minimalM
|
|
|
107
107
|
async function startServer(serverOptions) {
|
|
108
108
|
const { dir, isDev, hostname, minimalMode, allowRetry, keepAliveTimeout, selfSignedCertificate } = serverOptions;
|
|
109
109
|
let { port } = serverOptions;
|
|
110
|
-
process.title = `next-server (v${"14.2.
|
|
110
|
+
process.title = `next-server (v${"14.2.33"})`;
|
|
111
111
|
let handlersReady = ()=>{};
|
|
112
112
|
let handlersError = ()=>{};
|
|
113
113
|
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 "14.2.
|
|
14
|
+
if (typeof "14.2.33" !== "string") {
|
|
15
15
|
return [];
|
|
16
16
|
}
|
|
17
17
|
const payload = {
|
|
18
|
-
nextVersion: "14.2.
|
|
18
|
+
nextVersion: "14.2.33",
|
|
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;
|
|
38
38
|
// This should be an invariant, if it fails our build tooling is broken.
|
|
39
|
-
if (typeof "14.2.
|
|
39
|
+
if (typeof "14.2.33" !== "string") {
|
|
40
40
|
return [];
|
|
41
41
|
}
|
|
42
42
|
const { images, i18n } = nextConfig || {};
|
|
43
43
|
const payload = {
|
|
44
|
-
nextVersion: "14.2.
|
|
44
|
+
nextVersion: "14.2.33",
|
|
45
45
|
nodeVersion: process.version,
|
|
46
46
|
cliCommand: event.cliCommand,
|
|
47
47
|
isSrcDir: event.isSrcDir,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "next",
|
|
3
|
-
"version": "14.2.
|
|
3
|
+
"version": "14.2.33",
|
|
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.2.
|
|
95
|
+
"@next/env": "14.2.33",
|
|
96
96
|
"@swc/helpers": "0.5.5",
|
|
97
97
|
"busboy": "1.6.0",
|
|
98
98
|
"caniuse-lite": "^1.0.30001579",
|
|
@@ -149,10 +149,10 @@
|
|
|
149
149
|
"@jest/types": "29.5.0",
|
|
150
150
|
"@mswjs/interceptors": "0.23.0",
|
|
151
151
|
"@napi-rs/triples": "1.2.0",
|
|
152
|
-
"@next/polyfill-module": "14.2.
|
|
153
|
-
"@next/polyfill-nomodule": "14.2.
|
|
154
|
-
"@next/react-refresh-utils": "14.2.
|
|
155
|
-
"@next/swc": "14.2.
|
|
152
|
+
"@next/polyfill-module": "14.2.33",
|
|
153
|
+
"@next/polyfill-nomodule": "14.2.33",
|
|
154
|
+
"@next/react-refresh-utils": "14.2.33",
|
|
155
|
+
"@next/swc": "14.2.33",
|
|
156
156
|
"@opentelemetry/api": "1.6.0",
|
|
157
157
|
"@playwright/test": "1.41.2",
|
|
158
158
|
"@taskr/clear": "1.1.0",
|
|
@@ -324,14 +324,14 @@
|
|
|
324
324
|
"node": ">=18.17.0"
|
|
325
325
|
},
|
|
326
326
|
"optionalDependencies": {
|
|
327
|
-
"@next/swc-darwin-arm64": "14.2.
|
|
328
|
-
"@next/swc-darwin-x64": "14.2.
|
|
329
|
-
"@next/swc-linux-arm64-gnu": "14.2.
|
|
330
|
-
"@next/swc-linux-arm64-musl": "14.2.
|
|
331
|
-
"@next/swc-linux-x64-gnu": "14.2.
|
|
332
|
-
"@next/swc-linux-x64-musl": "14.2.
|
|
333
|
-
"@next/swc-win32-arm64-msvc": "14.2.
|
|
334
|
-
"@next/swc-win32-ia32-msvc": "14.2.
|
|
335
|
-
"@next/swc-win32-x64-msvc": "14.2.
|
|
327
|
+
"@next/swc-darwin-arm64": "14.2.33",
|
|
328
|
+
"@next/swc-darwin-x64": "14.2.33",
|
|
329
|
+
"@next/swc-linux-arm64-gnu": "14.2.33",
|
|
330
|
+
"@next/swc-linux-arm64-musl": "14.2.33",
|
|
331
|
+
"@next/swc-linux-x64-gnu": "14.2.33",
|
|
332
|
+
"@next/swc-linux-x64-musl": "14.2.33",
|
|
333
|
+
"@next/swc-win32-arm64-msvc": "14.2.33",
|
|
334
|
+
"@next/swc-win32-ia32-msvc": "14.2.33",
|
|
335
|
+
"@next/swc-win32-x64-msvc": "14.2.33"
|
|
336
336
|
}
|
|
337
337
|
}
|