1. 09 11月, 2020 1 次提交
  2. 08 11月, 2020 4 次提交
  3. 07 11月, 2020 10 次提交
  4. 06 11月, 2020 16 次提交
  5. 05 11月, 2020 9 次提交
    • J
      v10.0.2-canary.1 · f8f0c6bb
      Joe Haddad 提交于
      f8f0c6bb
    • G
      ncc Babel inlining (#18768) · 64850a83
      Guy Bedford 提交于
      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
    • J
      tests(create-next-app): remove extraneous helper (#18833) · 596ee9c1
      James George 提交于
      The helper `runStarter()` is extraneous.
      596ee9c1
    • B
    • W
      Make getInlineScriptSource arg Readonly (#17281) · b3d9fd2a
      Will Heslam 提交于
      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
    • J
      Speed up SSG prefetching (#18813) · bc2282fa
      Joe Haddad 提交于
      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
    • J
      tests(create-next-app): increase coverage (#18630) · 5d80e684
      James George 提交于
      Added a test case for asking for a name for the project if not supplied.
      5d80e684
    • G
      Update ncc (#18823) · 7b66da83
      Guy Bedford 提交于
      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
    • W
      Fix typo on `api-reference/image` (#18818) · afe475d3
      Willian Justen 提交于
      afe475d3