1. 17 Oct, 2021 2 commits
  2. 16 Oct, 2021 5 commits
  3. 15 Oct, 2021 16 commits
  4. 14 Oct, 2021 9 commits
  5. 13 Oct, 2021 8 commits
    • Kara's avatar
      Refactor Document to prep for classic streaming (#29834) · 5760ceac
      Kara authored
      This refactor is the first of a few changes to support "classic" (two-part)
      streaming. This one should be a noop that doesn't actually change the behavior.
      It re-organizes the way that functions are wrapped in Document Head/NextScript
      so anything that will be part of the second flush can be separated out from the
      first flush. It also adds the structure for a useMaybeDeferContent hook, but
      currently always assumes that nothing should be deferred.
      
      The next PRs will actually implement streaming.
      5760ceac
    • Tim Neutkens's avatar
      Enable esmExternals by default (#29878) · d6225340
      Tim Neutkens 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
      d6225340
    • Tim Neutkens's avatar
      v11.1.3-canary.68 · d1d7a951
      Tim Neutkens authored
      d1d7a951
    • Donny/강동윤's avatar
      Update swc & Improve CI time (#29884) · bf9e998a
      Donny/강동윤 authored
      Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
      Co-authored-by: 's avatarkdy1 <kdy1@users.noreply.github.com>
      bf9e998a
    • Tobias Koppers's avatar
      only listen to drain even once (#29885) · f530b0d3
      Tobias Koppers authored
      gets rid of `(node:670) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 drain listeners added to [WriteStream]. Use emitter.setMaxListeners() to increase limit`
      f530b0d3
    • Tim Neutkens's avatar
      a002f612
    • Tobias Koppers's avatar
      update webpack (#29870) · ecd31ab6
      Tobias Koppers authored
      ecd31ab6
    • Angelo P's avatar
      Update testing based on Failed to parse src "test-file-stub" on `next… (#29039) · 541259d9
      Angelo P authored
      …/image` Error
      
      While learning how to test next.js applications I came across this error when testing components using next/image with an image import
      
      eg: 
      ```
      // /quiz-hero
      import Image from 'next/image';
      import quizImage from '../../public/undraw-quiz.svg';
      
      // In render 
      <Image
                    height='91'
                    width='198'
                    layout='fixed'
                    src={quizImage}
                    alt='QuizImage'
                  />
      ```
      
      ### Error -> 
      Failed to parse src "test-file-stub" on `next/image`, if using relative image it must start with a leading slash "/" or be an absolute URL (http:// or https://)
      
      This is fixed by adding a "/" to the beginning of your file-stub module export string. 
      
      This is not an error when you're awaiting an image using async waitFor, But comes up as an error when you're testing a component that holds another component with a "next/image" import.
      eg: 
      ```
      // quizHero.test.tsx works like this without change.
      const image = await waitFor(() => screen.findByAltText('QuizImage')); 
      
      // but index.test.tsx fails rendering the homepage without the change.
      render(<Home />); // Error: Failed to parse src "test-file-stub" on `next/image`...
      
      // with change to __mocks__/fileMock
      quizHero.test.tsx //test pass
      index.test.tsx //test pass
      ```
      <!--
      Thanks for opening a PR! Your contribution is much appreciated.
      In order 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
      
      possibly related to -> #26749
      
      ## Feature
      
      - [X] Documentation added
      
      ## Documentation / Examples
      
      - [X] Make sure the linting passes
      541259d9