1. 30 Aug, 2022 8 commits
  2. 29 Aug, 2022 8 commits
  3. 28 Aug, 2022 7 commits
    • Yoann Moinet's avatar
      [docs] Add precision about `pageExtensions` (#40016) · 1b61d1f5
      Yoann Moinet authored
      
      
      Adding a precision because when you change the `pageExtensions` configuration in `next.config.js`, `middleware.ts` isn't recognized anymore.
      
      Took me some time to debug this one, not sure if it should be considered a bug or just lack of documentation.
      I'll let you be the judge of that.
      
      ## Documentation / Examples
      
      - [x] Make sure the linting passes by running `pnpm lint`
      - [x] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)
      Co-authored-by: 's avatarJJ Kasper <22380829+ijjk@users.noreply.github.com>
      1b61d1f5
    • JJ Kasper's avatar
      Update docker image for stats action (#40032) · 4f360649
      JJ Kasper authored
      Noticed the stats action was leveraging the wasm fallback incorrectly
      which seems to be due to the necessary glibc version not being available
      in the docker image we were leveraging so this updates the base docker
      image used so the wasm fallback isn't needed and the dev binary is
      correctly used again.
      
      Fixes:
      https://github.com/vercel/next.js/runs/8004433626?check_suite_focus=true
      Fixes:
      https://github.com/vercel/next.js/runs/7988021570?check_suite_focus=true
      4f360649
    • Sanjaiyan Parthipan's avatar
      Update script.md (#40017) · ca807d66
      Sanjaiyan Parthipan authored
      Adding id property for inline script 
      Co-authored-by: 's avatarSukka <isukkaw@gmail.com>
      ca807d66
    • Shu Ding's avatar
      Avoid bundling `next/script` in the server build by default (#40013) · d592d206
      Shu Ding authored
      We only use `if (child.type === Script)` on the server side to check the
      element type, that's unnecessary because we can add a special flag for
      that (`__nextScript` in this PR).
      
      This reduces the server bundle by ~13kb if `next/script` is not imported
      by the user.
      
      ## 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 by running `pnpm lint`
      - [ ] The examples guidelines are followed from [our contributing
      doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)
      d592d206
    • YK's avatar
    • Sukka's avatar
      fix(#39993): avoid race condition for next/script onReady (#40002) · e6862e40
      Sukka authored
      Fixes #39993.
      
      Before the PR:
      
      - `next/script` component mount, `useEffect` for `onReady` executes
      - The script's cacheKey is not added to `LoadCache`, skip `onReady`
      - The second `useEffect` for `loadScript` executes
      - The script's cacheKey is added to `LoadCache` even if it might not fully load yet
      - Because of React's strict mode, `useEffect` for `onReady` executes again
      - Since the script's cacheKey is in `LoadCache`, `onReady` is called (even when the script is not loaded yet)
      - After the script is actually loaded, inside the `script.onload` event handler the `onReady` is called again
      
      After the PR:
      
      - `next/script` component mount, `useEffect` for `onReady` executes
      - The script's cacheKey is not added to `LoadCache`, `useEffect` skips `onReady`
      - The second `useEffect` for `loadScript` executes
      - The script's cacheKey is added to `LoadCache` only if it is an inline script
      - Because of React's strict mode, `useEffect` for `onReady` executes again
      - The script is not yet loaded, its cacheKey is not in `LoadCache`, `useEffect` skips `onReady` again
      - After the script is actually loaded, inside the `script.onload` event handler the `onReady` is finally called
      
      In short, the PR resolves a race condition that only occurs under React strict mode (and makes the `next/script` component more concurrent rendering resilient).
      
      ## Bug
      
      - [x] Related issues linked using `fixes #number`
      - [x] Integration tests added
      - [ ] Errors have helpful link attached, see `contributing.md`
      e6862e40
    • Shu Ding's avatar
      Add test for server CSS imports (#40019) · afbf4b10
      Shu Ding authored
      Now we are covering all 8 scenarios in our tests: server-client × global-CSS Modules × page-layout. Next step is to cover HMR and page navigation cases.
      
      ## Bug
      
      - [ ] 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
      
      - [ ] Make sure the linting passes by running `pnpm lint`
      - [ ] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)
      afbf4b10
  4. 27 Aug, 2022 1 commit
    • JJ Kasper's avatar
      Fix incorrect build log for moduleResolution (#39991) · f6c96e05
      JJ Kasper authored
      Removes extra log shown when checking `moduleResolution` in
      `tsconfig.json` and adds regression test.
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [x] Integration tests added
      - [ ] Errors have helpful link attached, see `contributing.md`
      f6c96e05
  5. 26 Aug, 2022 12 commits
  6. 25 Aug, 2022 4 commits