1. 06 Oct, 2022 15 commits
    • Tim Neutkens's avatar
      v12.3.2-canary.22 · 5e25bd21
      Tim Neutkens authored
      5e25bd21
    • JJ Kasper's avatar
    • Hannes Bornö's avatar
      App font file preload (#41158) · dd3e005c
      Hannes Bornö authored
      Finds the font files connected to font loader modules and adds them to
      the font loader manifest. They're then collected and rendered similarly
      to CSS links in app-render.
      dd3e005c
    • Meno Abels's avatar
      Add response stream errorhandling in edge-function-runtime (#41102) · 27fe5c8c
      Meno Abels authored
      The behaviour of edge-function-runtime in the case of an error was not
      identical to the edge-runtime.
      If a type other than "Uint8Array" is written to the Response stream a
      unhandledreject is raised and logged.
      The current implementations(nodejs) accepts also Buffers and Strings
      which causes that a Application
      Developer things our stream implementation is broken if it is executed
      as worker.
      We introduced a helper function to consume the response stream and write
      the "Uint8Array" stream chunks
      to the server implementation. Due to the complication that the error
      side effect is emitted via the unhandledrejection
      handler it is almost impossible to test --- jest does not allow testing
      of the unhandlerejections.
      We tested extendsiveliy the helper in the edge-runtime so that this PR
      integrates just the consuming function.
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have a helpful link attached, see `contributing.md`
      
      ## Feature
      
      - [ ] Implements an existing feature request or RFC. Make sure the
      feature request has been accepted for implementation before opening a
      PR.
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Documentation added
      - [ ] Telemetry added. In case of a feature if it's used or not.
      - [ ] Errors have a helpful link attached, see `contributing.md`
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes by running `pnpm lint`
      - [ ] The "examples guidelines" are followed from [our contributing
      doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
      Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
      27fe5c8c
    • Shu Ding's avatar
      Do not bundle `react-dom` in the SSR build (#41227) · 24b60030
      Shu Ding authored
      Currently `react-dom` isn't handled as an external dependency in SSR,
      unlike `react`. This means that the ReactDOM imported by client
      components isn't the same instance as the ReactDOM that does SSR.
      
      This PR also upgrades React experimental to the latest version.
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have a helpful link attached, see `contributing.md`
      
      ## Feature
      
      - [ ] Implements an existing feature request or RFC. Make sure the
      feature request has been accepted for implementation before opening a
      PR.
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Documentation added
      - [ ] Telemetry added. In case of a feature if it's used or not.
      - [ ] Errors have a helpful link attached, see `contributing.md`
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes by running `pnpm lint`
      - [ ] The "examples guidelines" are followed from [our contributing
      doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
      24b60030
    • Steven's avatar
      Fix docs for next/image unconfigured hosts (#41223) · 5e6b008b
      Steven authored
      
      Fix docs for next/image unconfigured hosts to mention `remotePatterns`.
      5e6b008b
    • Shu Ding's avatar
      Upgrade React experimental (#41222) · c6dc62ef
      Shu Ding authored
      <!--
      Thanks for opening a PR! Your contribution is much appreciated.
      To make sure your PR is handled as smoothly as possible we request that
      you follow the checklist sections below.
      Choose the right checklist for the change that you're making:
      -->
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have a helpful link attached, see `contributing.md`
      
      ## Feature
      
      - [ ] Implements an existing feature request or RFC. Make sure the
      feature request has been accepted for implementation before opening a
      PR.
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Documentation added
      - [ ] Telemetry added. In case of a feature if it's used or not.
      - [ ] Errors have a helpful link attached, see `contributing.md`
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes by running `pnpm lint`
      - [ ] The "examples guidelines" are followed from [our contributing
      doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
      c6dc62ef
    • Jiachi Liu's avatar
      Alias next/dynamic to lazy impl for appDir (#41216) · 6352257d
      Jiachi Liu authored
      Since `next/dynamic` has client hooks that not compatible with server
      components, and app renderer doesn't provide context (such as
      `LoadableContext`) for it to use. Previously we provided a simple
      replacement using `React.lazy` for `next/dynamic` if you want to use it
      in appDir.
      
      This PR always alias it to the `React.lazy ` implementation for appDir
      so that user won't need to worry about the dynamic options. They can
      only use `dynamic()` without 2nd options arg
      
      ```js
      import dynamic from 'next/dynamic'
      
      const Dynamic = dynamic(() => import('./dynamic-component'))
      ```
      6352257d
    • Meno Abels's avatar
      Update edge runtime to 1.1.0-beta.37 (#41211) · 374ab4bf
      Meno Abels authored
      update of the edge-runtime to 1.1.0-beta.37.
      Co-authored-by: 's avatarKiko Beats <2096101+Kikobeats@users.noreply.github.com>
      374ab4bf
    • Donny/강동윤's avatar
    • Silvio Clécio's avatar
      Fix error 500 (#41205) · 21605a5f
      Silvio Clécio authored
      Fix the following problem:
      
      ```
        page: '/api/todos'
      }
        10 | 
        11 |   if (method === 'GET') {
      > 12 |     const { value: items } = await base.fetch([]).next()
           |                                                  ^
        13 |     respBody = items
        14 |     res.statusCode = 200
        15 |   } else if (method === 'POST') {
      warn  - Fast Refresh had to perform a full reload. Read more: https://nextjs.org/docs/basic-features/fast-refresh#how-it-works
      ```
      
      Working app -> https://with-deta-base-ashy.vercel.app
      Temp repo -> https://github.com/silvioprog/with-deta-base
      21605a5f
    • Justin Ridgewell's avatar
      Remove hook_optimizer transform (#41203) · 22ef969b
      Justin Ridgewell authored
      Fixes an issue where `const […foo] = useState(0)` is improperly transformed into `const { 0: …foo } = useState(0)`.
      
      The hook optimizer was useful when hooks first came out, primarily because browsers had never optimized array destructuring. But current browsers have, and the optimization doesn't help anymore.
      
      
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [x] Integration tests added
      - [ ] Errors have a helpful link attached, see `contributing.md`
      
      ## Feature
      
      - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Documentation added
      - [ ] Telemetry added. In case of a feature if it's used or not.
      - [ ] Errors have a helpful link attached, see `contributing.md`
      
      ## Documentation / Examples
      
      - [x] Make sure the linting passes by running `pnpm lint`
      - [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
      22ef969b
    • JJ Kasper's avatar
      v12.3.2-canary.21 · e8c760f7
      JJ Kasper authored
      e8c760f7
    • Hannes Bornö's avatar
      Font loader with babel error (#41151) · e5be49ee
      Hannes Bornö authored
      Adds build error when using font loaders with babel. Otherwise you'll
      get other unrelated errors.
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have a helpful link attached, see `contributing.md`
      
      ## Feature
      
      - [ ] Implements an existing feature request or RFC. Make sure the
      feature request has been accepted for implementation before opening a
      PR.
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Documentation added
      - [ ] Telemetry added. In case of a feature if it's used or not.
      - [ ] Errors have a helpful link attached, see `contributing.md`
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes by running `pnpm lint`
      - [ ] The "examples guidelines" are followed from [our contributing
      doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
      Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
      e5be49ee
    • JJ Kasper's avatar
      Fix errors entry in codeowners · 188acd24
      JJ Kasper authored
      188acd24
  2. 05 Oct, 2022 8 commits
  3. 04 Oct, 2022 13 commits
  4. 03 Oct, 2022 4 commits