1. 16 Aug, 2021 10 commits
    • jj@jjsweb.site's avatar
      v11.1.1-canary.9 · 4dad4fb7
      jj@jjsweb.site authored
      4dad4fb7
    • Tim Neutkens's avatar
      Add module type to build-module trace (#28128) · f28b965a
      Tim Neutkens authored
      
      
      Add `-js` `-ts` `-tsx` `-css` to `build-module` in traces to allow for easier filtering. 
      
      ## 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
      f28b965a
    • JJ Kasper's avatar
      Add entrypoint tracing (#25538) · 24b09ad4
      JJ Kasper authored
      This adds tracing entrypoints directly after they have have been transpiled to allow us to trace before the webpack runtime has been added to the modules. This should allow for more accurate tracing of entrypoints and allow the trace step to be cached. 
      
      ## Bug
      
      - [x] Related issues linked using `fixes #number`
      - [x] Integration tests added
      
      
      x-ref: https://github.com/vercel/next.js/issues/24700
      x-ref: https://github.com/vercel/next.js/issues/26200
      x-ref: https://github.com/vercel/next.js/issues/23894
      x-ref: https://github.com/vercel/next.js/issues/25431
      24b09ad4
    • Rahul Gaba's avatar
      ESLint Plugin: Prefer next script component when using the inline script for… · da4d6525
      Rahul Gaba authored
      ESLint Plugin: Prefer next script component when using the inline script for Google Analytics. (#25147)
      
      * Add a lint rule for using next script component when using inline script for Google Analytics.
      
      * Apply suggestions from code review
      Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
      
      * Update errors/next-script-for-ga.md
      Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
      
      * Apply suggestions from code review
      Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
      da4d6525
    • Shun Tedokon's avatar
      docs: corrected the link to the example (#28175) · 385ac94a
      Shun Tedokon authored
      
      
      ## Documentation
      
      - Corrected the link in the **Next.js Testing Docs** to the correct one.
      385ac94a
    • Jiachi Liu's avatar
      Fix crash of lint rule no-document-import-in-page (#28148) · 90eae2c0
      Jiachi Liu authored
      
      
      Fixes #28030 
      Fixes #28169
      
      ## Bug
      
      - [x] Related issues linked using `fixes #number`
      - [x] Integration tests added
      - [x] Errors have helpful link attached, see `contributing.md`
      90eae2c0
    • Jiachi Liu's avatar
      Enable pure client suspense in blocking rendering (#28165) · 53134269
      Jiachi Liu authored
      Do not fallback to loadable component when `reactRoot` is enabled but without `concurrentFeatures`. Thus we can enable pure client suspense:
      
      `fallback` is always rendered on server side, but client side can work with fully functional suspense.
      
      Closes #28117
      53134269
    • Brian Muenzenmeyer's avatar
      fix(tests): fixes typo in basic integration test (#28158) · 49c3e0a2
      Brian Muenzenmeyer 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
      
      - [x] Make sure the linting passes
      
      
      While reading the code I noticed this typo.
      49c3e0a2
    • Aryan Beezadhur's avatar
      Replace CSS tag with JS import (#28143) · 876cbbaf
      Aryan Beezadhur authored
      Replaces `<link />` tag import with JS import to fix ESLint warning: https://nextjs.org/docs/messages/no-css-tags
      876cbbaf
    • Oscar Fuentes's avatar
      doc: fix typo (#28146) · 639b4d7d
      Oscar Fuentes authored
      Given the context of the surrounding sentence, I believe the intention here was to use the word `increasing`. 
      
      
      
      ## 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
      639b4d7d
  2. 15 Aug, 2021 5 commits
    • Tim Neutkens's avatar
      Add support for Jaeger trace target (#28129) · 76cc01f6
      Tim Neutkens authored
      
      
      Adds support for Jaeger next to Zipkin as a trace target.
      
      ## 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
      76cc01f6
    • Maia Teegarden's avatar
      v11.1.1-canary.8 · ebe3d93f
      Maia Teegarden authored
      ebe3d93f
    • Maia Teegarden's avatar
      Add setup for m1 build (#28138) · 97f9b64c
      Maia Teegarden authored
      * Add setup for m1 build
      
      * Add workflow to cache key
      Co-authored-by: 's avatarkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
      97f9b64c
    • Lee Robinson's avatar
      Improve React Strict Mode documentation. (#28139) · d5dc9681
      Lee Robinson authored
      The current text linked wasn't obvious. Plus, the best description of what Strict Mode is was at the bottom of the document.
      d5dc9681
    • Jiachi Liu's avatar
      Fix: wrong link error message (#28127) · 4cdb5859
      Jiachi Liu authored
      
      
      Fixes: #28126
      
      ## Bug
      
      - [x] Related issues linked using `fixes #number`
      - [x] Integration tests added
      - [x] Errors have helpful link attached, see `contributing.md`
      4cdb5859
  3. 14 Aug, 2021 12 commits
  4. 13 Aug, 2021 13 commits
    • Jesse Jafa's avatar
      [ESLint] Disallow <Script /> inside _document.js & <Script /> inside the… · a28e775e
      Jesse Jafa authored
      [ESLint] Disallow <Script /> inside _document.js & <Script /> inside the next/head component (#27257)
      
      ## Feature
      
      - [x] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. [Feature Request](https://github.com/vercel/next.js/discussions/26365)
      - [x] Eslint unit ests added
      - [x] Errors have helpful link attached, see `contributing.md`
      
      Let me know if this looks good or something needs to be changed. I still need to add the error links and improve the eslint error messages.
      
      I don't know if the CI runs the ESLint tests, but current all pass locally
      a28e775e
    • Tim Neutkens's avatar
      Bypass webpack compilation for precompiled @next/polyfills-nomodule (#27596) · eddf2054
      Tim Neutkens authored
      Removes the extra webpack handling that was previously done, this ensures the file which is already minified and compiled does not get passed through minification again.
      
      Largely based on #21418
      Closes #21418
      
      The polyfill loading already has tests so no other changes are necessary.
      
      
      
      ## 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
      eddf2054
    • stefanprobst's avatar
      Handle blob urls in image component (#27975) · daadfd34
      stefanprobst authored
      This PR resurrects #23622 which has not been updated in a while. Makes the `Image` component handle `blob:` object urls.
      
      closes #23622
      fixes #19291
      
      credits: @sdn90 
      
      ## 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
      daadfd34
    • Jiachi Liu's avatar
      Support suspense in next dynamic (#27611) · d14da39f
      Jiachi Liu authored
      
      
      ### Changes
      #### Feature
      * Adopt `React.lazy` into `next/dynamic`, enable it when `options.suspense` is `true`
      * Support `next/dynamic` with `suspense=true` in SSR and SSG
      
      #### Tests
      
      | Scenario | Case | Behavior |
      |:----:|:----:|:----:|
      | basics | react 17 or 18 by default | dev/build error or pass |
      | blocking rendering | `reactRoot: true` + `concurrentFeatures: false` | dev/build pass |
      | concurrent rendering | `reactRoot: true` + `concurrentFeatures: true` | dev/build pass | 
      
      
      ## Feature
      
      - [x] 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`
      - [x] 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`
      
      
      d14da39f
    • Gerald Monaco's avatar
      Add support for dynamic HTML (#28085) · c969b817
      Gerald Monaco authored
      Implements `renderToString` in terms of a new `renderToStream`. The former is used for legacy documents that generate the body HTML as part of `getInitialProps`. The latter will be used directly in #27794 when streaming dynamic HTML.
      
      Since we're exposing an actual streaming response for dynamic HTML (instead of buffering with `resultFromChunks`), we use `multiplexResult` to buffer and multiplex the underlying result to multiple subscribers.
      c969b817
    • Gerald Monaco's avatar
      Render as a concatenation of streams (#28082) · d2551bbb
      Gerald Monaco authored
      Return the `RenderResult` as a concatenation of streams, rather than a concatenation of strings. 
      d2551bbb
    • Anderson Leite's avatar
      Refactor development-logs removing duplicated code. (#28049) · f95e5fdf
      Anderson Leite authored
      Hi, this is small refactor for the development-logs.js test.
      The same code to verify the browser logs is written 3 times.
      Actually, the only difference is the path and then the expect result to confirm whether the logs are showing or not.
      Moved the triplicated code to a `getLogs$(path)` and matched the expect results.
      f95e5fdf
    • Delba de Oliveira's avatar
      [DOCS] Update testing docs (#28064) · 04794776
      Delba de Oliveira authored
      This PR adds a recommendation to test production code with Cypress and re-orders the page information. 
      
      ## 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
      - [x] 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
      
      - [x] Make sure the linting passes
      04794776
    • Maia Teegarden's avatar
      v11.1.1-canary.6 · 2a83012d
      Maia Teegarden authored
      2a83012d
    • Maia Teegarden's avatar
      USe await correctly (#28053) · 9d447718
      Maia Teegarden authored
      9d447718
    • Gerald Monaco's avatar
      Clean up `Document` in preparation for streaming (#28032) · 08a24780
      Gerald Monaco authored
      We generate the HTML for a document in two steps: First, we generate the body (i.e. everything under `<div id="__next">`). Then we generate the rest of the document and embed the body in it.
      
      This doesn't work when the body is a stream, because React can't render the body for us unless we buffer it, and buffering it means not streaming. This PR takes the existing approach for AMP and uses it for all scenarios: instead of rendering HTML, we just render a placeholder that we can replace with HTML later. This will be used in a follow-up PR to let us know where to concatenate the body stream.
      
      I also used the opportunity to split out `HtmlContext` from `DocumentProps`, as these will not be the same thing with functional document components.
      08a24780
    • Lee Robinson's avatar
    • Maia Teegarden's avatar
      v11.1.1-canary.5 · ea6a0f0e
      Maia Teegarden authored
      ea6a0f0e