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
JJ Kasper
a40a32d1cc
Fix SSG tests failing on windows ( #9710 )
2019-12-11 14:36:35 -05:00
Joe Haddad
179e627a36
Redesign PostCSS Configuration Loading ( #9704 )
...
* Redesign PostCSS Configuration Loading
* Test array configuration
* Test new configuration handling
* Remove unnecessary async
2019-12-11 11:51:10 -05:00
Joe Haddad
a6dc0e1603
Adjust postcss-modules
Message ( #9703 )
2019-12-11 09:23:06 -06:00
Joe Haddad
734989d836
[Experimental] CSS Module Support ( #9686 )
...
* CSS Module Support
* Fix Server-Side Render of CSS Modules
* Fix Jest Snapshots
https://github.com/facebook/jest/pull/8492
* Fix snapshots
* Add test for CSS module edit without remounting
* Add tests for dev and production style being applied
* Add missing TODOs
* Include/exclude should only be applied to issuer, not the CSS file itself
* Add CSS modules + node_modules tests
* Test that content is correct
* Create Multi Module Suite
* Add client-side navigation support for CSS
* Add tests for client-side nav
* Add some delays
* Try another fix
* Increase timeout to 3 minutes
* Fix test
* Give all unique directories
2019-12-11 11:46:12 +01:00
Joe Haddad
e11cf22721
Enable New Chunking for CSS ( #9688 )
...
* Enable New Chunking for CSS
* set false
2019-12-10 14:21:52 -06:00
JJ Kasper
83eeda085b
Fix not detecting legacy getStaticParams in serverless mode ( #9685 )
...
* Fix not detecting legacy getStaticParams in serverless mode
* Update test/integration/prerender-legacy/test/index.test.js
2019-12-10 14:30:22 -05:00
JJ Kasper
6c103ef5a6
Add checking of custom routes for invalid fields ( #9434 )
...
* Add checking of custom routes for invalid fields
* Remove un-used test imports
* Mentioned statusCode can be undefined in error message
* Update test
* Update invalid routes output
* Add checking to make sure source/destination start with slash
* Update import
2019-12-10 09:54:56 -05:00
Janicklas Ralph
12c83fb721
Adding Router as an app level dep ( #9675 )
...
* 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
2019-12-10 12:30:26 +01:00
JJ Kasper
8a370d1fff
Update api-support test suite ( #9673 )
2019-12-09 14:17:44 -06:00
JJ Kasper
963d598dc1
Add tests for optional chaining and nullish coalescing ( #9665 )
...
* Add tests for optional chaining and nullish coalescing
* Add integration tests
2019-12-08 12:38:22 -06:00
Joe Haddad
ed1a9450f0
Disable SSG Transform on Non-SSG Pages ( #9657 )
...
* Disable SSG Transform on Non-SSG Pages
* correct test
2019-12-07 00:03:29 -06:00
Joe Haddad
04b2f0ebe1
Use Real Identifier for SSG Transform ( #9656 )
2019-12-07 00:52:24 -05:00
Joe Haddad
bbc62a07be
Only Remove Server-Side Imports ( #9653 )
...
* Only Remove Server-Side Imports
* Cleanup imports
2019-12-06 22:57:14 -05:00
Joe Haddad
b4db0421ff
Rewrite SSG Transform for Recursive Cleanup ( #9652 )
2019-12-06 22:03:55 -05:00
Joe Haddad
cb4c08c02b
Fix SSG Named Export Transform ( #9649 )
2019-12-06 11:50:50 -05:00
Joe Haddad
10b2eb5b31
Fix Import Shaking for Namespaces ( #9650 )
2019-12-06 11:46:00 -05:00
Joe Haddad
05ba91d3ba
Add Additional SSG Transform Test
2019-12-05 18:08:44 -05:00
Joe Haddad
e76fc18675
Remove Scope Bindings for SSG ( #9642 )
2019-12-05 18:05:50 -05:00
Joe Haddad
7a51b888c5
Add SSG Support for VariableDeclarations ( #9641 )
2019-12-05 16:43:18 -06:00
Joe Haddad
a718df5f56
Rewrite SSG Transform ( #9640 )
...
* Rewrite SSG Transform
* Add Named Declaration Support
* more adjustments
* Re-crawl scope
2019-12-05 17:22:41 -05:00
Joe Haddad
b4d0740c62
Separate SSG Transform from Config ( #9639 )
...
* Separate SSG Transform from Config
* update fn name
* fix
2019-12-05 16:43:11 -05:00
Joe Haddad
bf5e295c0c
Correct URI Encoding Order ( #9638 )
...
* Correct URI Encoding Order
* Add prefetch test
* verify encoding
2019-12-05 12:10:37 -06:00
Joe Haddad
30ff9a339f
Remove Extraneous Imports in Pages ( #9627 )
...
* Remove Extraneous Imports in Pages
* Add test
* bump cache key
2019-12-05 11:04:00 -06:00
Joe Haddad
21e1db7bc1
Aggressively Replace Constants ( #9610 )
...
* Aggressively Replace Constants
* Test both windows
* add other switch
2019-12-03 16:08:49 -05:00
JJ Kasper
bf1d872f89
Fix extra prerender error for invalid getStaticProps usage ( #9593 )
...
* Fix extra prerender error for invalid getStaticProps usage
* Add error for getStaticProps usage in _error
* Revert erroring for SSG in _error
2019-12-02 17:12:10 -05:00
Joe Haddad
bd8b1221e5
Support repeat
ing Dynamic Route Params ( #9599 )
...
* Test for desired catch all behavior
* Support `repeat`ing Dynamic Route Params
x-ref: #9598
2019-12-02 16:55:49 -05:00
Joe Haddad
dd1f610f8d
Add SSG Tests with Catch All Routing ( #9594 )
...
* Add SSG Tests with Catch All Routing
* fix node version compat
* Remove unneeded query
2019-12-02 16:04:25 -05:00
JJ Kasper
89b22d2994
Fix missing getStaticProps error in serverless mode ( #9532 )
...
* Make sure to show missing getStaticProps error in serverless mode
* Update test
2019-11-27 23:23:32 -05:00
JJ Kasper
45832e4421
Make sure to parse query values for SSG page after hydration ( #9545 )
...
* Make sure to parse query values for SSG page after hydration
* Update to re-use __NEXT_SPR
2019-11-27 23:16:19 -05:00
Joe Haddad
ca3f881a42
s/getStaticParams/getStaticPaths/ ( #9565 )
...
* WIP: rename get static paths
* Adjust logic
* Add warning
* rename constant
* Check for error when using old method
* Add friendly error message
* Test for message of invalid keys
* replace index with dots
2019-11-27 21:46:16 -06:00
Joe Haddad
a6656a0b84
Upgrade path-to-regexp
( #9553 )
...
* Upgrade `path-to-regexp`
* Correct import
* Update delimiter
* Fix path match
* Fix hot loader
* Fix params.path usage and pathToRegexp import
* Revert changes for params.path
* Fix lint
* Simplify path match function
* Delimiter should always be `/`
* Fix passed in params
* Add new regex wrapping
* Wrap another route
* Fix error message match
2019-11-27 16:48:28 -05:00
Joe Haddad
cc4e57e7fc
Stabilize TypeScript HMR Test ( #9562 )
2019-11-27 14:38:01 -05:00
JJ Kasper
d9e8b8678f
Simplify src-dir test suite ( #9533 )
2019-11-26 14:29:39 -05:00
Adam Stankiewicz
9c9f0609a0
Fix deduplicating dynamic (array) meta tags ( #9315 )
2019-11-26 12:27:33 -05:00
JJ Kasper
cd8e72d5e3
Add custom routes to build output ( #9517 )
...
* Add custom routes to build output
* De-dupe code a bit
2019-11-26 10:33:47 +01:00
Janicklas Ralph
04a7f1e85d
Replace url
polyfill with self.URL
( #9200 )
...
* 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
2019-11-25 23:10:02 -05:00
Joe Haddad
302407486e
Specify Invalid Dynamic Route Values ( #9525 )
2019-11-25 17:15:23 -05:00
Joe Haddad
4656f52d15
CSS Support Customization ( #9502 )
...
* CSS Support Customization
* Sort imports
* Correct PostCSS plugin loading
* Add css customization test
* Test "bad" css configuration
* Add load config test
* adjust spacing
* adjust spacing 2x
* Only allow config through JSON
* Support excluding false plugins
* Test tailwind css behavior
* Test plugin exclusion
* Fix unit test
* Fix config file
* Remove more variants
* Update test cases
2019-11-25 16:52:29 -05:00