- 05 Jul, 2022 5 commits
-
-
JJ Kasper authored
-
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)
-
Lee Robinson authored
This adds more specificity to what browsers are supported for the underlying web-native features.
-
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)
-
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`
-
- 04 Jul, 2022 6 commits
-
-
Shu Ding authored
* css modules support * add test case Co-authored-by:kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
JJ Kasper authored
* Ensure trailing slash is handled correctly with middleware * update source modifying * undo extra change
-
Gal Schlezinger authored
this commit allows to use EdgeRuntime as a dead code eliminator identifier: ```ts if (typeof EdgeRuntime !== "undefined") { console.log("will be stripped away"); } else { console.log("will be kept in the bundle"); } ``` which means we're replacing `EdgeRuntime` with a literal ## Related - Fixes #30739 ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [x] 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 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) -
Balázs Orbán authored
-
Balázs Orbán authored
-
Eduardo Sigrist Ciciliato 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) Co-authored-by:
Lee Robinson <9113740+leerob@users.noreply.github.com>
-
- 03 Jul, 2022 1 commit
-
-
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)
-
- 02 Jul, 2022 3 commits
-
-
Emerson Laurentino authored
* Update middleware-upgrade-guide.md * Update middleware-upgrade-guide.md
-
Jiachi Liu authored
* fix: convert head instances to array * fix test
-
JJ Kasper authored
-
- 01 Jul, 2022 2 commits
-
-
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
-
JJ Kasper authored
* Ensure app/page.server.js matches correctly * update check
-
- 30 Jun, 2022 11 commits
-
-
Max Proske authored
Adds to https://github.com/vercel/next.js/pull/38081 by fixing all remaining flaky renderViaHTTP tests when placeholder.com is down. Fixes https://github.com/vercel/next.js/pull/38080#issuecomment-1168036939 ## Bug - [X] Related issues linked using `fixes #number` ## Documentation / Examples - [X] Make sure the linting passes by running `pnpm lint`
-
Richard B authored
* fix: declare NextBundleAnalyzer as a type * lint-fix Co-authored-by:JJ Kasper <jj@jjsweb.site>
-
OJ Kwon authored
* Requires prerequisite PR https://github.com/vercel/next-telemetry/pull/84 This PR adds telemetry to send list of the experimental swc plugins from next.config.js. Implementation largely mimics existing plugins telemetry for next_package (https://github.com/vercel/next.js/blob/canary/packages/next/telemetry/events/plugins.ts), with small modification to read swc plugin package instead. One notable difference is swc plugin telemetry can be sent without version. This is due to swc plugins can be specified with absolute path without any npm pkg resolutions. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [x] 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)
-
Jiachi Liu authored
## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` Co-authored-by:JJ Kasper <22380829+ijjk@users.noreply.github.com>
-
Balázs Orbán authored
https://github.com/vercel/next.js/runs/7130177863?check_suite_focus=true ## 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)
-
Thomas Knickman authored
-
Michael Novotny authored
Adds tests to ensure `eslint-plugin-next`'s available rules are properly exported and recommended rules are correctly defined. (#38183) * Adds tests to ensure `eslint-plugin-next`'s available rules are properly exported and recommended rules are defined correctly. * Condenses imports. * Sets default recommended value. * replace Object.hasOwn for node 14 Co-authored-by:JJ Kasper <jj@jjsweb.site>
-
Long Zheng authored
* Check for performance. getEntriesByName * Refactor check Co-Authored-By:
Sukka <github@skk.moe> Co-authored-by:
Sukka <github@skk.moe> Co-authored-by:
JJ Kasper <jj@jjsweb.site>
-
Balázs Orbán authored
[Slack thread](https://vercel.slack.com/archives/C02UJ0QH45Q/p1656580818197009) ## 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)
-
Max Proske authored
Converted Catch All Routes example over to TypeScript to match the Contribution guidelines. ## 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)
-
Thomas Ballinger authored
Adds an example using [Convex](https://convex.dev/). ## 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:
Balázs Orbán <18369201+balazsorban44@users.noreply.github.com>
-
- 29 Jun, 2022 12 commits
-
-
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
-
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)
-
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)
-
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
-
JJ Kasper authored
-
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)
-
JJ Kasper authored
-
Alan Pledger authored
-
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)
-
JJ Kasper authored
-
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)
-