Commit graph

4816 commits

Author SHA1 Message Date
Afzal Sayed
58b2d9e208 Use optional chaining syntax (#9975)
* Use optional chaining syntax

* Changes as per review

* Bug fix
2020-01-08 11:30:53 -05:00
Joe Haddad
7a6f056192
v9.1.8-canary.6 2020-01-08 10:33:28 -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
Luis Alvarez D
18d8c90c3f Updated docs for pathname (#9964)
* Updated docs for pathname

* Apply suggestions from Tim

Co-Authored-By: Tim Neutkens <tim@timneutkens.nl>

* Removed trailing dots

Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
2020-01-08 11:56:17 +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
c387986b6a
v9.1.8-canary.5 2020-01-07 17:12:54 -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
Luis Alvarez D
f8888636ba Removed <br> from docs (#9972) 2020-01-07 20:37:19 +01:00
Jurian
5a7f9fa2f7 typo fix (#9979)
Changed `getinitialProps` on line 77 to `getInitialProps`
2020-01-07 09:57:54 -05:00
Moritz Kneilmann
f44f9e2da7 docs: Fix imports in router API reference (#9977) 2020-01-07 08:57:46 -05:00
Joe Haddad
c6e6d98f9a
v9.1.8-canary.4 2020-01-06 16:41:14 -05:00
Luis Alvarez D
23a04e466c Add docs for catch all routes (#9967)
* Added docs for catch all routes

* Removed `be`

Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-06 16:12:05 -05:00
Joe Haddad
3b7a20de86
Test strictly matching next/dist packages (#9968) 2020-01-06 16:01:06 -05:00
Joe Haddad
c512b04ed9
v9.1.8-canary.3 2020-01-06 15:52:33 -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
Felix Mosheev
dea80b8565 Allow libs that ends with next/dist such as i18next, next-i18next, react-i18next to be external (#9956)
fixes #9022

Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-06 14:27:36 -05:00
JJ Kasper
501587ab2c
v9.1.8-canary.2 2020-01-06 11:27:13 -06: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
JJ Kasper
1db6764c52
v9.1.8-canary.1 2020-01-04 12:14:26 -06:00
Tim Neutkens
7e817cab04 Remove rewriteUrlForNextExport from bundles when option is not enabled (#9946)
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-04 12:16:57 -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
Tim Neutkens
8898b853e6
Don't bundle prop-types to then tree shake it (#9944) 2020-01-04 14:12:11 +01:00
Ilham Wahabi
12a877d8c8 fix getting data in class based example (#9938)
Check me if i'm wrong but don't we also need to `import fetch from 'isomorphic-unfetch'` in class based example?
Currently it's just in function based component.

Also I think we should access `stars` from props at first right?
2020-01-04 12:51:13 +01:00
Jerry Green
b66c34eac3 Fix js template to be TS compatible (#9941) 2020-01-04 12:41:35 +01:00
Joe Haddad
a277218db5 Fix Safari Script Test Count (#9932) 2020-01-03 18:13:32 -06:00
Joe Haddad
8ebc5461e4
v9.1.8-canary.0 2020-01-03 16:31:32 -05:00
Cully Larson
3707701cc9 Fix mistakes in the Deployment doc (#9925)
* Fix a few small spelling and grammar mistakes in the Deployment doc

* Update deployment.md

Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-03 15:55:49 -05: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
Cully Larson
a3925b5865 Fix mistakes in the Custom Server doc (#9930) 2020-01-03 15:38:57 -05:00
Cully Larson
4a7a28a887 Fixup the Static HTML Export doc (#9928) 2020-01-03 15:37:11 -05:00
Cully Larson
41d4084c04 Add a missing word to the Static Optimization doc (#9926) 2020-01-03 15:36:53 -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
Evgeniy Kumachev
ef6df482bf Add with-mobx-keystone-typescript example (#9844)
* add with-mobx-keystone-typescript example

* Use latest Next.js and removed gitignore

* Fixed my suggestions

* Enabled strict mode and simplified _app

Co-authored-by: Luis Alvarez D. <luis@zeit.co>
2020-01-03 15:10:02 -05:00
Joe Haddad
8e2ff2cd1f
v9.1.7 2020-01-03 14:54:11 -05:00
Joe Haddad
a701072fc6
v9.1.7-canary.16 2020-01-03 13:19:52 -05:00
Luis Alvarez D
d1fdd2bbf8 Add descriptions to documentation pages (#9901)
* Added descriptions

* Added descriptions to API Reference

* Added descriptions to API Routes

* Added descriptions to basic features

* Added descriptions to the routing docs

* Update exportPathMap.md

Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-03 13:16:51 -05:00
Sergio Xalambrí
251f56b81f Tailwind example only run PurgeCSS in production (#9846)
* Tailwind example only run PurgeCSS in production

* Apply lint

Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-03 13:01:32 -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
Luis Alvarez D
fbcc0e818e
😌 (#9923) 2020-01-03 12:34:20 -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
3a797f1a38 v9.1.7-canary.15 2020-01-03 17:14:01 +01:00
Tim Neutkens
c8799f9e7d
Enable catchAllRouting by default (#9922) 2020-01-03 16:51:26 +01:00
Tim Neutkens
1546fcdcfd
Update contributing.md 2020-01-03 16:14:53 +01:00
Tim Neutkens
9e9c7ea393 Remove leftover symlink 2020-01-03 12:11:01 +01:00
Tim Neutkens
ed1424197c v9.1.7-canary.14 2020-01-03 11:46:14 +01:00
JJ Kasper
6e1762a751 Remove extra logging from on-demand-entries (#9909)
* Remove extra logging from on-demand-entries

* Update on-demand-entry-handler.ts

* Update on-demand-entry-handler.ts

* Update on-demand-entry-handler.ts

Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
2020-01-03 11:43:36 +01:00