Commit graph

6084 commits

Author SHA1 Message Date
Joe Haddad
05a12cb742
v9.4.2-canary.5 2020-05-20 14:48:52 -04:00
Joe Haddad
7c7fd3e863
Record presence of reportWebVitals (#13155)
Closes #12897
2020-05-20 18:44:39 +00:00
TodorTotev
7cf3c3d28d
Feat/remove redundant imports from examples (#13062)
The issue is related to [12964](https://github.com/zeit/next.js/issues/12964)

Let me know if there are any changes you want me to make.

Affected examples:

**with-glamor
with-graphql-hooks
with-graphql-react
with-grommet
with-http2
with-jest
with-cookie-auth-fauna
with-context-api
with-cerebral
with-aphrodite
with-apollo-and-redux
basic-css
with-carbon-components
amp-first**

I would love to help more, so let me know if there is anything specific I can contribute to.
2020-05-20 17:50:03 +00:00
Joe Haddad
57815c5fe5
Fix Windows LogBox Test (#13147) 2020-05-20 13:33:26 -04:00
Joe Haddad
74d7e3585c
Eliminate array destructuring assignment (#13151)
While we're at it, we should fix this too.

x-ref: #13144
2020-05-20 17:13:31 +00:00
JJ Kasper
b325f15e61
Update Create Next App to handle rename of org (#13138)
* Update Create Next App to handle rename

* Rethrow if we dont handle the error
2020-05-20 11:52:32 -05:00
Joe Haddad
5703362d77
v9.4.2-canary.4 2020-05-20 12:00:01 -04:00
Joe Haddad
92a159d939
Correctly eliminate destructuring assignment (#13144)
This eliminates code referenced via destructuring assignment, as reported by @styfle.
2020-05-20 15:57:18 +00:00
Piotr Kuczynski
e28ce34ccb
Fix the link for Custom Server documentation (#13137) 2020-05-20 16:50:06 +02:00
Kirill Konshin
b8284d9a86
Upgrade Next Redux Wrapper to version 6 in examples (#11802)
Fixes https://github.com/zeit/next.js/issues/12920
2020-05-20 12:22:10 +00:00
Joe Haddad
ccea1c018b
Enable jest/no-try-expect (#13124) 2020-05-20 13:37:35 +02:00
Janicklas Ralph
a17ace8eba
GranularChunks conformance check (#11710)
Adding a conformance plugin the make sure users don't undo the benefits of the granularChunks config.

The plugin makes sure that minSize, maxInitialRequests values aren't overridden. Also ensures the cacheGroups - vendors, framework, libs, common, shared are maintained.

The warning and error messages do not break the build with this change. They only display a message.

cc - @prateekbh, @atcastle
2020-05-20 06:40:23 +00:00
Christian Alfoni
cc9e2526e4
With stitches (#12677)
split into two examples
2020-05-20 06:22:50 +00:00
jmgr2996
993b78de0b
chore: Remove some redundant imports (#13066)
This issue is related to [12694](https://github.com/zeit/next.js/issues/12964). I covered the following examples


- with-zeit-fetch
- with-yarn-workspaces
- with-why-did-your-render
- with-video-js
- with-universal-configuration-runtime
- with-typestyle
- with-three-js

If you have a suggestion or change I'd appreciate it
2020-05-20 05:23:16 +00:00
Joe Haddad
d64e2e1cbe
Use eval-source-map for Server Side Errors (#13123)
This switches to faster source maps in development for the server-side compilation on macOS.

We still need to figure out a story for Windows.
2020-05-20 05:00:50 +00:00
Michael Albertz
99ee63e110
[Examples] Fix with-yarn-workspaces Vercel deploy button (#12867)
Fixes: https://github.com/zeit/next.js/issues/10734
Related: https://github.com/zeit/now/discussions/4320

This fixes the **Deploy your own** button for the with-yarn-workspaces example. Currently the deployment fails with the following error.

```
Module not found: Can't resolve 'bar' in '/zeit/3ad1f9cd/pages'
```

I also added a dynamic api route to the example, because I had problems configuring vercel to redirect to dynamic routes.

This will be the new Vercel-Import-From link: [Deploy](https://vercel.com/import/project?template=https://github.com/Prioe/next.js/tree/fix-with-yarn-workspaces-deploy/examples/with-yarn-workspaces)
2020-05-20 04:39:38 +00:00
taye
53b478ccd7
example(contentful): set up content types with required fields (#12591)
The example app expects all fields of Post and Author entries to be present and fails to build if any are missing. This PR adds a "required" validation to fields of both content types to avoid bulid errors.

CC @stefanjudis
2020-05-20 04:23:28 +00:00
Dave Cardwell
07084d4819
[Experimental] Only consider files within plugins (#12943)
I have a plugin with a src folder structure following jest’s recommended practice of including a `__tests__` folder:

```
$ find src/
src/
src/document-html-props-server.ts
src/__tests__
src/__tests__/document-html-props-server.unit.ts
```

collect-plugins.ts [reads the src directory](960c18da53/packages/next/build/plugins/collect-plugins.ts (L65)) and finds:
```js
[ '__tests__', 'document-html-props-server.ts' ]
```

…which it then [converts to](960c18da53/packages/next/build/plugins/collect-plugins.ts (L76-L80)):
```js
[ '', 'document-html-props-server' ]
```

…and finally [outputs](960c18da53/packages/next/build/plugins/collect-plugins.ts (L90-L96)):
```
Next.js Plugin: {my plugin} listed invalid middleware
```

This pull request makes collect-plugins.ts only consider files, so my __tests__ directory and its contents are ignored.
2020-05-20 04:05:29 +00:00
Tim Neutkens
4ba2b78729
Read process.env after loading .env files (#13087)
Fixes #13067
2020-05-20 03:39:27 +00:00
Tim Neutkens
49990f558d
Add support for debugging Next.js core (#13101)
Note this is only for the Next.js core, will look at a configuration for the debugger for Next.js apps soon.
2020-05-20 03:18:02 +00:00
Luis Alvarez D
a1b46817eb
[Examples] Update with-sentry-simple (#13074)
Moved from `getInitialProps` to the new data fetching methods. Updated the readme and simplified the implementation for pages.
2020-05-20 02:57:07 +00:00
Joe Haddad
b3e5233649
Revert "Enable update_branch_immediately"
This reverts commit b0a020e8ef.
2020-05-19 22:32:26 -04:00
Joe Haddad
b0a020e8ef
Enable update_branch_immediately 2020-05-19 21:56:06 -04:00
Greg Rickaby
58c7265ba0
Update DatoCMS Example (#13008)
👋🏻 This PR updates the Datocms example:

- [x] Next.js 9.4 absolute import and aliases support
- [x] Next.js 9.4 native `.env` support
- [x] Tailwind 1.4 native PurgeCSS support
- [x] Chore: bump other dependencies, like React, Remark, and DateFNS 

I've tested this PR here: 

- 💻 https://github.com/gregrickaby/datocms-next-js-blog-demo-2392
- 👀 https://datocms-next-js-blog-demo-2392.now.sh/
2020-05-19 23:13:35 +00:00
Joe Haddad
9386ba29f8
Stabilize config tests (#13116) 2020-05-19 18:42:41 -04:00
Joe Haddad
f7bdf29ecb
Fix Lint 2020-05-19 18:00:04 -04:00
Jan Potoms
0d05904552
Fix catch-all route + index.js in dev when accessed with trailing slash (#10502)
Failing test case for https://github.com/zeit/next.js/issues/10488#issuecomment-584500081

This used to give a 500 in dev environment
2020-05-19 18:03:14 +00:00
Joe Haddad
670b2c15cd
Add Kodiak Configuration (#13103) 2020-05-19 13:06:42 -04:00
Jimmy Chion
f61a2e7a45
[Example] Unsubscribe Router.on.events (#13102) 2020-05-19 12:37:54 -04:00
Tommy Ljungberg
a44ab5d0c1
fix(examples): align with-absolute-imports with next 9.4 (#13090) 2020-05-19 18:11:33 +02:00
Zach Waterfield
25021473a5
Update the Automatic Static Optimization docs to explicitly state that Next.js will trigger an update. (#13096) 2020-05-19 18:09:57 +02:00
JJ Kasper
ef422467dc
Add error when exporting pages with fallback: true (#13063) 2020-05-19 09:29:34 -04:00
Jaime Leonardo Suncin Cruz
d16fb63c1b
Improve Redux Toolkit example (#12858) 2020-05-19 09:27:30 -04:00
Joe Haddad
d0d59782f5
v9.4.2-canary.3 2020-05-19 08:47:23 -04:00
Slawek Kolodziej
7f604a504b
Fix building server-side generated AMP pages (#13046) 2020-05-19 07:58:50 -04:00
Tim Neutkens
dde5d3bdfe
Update prefetching explanation to correctly reflect data prefetching (#13088) 2020-05-19 07:03:42 -04:00
TodorTotev
fd55ef9aaf
Remove redundant code from with-portals-ssr example (#13060)
* removed redundant imports and replaced the fragment with the shorthand syntax

* Brought back the component import

Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
2020-05-19 11:16:24 +02:00
Luis Alvarez D
a6a8ee53ba
Added path (#13075) 2020-05-19 11:11:14 +02:00
Tim Neutkens
155c81531c
Remove taskr typescript plugin as it's no longer used (#13081) 2020-05-19 11:05:47 +02:00
Maxi Gimenez
f66be228e9
chore(next): check-custom-routes - recursive-copy missing types (#13065) 2020-05-19 10:59:03 +02:00
Prateek Bhatnagar
dc826e3d37
adding no html-link lint rule to eslint-plugin (#12969)
* addinng no html-link lint rule

* fixing lint tests

* adding the utils file

* fixing lock file

* prettier fix
2020-05-19 10:54:32 +02:00
Tim Neutkens
9b098f549a
Add sourcemaps to Next.js core compilation (#13049)
* Generate sourcemaps for core files that pass through Babel

* Run files through Babel instead of tsc

* Get rid of wildcard helper

* Get rid of wildcard helper

* Remove unused file

* Update wildcard imports

* Add exclude

* Get rid of object-assign helper

* Use Object.assign as it gives better output

Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
2020-05-19 09:09:59 +02:00
Joe Haddad
53a2cebdf6
v9.4.2-canary.2 2020-05-18 23:23:08 -04:00
Joe Haddad
dbad9db68c
Update Examples for Fast Refresh (#13068) 2020-05-18 17:44:18 -04:00
Joe Haddad
86160a5190
Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
TodorTotev
7c68d0c7f6
Removed redundant code from the with-portals example (#13059) 2020-05-18 14:17:02 -04:00
Joe Haddad
f9b7247360
Fix lint 2020-05-18 14:01:45 -04:00
Maxi Gimenez
b5607ae7b5
chore: hot-reloader, htmlescape, next-dev-server missing types (#12730) 2020-05-18 13:31:06 -04:00
Elliot Hesp
5610af012a
Add monaco-editor example (#11232) 2020-05-18 13:21:13 -04:00
Jan Potoms
714747957a
Add eslint-plugin-jest (#13003) 2020-05-18 13:16:07 -04:00