1. 28 Mar, 2022 8 commits
    • JJ Kasper's avatar
      v12.1.2 · 50be7cc1
      JJ Kasper authored
      50be7cc1
    • JJ Kasper's avatar
      v12.1.2-canary.1 · 82542549
      JJ Kasper authored
      82542549
    • JJ Kasper's avatar
      Ensure eslint plugins dont conflict (#35667) · 12e1bb7d
      JJ Kasper authored
      12e1bb7d
    • Tim Neutkens's avatar
      Rename createRSCHook to createFlightHook (#35665) · 65680ba3
      Tim Neutkens authored
      
      
      Updates the naming of these to be in line with what it does.
      
      ## 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 `yarn lint`
      65680ba3
    • Luis Alvarez D's avatar
      Update middleware examples list (#35622) · ab119bcc
      Luis Alvarez D authored
      Logging and analytics are not provided in vercel/examples using middleware.
      
      
      
      ## 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 `yarn lint`
      ab119bcc
    • Shu Ding's avatar
      Fix server component render condition (#35663) · f5917ad3
      Shu Ding authored
      We are currently using `!!ComponentMod.__next_rsc__` as the hint for the renderer to tell if the component is a server component, however that export field (`__next_rsc__`) is assigned to client components (`.client.[ext]`) as well. 
      
      This PR adds a new `__next_rsc_server__` field which is only true when the component is a server component so the renderer can handle client components correctly.
      
      ## 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 `yarn lint`
      f5917ad3
    • Jiachi Liu's avatar
      Clean up legacy react 18 tests (#35615) · 41a2eb23
      Jiachi Liu authored
      ### source changes
      * Error dynamic suspense option in non concurrent mode, don't check react root anymore since they should be bound
      
      ### tests changes
      
      * Remove duplicated rsc client test
      * Merge type checking cases (`next/dynamic`)
      * Remove blocking rendering tests cases since we should opt-in Fizz rendering when using React.lazy
      * Remove some thrown promises cases, leverage the streaming component we had in RSC test
      41a2eb23
    • Jiachi Liu's avatar
      enhance: detect ESM by ast type (#35627) · 4bfcf834
      Jiachi Liu authored
      Simplify the esmodule detection. If there's any import/exprt usage, it will return `Module` in ast.type otherwise `Script` when `isModule` is set to `"unknown"`
      4bfcf834
  2. 27 Mar, 2022 3 commits
    • TianenPang's avatar
      Fix typo in rewrites docs (#35639) · 0d401ddc
      TianenPang authored
      Correct the type of `trailingSlash` in config example
      
      Modified: `docs/api-reference/next.config.js/rewrites.md`
      
      ```diff
      - trailingSlash: 'true',
      + trailingSlash: true,
      ```
      0d401ddc
    • JJ Kasper's avatar
      v12.1.2-canary.0 · 086cf91a
      JJ Kasper authored
      086cf91a
    • Shu Ding's avatar
      Fix hydration issue in the switchable runtime tests (#35616) · bb6ea639
      Shu Ding authored
      In this test we are mainly focusing on the SSR'd result so hydration is't critical, but it will definitely help to get rid of these hydration errors.
      
      ## 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 `yarn lint`
      bb6ea639
  3. 26 Mar, 2022 5 commits
  4. 25 Mar, 2022 5 commits
  5. 24 Mar, 2022 3 commits
  6. 23 Mar, 2022 6 commits
    • Steven's avatar
      Fix `next info` accidentally printing stderr (#35556) · ef7b5352
      Steven authored
      I noticed a few issues that had "Output from `next info`" with the first line as
      
      ```
      /bin/sh: pnpm: command not found
      ```
      
      This was because `execSync()` was still printing to stderr when a command was not found.
      
      Changing to `execFileSync()` fixed it so we no longer print to stderr when a command is not found.
      ef7b5352
    • LongYinan's avatar
      Fix styled transform in next-swc/emotion (#35527) · 59905c10
      LongYinan authored
      Fix https://github.com/vercel/next.js/issues/35525
      
      
      
      ## Bug
      
      - [x] 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 `yarn lint`
      59905c10
    • Shu Ding's avatar
      Upgrade react-server-dom-webpack (#35524) · ebe1b4cb
      Shu Ding authored
      There're some changes since our last update that we'll need (e.g. server context).
      
      ## 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 `yarn lint`
      ebe1b4cb
    • JJ Kasper's avatar
      432261a1
    • Jiachi Liu's avatar
    • JJ Kasper's avatar
      Normalize ssgCacheKey for /index with minimalMode de-duping (#35536) · 9fef0d55
      JJ Kasper authored
      * Normalize ssgCacheKey for /index
      
      * apply test changes to i18n suite as well
      9fef0d55
  7. 22 Mar, 2022 6 commits
  8. 21 Mar, 2022 4 commits
    • Luka Hartwig's avatar
      Server component docs use wrong next version (#35313) · af95b0cb
      Luka Hartwig authored
      The docs for the react server components preview refer refer to `next@latest` which doesn't work. The linked demo uses `canary` so I replaced it in the install command.
      af95b0cb
    • JJ Kasper's avatar
      v12.1.1-canary.16 · 92da36f1
      JJ Kasper authored
      92da36f1
    • Thiago M's avatar
      clarify use of Script (#35491) · cd479841
      Thiago M authored
      Leave more clear that <Script> component can't be used inside Head. Current it says "without need", which don't implies it can't be used.
      
      
      
      ## 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
      
      - [x] Make sure the linting passes by running `yarn lint`
      cd479841
    • JJ Kasper's avatar
      Use check on prerender test assertion (#35482) · da3760bb
      JJ Kasper authored
      da3760bb