Commit graph

7913 commits

Author SHA1 Message Date
JJ Kasper
958bd6cabb
Update server output path in static optimization docs (#21910) 2021-02-05 21:00:03 -06:00
Rafael Laurindo
984a78d545
Update React version in Tailwind example (#21906)
This PR updates the React packages version in the example with Tailwind.
Thus solving the new version notice when starting the project in dev.

Notice screenshot: 📸 
![image](https://user-images.githubusercontent.com/25041169/107084102-5bc0f780-67d5-11eb-82bb-b9ea2682ec5c.png)

Now with the updated version:📸 
![image](https://user-images.githubusercontent.com/25041169/107084154-71ceb800-67d5-11eb-95c9-54ea534145dd.png)
2021-02-05 20:29:20 +00:00
Tim Neutkens
8b44bccd88 v10.0.7-canary.5 2021-02-05 17:41:49 +01:00
Tim Neutkens
6387f368dc
Update reasons array to use module id instead of identifier (#21895)
Missed this then changing the modules array to rely on `module.id`
2021-02-05 16:39:46 +00:00
Flavio Wuensche
ee184a11d8
Add example for headers and link in the docs (#21821) 2021-02-05 09:07:22 -06:00
Joe Haddad
cef4b4b153
Revert "Fix docs for sample query parameters" (#21881)
This reverts commit 9a3a0da319.
2021-02-04 20:35:09 -05:00
Sam Holmes
9a3a0da319
Fix docs for sample query parameters (#21879) 2021-02-05 01:17:26 +00:00
Kazutaka NAKAMURA
a98ba4c808
Update react to 17.0.1 in example/with-typescript-eslint-jest (#21870)
I met following warning message after invoking create-next-app for ` example/with-typescript-eslint-jest `:

```
 % yarn dev
yarn run v1.22.10
$ next dev
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
warn  - React 17.0.1 or newer will be required to leverage all of the upcoming features in Next.js 11. Read more: https://err.sh/next.js/react-version
event - compiled successfully
```

I have followed the instructions in the link, and this patch is. Please merge this.

Thank you for reading.
2021-02-04 20:13:57 +00:00
Joe Haddad
b678d68705
v10.0.7-canary.4 2021-02-04 14:23:23 -05:00
Tim Neutkens
15d02f6559
Make experimental stats file approximately 90% smaller (#21858)
Tested against some smaller apps. Will have a high impact for larger apps.
2021-02-04 19:21:54 +00:00
Guy Bedford
234e1c9601
feat: Implement webpack require hook (#21802)
This implements the compatibility require hook as per https://github.com/vercel/next.js/issues/21789.

The hook is applied at the point of webpack initialization. In addition the separate packages are exposed for the various webpack subrequires.

The test then ensures instance equality for the basic require hook from the next.js config file.

I suspect this might have bad interactions with Yarn Pnp support, but maybe we will be lucky.
2021-02-04 08:49:42 +00:00
Pete Correia
9a930b69e5
Fix Linaria link (#21826) 2021-02-04 08:12:19 +00:00
Joe Haddad
5fff814ca1
v10.0.7-canary.3 2021-02-03 15:46:57 -05:00
JJ Kasper
6d80e6e5f3
Add version for stats (#21823)
Adds versioning for the stats output
2021-02-03 20:46:35 +00:00
Lee Robinson
5536526826
Remove dotenv from Relay example. (#21814)
Address one of the bullet points from https://github.com/vercel/next.js/issues/15225 to remove unused dependencies on `dotenv` now that it's supported by default in Next.js.
2021-02-03 19:33:51 +00:00
Tim Neutkens
379ad1b302
Rename package build scripts to dev (#21743)
The top-level script has always been `dev` so this makes the package scripts consistent
2021-02-03 17:02:44 +00:00
Guy Bedford
a6c1f9cfe7
Add webpack type to ncc bundle (#21785)
This adds a simple typing definition to the Webpack ncc output.

Fixes https://github.com/vercel/next.js/issues/21390.
2021-02-03 16:39:59 +00:00
Balázs Orbán
e750f4378c
fix: send url to gtm.pageview (#21747)
`gtm.pageview` was called without sending an actual URL, while it is required here:

36aeca8f04/examples/with-google-tag-manager/lib/gtm.js (L3-L6)
2021-02-03 15:28:25 +00:00
Michael McQuade
4cadb68dfe
Return a number from sort compare function (#21763)
Changed the return values of the compare function from string values to numbers
2021-02-03 15:21:11 +00:00
JJ Kasper
41b7c524fa v10.0.7-canary.2 2021-02-02 15:52:34 -06:00
JJ Kasper
a65f8c3e0e
Update stats flag default (#21791) 2021-02-02 21:38:50 +00:00
Tim Neutkens
2079b74431 v10.0.7-canary.1 2021-02-02 17:15:24 +01:00
JJ Kasper
523537178c
Add stats config option (#21761)
This adds a config to output webpack's stats
2021-02-02 15:39:39 +00:00
JJ Kasper
b6c3d9bff3
Fix getting latest stable tag for stats (#21753)
This ensures we get the latest tag not relying on the order of the tags in the output
2021-02-01 21:07:17 +00:00
Tim Neutkens
36aeca8f04 v10.0.7-canary.0 2021-02-01 12:56:04 +01:00
Guy Bedford
d5a4dec042
fix: add declarations for compiled webpack and loader (#21741)
This should resolve the typing issues described in https://github.com/vercel/next.js/issues/21390 from the webpack inlining, by declaring `next/dist/compiled/webpack` in the main typing file as a source.
2021-02-01 11:27:41 +00:00
JJ Kasper
bd0b650de7
Update script loader tests (#21730)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-02-01 10:00:10 +01:00
Aryan Beezadhur
40065135a5
Docs: delete extra bracket [introduction.md] (#21715) 2021-02-01 06:24:10 +00:00
Rafael Bonalume Lebre
60e699555d
Fix #top anchor link scroll (#16638)
According to [MDN docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href) the page must scroll to the top with both "#" and "#top" anchors.

<img width="675" alt="Screen Shot 2020-08-27 at 7 20 19 PM" src="https://user-images.githubusercontent.com/13899924/91500693-582a5b80-e89a-11ea-803f-4592d458baba.png">
2021-01-30 04:32:00 +00:00
Lachlan Campbell
e2001db016
Fix “it’s” typo in CRA migration doc (#21678) 2021-01-29 20:58:11 -06:00
Joe Haddad
5201cdbaea
v10.0.6 2021-01-29 15:21:46 -05:00
Joe Haddad
f8f2a173e3
v10.0.6-canary.12 2021-01-29 14:45:49 -05:00
Lee Robinson
232209b513
Remove note about Yarn 2 support. (#21665)
My addition of the Yarn 2 caveat was more nuanced than I thought. Apologies. @merceyz has been adding extensive e2e tests for Yarn 2 support. We plan to support Yarn 2 compat.

Reverts https://github.com/vercel/next.js/pull/21657.
2021-01-29 19:09:17 +00:00
JJ Kasper
5be31f5127
Update CI publish step to trigger after build (#21661) 2021-01-29 12:16:47 -05:00
Joe Haddad
558289247e
v10.0.6-canary.11 2021-01-29 11:36:36 -05:00
Lee Robinson
843252b821
Add note about Yarn 2 support. (#21657)
As we saw some confusion with users trying out Yarn 2 and hitting roadblocks in their app. Yarn 2 is supported on a best-effort basis.
2021-01-29 14:38:19 +00:00
Janicklas Ralph
8f21c283b2
Experimental feature changes (#21646)
Adding test for experimental-serverless-trace + fix for the same
2021-01-29 13:53:07 +00:00
Tim Neutkens
08846cf8b5 v10.0.6-canary.10 2021-01-29 12:10:06 +01:00
Dale Bustad
652a1e8915
Improvements to webpack tracing, including hot-reload (#21652)
@timneutkens I think this is ready for a review.

I've made some changes to the original design that _seem_ to have paid off.  The parenting relationships for traces of normal builds are applied more uniformly, resulting in more intelligible traces:

<img width="900" alt="Screen Shot 2021-01-29 at 12 53 47 AM" src="https://user-images.githubusercontent.com/5016978/106253732-ba321880-61cc-11eb-98fd-d45af5078273.png">

Hot-reloading is surfaced now, too.  I will note, however, that we will want to dig in deeper and find out where the large portion of time at the beginning of hot-reload is spent.  Example:

<img width="894" alt="Screen Shot 2021-01-29 at 12 53 28 AM" src="https://user-images.githubusercontent.com/5016978/106253828-e057b880-61cc-11eb-967d-46eaff31ecef.png">

Where did those 180 ms go?  At the least, we can now track how long a hot-reload takes, and have a place to start with further investigation.
2021-01-29 10:32:26 +00:00
Lee Robinson
5a73859fe8
Update docs and Create Next App to use API Middlewares by default. (#21639) 2021-01-28 23:34:03 +00:00
Matt Ruby
8f0c15544d
Grammatical fixes (#21644) 2021-01-28 22:52:56 +00:00
JJ Kasper
e75f6119d8 v10.0.6-canary.9 2021-01-27 10:49:12 -06:00
JJ Kasper
87ed37d51c
Ensure prerender-manifest contains all i18n revalidate values (#21404)
This insures we add entries for each locale version of a non-dynamic SSG page since they can have unique revalidate values. This requires a version bump in the `prerender-manifest` since the static routes now contain additional values which need to be handled separately. 

Fixes: https://github.com/vercel/next.js/issues/21568
2021-01-27 11:24:00 +00:00
Joe Haddad
b785fbc5d1
chore: upgrade webpack5 (#21563) 2021-01-26 21:05:58 +00:00
JJ Kasper
35efe8d843
Remove branches filter from actions cancel workflow (#21564) 2021-01-26 15:41:34 -05:00
JJ Kasper
cca20004cb
Update CI docs change diff check (#21558)
* Update CI docs change diff check

* Increse fetch depth for merge base detecting

* Update cancel branches config
2021-01-26 14:34:30 -06:00
Jaon
e1fe28c849
Fix and add test filterModuleRules for next-plugin-storybook (#17306)
I tried the preset provided at `packages/next-plugin-storybook` but it was raising error due to an [unsafe negation](https://eslint.org/docs/rules/no-unsafe-negation) in the `preset.js` file.

I added a test to show the error:
```
● next-plugin-storybook filterModuleRules › should filter module rules correctly

    TypeError: rule.test.test is not a function

      48 |       if (!rule.test instanceof RegExp) return true
      49 |       // use Next.js' built-in CSS
    > 50 |       if (rule.test.test('hello.css')) {
         |                     ^
      51 |         return false
      52 |       }
      53 |       // use next-babel-loader instead of storybook's babel-loader

      at filter (../packages/next-plugin-storybook/preset.js:50:21)
          at Array.filter (<anonymous>)
      at Object.filterModuleRules (../packages/next-plugin-storybook/preset.js:46:28)
      at Object.<anonymous> (unit/webpack-config-overrides.test.js:12:36)
```
2021-01-26 19:28:41 +00:00
Luis Alvarez D
0370c037fc
Update links that go to vercel.com/now (#21556) 2021-01-26 18:59:01 +00:00
Janicklas Ralph
dc2de37014
Font optimization - Pass nonce to inlined font definition (#21346) 2021-01-26 18:32:39 +00:00
Roko Bekavac
004ad62d6b
Allow undefined body sent to sendData() (#20981)
Co-authored-by: rokobekavac0 <roko.beakavac2003@gmail.com>
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
2021-01-26 10:24:48 -05:00