JJ Kasper
a21a8fcc4d
Add error for invalid distDir value ( #10177 )
...
* Add error for invalid distDir value
* Add check for null/undefined distDir
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-20 14:35:29 -06:00
Joe Haddad
eb38d223e6
Test Query String Behavior ( #10102 )
...
* Test Query String Behavior
* Test Query String with %
* Test Query String With LF
* Update test
* Consolidate
* Consolidate
2020-01-20 15:16:18 -05:00
Joe Haddad
2e668e6b31
Remove native-url
( #10176 )
...
* Remove `native-url`
* Increase sizes
2020-01-20 14:47:42 -05:00
JJ Kasper
e04e5a5c15
Add initial support for static 404 page ( #10113 )
...
* Add initial support for static 404 page
* Apply suggestions from code review
Co-Authored-By: Tim Neutkens <tim@timneutkens.nl>
* Simplify custom error page check
* Add comment explaining reason for custom app check
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
2020-01-20 15:10:24 +01:00
Richard Scotten
33b22796c7
Add option arg to changeState when onlyAHashChange ( #10003 )
...
* added option to changeState when onlyAHashChange
* added integration tests
* segregated tests because they caused other tests to fail
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2020-01-18 20:35:12 -06:00
JJ Kasper
5a9a478cc8
Fix hydration with custom _app and granular chunks ( #10144 )
...
* Add failing hydration test
* Add importing of next/router to _app
* Fix type
* Update _app check for windows
* Remove babel fix
* Update to use webpack to require next/router
2020-01-17 14:13:51 -06:00
Joe Haddad
08f241fc3f
Switch from defer
to async
( #10143 )
2020-01-17 12:20:13 -06:00
JJ Kasper
51420c7241
Fix SSG data request failing with trailing slash ( #10140 )
...
* Fix SSG data request failing with trailing slash
* Update to re-use toRoute method
2020-01-17 11:54:00 -05:00
JJ Kasper
ee0761255a
Error on query values in exportPathMap for auto export page ( #9908 )
...
* Add warning when providing query values in exportPathMap for auto-export page
* Update test for SSG page also
* Update to error instead of warn
* Update warn -> Error and check exit code
2020-01-16 21:39:00 -05:00
JJ Kasper
22e015f7b6
Support unnamed parameters in custom-routes correctly ( #9920 )
...
* Support unnamed parameters in custom-routes correctly
* Update unnamed params checking to be strict
* Removed un-used regexKeys
* Update test routes
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-16 17:38:38 -05:00
Josh Larson
80ed74bcae
Add specific warning for require() PostCSS plugin ( #10121 )
2020-01-16 00:09:56 -05:00
JJ Kasper
563f3c084c
Honor exportTrailingSlash for default 404 ( #10109 )
2020-01-15 14:18:31 -06:00
Joe Haddad
a2ea7a4962
Add Test for PR #10037 ( #10093 )
2020-01-14 15:38:31 -05:00
Joe Haddad
d9d9545f30
Error on CSS in Custom Document ( #10091 )
2020-01-14 14:53:42 -05:00
Joe Haddad
2d76c4a9bb
Replace __NEXT_SPR with __N_SSG Identifier ( #10090 )
2020-01-14 14:40:20 -05:00
JJ Kasper
84264f8179
Add required permanent: boolean
field to redirect ( #10044 )
...
* Add permanent field for redirects
* Update printing redirect status code
* Don't add permanent to routes-manifest
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-14 13:28:48 -05:00
Joe Haddad
a7a924f2a4
Disable New CSS For Sass, Less, and Stylus ( #10043 )
2020-01-10 15:07:06 -06:00
JJ Kasper
5c6a20dbfc
Add refresh header for 308 redirect for IE11 compatibility ( #10042 )
2020-01-10 15:54:23 -05:00
JJ Kasper
14ca20d0d5
Add warning when API resolves without the request being finished ( #9999 )
...
* Add error when API resolves without the request being finished
* Update to only show warning in development instead
* Update packages/next/next-server/server/api-utils.ts
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-10 10:56:20 -05:00
JJ Kasper
3e923d059d
Fix public/
file name encoding ( #10022 )
...
* Update serving of files from public folder to handle special chars
* Update tests and match handling in dev mode
* Fix windows public file handling
* Remove colon test to make git on windows happy
* Remove un-used files
* Add missing await
2020-01-09 21:56:05 -05:00
Joe Haddad
5d3303f50a
Ensure Build Output Does Not Contain <buildId>
( #10021 )
...
* Ensure Build Output Does Not Contain `<buildId>`
* use posix join for common file
2020-01-09 17:31:03 -05:00
Joe Haddad
345efa3ea8
Keep Chunk Hash in Build Output ( #10020 )
2020-01-09 15:44:47 -06:00
Joe Haddad
af82f322e5
Enable New CSS Support by Default ( #9927 )
...
* Enable New CSS Support by Default
* Adjust configs
* Fix invisible AMP body
* Fix AMP validation warning
* test fix
* Use expression that won't be eliminated by babel
2020-01-09 15:31:28 -05:00
Prateek Bhatnagar
1fe6e9bb1c
switches analytics relay test from dev to prod ( #10017 )
...
* switches analytics relay test from dev to prod
* Update test/integration/relay-analytics/test/index.test.js
Co-Authored-By: Joe Haddad <joe.haddad@zeit.co>
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-09 20:40:26 +01:00
Joe Haddad
a5ae018acc
Test Custom Properties in CSS Modules ( #10007 )
2020-01-09 14:26:12 -05:00
Joe Haddad
0fd15ad6ba
Separate Self Size and First Load Size ( #10014 )
...
* Separate Self Size and First Load Size
* Tweak tests
2020-01-09 13:49:52 -05:00
Joe Haddad
abc0b07102
Test Importing Global CSS in CSS Modules ( #10008 )
2020-01-09 09:35:52 -05:00
Jan Potoms
2112e81ae4
Don't prepend a slash on empty path ( #9973 )
...
Fixes https://github.com/zeit/next.js/issues/9678
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-08 11:45:17 -05:00
Joe Haddad
1c6f0874ce
Test That Custom Properties Are Not Compiled ( #9984 )
...
* Fix Browserslist Loading
* Fix Browserslist Integration for CSS
* Add missing file
* Test That Custom Properties Are Not Compiled
* Disable custom properties transform
2020-01-08 12:06:16 +01:00
Joe Haddad
3c8fff354b
Simplify <Link>
Prefetch Deduping ( #9987 )
...
* Simplify `<Link>` Prefetch Deduping
* Fix test
* Update test/integration/preload-viewport/test/index.test.js
Co-Authored-By: JJ Kasper <jj@jjsweb.site>
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2020-01-07 18:25:44 -05:00
Joe Haddad
8686fca6a4
Fix Browserslist Integration for CSS ( #9985 )
...
* Fix Browserslist Loading
* Fix Browserslist Integration for CSS
* Add missing file
2020-01-07 16:59:58 -05:00
Joe Haddad
3b7a20de86
Test strictly matching next/dist
packages ( #9968 )
2020-01-06 16:01:06 -05:00
Joe Haddad
2757826cf7
Use <script defer>
by default, matching <script type=module>
( #9966 )
...
* Use `<script defer>` by default, matching `<script module>` behavior
* remove old test
2020-01-06 14:55:08 -05:00
Joe Haddad
a50a0577d2
Fix Tests ( #9963 )
2020-01-06 10:43:26 -06:00
Brian Mathews
5a2182e62e
Add assetPrefix when fetching script and style dependencies ( #9933 )
...
* Add assetPrefix when fetching script and style dependencies for granularChunks
* Lint
* Fix assetPrefix usage with granularChunks
* Add tests for granularChunks with assetPrefix
* Cleanup
2020-01-06 10:55:39 -05:00
Tim Neutkens
32ec4f6913
Allow for shortened names for certain items ( #9949 )
...
* Use smaller name as it's not shortened
* Remove export as it's not used and it'll be shortened
* Update size
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-04 15:53:33 -05:00
Tim Neutkens
72a0c5578e
Remove async from void functions in page-loader ( #9948 )
...
* Remove async from void functions in page-loader
* Fix void return
* Update page-loader.js
* Update index.test.js
2020-01-04 11:58:32 -05:00
Tim Neutkens
1fd57d22d5
Remove experiment ( #9945 )
...
* Remove experiment
* Add back ssr-prepass for serverless test
* Update size as they both decreased
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2020-01-04 17:40:18 +01:00
Joe Haddad
a277218db5
Fix Safari Script Test Count ( #9932 )
2020-01-03 18:13:32 -06:00
Joe Haddad
9261b82a82
Enable New Chunking Behavior ( #9731 )
...
* Enable New Chunking Behavior
* fix tst
* Increase sizes in test
* add another test
* Fix preloading order
* Replace commons with framework
2020-01-03 15:55:10 -05:00
JJ Kasper
ae78e8f5be
Fix get(Static|Initial)Props re-running when updating query ( #9907 )
...
* Add failing test for re-calling getStaticProps after updating query
* Fix get(Static|Initial)Props re-running when updating query
* Update invalid export tests
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-03 15:36:24 -05:00
Joe Haddad
c4cf641c37
Test 3rd Party CSS Modules ( #9924 )
2020-01-03 15:23:06 -05:00
Joe Haddad
878ee56bb9
Fix New CSS Support Media Paths ( #9916 )
...
* Fix CSS Media Paths
* update test
* Use absolute path
* Add new tests
* fix import
2020-01-03 12:45:04 -05:00
Igor Crispim Diniz
2f1b15c674
Fix _app global css import order ( #9836 )
...
* fix root components import order
* import order tests
* chunks attachment order tests
2020-01-03 18:00:06 +01:00
Tim Neutkens
c8799f9e7d
Enable catchAllRouting by default ( #9922 )
2020-01-03 16:51:26 +01:00
Joe Haddad
00179adcaa
Fix User Error in Async API Endpoint ( #9911 )
2020-01-02 18:47:39 -05:00
JJ Kasper
ad7bb4e352
Add headers support to custom-routes ( #9879 )
...
* Add headers support to custom-routes
* Update manifest version test
* Add headers field for dynamic routes test
* Update test
2020-01-01 13:47:58 +01:00
JJ Kasper
8132524d24
Revert version bump for routes-manifest ( #9896 )
2019-12-31 16:06:09 -06:00
JJ Kasper
5c72663c87
Ensure params in query are updated for custom-routes ( #9797 )
...
* Add handling for params in destination query
* Update describe name
2019-12-31 14:13:55 -06:00
Joe Haddad
8247f19f10
Defer Loading CSS Configuration ( #9889 )
2019-12-30 17:53:35 -06:00