1. 14 Oct, 2021 9 commits
  2. 13 Oct, 2021 17 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
    • Rich Haines's avatar
      Added more examples to Response Helpers page (#29462) · eed43115
      Rich Haines authored
      
      
      ## Bug
      
      - [x] Related issues linked using Fixes: https://github.com/vercel/front/issues/11154
      - [ ] 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
      - [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
      
      - [ ] Make sure the linting passes
      eed43115
    • Tim Neutkens's avatar
      v11.1.3-canary.67 · 9cf49ddf
      Tim Neutkens authored
      9cf49ddf
    • Donny/강동윤's avatar
      Update swc (#29881) · b99cfb8c
      Donny/강동윤 authored
      Co-authored-by: 's avatarkdy1 <kdy1@users.noreply.github.com>
      b99cfb8c
    • Tim Neutkens's avatar
      v11.1.3-canary.66 · 96c2980c
      Tim Neutkens authored
      96c2980c
    • Donny/강동윤's avatar
      Update swc (#29866) · c3971010
      Donny/강동윤 authored
      Co-authored-by: 's avatarkdy1 <kdy1@users.noreply.github.com>
      c3971010
    • Jan Nicklas's avatar
    • Tobias Koppers's avatar
      make test directories more unique (#29864) · 7cb5577e
      Tobias Koppers authored
      I wouldn't believe it, but it actually happens that the first two test cases try to create their test directory at the same millisecond, resulting in a shared directory, which leads to conflicts.
      7cb5577e
    • Genet Schneider's avatar
      Avoid TypeError when comparing path param (#29821) · e40785e1
      Genet Schneider authored
      
      
      ## Bug
      
      Fixes a TypeError when accessing url with no path params `_next/data/<BUILD_ID>`
      ```
      TypeError: Cannot read property 'endsWith' of undefined
        at Object.fn (/app/node_modules/next/server/next-server.ts:644:52)
        at Router.execute (/app/node_modules/next/server/router.ts:346:40)
        at Server.run (/app/node_modules/next/server/next-server.ts:1229:41)
        at Server.handleRequest (/app/node_modules/next/server/next-server.ts:489:25)
        at /app/node_modules/next/server/next.ts:47:14
      ```
      
      - [ ] Related issues linked using `fixes #number`
      - [x] 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
      e40785e1
    • Mike Osterhout's avatar
      Update typescript version (#29854) · 3910c389
      Mike Osterhout authored
      Resolves  message using `yarn dev` 
      
      ```
      warn  - Minimum recommended TypeScript version is v4.3.2, older versions can potentially be incompatible with Next.js. Detected: 4.0.8
      ```
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have helpful link attached, see `contributing.md`
      3910c389
  3. 12 Oct, 2021 6 commits
  4. 11 Oct, 2021 8 commits