1. 24 Oct, 2022 18 commits
  2. 23 Oct, 2022 12 commits
  3. 22 Oct, 2022 10 commits
    • Jiachi Liu's avatar
      Bundle ssr client layer excepts react externals (#41606) · b0f87fbc
      Jiachi Liu authored
      Bundle the ssr client layer for RSC, this solves the problem when
      there's an esm package is using on client components, but esm imports
      the installed react instead of the built-in react version since esm
      imports is not intercepted by require hook.
      
      After bundling the ssr client layer and treating react as externals, now
      react compiles as cjs externals and could be intercepted by require
      hook, other code are bundled together which can also get optimized.
      
      ## 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`
      - [x] Integration tests added
      - [ ] Documentation added
      - [ ] Telemetry added. In case of a feature if it's used or not.
      - [ ] Errors have a helpful link attached, see `contributing.md`
      Co-authored-by: 's avatarShu Ding <g@shud.in>
      Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
      b0f87fbc
    • Shu Ding's avatar
      Add experimental warning note (#41666) · 73499e4b
      Shu Ding authored
      
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have a 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 a 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/examples/adding-examples.md)
      73499e4b
    • Jiachi Liu's avatar
      Improve errors for invalid component export (#41657) · 0b669a1f
      Jiachi Liu authored
      Checking if app dir exported components (page/layout/etc.) are valid components in dev mode, also update `react-is` to detect module reference properly
      Co-authored-by: 's avatarJJ Kasper <22380829+ijjk@users.noreply.github.com>
      0b669a1f
    • Balázs Orbán's avatar
      feat(cna): add template (#41660) · e0b04f22
      Balázs Orbán authored
      Adds a new template for `app/` via `--experimental-app` flag.
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have a 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 a 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/examples/adding-examples.md)
      Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
      e0b04f22
    • JJ Kasper's avatar
      Update to handle correct react version with app (#41658) · 4ce259fa
      JJ Kasper authored
      Add auto install handling for the correct react experimental version for
      app
      4ce259fa
    • Donny/강동윤's avatar
      78138af5
    • Ikko Ashimine's avatar
      chore(examples): fix typo in [videoId].tsx (#41655) · 2e2cc559
      Ikko Ashimine authored
      bellow -> below
      
      
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have a 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 a helpful link attached, see `contributing.md`
      
      ## Documentation / Examples
      
      - [ ] 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/examples/adding-examples.md)
      2e2cc559
    • Steven's avatar
      Change `data-nimg` attribute on `next/image` (#41612) · d260ad2a
      Steven authored
      For `next/legacy/image`, the `data-nimg` has the `layout` prop value. 
      
      Since `next/image` doesn't have a `layout` prop, we can use `fill` when
      the fill prop is used or fallback to `1`.
      d260ad2a
    • Javi Velasco's avatar
      Update @types/node to 14.14.31 (#41634) · 392c4d0b
      Javi Velasco authored
      This PR updates `@types/node` to `14.14.31`. The most important type is
      that `ParsedUrlQuery` can hold `undefined` so we are updating the code
      here to explicitly handle those cases. Aside from it we are adding a
      global definition taken from NodeJS for `AsyncLocalStorage` that we
      export in `server.d.ts`
      392c4d0b
    • Jimmy Lai's avatar
      layout: add build status for app routes (#41627) · b5251604
      Jimmy Lai authored
      Adds support for:
      - outputting what kind of build we did for routes in the app folder:
      SSR, SSG, static
      - adds the list of SSG'd routes
      - adds JS size for app routes
      
      # before
      
      <img width="512" alt="image"
      src="https://user-images.githubusercontent.com/11064311/197346761-1f288648-f480-4f3e-97dc-c4eee10ecfbf.png">
      
      # after
      
      <img width="426" alt="image"
      src="https://user-images.githubusercontent.com/11064311/197236400-2ba245ab-a7a0-4bbe-b8f7-c9ba6ff755f5.png">
      
      Add build output status for routes for app routes. Unclear if the logic
      I added is correct so please take double check (@ijjk maybe?)
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have a 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 a 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/examples/adding-examples.md)
      b5251604