- 16 Aug, 2021 10 commits
-
-
jj@jjsweb.site authored
-
Tim Neutkens authored
Add `-js` `-ts` `-tsx` `-css` to `build-module` in traces to allow for easier filtering. ## 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
-
JJ Kasper authored
This adds tracing entrypoints directly after they have have been transpiled to allow us to trace before the webpack runtime has been added to the modules. This should allow for more accurate tracing of entrypoints and allow the trace step to be cached. ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added x-ref: https://github.com/vercel/next.js/issues/24700 x-ref: https://github.com/vercel/next.js/issues/26200 x-ref: https://github.com/vercel/next.js/issues/23894 x-ref: https://github.com/vercel/next.js/issues/25431
-
Rahul Gaba authored
ESLint Plugin: Prefer next script component when using the inline script for Google Analytics. (#25147) * Add a lint rule for using next script component when using inline script for Google Analytics. * Apply suggestions from code review Co-authored-by:
JJ Kasper <jj@jjsweb.site> * Update errors/next-script-for-ga.md Co-authored-by:
JJ Kasper <jj@jjsweb.site> * Apply suggestions from code review Co-authored-by:
JJ Kasper <jj@jjsweb.site>
-
Shun Tedokon authored
## Documentation - Corrected the link in the **Next.js Testing Docs** to the correct one.
-
Jiachi Liu authored
Fixes #28030 Fixes #28169 ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [x] Errors have helpful link attached, see `contributing.md`
-
Jiachi Liu authored
Do not fallback to loadable component when `reactRoot` is enabled but without `concurrentFeatures`. Thus we can enable pure client suspense: `fallback` is always rendered on server side, but client side can work with fully functional suspense. Closes #28117
-
Brian Muenzenmeyer 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 - [x] Make sure the linting passes While reading the code I noticed this typo.
-
Aryan Beezadhur authored
Replaces `<link />` tag import with JS import to fix ESLint warning: https://nextjs.org/docs/messages/no-css-tags
-
Oscar Fuentes authored
Given the context of the surrounding sentence, I believe the intention here was to use the word `increasing`. ## 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
-
- 15 Aug, 2021 5 commits
-
-
Tim Neutkens authored
Adds support for Jaeger next to Zipkin as a trace target. ## 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
-
Maia Teegarden authored
-
Maia Teegarden authored
* Add setup for m1 build * Add workflow to cache key Co-authored-by:kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
Lee Robinson authored
The current text linked wasn't obvious. Plus, the best description of what Strict Mode is was at the bottom of the document.
-
Jiachi Liu authored
Fixes: #28126 ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [x] Errors have helpful link attached, see `contributing.md`
-
- 14 Aug, 2021 12 commits
-
-
Oscar Busk authored
* Add ci script to check examples * Install moreutils for `sponge` command. It's not very pretty, but I'm not sure how to replace sponge in a good way in the shell script * Prettier names in the workflow * Move "check-examples" into build_test_deploy workflow * Start breaking the jq script into multiple lines * Add checks for cleanups in vercel/next.js#27121 * Run the `check-examples.sh` script to cleanup all remaining examples.
-
Oscar Busk authored
* Add licences to all example/package.json that lack them * Revert "Add licences to all example/package.json that lack them" This reverts commit 5d4e25012f7334772b8ef5924bc355277e827cba. * Update check-examples to remove `license` field from examples * Remove `license` from all examples. This was mentioned in vercel/next.js#27121 but it looks like it didn't end up being in the merge? Co-authored-by:JJ Kasper <jj@jjsweb.site>
-
JJ Kasper authored
-
JJ Kasper authored
This adds a proper error when we fail to load a user's `next.config.js` as the default node error can be confusing on its own and makes it seem like something failed internally in Next.js. We can expand on the included error doc added and potentially also add better syntax errors by parsing with acorn when we fail to load this file in the future. <details> <summary>screenshot</summary> <img width="962" alt="Screen Shot 2021-08-13 at 21 46 09" src="https://user-images.githubusercontent.com/22380829/129432211-6d858062-eea0-4bb9-8725-5bde98bdc47b.png"> </details>
-
JJ Kasper authored
This fixes revalidation not occurring correctly when `notFound: true` is returned during build, additional tests have been added to ensure this is working correctly for dynamic and non-dynamic pages returning `notFound: true` during build and then revalidating afterwards. ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [x] Errors have helpful link attached, see `contributing.md` Fixes: https://github.com/vercel/next.js/issues/21453
-
Mathis Møller authored
## Documentation / Examples - [X] Make sure the linting passes This adds an example using Jotai with Next.js. It uses the new hook `useHydrateAtoms` to hydrate atoms with values from the server.
-
Sam Poder authored
## Feature - [x] Documentation added ## Documentation / Examples - [x] Make sure the linting passes It seems that people currently struggle to style their image: https://twitter.com/achrlswrth/status/1425695122029744128, this clarifies that you can use className to do this (something I just learnt!). At the moment, this is kind of hidden in "other props" I think this makes it more clear for people Thanks, Sam
-
Gustav Pursche authored
* Docs: Mention 3rd option 'blocking' for fallback * Update docs/basic-features/data-fetching.md Co-authored-by:
Tim Neutkens <tim@timneutkens.nl> Co-authored-by:
Tim Neutkens <tim@timneutkens.nl> Co-authored-by:
Steven <steven@ceriously.com> Co-authored-by:
JJ Kasper <jj@jjsweb.site>
-
jj@jjsweb.site authored
-
Steven authored
Fixes this issue: https://github.com/vercel/next.js/pull/28077/checks?check_run_id=3326281106
-
Gerald Monaco authored
* Remove duplicate doctypes * Fix lint * Add test for DOCTYPE * Fix lint
-
Eiji Kitamura authored
Chrome 92 started to disable `SharedArrayBuffer` without cross-origin isolation which can be enabled by sending [the page with special HTTP headers](https://web.dev/cross-origin-isolation-guide/). This change causes Chrome to emit a warning in DevTools console and [developers are confused with the message](https://github.com/vercel/next.js/issues/21708). `util` is one of the libraries that uses `SharedArrayBuffer` and is causing the warning to appear in the console. Luckily, the issue in `util` has been resolved in [v0.12.4] and I would like to propose applying the fixed version to this library. For fixing #21708 ## 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
-
- 13 Aug, 2021 13 commits
-
-
Jesse Jafa authored
[ESLint] Disallow <Script /> inside _document.js & <Script /> inside the next/head component (#27257) ## Feature - [x] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. [Feature Request](https://github.com/vercel/next.js/discussions/26365) - [x] Eslint unit ests added - [x] Errors have helpful link attached, see `contributing.md` Let me know if this looks good or something needs to be changed. I still need to add the error links and improve the eslint error messages. I don't know if the CI runs the ESLint tests, but current all pass locally
-
Tim Neutkens authored
Removes the extra webpack handling that was previously done, this ensures the file which is already minified and compiled does not get passed through minification again. Largely based on #21418 Closes #21418 The polyfill loading already has tests so no other changes are necessary. ## 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
-
stefanprobst authored
This PR resurrects #23622 which has not been updated in a while. Makes the `Image` component handle `blob:` object urls. closes #23622 fixes #19291 credits: @sdn90 ## 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
-
Jiachi Liu authored
### Changes #### Feature * Adopt `React.lazy` into `next/dynamic`, enable it when `options.suspense` is `true` * Support `next/dynamic` with `suspense=true` in SSR and SSG #### Tests | Scenario | Case | Behavior | |:----:|:----:|:----:| | basics | react 17 or 18 by default | dev/build error or pass | | blocking rendering | `reactRoot: true` + `concurrentFeatures: false` | dev/build pass | | concurrent rendering | `reactRoot: true` + `concurrentFeatures: true` | dev/build pass | ## 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` - [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`
-
Gerald Monaco authored
Implements `renderToString` in terms of a new `renderToStream`. The former is used for legacy documents that generate the body HTML as part of `getInitialProps`. The latter will be used directly in #27794 when streaming dynamic HTML. Since we're exposing an actual streaming response for dynamic HTML (instead of buffering with `resultFromChunks`), we use `multiplexResult` to buffer and multiplex the underlying result to multiple subscribers.
-
Gerald Monaco authored
Return the `RenderResult` as a concatenation of streams, rather than a concatenation of strings.
-
Anderson Leite authored
Hi, this is small refactor for the development-logs.js test. The same code to verify the browser logs is written 3 times. Actually, the only difference is the path and then the expect result to confirm whether the logs are showing or not. Moved the triplicated code to a `getLogs$(path)` and matched the expect results.
-
Delba de Oliveira authored
This PR adds a recommendation to test production code with Cypress and re-orders the page information. ## 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 - [x] Make sure the linting passes
-
Maia Teegarden authored
-
Maia Teegarden authored
-
Gerald Monaco authored
We generate the HTML for a document in two steps: First, we generate the body (i.e. everything under `<div id="__next">`). Then we generate the rest of the document and embed the body in it. This doesn't work when the body is a stream, because React can't render the body for us unless we buffer it, and buffering it means not streaming. This PR takes the existing approach for AMP and uses it for all scenarios: instead of rendering HTML, we just render a placeholder that we can replace with HTML later. This will be used in a follow-up PR to let us know where to concatenate the body stream. I also used the opportunity to split out `HtmlContext` from `DocumentProps`, as these will not be the same thing with functional document components.
-
Lee Robinson authored
-
Maia Teegarden authored
-