1. 12 Apr, 2022 7 commits
  2. 11 Apr, 2022 17 commits
  3. 09 Apr, 2022 1 commit
    • Shu Ding's avatar
      Support export all syntax in client components (#36027) · 1ed38dd2
      Shu Ding authored
      This PR adds the support of the `export * from './foo'` syntax in client components.
      
      ## 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`
      1ed38dd2
  4. 08 Apr, 2022 9 commits
    • Steven's avatar
      Fix leaking internal config to user-defined `loader` prop in `next/image` (#36013) · 0a04ab74
      Steven authored
      The `config` was changed from a global variable to a function parameter of the `loader()` function in PR https://github.com/vercel/next.js/pull/33559 as an implementation detail, not as a public API. It was not meant to be used by the end user which is why it was [undocumented](https://nextjs.org/docs/api-reference/next/image#loader).
      
      This config is meant for the default Image Optimization API. Since the `loader` prop bypasses the default Image Optimization API in favor of a custom function, that config is no longer be relevant because the function can implement the optimization url however it desires.
      
      - Fixes #35115
      0a04ab74
    • JJ Kasper's avatar
      Add docs for x-nextjs-cache header (#36023) · a0924fc7
      JJ Kasper authored
      This adds documentation for the `x-nextjs-cache` header which is now exposed for ISR pages and image optimization requests to help signal the cache state. 
      
      ## Documentation / Examples
      
      - [x] Make sure the linting passes by running `yarn lint`
      Co-authored-by: 's avatarSteven <steven@ceriously.com>
      a0924fc7
    • Tobias Koppers's avatar
      allow to provide postcss plugin options as a string (#35173) · f4fbb83d
      Tobias Koppers authored
      fixes https://github.com/vercel/next.js/issues/35117
      
      @balazsorban44 this needs a test case
      
      ## Bug
      
      - [x] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have helpful link attached, see `contributing.md`
      Co-authored-by: 's avatarBalázs Orbán <18369201+balazsorban44@users.noreply.github.com>
      f4fbb83d
    • Shu Ding's avatar
      Update the docs for Switchable Runtime (#36015) · 3d4f4c69
      Shu Ding authored
      As per the feedback in #35952.
      
      ## 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`
      3d4f4c69
    • Björn's avatar
      Mention HTTP 303 See Other in redirects section (#35997) · 9c12d85c
      Björn authored
      Migrating from express to nextjs API routes broke one of our APIs because of how `redirect` works in nextjs vs. how it works in express. We need to redirect the user to a confirmation page via GET after making a POST request, which is not possible with `redirect`.
      
      HTTP 303 seems to be the way to go in that case and I think it should be mentioned here.
      
      
      ## Documentation / Examples
      
      - [ ] Make sure the linting passes by running `yarn lint`
      9c12d85c
    • Jiachi Liu's avatar
      test: organize react 18 tests (#36003) · de0bc57b
      Jiachi Liu authored
      * Organize react 18 test cases, group invalid cases to speed up the regular test cases
      * Add `runDevSuite` and `runProdSuite` for group next dev/prod test cases
      
      ```js
      runDevSuite(name, appDir, {
        runTests: (context, env) => { ... },
        beforeAll,
        afterAll,
      })
      
      runProdvSuite(name, appDir, {
        runTests: (context, env) => { ... },
        beforeAll,
        afterAll,
      })
      ```
      de0bc57b
    • Shu Ding's avatar
      Update docs related to React 18 (#35952) · 1c925914
      Shu Ding authored
      * update docs of streaming
      
      * add switchable runtime docs
      
      * add page to manifest
      
      * Apply suggestions from code review
      Co-authored-by: 's avatarSteven <steven@ceriously.com>
      
      * Update docs/advanced-features/react-18/streaming.md
      Co-authored-by: 's avatarLee Robinson <me@leerob.io>
      Co-authored-by: 's avatarSteven <steven@ceriously.com>
      1c925914
    • Jiachi Liu's avatar
      Use renderToString for flush effects (#35999) · eddf1715
      Jiachi Liu authored
      Use render to string call to render flush effects instead of rendering with stream plus converting to string
      eddf1715
    • Shu Ding's avatar
      Use eager import to include client modules (#35979) · d8623bb9
      Shu Ding authored
      Eager import does almost the same thing as `require()` but it instead also supports loading an ES module.
      
      ## 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`
      d8623bb9
  5. 07 Apr, 2022 6 commits