JJ Kasper
c1cbad0155
Update tests running and add splitting by timings for Azure ( #10214 )
...
* Add splitting by timings for Azure
* Add --timings flag for azure
* Update timings API
* Update timings var
* Fix test directory not being reset before re-trying
* Update to re-use CircleCI timing data
* Bump concurrency for Azure
* Remove extra logging
* Update timeout for create-next-app tests
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-23 12:37:01 -05:00
Joe Haddad
bf31b4ee8d
Check CSS Test Output ( #10237 )
...
* Check CSS Test Output
* replace more
* Fix tests
* check code
* Add code check
* Check codes everywhere
2020-01-23 12:28:24 -05:00
Luis Alvarez D
b747f7b26e
Check for invalid objects in rewrites/redirects/headers ( #10238 )
2020-01-23 11:08:25 -06:00
JJ Kasper
17cb1ef999
Fix rewriting to API routes not including query ( #10223 )
2020-01-23 10:23:34 +01:00
JJ Kasper
999b8ce657
Disable invalid security tests for safari ( #10221 )
2020-01-22 22:43:24 +01:00
JJ Kasper
7fcd11c248
Enable security tests cross browser ( #10217 )
2020-01-22 15:55:45 -05:00
Alexander Dreith
8449ebc221
[Experimental] Add built-in Sass support ( #10133 )
...
* Add built-in Sass support
* Add copy of CSS tests for SCSS
* Fix failing tests
* Fix url-loader tests
* Remove css file generated by tests
* Fix nprogress import for css file
* Fix SCSS modules (still 2 tests that need investigating)
* Update documentation for Sass support
* Fix plain CSS import test
* Fix formatting with prettier fix
* Update test output to reflect scss usage
* Revert "Fix plain CSS import test"
This reverts commit 380319d9d0c4bfb19e28c210262ccd82d19f3556.
# Conflicts:
# test/integration/scss-modules/test/index.test.js
* Update loader structure
* Resolve loaders before passing to compile function
* Remove dead filter code
* Arrange loaders in order and push to array
* Fix loader order bug
* Fix global Sass loader and make module prepocessor optional
* Adjust Sass Modules Implementation
* Fix typo
* Adjust regexps
* Use regexes
* Simplify global setup
* Adjust comments
* fix regex
* Simplify identifier file
* Update Sass Instructions
* Remove unneeded fixtures
* Adjust global tests
* Remove wrapper
* Update source maps
* Flag scss behavior
* Fix css property value
* Update fixtures with Sass vars
* Turn on Scss support
* fix HMR test
* Fix snapshots
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-22 15:26:51 -05:00
Tim Neutkens
6988a2e0a5
Use builtins for React transform ( #10207 )
...
* Disable core-js on Next.js core files as it's not transforming anything important
* Move babel options to taskr plugin
* Disable transform-runtime for pages dir
* Disable correctly
* Disable corejs for core files
* Temporarily check if this fixes the error
* Use builtIns and exclude async-to-generator
* Update index.test.js
2020-01-22 16:24:02 +01:00
Joe Haddad
a3f1d65eba
Fix ESLint Ignores and Extract Fn ( #10205 )
2020-01-22 09:32:51 -05:00
JJ Kasper
b6edf814b7
Update error for failing to parse custom-route source ( #10197 )
...
* De-dupe invalid-custom-routes tests
* Update error for failing to parse custom-route source
2020-01-22 11:16:13 +01:00
JJ Kasper
592a2c2f00
Update tsconfig for tests
2020-01-21 15:29:39 -06:00
JJ Kasper
53e9983d83
Add hydration callback for testing ( #10195 )
...
* Add hydration callback for testing
* Update size-limit test
2020-01-21 15:33:58 -05:00
Joe Haddad
4bd6a53ebc
Test Query String with + Sign ( #10186 )
2020-01-21 09:32:27 -05:00
Joe Haddad
9b512a850c
Stabilize New Dev Test ( #10188 )
2020-01-21 09:10:47 -05:00
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