Tim Neutkens
744b50d5d4
add example for why-did-you-render ( #10662 )
...
* add example for why-did-you-render
* Load whyDidYouRender from _app.js
To avoid custom webpack main entry modifications
as this can cause [hydration errors](https://github.com/zeit/next.js/pull/10662#pullrequestreview-365188433 )
2020-03-05 23:43:58 +01:00
Joe Haddad
d07db4a054
v9.2.3-canary.25
2020-03-05 13:54:01 -05:00
Joe Haddad
5dfc7da2f9
Fix getStaticPaths modules being cached in dev mode ( #10852 )
2020-03-05 13:48:09 -05:00
Tim Neutkens
69ba79346f
Update README-template.md
2020-03-05 17:35:41 +01:00
Joe Haddad
48084649db
Re-add Sass Docs ( #10850 )
...
This reverts commit b5c70e8639
.
2020-03-05 10:56:50 -05:00
Tim Neutkens
a61dfb22a1
Fix data fetching learn more links
2020-03-05 16:49:33 +01:00
Tim Neutkens
6679694a1e
Update Custom Server README's ( #10843 )
...
* update custom server readmes
* remove deploy buttons
2020-03-05 16:30:48 +01:00
Tim Neutkens
2d64986733
v9.2.3-canary.24
2020-03-05 16:00:12 +01:00
Tim Neutkens
917ef12248
Update Pages and Data Fetching docs for SSG improvements ( #10837 )
...
* Update pages doc for SSG
* Add data fetching doc
* Format code
* Link directly to nextjs.org
* Fix link
* Add .md
* Add .md
* Fix hashes
* Update pages.md
* Wordsmith
* Fix link
* Fix heading
* Capitalization
* Link to pages
* Add router link
* Fix parens
* Make links consistent
* Use commas
* Link to fallback pages
* Update data-fetching.md
* Fix linting
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
2020-03-05 15:46:44 +01:00
Tim Neutkens
1e505e860f
Ensure an accessible default viewport meta tag ( #10823 )
...
* fix: remove minimum-scale from default viewport
* update test
* remove extra comma
* drop initial-scale
2020-03-05 11:03:15 +01:00
Tim Neutkens
0f0398c88e
Make sure to error when setting too large of preview data ( #10831 )
...
* Make sure to error when setting too large of preview data
* Update to check size after signing and limit to 2KB
2020-03-04 21:37:53 +01:00
Tim Neutkens
a4eef95056
Add docs for static 404 and pages/404 ( #10811 )
...
* Add docs for static 404 and pages/404
* Remove new from docs
* Apply suggestions from code review
Co-Authored-By: Shu Uesugi <shu@chibicode.com>
* Rework using suggestions from review
* Apply suggestions from code review
Co-Authored-By: Shu Uesugi <shu@chibicode.com>
* Update custom-error-page.md
* Update custom-error-page.md
* Update custom-error-page.md
* Fix prettier
Co-authored-by: Shu Uesugi <shu@chibicode.com>
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
2020-03-04 19:44:32 +01:00
JJ Kasper
da329ce44b
Update release stats with different name from pr stats ( #10827 )
2020-03-04 11:28:10 -06:00
Joe Haddad
640e8f3548
v9.2.3-canary.23
2020-03-04 11:56:58 -05:00
Joe Haddad
50c95d16b4
Send Credentials for getServerSideProps
Requests ( #10826 )
...
* Send Credentials for `getServerSideProps` Requests
* Fix tests
2020-03-04 11:56:08 -05:00
JJ Kasper
70cb5bd726
Update to make sure preview mode works with getServerSideProps ( #10813 )
...
* Update to make sure preview mode works with getServerSideProps
* Update to only parse previewData in GS(S)P mode
2020-03-04 13:58:12 +01:00
Vincent Voyer
81c126ee8b
fix(cli): inspect flag is deprecated ( #10819 )
...
This commit effectively removes the --inspect flag from the CLI help and better inform on the deprecation.
2020-03-04 11:53:20 +01:00
JJ Kasper
8390a474fe
Update to output jest data for posting failed tests comment ( #10814 )
...
* Update to output jest data for posting failed tests comment
* Add failing test
* Reset retries
* Revert change for testing
2020-03-04 09:54:49 +01:00
JJ Kasper
4ef1cd4ebe
Add identifier to NEXT_DATA for gs(s)p ( #10812 )
...
* Add identifier to NEXT_DATA for gs(s)p
* Apply suggestions from code review
Co-Authored-By: Joe Haddad <joe.haddad@zeit.co>
* fix lint
* apply lint fix
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-03-03 13:39:08 -05:00
Gerald Monaco
3ca022a821
Throw NoFallbackError instead of returning ( #10793 )
...
* Throw a NoFallbackError instead of returning
* Replace invariant
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2020-03-03 13:25:45 -05:00
Joe Haddad
6598e99b49
v9.2.3-canary.22
2020-03-02 19:03:10 -05:00
Joe Haddad
a5d0cb9d80
Measure getStaticProps
, getServerSideProps
( #10800 )
...
* Measure `getStaticProps`, `getServerSideProps`
* Test new fields
2020-03-02 19:01:12 -05:00
JJ Kasper
ad1a061f88
Remove old env from workflow since it is replaced with WebHook ( #10798 )
...
* Remove old env from workflow since it is replaced with WebHook
* bump
* bump
2020-03-02 17:48:06 -06:00
Prateek Bhatnagar
16672a4353
Adding conformance checks ( #10314 )
...
* adding tests for rect sync conformance check
* adding test for react sync script conformance check
* reverting yarn lock changes
* adding duplicate polyfill conformance
* bug fixes in dulpicate polyfill conformance check
* adding settings capability to conformance plugin
* removing minification check from server build
* bug fix
* settings for react sync script check
2020-03-02 22:53:18 +01:00
JJ Kasper
4056e98280
v9.2.3-canary.21
2020-03-02 12:34:46 -06:00
JJ Kasper
9ec3dae607
Fix next/config module mismatch in new serverless mode ( #10792 )
...
* Add failing test case
* Update serverless-loader require to fix config module mismatch
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-03-02 12:38:16 -05:00
Joe Haddad
2b74db73fa
v9.2.3-canary.20
2020-03-02 12:22:31 -05:00
Joe Haddad
990eda2c88
Prefetch SSG Data ( #10127 )
...
* Prefetch SSG Data
* Update packages/next/client/page-loader.js
Co-Authored-By: JJ Kasper <jj@jjsweb.site>
* Revert router.ts
* Revert link.tsx
* undo change
* mimmic existing
* simplify
* Prefetch href and asPath
* fix load
* dedupe prefetchAs
* Inject script tag on hover
* comment prefetchAs
* minify code
* introduce lazy files
* Add some breathing room
* correct default type
* Prefetch non-dynamic data
* Prefetch dynamic route data
* Fix size test
* Humanize code
* add tests
* Disable code
* Only generate modern version in modern mode
* Extract function helper
* add comments
* Filter out dynamic route to simplify manifest size
* add test
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2020-03-02 12:14:40 -05:00
Joe Haddad
8f01a4ae83
Fix RenderOpts in next-server
( #10776 )
...
* Correctly pass preview data
* remove todo
* re-do change
* fix types
* Prevent regression
2020-03-02 11:58:47 +01:00
Joe Haddad
94009422c5
v9.2.3-canary.19
2020-03-01 22:34:22 -05:00
Max Thirouin
644a1ef187
examples: react-native-web: fix config to prefer .web.* exts ( #10774 )
...
* [examples/with-react-native-web] fix config to get .web.* extensions resolved before other
Simple issue if you have `Compo.js` & `Compo.web.js` (eg 1st for iOS/android & second for web): with current config, .web are resolved after.
My change change this situation so web extensions are resolved before the others.
I removed the `defaultLoaders` since it was not used. Tell me if that was intentional so I can add it back.
* lint-fix
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-03-01 12:32:48 -05:00
Joe Haddad
8999ef2660
Remove Dead Code from Next Server ( #10772 )
...
* Remove Dead Code from Next Server
* remove options
* trigger
2020-03-01 12:26:31 -05:00
Joe Haddad
302b55b43d
Remove dangerousAsPath
from RenderOpts
( #10773 )
2020-03-01 12:14:10 -05:00
Joe Haddad
bc4f7bd216
v9.2.3-canary.18
2020-03-01 11:44:44 -05:00
Ethan Ryan
241be2d5c1
updating links to dynamic-routes section of docs ( #10759 )
2020-03-01 15:23:03 +01:00
Shu Uesugi
c52c0389fd
Add params to getStaticProps on err.sh ( #10751 )
...
* Add params to getStaticProps
* Update errors/invalid-getstaticprops-value.md
Co-Authored-By: JJ Kasper <jj@jjsweb.site>
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2020-03-01 15:20:28 +01:00
Joe Haddad
24345c9d06
Correctly Dedupe Prefetching ( #10758 )
...
* Correctly Dedupe Prefetching
* add test
2020-02-29 18:06:18 -05:00
Joe Haddad
b7f779058f
Consistently Type GS(S)P ( #10757 )
2020-02-29 17:36:49 -05:00
Joe Haddad
e608c86b59
Separate Low Priority Files from Main Files ( #10756 )
...
* Separate Low Priority Files from Main Files
* Fix tests
2020-02-29 17:09:42 -05:00
Prateek Bhatnagar
5a82812568
Adding new types of performance monitoring ( #10421 )
...
* add new types of performance monitoring
* adding LCP
* adding cls to perf relayer
* add test for cls and lcp
* nit fixes
* re-organizing code
* fixing tests for lcp
* updating size limits in test
2020-02-28 17:44:03 -06:00
Shu Uesugi
709aac1e96
Move upgrading guide to /docs ( #10727 )
...
* Move UPGRADING.md to docs
* Add upgrading guide to manifest.json
* Update title
* Move to docs/upgrading
* Update UPGRADING.md
* Update docs/manifest.json
* Update UPGRADING.md
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
2020-02-28 23:46:18 +01:00
JJ Kasper
b2624012ea
Remove old eslint-ignores from unstable_ prefix ( #10740 )
2020-02-28 12:40:27 -05:00
Gerald Monaco
3bfb6501f1
Extract getStaticPaths helper ( #10731 )
...
* Extract getStaticPaths helper
* Extract sendPayload and prepareServerlessUrl
* Remove erroneously included file
2020-02-28 11:56:50 -05:00
Gerald Monaco
d4fa6afa24
Extract sendPayload and prepareServerlessUrl ( #10732 )
2020-02-28 11:36:19 -05:00
Joe Haddad
586fdf4eba
v9.2.3-canary.17
2020-02-28 09:44:58 -05:00
Janicklas Ralph
7848615bd6
Fix url-polyfill dep and re-enable native-url ( #10726 )
...
* Adding native-url package
* Bumping native-url version
* Upgrading native-url
* Logging stats object for debugging
* Logging stats object for debugging
* Adding try catch to the error lines
* Experimenting with regex
* Experimenting with regex
* Experimenting with regex
* Testing regex changes
* Fixing defer-script test case to not include polyfill.js
* Meging changes with existing polyfill work
* Bumping version
* adjust webpack config
* Reduce size in size test
* Remove 1kb from legacy
* Bumping native-url version, includes fix for IE11
* Update lock file
* Updating native-url, fixes issue on IE11
* Fix sourcemap being added in document
* Adding Router as an app level dep. Fixes Router not being added as a dep to pages without Link when granularChunks is enabled
* Fix typescript error
* Fix modern + granularChunks hydration failing
* Fix TS error
* Update native-url version
* Adding native-url with safari fix
* Update url-polyfill in polyfill-nomodule package
* Remove url-polyfill from next package.json
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
Co-authored-by: JJ Kasper <jj@jjsweb.site>
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-27 22:08:58 -05:00
JJ Kasper
5b5d72ba56
Fix buildId being escaped breaking test with certain build ids ( #10728 )
2020-02-27 21:43:49 -05:00
JJ Kasper
0ff41daa48
v9.2.3-canary.16
2020-02-27 12:05:45 -06:00
JJ Kasper
c9d9f1131c
Remove unstable_
prefix from new methods ( #10723 )
...
* Rename getServerProps to getServerSideProps
* Remove unstable_ prefix from new methods
* Add error when legacy methods are detected
* Add legacy methods for babel transform
* Add unstable_getServerSideProps also
* Apply suggestions from code review
Co-Authored-By: Joe Haddad <joe.haddad@zeit.co>
* Update types import
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-27 11:57:39 -06:00
JJ Kasper
2789e7e0c2
Rename getServerProps to getServerSideProps ( #10722 )
2020-02-27 11:04:30 -06:00