1. 05 Jul, 2022 5 commits
    • JJ Kasper's avatar
      v12.2.1-canary.3 · 764f7d42
      JJ Kasper authored
      764f7d42
    • Shu Ding's avatar
      Fix CSS modules imported from client components in app dir with next build (#38329) · 2dc13591
      Shu Ding authored
      Continue the work in #38310, this PR includes CSS files as chunks in the manifest for each client component, and then make sure the flight client loads the CSS files correctly.
      
      ## 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)
      2dc13591
    • Lee Robinson's avatar
      Update `next/future/image` docs to specify supported browser versions. (#38307) · a5e11612
      Lee Robinson authored
      This adds more specificity to what browsers are supported for the underlying web-native features.
      a5e11612
    • Riccardo Giorato's avatar
      fix(examples): fix link on middleware example (#38323) · 49129e78
      Riccardo Giorato authored
      ## 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)
      49129e78
    • Gal Schlezinger's avatar
      [edge] favor browser exports for edge compiler (#38319) · 42ee877e
      Gal Schlezinger authored
      this is a regression from the previous implementation where Next.js compiled Middleware using
      the client compiler. We used to favor the browser exports over the `module` and `main`,
      which allowed packages like `debug` to work without any changes on Edge Functions. This is
      no longer the case, and this commit fixes that.
      
      Side note: I believe that in the future we will also have a different key to symbolize edge
      deployments. Maybe it will be `winter` to refer to WinterCG, but only time will tell!
      
      Another side note: we need to add support for import maps for advanced use cases.
      
      ## Bug
      
      - [ ] Related issues linked using `fixes #number`
      - [x] Integration tests added
      - [ ] Errors have helpful link attached, see `contributing.md`
      42ee877e
  2. 04 Jul, 2022 6 commits
  3. 03 Jul, 2022 1 commit
    • Carsten Lebek's avatar
      Typo in NextResponse docs (#38259) · beaa4df9
      Carsten Lebek authored
      
      
      ## 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)
      beaa4df9
  4. 02 Jul, 2022 3 commits
  5. 01 Jul, 2022 2 commits
    • Jiachi Liu's avatar
      Alias react and react-dom by default (#38245) · bfaffbdd
      Jiachi Liu authored
      Previously we use custom webpack alias for specific react versions for non server side node runtime aliases. This PR alias the entire folders of `react/` and `react-dom/` so that no more alias in next.config is required but only the nodejs require hook.
      
      * Alias `react` and `react-dom` by default
      * Use `react@experimental` to run server components integration test
      * Drop with-react-17 test util, add `__NEXT_REACT_CHANNEL` as an env var for testing and development to specify the react channel is 17 or new experimental version
      bfaffbdd
    • JJ Kasper's avatar
      Ensure page.server.js matches correctly (#38236) · a1504f4c
      JJ Kasper authored
      * Ensure app/page.server.js matches correctly
      
      * update check
      a1504f4c
  6. 30 Jun, 2022 11 commits
  7. 29 Jun, 2022 12 commits
    • Jiachi Liu's avatar
      Migrate rsc tests to app dir tests (#38158) · 5e2ad293
      Jiachi Liu authored
      ### Tests 
      * keep node & edge for streaming
      * separate rsc tests from streaming tests
      * move rsc tests to app-dir, disable the broken ones for now
      5e2ad293
    • JJ Kasper's avatar
      Ensure @swc/helpers do not rely on hoisting (#38174) · 8a5c59b7
      JJ Kasper authored
      This ensures we properly alias and internalize `@swc/helpers` so that we don't rely on package managers hoisting this dependency for the build to work properly. This also disables the external helpers with `jest` as this can also require hoisting to work and doesn't provide as much of an optimization. 
      
      ## Bug
      
      - [x] Related issues linked using `fixes #number`
      - [x] Integration tests added
      - [ ] Errors have helpful link attached, see `contributing.md`
      
      Fixes: [slack thread](https://vercel.slack.com/archives/C0289CGVAR2/p1656437059151439)
      8a5c59b7
    • OJ Kwon's avatar
      fix(next/swc): set cache dir explicitly (#38175) · 66b83f45
      OJ Kwon authored
      
      
      This PR amends behavior of swc's cache by setting it explicitly under `distDir` from next.js config.
      
      ## 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)
      66b83f45
    • Wyatt Johnson's avatar
      Fix missing trace script devDependencies (#38172) · 23b8b982
      Wyatt Johnson authored
      Adds missing devDependencies required by the `trace-to-tree.mjs` script used here to the workspace root.
      
      https://github.com/vercel/next.js/blob/c64af8aa34775b700bf22f62585ffe514f8b2004/scripts/trace-to-tree.mjs#L2-L3
      23b8b982
    • JJ Kasper's avatar
      v12.2.1-canary.1 · c64af8aa
      JJ Kasper authored
      c64af8aa
    • JJ Kasper's avatar
      Revert "feat(next/swc): setup native next-swc crash reporter" (#38170) · 0b762433
      JJ Kasper authored
      Revert "feat(next/swc): setup native next-swc crash reporter (#38076)"
      
      This reverts commit 42e33655.
      0b762433
    • Shu Ding's avatar
      Fix chunk path resolution (#38162) · da84abc5
      Shu Ding authored
      The `chunkFilenameMap` should take priority over the webpack built-in one here.
      
      ## 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)
      da84abc5
    • JJ Kasper's avatar
      v12.2.1-canary.0 · 70c0b208
      JJ Kasper authored
      70c0b208
    • Alan Pledger's avatar
      Add a Makeswift example (#38018) · 90deca95
      Alan Pledger authored
      90deca95
    • Sukka's avatar
      fix(#38106): use swc client config to pre-compile shared lib (#38137) · 55769e2c
      Sukka authored
      
      
      ## Bug
      
      - [x] Related issues linked using `fixes #number`
      - [ ] Integration tests added
      - [ ] Errors have helpful link attached, see `contributing.md`
      
      Fixes #38106.
      
      Currently, the `shared/lib` directory (**which will also be shipped to legacy browsers**) is precompiled under `swcServerOptions`, which targets Node.js 12 and is way too modern:
      
      - The public class field syntax is only supported since Chrome 72, Firefox 69, Edge 79, and Safari 14.1.
      - Webpack currently doesn't support the public class field syntax as well (which causes the issue #38106)
      - `async/await` syntax is also supported in Node.js 12 but not in the legacy browsers.
      
      The PR fixes the issue by pre-compiling the `shared/lib` directory using `swcClientOptions` (which targets the ES5).
      
      Note:
      
      - The only way to validate the fix is to run an integration test case on a legacy browser.
      - The output size is increased by a little. But the size impact can be minimized by enabling `@swc/helpers` (which I will bring up in the next PR)
      55769e2c
    • JJ Kasper's avatar
      6d8a234f
    • Pakapon Kaewmark's avatar
      Remove `lazyRoot` example from `next/future/image` doc (#38140) · 9aa282b4
      Pakapon Kaewmark authored
      According to the 12.2 release note and the source code, the `next/future/image` does not use `IntersectionObserver` anymore so the `lazyRoot` prop is also not used.
      The example probably got left behind unintentionally.
      
      
      
      ## 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
      - [X] 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)
      9aa282b4