1. 05 Nov, 2020 8 commits
    • Joe Haddad's avatar
      v10.0.2-canary.1 · f8f0c6bb
      Joe Haddad authored
      f8f0c6bb
    • Guy Bedford's avatar
      ncc Babel inlining (#18768) · 64850a83
      Guy Bedford authored
      This adds inlining for Babel and the Babel plugins used in next.
      
      This is based to the PR at https://github.com/vercel/next.js/pull/18823.
      
      The approach is to make one large bundle and then separate out the individual packages from that in order to avoid duplications.
      
      In the first attempt the Babel bundle size was 10MB... using "resolutions" in the Yarn workspace to reduce the duplicated packages this was brought down to a 2.8MB bundle for Babel and all the used plugins which is exactly the expected file size here.
      
      This will thus add a 2.8MB download size to the next package, but save downloading any babel dependencies separately, removing a large number of package dependencies from the overall install.
      64850a83
    • James George's avatar
      tests(create-next-app): remove extraneous helper (#18833) · 596ee9c1
      James George authored
      The helper `runStarter()` is extraneous.
      596ee9c1
    • Bogdan Chadkin's avatar
    • Will Heslam's avatar
      Make getInlineScriptSource arg Readonly (#17281) · b3d9fd2a
      Will Heslam authored
      The rule [total-functions/no-unsafe-readonly-mutable-assignment](https://github.com/danielnixon/eslint-plugin-total-functions#total-functionsno-unsafe-readonly-mutable-assignment) triggers with this error message:
      > Assigning a readonly type to a mutable type can lead to unexpected mutation in the readonly value
      
      when invoking
      ```
            NextScript.getInlineScriptSource(this.props)
      ```
      inside a `_document.tsx`'s render function.
      due to `this.props` having the type:
      ```
      props: Readonly<P> & Readonly<{ children?: ReactNode }>
      ```
      in `@types/react`
      
      On the other hand, this is a small, low-priority change (IMO), so an alternative work around is just to disable the lint rule for that line of course.
      
      Lint, tests, and build passes.
      
      Lint error was discovered using typescript@next, version `4.1.0-dev.20200921` and eslint-plugin-total-functions version `4.1.0`, but I tested the change to nextjs using typescript version `3.8.3`.
      b3d9fd2a
    • Joe Haddad's avatar
      Speed up SSG prefetching (#18813) · bc2282fa
      Joe Haddad authored
      This pull request speeds up Next.js' rendering pipeline by fetching data, parsing it, and loading it into memory instead of only doing the network request.
      
      This will mainly result in improved Firefox/Safari performance since they handled prefetch incorrectly—only Chrome did it right. This also gets us closer to being able to use `no-store` in our caching headers!
      
      ---
      
      Fixes #18639
      x-ref #18802
      bc2282fa
    • James George's avatar
      tests(create-next-app): increase coverage (#18630) · 5d80e684
      James George authored
      Added a test case for asking for a name for the project if not supplied.
      5d80e684
    • Guy Bedford's avatar
      Update ncc (#18823) · 7b66da83
      Guy Bedford authored
      This updates to the latest ncc@0.24.1 release.
      
      Initially I thought chalk needed to be removed to make this work, but it turns out it was a caching issue.
      
      I've also added a cache clear to the rebuild command to avoid these issues hopefully in future.
      7b66da83
  2. 04 Nov, 2020 14 commits
  3. 03 Nov, 2020 14 commits
  4. 02 Nov, 2020 4 commits