@timber-js/app 0.2.0-alpha.177 → 0.2.0-alpha.178

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timber-js/app",
3
- "version": "0.2.0-alpha.177",
3
+ "version": "0.2.0-alpha.178",
4
4
  "description": "Vite-native React framework built for Servers and Serverless Platforms — correct HTTP semantics, real status codes, pages that work without JavaScript",
5
5
  "keywords": [
6
6
  "cloudflare-workers",
@@ -650,7 +650,6 @@ export async function resolveSlotProps({
650
650
  (c) => c.segmentType === 'intercepting'
651
651
  );
652
652
  const isSkipCandidate =
653
- destMatch !== null &&
654
653
  !interception &&
655
654
  !hasInterceptingChildren &&
656
655
  !parentParamsChanged &&
@@ -671,9 +670,10 @@ export async function resolveSlotProps({
671
670
  // Non-skip-candidate slots skip eager evaluation — their access.ts
672
671
  // runs during render via SlotAccessGate (normal path). Per design doc:
673
672
  // "No access check for default.tsx" (destMatch null = unmatched slot).
674
- const chainVerdicts = isSkipCandidate
675
- ? await evaluateSlotAccessChain(slotManifest, destMatch!.chain)
676
- : [];
673
+ const chainVerdicts =
674
+ isSkipCandidate && destMatch
675
+ ? await evaluateSlotAccessChain(slotManifest, destMatch.chain)
676
+ : [];
677
677
  const accessBlocked = chainVerdicts.some((v) => v.verdict !== 'pass');
678
678
  const canSkip = isSkipCandidate && !accessBlocked;
679
679