1. 04 Dec, 2021 3 commits
    • Tim Neutkens's avatar
      v12.0.6 · 56c68dba
      Tim Neutkens authored
      56c68dba
    • Tim Neutkens's avatar
      v12.0.6-canary.0 · e257dbfa
      Tim Neutkens authored
      e257dbfa
    • Tim Neutkens's avatar
      Fix document type import path (#32117) · 980e1699
      Tim Neutkens authored
      There was a mistake in #32077 which imported a different module than _document in the _document .d.ts file. I found that we didn't have a test for a custom _document.tsx and _app.tsx with TypeScript, so I've added one that fails on canary and passes with this fix to ensure this does not happen in the future.
      
      Fixes #32110
      
      
      
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have 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 helpful link attached, see `contributing.md`
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes by running `yarn lint`
      980e1699
  2. 03 Dec, 2021 16 commits
    • JJ Kasper's avatar
      v12.0.5 · b6162bb6
      JJ Kasper authored
      b6162bb6
    • JJ Kasper's avatar
      v12.0.5-canary.19 · 17050208
      JJ Kasper authored
      17050208
    • JJ Kasper's avatar
      Revert "Fix running server with Polyfilled fetch (#31935)" (#32100) · f0fd4962
      JJ Kasper authored
      This reverts commit 1c199a5e.
      f0fd4962
    • JJ Kasper's avatar
      v12.0.5-canary.18 · b194664d
      JJ Kasper authored
      b194664d
    • Tim Neutkens's avatar
      bc429f50
    • C. T. Lin's avatar
      Fix the testall npm script (#32081) · 3a5e4244
      C. T. Lin authored
      
      
      `yarn test` has been removed by #32042, so it should be replaced by the other test scripts.
      3a5e4244
    • Tim Neutkens's avatar
      v12.0.5-canary.17 · e58e7b17
      Tim Neutkens authored
      e58e7b17
    • JJ Kasper's avatar
      Ensure invalid URLs respond with 400 correctly (#32092) · 6d98b4fb
      JJ Kasper authored
      This ensures we catch any errors in `handleRequest` so that we can respond with a 400 for invalid requests. 
      
      ## Bug
      
      - [x] Related issues linked using `fixes #number`
      - [x] Integration tests added
      - [ ] Errors have helpful link attached, see `contributing.md`
      
      Fixes: https://github.com/vercel/next.js/issues/32075
      Closes: https://github.com/vercel/next.js/pull/32080
      6d98b4fb
    • Javi Velasco's avatar
      Fix running server with Polyfilled fetch (#31935) · 1c199a5e
      Javi Velasco authored
      This PR fixes #30398
      
      By default Next will polyfill some fetch APIs (Request, Response, Header and fetch) only if fetch is not found in the global scope in certain entry points. If we have a custom server which is adding a global fetch (and only fetch) at the very top then the rest of APIs will not be polyfilled.
      
      This PR adds a test on the custom server where we can add a custom polyfill for fetch with an env variable. This reproduces the issue since next-server.js will be required without having a polyfill for Response which makes it fail on requiring NextResponse. Then we remove the code that checks for subrequests to happen within the **sandbox** so that we don't need to polyfill `next-server` anymore.
      
      The we also introduce an improvement on how we handle relative requests. Since #31858 introduced a `port` and `hostname` options for the server, we can always pass absolute URLs to the Middleware so we can always use the original `nextUrl` to pass it to fetch. This brings a lot of simplification for `NextURL` since we don't have to consider relative URLs no more.
      
      ## Bug
      
      - [x] Related issues linked using `fixes #number`
      - [x] Integration tests added
      - [x] Errors have helpful link attached, see `contributing.md`
      1c199a5e
    • Tim Neutkens's avatar
      v12.0.5-canary.16 · 41f87abd
      Tim Neutkens authored
      41f87abd
    • Tim Neutkens's avatar
      v12.0.5-canary.15 · c1f6abbe
      Tim Neutkens authored
      c1f6abbe
    • Luis Alvarez D's avatar
      Improve exported root definitions (#32077) · 647c06b3
      Luis Alvarez D authored
      Fixes https://github.com/vercel/next.js/issues/32045
      
      doing `export { default } from 'module'` has some unexpected results for autocompletion in TypeScript, this PR changes root definitions to have a named default export where needed.
      
      ## Bug
      
      - [x] Related issues linked using `fixes #number`
      647c06b3
    • Lucas Wiener's avatar
      Skip warnings for Image not rendered to the dom (#32049) · 80ec93d1
      Lucas Wiener authored
      Some libraries, like react-slick, render their content to a detached element before attaching it to the dom. If the content of such libraries is Image components, they will report warnings because the display/position properties are undefined. This PR squelch the warnings for such cases.
      80ec93d1
    • Tim Neutkens's avatar
      Remove "yarn jest" from Next.js repo scripts (#32042) · b6914198
      Tim Neutkens authored
      Removes `yarn test` from the scripts as it has the wrong options. `yarn testonly` or `yarn testheadless` are the way to run tests. Fixes #32031
      
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have 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 helpful link attached, see `contributing.md`
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes by running `yarn lint`
      b6914198
    • Leonardo Ortiz's avatar
      docs(Testing): Remove duplicate link (#32071) · 31d21849
      Leonardo Ortiz authored
      There was two items `Use a development server`, both linking to the same URL. The last one was removed.
      31d21849
    • Tobias Koppers's avatar
      avoid retaining webpack config too long (#32053) · eb65ed37
      Tobias Koppers authored
      avoids keeping the webpack compiler during after webpack build build steps like SSG etc.
      
      (review with ignore whitespace)
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have 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 helpful link attached, see `contributing.md`
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes by running `yarn lint`
      eb65ed37
  3. 02 Dec, 2021 8 commits
    • JJ Kasper's avatar
      v12.0.5-canary.14 · 5763a33a
      JJ Kasper authored
      5763a33a
    • JJ Kasper's avatar
      Make CI build cache key more specific (#32059) · df774a9d
      JJ Kasper authored
      df774a9d
    • keji's avatar
      grammatical error in alert.js (#32062) · a016713c
      keji authored
      
      
      
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have 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 helpful link attached, see `contributing.md`
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes by running `yarn lint`
      a016713c
    • JJ Kasper's avatar
      Include page for export errors for easier debugging (#32013) · abe53727
      JJ Kasper authored
      This makes sure to include the `page` for dynamic routes when they encounter an error during prerendering as we currently only include the `path`, e.g. before we would only show `/blog/first` and now we show `/blog/[slug]: /blog/first` 
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have 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 helpful link attached, see `contributing.md`
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes by running `yarn lint`
      abe53727
    • JJ Kasper's avatar
      Fix middleware types with skipLibCheck: false (#32025) · cc9e1ea3
      JJ Kasper authored
      This ensures type checking passes correctly for middleware types when `skipLibCheck: false` is set in `tsconfig.json`. This also moves the `middleware-types` to be an isolated test to ensure it isn't relying on any monorepo dependencies. 
      
      ## Bug
      
      - [x] Related issues linked using `fixes #number`
      - [x] Integration tests added
      - [ ] Errors have helpful link attached, see `contributing.md`
      
      Fixes: https://github.com/vercel/next.js/issues/31992#issuecomment-984174872
      cc9e1ea3
    • JJ Kasper's avatar
      Lock node version for CI (#32057) · 25371dd1
      JJ Kasper authored
      25371dd1
    • JJ Kasper's avatar
      03317c75
    • Tobias Koppers's avatar
      add experimental.swcFileReading flag to disable file reading in swc (#31995) · 494e37c0
      Tobias Koppers authored
      automatically disable swc file reading when wasm builds are used and for virtual or yarn cache paths
      
      
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have 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 helpful link attached, see `contributing.md`
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes by running `yarn lint`
      Co-authored-by: 's avatarMaia Teegarden <2865858+padmaia@users.noreply.github.com>
      494e37c0
  4. 01 Dec, 2021 8 commits
    • Leonard Martin's avatar
      Add note to docs about `sharp` memory usage on default Linux setup (#31919) · 5747435d
      Leonard Martin authored
      It's fairly opaque to the user that there are problems with `sharp` in an out-of-the-box Linux environment, and so if `sharp` is going to be explicitly recommended for non-Vercel production environments then I think it's a good idea to make sure people are aware of the possible issues.
      
      My vanilla Heroku deployment was using wild amounts of memory until I found the details in the sharp docs about how to configure the memory allocator, so signposting this a bit better should help prevent issues in future.
      
      
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have 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 helpful link attached, see `contributing.md`
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes by running `yarn lint`
      Co-authored-by: 's avatarLee Robinson <9113740+leerob@users.noreply.github.com>
      5747435d
    • Eric Matthys's avatar
      fix(Link): Do not ignore onMouseEnter prop with absolute href (#32012) · f2251793
      Eric Matthys authored
      
      Fixes #22733
      
      Regardless of whether it's recommended that Link be used with external href values or not, they can be used and `onMouseEnter` being swallowed with an external href value is unexpected behavior.
      
      ## Bug
      
      - [x] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have helpful link attached, see `contributing.md`
      
      ## Documentation / Examples
      
      - [x] Make sure the linting passes by running `yarn lint`
      f2251793
    • C. T. Lin's avatar
      Allow pre-release React 18 as peer (#31991) · 332cd06c
      C. T. Lin authored
      332cd06c
    • Rich Haines's avatar
      73d7f945
    • JJ Kasper's avatar
      v12.0.5-canary.13 · 32ac9186
      JJ Kasper authored
      32ac9186
    • Jiachi Liu's avatar
      Resolve streaming data for flight requests (#32010) · 928c7795
      Jiachi Liu authored
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [x] Integration tests added
      - [ ] Errors have helpful link attached, see `contributing.md`
      928c7795
    • Tim Neutkens's avatar
      1442b582
    • Tim Neutkens's avatar
      Add next-swc to labeler · f8d6441e
      Tim Neutkens authored
      f8d6441e
  5. 30 Nov, 2021 5 commits