@vercel/next 4.15.39 → 4.15.40

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 +9 -9
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -928,7 +928,7 @@ var require_superstatic = __commonJS({
928
928
  route.missing = r.missing;
929
929
  }
930
930
  return route;
931
- } catch (e) {
931
+ } catch (_e) {
932
932
  throw new Error(`Failed to parse redirect: ${JSON.stringify(r)}`);
933
933
  }
934
934
  });
@@ -961,7 +961,7 @@ var require_superstatic = __commonJS({
961
961
  route.status = r.statusCode;
962
962
  }
963
963
  return route;
964
- } catch (e) {
964
+ } catch (_e) {
965
965
  throw new Error(`Failed to parse rewrite: ${JSON.stringify(r)}`);
966
966
  }
967
967
  });
@@ -1172,7 +1172,7 @@ var require_superstatic = __commonJS({
1172
1172
  if (attemptDirectCompile) {
1173
1173
  try {
1174
1174
  return (0, import_path_to_regexp.compile)(value, { validate: false })(indexes);
1175
- } catch (e) {
1175
+ } catch (_e) {
1176
1176
  }
1177
1177
  }
1178
1178
  for (const key of Object.keys(indexes)) {
@@ -12839,6 +12839,7 @@ var onPrerenderRoute = (prerenderRouteArgs) => async (routeKey, {
12839
12839
  headers: { "x-matched-path": paths.pathname }
12840
12840
  };
12841
12841
  }
12842
+ const partialFallback = isAppPathRoute && renderingMode === "PARTIALLY_STATIC" /* PARTIALLY_STATIC */ && isFallback && Boolean(postponedState);
12842
12843
  let htmlAllowQuery = allowQuery;
12843
12844
  if (renderingMode === "PARTIALLY_STATIC" /* PARTIALLY_STATIC */ && // TODO(NAR-402): Investigate omitted routes
12844
12845
  (isFallback || isBlocking)) {
@@ -12850,10 +12851,9 @@ var onPrerenderRoute = (prerenderRouteArgs) => async (routeKey, {
12850
12851
  ) {
12851
12852
  htmlAllowQuery = fallbackRootParams;
12852
12853
  } else if (postponedPrerender) {
12853
- htmlAllowQuery = [];
12854
+ htmlAllowQuery = partialFallback && isAppClientParamParsingEnabled ? allowQuery : [];
12854
12855
  }
12855
12856
  }
12856
- const partialFallback = isAppPathRoute && renderingMode === "PARTIALLY_STATIC" /* PARTIALLY_STATIC */ && isFallback && Boolean(postponedState);
12857
12857
  const staticMetadataFile = getSourceFileRefOfStaticMetadata(
12858
12858
  routeKey,
12859
12859
  appPathnameFilesMap
@@ -13847,7 +13847,7 @@ async function getServerActionMetaRoutes(distDir) {
13847
13847
  }
13848
13848
  }
13849
13849
  return routes;
13850
- } catch (error) {
13850
+ } catch (_error) {
13851
13851
  return [];
13852
13852
  }
13853
13853
  }
@@ -14912,7 +14912,7 @@ ${JSON.stringify(
14912
14912
  await import_fs_extra5.default.readFile(`${serverComponentFile}.nft.json`, "utf8")
14913
14913
  );
14914
14914
  scTrace.files.forEach((file) => files2.push(file));
14915
- } catch (err) {
14915
+ } catch (_err) {
14916
14916
  }
14917
14917
  }
14918
14918
  fileList = [];
@@ -16465,7 +16465,7 @@ async function readPackageJson(entryPath) {
16465
16465
  const packagePath = import_path6.default.join(entryPath, "package.json");
16466
16466
  try {
16467
16467
  return JSON.parse(await (0, import_fs_extra6.readFile)(packagePath, "utf8"));
16468
- } catch (err) {
16468
+ } catch (_err) {
16469
16469
  (0, import_build_utils3.debug)("package.json not found in entry");
16470
16470
  return {};
16471
16471
  }
@@ -16896,7 +16896,7 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
16896
16896
  "utf8"
16897
16897
  );
16898
16898
  escapedBuildId = (0, import_escape_string_regexp3.default)(buildId);
16899
- } catch (err) {
16899
+ } catch (_err) {
16900
16900
  throw new import_build_utils3.NowBuildError({
16901
16901
  code: "NOW_NEXT_NO_BUILD_ID",
16902
16902
  message: 'The BUILD_ID file was not found in the Output Directory. Did you forget to run "next build" in your Build Command?'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/next",
3
- "version": "4.15.39",
3
+ "version": "4.15.40",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",