@vercel/next 4.15.0 → 4.15.1

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -16250,6 +16250,7 @@ var htmlContentType = "text/html; charset=utf-8";
16250
16250
  var SERVER_BUILD_MINIMUM_NEXT_VERSION = "v10.0.9-canary.4";
16251
16251
  var BEFORE_FILES_CONTINUE_NEXT_VERSION = "v10.2.3-canary.1";
16252
16252
  var REDIRECTS_NO_STATIC_NEXT_VERSION = "v11.0.2-canary.15";
16253
+ var IS_APP_CLIENT_SEGMENT_CACHE_ENABLED_VERSION = "v16.0.0";
16253
16254
  var MAX_AGE_ONE_YEAR = 31536e3;
16254
16255
  async function readPackageJson(entryPath) {
16255
16256
  const packagePath = import_path6.default.join(entryPath, "package.json");
@@ -17226,7 +17227,7 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
17226
17227
  }
17227
17228
  const isAppPPREnabled = requiredServerFilesManifest ? requiredServerFilesManifest.config.experimental?.ppr === true || requiredServerFilesManifest.config.experimental?.ppr === "incremental" || requiredServerFilesManifest.config.experimental?.cacheComponents === true : false;
17228
17229
  const isAppFullPPREnabled = requiredServerFilesManifest ? requiredServerFilesManifest?.config.experimental?.ppr === true || requiredServerFilesManifest.config.experimental?.cacheComponents === true : false;
17229
- const isAppClientSegmentCacheEnabled = requiredServerFilesManifest ? requiredServerFilesManifest.config.experimental?.clientSegmentCache === true : false;
17230
+ const isAppClientSegmentCacheEnabled = import_semver4.default.gte(nextVersion, IS_APP_CLIENT_SEGMENT_CACHE_ENABLED_VERSION) || (requiredServerFilesManifest ? requiredServerFilesManifest.config.experimental?.clientSegmentCache === true : false);
17230
17231
  const isAppClientParamParsingEnabled = routesManifest?.rsc?.clientParamParsing ?? false;
17231
17232
  const clientParamParsingOrigins = requiredServerFilesManifest ? requiredServerFilesManifest.config.experimental?.clientParamParsingOrigins : void 0;
17232
17233
  if (requiredServerFilesManifest) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/next",
3
- "version": "4.15.0",
3
+ "version": "4.15.1",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
@@ -30,7 +30,7 @@
30
30
  "@types/semver": "6.0.0",
31
31
  "@types/text-table": "0.2.1",
32
32
  "@types/webpack-sources": "3.2.0",
33
- "@vercel/build-utils": "12.2.3",
33
+ "@vercel/build-utils": "12.2.4",
34
34
  "@vercel/routing-utils": "5.2.1",
35
35
  "async-sema": "3.0.1",
36
36
  "buffer-crc32": "0.2.13",