@uniformdev/next-app-router 20.50.1-alpha.1 → 20.50.1-alpha.2

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.
@@ -5670,6 +5670,7 @@ var handleRouteRequest = async ({
5670
5670
  searchParams: request.nextUrl.searchParams,
5671
5671
  isDraftModeEnabled: draftModeEnabled
5672
5672
  });
5673
+ const isPrefetch = isPrefetchRequest(request);
5673
5674
  const { components, rules } = await extractAndEvaluateRunnables({
5674
5675
  composition: route.compositionApiResponse.composition,
5675
5676
  routePath,
@@ -5688,9 +5689,8 @@ var handleRouteRequest = async ({
5688
5689
  isDraftModeEnabled: true
5689
5690
  // this is checked above
5690
5691
  }),
5691
- isPrefetch: request.headers.get("Next-Router-Prefetch") === "1"
5692
+ isPrefetch
5692
5693
  });
5693
- const isPrefetch = request.headers.get("Next-Router-Prefetch") === "1";
5694
5694
  const pageState = {
5695
5695
  routePath,
5696
5696
  compositionState: state,
@@ -5724,6 +5724,9 @@ var handleRouteRequest = async ({
5724
5724
  headers
5725
5725
  });
5726
5726
  };
5727
+ var isPrefetchRequest = (request) => {
5728
+ return request.headers.has("next-url");
5729
+ };
5727
5730
  var extractAndEvaluateRunnables = async ({
5728
5731
  composition,
5729
5732
  routePath,
@@ -5662,6 +5662,7 @@ var handleRouteRequest = async ({
5662
5662
  searchParams: request.nextUrl.searchParams,
5663
5663
  isDraftModeEnabled: draftModeEnabled
5664
5664
  });
5665
+ const isPrefetch = isPrefetchRequest(request);
5665
5666
  const { components, rules } = await extractAndEvaluateRunnables({
5666
5667
  composition: route.compositionApiResponse.composition,
5667
5668
  routePath,
@@ -5680,9 +5681,8 @@ var handleRouteRequest = async ({
5680
5681
  isDraftModeEnabled: true
5681
5682
  // this is checked above
5682
5683
  }),
5683
- isPrefetch: request.headers.get("Next-Router-Prefetch") === "1"
5684
+ isPrefetch
5684
5685
  });
5685
- const isPrefetch = request.headers.get("Next-Router-Prefetch") === "1";
5686
5686
  const pageState = {
5687
5687
  routePath,
5688
5688
  compositionState: state,
@@ -5716,6 +5716,9 @@ var handleRouteRequest = async ({
5716
5716
  headers
5717
5717
  });
5718
5718
  };
5719
+ var isPrefetchRequest = (request) => {
5720
+ return request.headers.has("next-url");
5721
+ };
5719
5722
  var extractAndEvaluateRunnables = async ({
5720
5723
  composition,
5721
5724
  routePath,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/next-app-router",
3
- "version": "20.50.1-alpha.1+b0bc8e0346",
3
+ "version": "20.50.1-alpha.2+3f336b8aeb",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "scripts": {
6
6
  "build": "tsup",
@@ -99,12 +99,12 @@
99
99
  "vitest": "3.2.4"
100
100
  },
101
101
  "dependencies": {
102
- "@uniformdev/canvas-react": "20.50.1-alpha.1+b0bc8e0346",
103
- "@uniformdev/next-app-router-client": "20.50.1-alpha.1+b0bc8e0346",
104
- "@uniformdev/next-app-router-shared": "20.50.1-alpha.1+b0bc8e0346",
105
- "@uniformdev/redirect": "20.50.1-alpha.1+b0bc8e0346",
106
- "@uniformdev/richtext": "20.50.1-alpha.1+b0bc8e0346",
107
- "@uniformdev/webhooks": "20.50.1-alpha.1+b0bc8e0346",
102
+ "@uniformdev/canvas-react": "20.50.1-alpha.2+3f336b8aeb",
103
+ "@uniformdev/next-app-router-client": "20.50.1-alpha.2+3f336b8aeb",
104
+ "@uniformdev/next-app-router-shared": "20.50.1-alpha.2+3f336b8aeb",
105
+ "@uniformdev/redirect": "20.50.1-alpha.2+3f336b8aeb",
106
+ "@uniformdev/richtext": "20.50.1-alpha.2+3f336b8aeb",
107
+ "@uniformdev/webhooks": "20.50.1-alpha.2+3f336b8aeb",
108
108
  "@vercel/functions": "^2.2.2",
109
109
  "encoding": "^0.1.13",
110
110
  "server-only": "^0.0.1",
@@ -121,5 +121,5 @@
121
121
  "publishConfig": {
122
122
  "access": "public"
123
123
  },
124
- "gitHead": "b0bc8e034642a423b0309bfed8be51f7966aa5d6"
124
+ "gitHead": "3f336b8aeb3f00b54cefee16c3e090e9f952272f"
125
125
  }