1. 07 Jan, 2024 4 commits
  2. 06 Jan, 2024 16 commits
  3. 05 Jan, 2024 16 commits
  4. 04 Jan, 2024 4 commits
    • Andrew Clark's avatar
      [PPR Nav] Fix: Page data should always be applied (#60242) · 8ae1167c
      Andrew Clark authored
      This fixes a case in the PPR navigations implementation where page data
      was not being applied.
      
      During a navigation, we compare the route trees of the old and new pages
      to determine which layouts are shared. If the segment keys of two
      layouts are the same, they are reused.
      
      However, the server doesn't bother to assign segment keys to the leaf
      segments (which we refer to as "page" segments) because they are never
      part of a shared layout. It assigns all of them a special constant
      (`__PAGE__`).
      
      In the PPR implementation, I overlooked this and compared the segment
      keys of all segments, including pages, not just shared layouts. So if
      the only thing that changed during a navigation was the page data, and
      not any parent layout, the client would fail to apply the navigation.
      
      The fix is to add a special case for page segments before comparing
      nested layouts. I also moved an existing special case for default pages,
      since those are also leaf segments and are conceptually similar.
      8ae1167c
    • vercel-release-bot's avatar
      v14.0.5-canary.39 · da2e56ae
      vercel-release-bot authored
      da2e56ae
    • Alexander Savelyev's avatar
      Disable 2mb limit for custom incrementalCacheHandler (#59976) · 269020a0
      Alexander Savelyev authored
      ### Fixing a bug
      
      ### What?
      
      Disable 2MB limit for custom incrementalCacheHandler
      
      ### Why?
      
      The limit is necessary because `FetchCache` has a 2MB limit, but it
      seems there was a miscommunication regarding the key coincidence, where
      `fetchCache` is a flag indicating that the method is called from fetch,
      rather than indicating that the `FetchCache` Provider is currently being
      used.
      
      We do not use Vercel, and as I understand it, we do not have the
      opportunity to use this functionality.
      
      In any case, it is more important for us to increase the limits, and in
      some cases, using a file storage is even preferable.
      
      ### How?
      
      I have created a flag that determines whether the use of `FetchCache` is
      possible at least in theory - if no custom provider is passed, and
      additionally configured it so that it is not an implementation of
      `FetchCache` as a protection against special individuals (*like me :)*).
      
      If everything is fine, I will write proper tests.
      
      Also, I would like to recommend making `FileSystemCache` public (_i.e.
      support it as public functionality_) so that it can be imported and
      extended or simply used to fix only it.
      
      Fixes #48324 (partially)
      
      ---------
      Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
      269020a0
    • Steven's avatar
      fix(docs): add missing docs on external packages (#60244) · fbd5e918
      Steven authored
      In the future, we should make this automatically fetch the json
      fbd5e918