1. 14 Dec, 2023 6 commits
  2. 13 Dec, 2023 24 commits
  3. 12 Dec, 2023 10 commits
    • vercel-release-bot's avatar
      v14.0.5-canary.8 · e9757175
      vercel-release-bot authored
      e9757175
    • OJ Kwon's avatar
    • Wyatt Johnson's avatar
      Page Info Cleanup (#59430) · ed12b552
      Wyatt Johnson authored
      This updates the some of the logic around updating `PageInfo` entries in
      the `pageInfos` map. This is a followup to #59420.
      
      Closes NEXT-1838
      ed12b552
    • Wyatt Johnson's avatar
      Update Deployment Testing (#59448) · d397b39d
      Wyatt Johnson authored
      Previously when running deployment tests, the testing infrastructure
      used the Vercel REST API to manage and work with deployments to perform
      the actual testing. This now utilizes the Vercel CLI instead (while
      maintaining the same beheviour as before) to simplifiy the
      implementation.
      
      In cases where testing is performed against a locally configured Vercel
      CLI that's already authenticated it will now use those pre-configured
      credentials.
      
      Closes NEXT-1841
      d397b39d
    • akawalsky's avatar
      allow passing wildcard domains in serverActions.allowedDomains (#59428) · 6fbff29a
      akawalsky authored
      Implementation of feature request opened here -
      https://github.com/vercel/next.js/discussions/59427
      
      Approach:
      
      ~~We are using micromatch in the csrf protection step of actionHandler
      to allow for wildcard domains passed in allowedDomains. This is the same
      library used for matching domains for remote images.~~
      
      If any of the allowed domains match the origin of the request, we skip
      the downstream error thrown for csrf protection.
      
      Edit:
      
      Micromatch is not available in this context as it is only compatible
      with Node. This codepath can be run from the edge, so we need to rely on
      vanilla js compatible code only.
      
      Instead of falling back to allowing the user to pass in a regex, which
      can be somewhat insecure, we opt into continuing to use a wildcard
      pattern from a configuration standpoint and instead use a simple
      function that matches on wildcards using string comparison and
      iteration.
      
      Ideally, Micromatch can be retrofitted to work in non-Node settings and
      this piece of code can be replaced in the future, without deprecating or
      changing the next.config interface.
      
      ---------
      Co-authored-by: 's avatarJosh Story <story@hey.com>
      6fbff29a
    • Andrew Clark's avatar
      Add CacheNode.prefetchRsc field (#59537) · 5adacb69
      Andrew Clark authored
      Adds a new field `prefetchRsc` to CacheNode that will be used by the PPR
      implementation. It represents a static version of the segment that can
      be showed immediately, and may or may not contain dynamic holes. It's
      prefetched before a navigation occurs. During rendering, we will choose
      whether to render `rsc` or `prefetchRsc` with `useDeferredValue`.
      
      As with the `rsc` field, a value of `null` means no value was provided.
      In this case, the LayoutRouter will go straight to rendering the `rsc`
      value; if that one is also missing, it will suspend and trigger a lazy
      fetch.
      
      The non-PPR implementation will never set this value.
      
      This PR adds the field to the CacheNode type but doesn't implement any
      of the behavior yet. Mostly this involves updating the router reducer
      unit tests.
      
      Closes NEXT-1855
      5adacb69
    • Zack Tanner's avatar
      fix NODE_OPTIONS=inspect (#59530) · b441cff7
      Zack Tanner authored
      Passing `NODE_OPTIONS='--inspect'` was failing because a sub-process was
      getting created (`getRegistry()`) which would trigger a "address already
      in use" error when the process inherited the same debugger port from the
      parent process.
      
      I had to disable this test in
      https://github.com/vercel/next.js/pull/59508 because it wasn't passing,
      CI was just skipping it. This PR fixes the behavior and re-enables the
      test.
      
      Fixes #55862
      
      Closes NEXT-1854
      b441cff7
    • C. T. Lin's avatar
      chore: bump typescript-eslint to 6.14 (#59514) · eb6aae64
      C. T. Lin authored
      eb6aae64
    • Andrew Clark's avatar
      Rename CacheNode.subTreeData -> .rsc (#59491) · 9663d78b
      Andrew Clark authored
      I want to give this field a name that's bit less generic and
      distinguishes it from `lazyData` (because that one has a different type
      and is a special case we want to eventually remove).
      
      I'm also about to add an optional `prefetchRsc` field that represents a
      prefetched version of the same value. The common suffix is meant to
      communicate how they are related.
      
      Doing this rename in its own PR because it's a pure find-and-replace,
      whereas the later steps are not.
      
      Closes NEXT-1846
      9663d78b
    • OJ Kwon's avatar
      2dbd4e75