Joe Haddad
c75146f7b2
Test CSS/Media Caching in Production Suite ( #10184 )
...
* Test CSS Modules in Production Suite
* fix build
* test css and media assets
2020-01-21 08:19:53 -05:00
JJ Kasper
fcfb5959e6
Allow mismatching href
and as
when manually provided ( #9837 )
...
* Allow mismatch href and as when manually provided
* Swap warning and error and throw error in production also
* Add test for mismatch error in production
* Update to only show warning in development
2020-01-20 16:47:52 -06:00
Luis Alvarez D
39020c432d
Improve user errors for invalid pageExtensions
( #10178 )
...
* Added validation for pageExtensions and tests
* Removed log
* Test for undefined
2020-01-20 17:19:33 -05:00
JJ Kasper
5f5c5e4e9e
Add support for catch-all routes with SSG ( #10175 )
...
* Add support for catchall routes with SSG
* Add test for invalid catchall param in getStaticPaths
2020-01-20 16:44:50 -05:00
Vitaliy
7a728d69db
Serve public/
folder when page routes are disabled ( #10169 )
...
Co-authored-by: JJ Kasper <jj@jjsweb.site>
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-20 16:13:47 -05:00
JJ Kasper
04f1dd52b9
Delay hydration until after page is visible in development ( #10164 )
...
* Delay hydration until after page is visible in development
* Tweak dead-code elimination
2020-01-20 21:41:41 +01:00
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
Joe Haddad
0957ed6f32
Use Cached SSG Data on History Navigation ( #9887 )
...
* Use Cached SSG Data on History Navigation
* Add data caching test
* Create a static data cache
* Eliminate an if / return
* Do not cache in dev mode
* bump
* bump
* bump
* bump
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2019-12-30 17:57:06 -05:00
JJ Kasper
39ccd8ffe8
Add error for rewrite to auto-exported dynamic page ( #9816 )
...
* Add error for rewrite to auto-exported dynamic page
* Update packages/next/next-server/server/render.tsx
Co-authored-by: Joe Haddad <timer150@gmail.com>
2019-12-30 14:06:38 -05:00
JJ Kasper
31f3bfa18f
Add test ensuring basePath is added to routes-manifest ( #9885 )
2019-12-30 13:48:45 -05:00
JJ Kasper
148084006a
Add basePath to routes-manifest ( #9875 )
...
* Add basePath to routes-manifest
* Bump routes-manifest version
* Update tests for version bump
2019-12-30 11:23:26 +01:00
Tim Neutkens
86808bbce2
Add basePath support ( #9872 )
...
* Add basePath support
* Add tests including copy of HMR tests
* Add production tests
* Add tests for serverless target
* Add missing quotes
2019-12-29 20:03:12 +01:00
Joe Haddad
2f5b3e0d42
Test Nested CSS Imports ( #9855 )
2019-12-28 13:33:14 +01:00
Joe Haddad
edf63e597d
Expose CSS Issuer When Error ( #9850 )
...
* Expose CSS Issuer When Error
This introduces a friendlier error for invalid CSS imports by telling you the offending file.
---
Fixes #9847
* fix test matches
2019-12-27 13:56:33 -06:00
Joe Haddad
14b18da055
Special Global CSS Error within node_modules
( #9849 )
2019-12-27 13:35:37 -05:00
Joe Haddad
6b50b1322b
Allow Boolean API Response ( #9842 )
2019-12-26 15:38:12 -06:00
JJ Kasper
f89d55f10d
Add selenium-webdriver and testing cross-browser in PRs ( #9821 )
...
* Migrate from wd to selenium-webdriver
* Add chaining for next-webdriver
* Re-add browserStackLocal global for teardown
* Add additional element methods
* Use freshWindow helper for chrome
* Add selenium-server
* Add cross-env for windows compat
* Fix single quote windows
* Update production preload tests
* Update preload tests count
* Update CircleCi for testing other browsers
* Update CI configs
* Update config
* Add browser.url command
* Add more methods
* Update xcode version
* Make sure to add chromedriver to path
* Add forceExit flag
* Update config
* Update config
* Disable safari
* Fix bug in test
* Add teardown logging
* Update jest teardown
* Move testing ie11 to Azure
* Update job names
* Remove force exiting on long teardown
* Update Azure config
* Re-add safari testing with BrowserStack
* Update config
* Update prefetch tests for ie11
* Update prefetch for safari and ids for ie11 testing
* trigger prefetching manually in ie
2019-12-26 15:01:22 -05:00
Joe Haddad
ec440d4b7b
Allow Empty API Body ( #9838 )
2019-12-26 14:23:06 -05:00
Joe Haddad
12241384e7
Fix Chrome-Only Tests ( #9825 )
2019-12-24 15:30:00 -06:00
Nick Zahn
5909e67765
Fix/improve test for deduplication of tags with same key ( #9793 )
2019-12-24 16:22:04 +01:00
Joe Haddad
632e40f266
Optimize Prefetching ( #9818 )
...
* Optimize Prefetching
* fix css client nav test
* fix preload viewport test
* fix production test
* patch tests more
* Make page loader wait on prefetch
* no unhandled rejection
* Save some bytes
2019-12-24 10:07:44 -05:00
JJ Kasper
ec5e773827
Update error checking for AMP validator tests ( #9817 )
2019-12-23 22:00:39 -05:00
JJ Kasper
b9865ba32e
Add checking filesystem after each rewrite ( #9568 )
...
* Add check: true behavior to custom routes
* Update adding dev routes
* Add checking of pages and dynamic routes for check: true
* Fix hasPage binding
* Add tests for check: true behavior
* Update regex checking
* Make changes based on review
* Update to handle rewrites in serverless loader
* Update to not change req.url
* Make sure to always parse dynamic route params
* Export all of pathToRegexp from path-match
Co-authored-by: Joe Haddad <timer150@gmail.com>
2019-12-23 16:20:17 -05:00
Joe Haddad
5c3f9ba745
Add Specific Error for Function in PostCSS Config ( #9815 )
2019-12-23 14:43:38 -06:00
Joe Haddad
dd3f3e9933
Turn on CSS support for config test ( #9814 )
2019-12-23 14:44:54 -05:00
JJ Kasper
1ec7716fe6
Prevent re-observing for an already prefetched page ( #9644 )
...
* Prevent re-observing for an already prefetched page
* Update size-limit test
* Move prefetched setting
* Remove extra prefetched setting
2019-12-20 15:30:58 -06:00
JJ Kasper
fd1636ae4d
Update prerender test for Windows ( #9800 )
2019-12-20 14:15:55 -06:00
JJ Kasper
163f607160
Add parsing of route source during checking ( #9787 )
...
* Add parsing of route during checking
* Update err.sh
2019-12-19 10:48:34 -06:00
Lachlan Campbell
8e1046d94a
Fix error message typo: "Keys that need moved" ( #9772 )
2019-12-17 14:25:02 -10:00
JJ Kasper
463d30ec9d
Add handling for external redirects ( #9764 )
2019-12-17 11:02:39 -06:00
JJ Kasper
fd95d6c8bc
Fix AMP HMR for child components ( #9736 )
2019-12-16 11:45:48 -06:00
JJ Kasper
87d9b2e03e
Add tests ensuring auto-exported amphtml rel is valid ( #9762 )
2019-12-16 11:32:35 -06:00
Tim Neutkens
2ba056aa20
Add check for invalid assetPrefix ( #9759 )
...
* Add check for invalid assetPrefix
* Update test/integration/invalid-config-values/test/index.test.js
Co-Authored-By: JJ Kasper <jj@jjsweb.site>
2019-12-16 16:07:03 +01:00
JJ Kasper
a32af59e93
Fix Shared Sizes Missing Commons ( #9752 )
...
* Fix shared sizes missing commons
* Add tests
2019-12-14 12:23:04 -07:00
JJ Kasper
8267c8a6eb
Normalize RegEx source between node versions ( #9749 )
2019-12-14 11:25:55 -06:00
JJ Kasper
6fcb6230d2
Add support for exporting from serverless build ( #9744 )
...
* Add support for exporting from serverless build
* Add more tests
* Update syntax
* Dont add dynamic params in worker
* Update amphtml rel for serverless tests
* Update tests again
* Update dynamic params populating
* Fix params parsing
* Pass params separately
2019-12-14 01:31:48 -05:00
JJ Kasper
fafb466444
Test failed SSG data request ( #9738 )
2019-12-13 22:54:01 +01:00
Joe Haddad
32cb5e105a
Disable CSS Support When Manually Configured ( #9735 )
...
* Disable CSS Support When Manually Configured
* upgrade TS
* adjust yarn lock
* Remove another version of TypeScript
* Remove possibly leftover loader
* Revert "Remove possibly leftover loader"
This reverts commit 7ce2d1a8854f3d7a833867f8ac3be7923a6cb1d8.
* Update to use no-op loader
2019-12-13 14:23:28 -06:00
Joe Haddad
62a6ece4b9
Emit Static Export Intent ( #9737 )
...
* Emit Static Export Intent
* Remove the old export detail on rebuild
* Add test cases
* fix export
* Add a resolve return
2019-12-13 13:30:22 -06:00
JJ Kasper
677a9509f3
Fix query values being passed in dev mode for SSG ( #9734 )
...
* Fix query values being passed in dev mode for SSG
* Update test names
2019-12-13 13:14:09 -05:00
Joe Haddad
55e966bb81
Test CSS Behavior ( #9733 )
...
* Test CSS Behavior
* adjust files
2019-12-13 10:28:59 -05:00
Joe Haddad
88de2328e5
Enable Page Symbol For /_error
( #9730 )
2019-12-13 14:45:15 +01:00
Joe Haddad
1a0a76c011
New File Size Output ( #9726 )
...
* New File Size Output
* fix test
2019-12-12 20:44:34 +01:00
Joe Haddad
a133f850fa
Refine Pages Output ( #9725 )
2019-12-12 17:20:24 +01:00
Joe Haddad
25ee71f3ca
Add CSS Resolve Test ( #9724 )
2019-12-12 10:51:38 -05:00
Joe Haddad
5b57a7527d
Improve Build Output for SSG ( #9719 )
...
* Improve Build Output for SSG
* Swap out symbols and reasons
* adjust text more
* Add test
* Expect more output lines
* fix test case
2019-12-12 10:45:45 +01:00
Joe Haddad
867c459e1e
Add CSS Module TypeScript Types ( #9717 )
...
* Add CSS Module TypeScript Types
* Fix types
* Try another way
2019-12-11 19:45:01 -05:00
Joe Haddad
c593171db1
Add Tailwind and PurgeCSS Test ( #9714 )
2019-12-11 18:54:40 -05:00
JJ Kasper
01b7c576b4
Breakup CSS test suite ( #9715 )
...
* Breakup CSS test suite
* De-dupe next.config.js for css-fixtures
2019-12-11 18:39:09 -05:00
Joe Haddad
e68e50d6e6
Add More Configuration File Options ( #9713 )
2019-12-11 16:56:47 -05:00
Joe Haddad
2347e3e47e
Adjust return value ( #9712 )
...
* Adjust return value
* Add delay
2019-12-11 16:32:16 -05:00