1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
Commit graph

979 commits

Author SHA1 Message Date
greenkeeper[bot] 3136bd55fb fix(package): update babel-preset-latest to version 6.24.0 (#1402)
https://greenkeeper.io/
2017-03-13 08:07:50 +01:00
greenkeeper[bot] 6a7ee7b193 chore(package): update babel-preset-es2015 to version 6.24.0 (#1401)
https://greenkeeper.io/
2017-03-13 06:56:54 +01:00
greenkeeper[bot] 595eb9e512 chore(package): update husky to version 0.13.3-0 (#1395)
https://greenkeeper.io/
2017-03-13 06:20:05 +01:00
greenkeeper[bot] f2969ed824 fix(package): update babel-plugin-transform-es2015-modules-commonjs to version 6.24.0 (#1400)
https://greenkeeper.io/
2017-03-13 06:16:02 +01:00
Arunoda Susiripala e985e0dd48 Use mitt instead of EventEmitter for the client HMR (#1399)
error handling.
2017-03-13 10:16:32 +05:30
Arunoda Susiripala 57099a544c Use mitt instead of EventEmitter. (#1398)
EventEmitter is quite bit and mitt is a pretty good/small replacement.
2017-03-13 10:04:30 +05:30
Arunoda Susiripala bb7c8f87c6 Use a private Router event API for the ondemand-pinger. (#1397) 2017-03-12 18:06:50 -07:00
Jayden Seric 02e697cb0d Updated with-apollo example. (#1389)
- Deleted several unused dependencies.
- Updated dependencies.
- Simplified Apollo related imports thanks to react-apollo exporting apollo-client and graphql-tag since [v0.13.2](https://github.com/apollographql/react-apollo/blob/master/Changelog.md#0132).
- Tidied the readme and added a link to the Apollo docs.
2017-03-12 08:33:01 +01:00
Sergio Daniel Xalambrí 38822717a9 Add support for URL objects in Link and Router (#1345)
* Add support for URL objects in Link and Router

* Fix typo in comment

* Fix possible bug if the `href` prop is `null`

* Document the usage of URL objects in Link and Router

* Update readme.md

* Parse URL to get the host & hostname in `isLocal`

This should check if the current location and the checked URL have the same `host` or `hostname`.

* Format `as` parameter from object to string if required

* Format `href` and `as` inside the construct and componentWillReceiveProps

* Use `JSON.stringify` to compare objects

* Add usage example

* chore(package): update chromedriver to version 2.28.0 (#1386)

https://greenkeeper.io/

* Refactor the codebase a bit.

* Change the example name.

* Add a few test cases.

* Add the example to the README.
2017-03-12 09:27:51 +05:30
Arunoda Susiripala 1ae3c2e637 Ping to on-demand-entries on every page change. (#1384)
This will prevent disposing the page after viewing it.
Otherwise, it'll possible to dispose the page even
we load the page on the client.
2017-03-12 09:21:49 +05:30
greenkeeper[bot] 0d01f5c8e8 chore(package): update chromedriver to version 2.28.0 (#1386)
https://greenkeeper.io/
2017-03-12 08:16:38 +05:30
greenkeeper[bot] bef2e30592 fix(package): update write-file-webpack-plugin to version 4.0.0 (#1383)
https://greenkeeper.io/
2017-03-10 13:37:23 +01:00
Larry Lu 4fb7e4bc64 Fix typo (#1380)
port 300 -> 3000
2017-03-10 09:10:44 +01:00
Sergio Daniel Xalambrí bb3ceaadea Fix styled-components server-render example (#1382) 2017-03-10 09:07:28 +01:00
Arunoda Susiripala 6db7101c40 Add beforeHistoryChange router event. (#1360) 2017-03-08 08:30:47 -08:00
Arunoda Susiripala f9286f74bf [WIP] Improve test setup (#1372)
* Run tests serially.

* Make test result verbose.

* Don't wait until closing the browser.

* Add some debug logs.

* Add bailing support.

* Get the browser with a timeout.

* Add some comments.

* Remove istanbul babel tranformation.
Jest already do it and it's breaking our coveralls hit.
2017-03-08 13:23:05 +05:30
Thomas Preusse 634a62441d send credentials when fetching new route (#1371) 2017-03-07 15:14:17 -08:00
Guillermo Rauch e15f06071d update yarn 2017-03-07 14:12:50 -08:00
Arunoda Susiripala 6979e35947 Add content based HASH to main.js and common.js (#1336)
* Use file hashes instead of BUILD_ID.
Now JSON pages also not prefixed with a hash and
doesn't support immutable caching.
Instead it supports Etag bases caching.

* Remove appUpdated Router Events hook.
Becuase now we don't need it because there's no buildId validation.

* Remove buildId generation.

* Turn off hash checks in the dev mode.

* Update tests.

* Revert "Remove buildId generation."

This reverts commit fdd36a5a0a307becdbd1d85ae3881b3a15b03d26.

* Bring back the buildId validation.

* Handle buildId validation only in production.

* Add BUILD_ID to path again.

* Remove duplicate immutable header.

* Fix tests.
2017-03-07 10:43:56 -08:00
Tim Suchanek 40573317f7 Update README.md (#1368)
Fix graph.cool link in example
2017-03-07 14:47:31 +01:00
Arunoda Susiripala 08d9847ab7 Shallow routing changes (#1363)
* Fix a typo in a test suite.

* Add old props.url API with warn for all tags.
2017-03-06 10:14:10 -08:00
greenkeeper[bot] bbd1a97aa9 fix(package): update send to version 0.15.1 (#1350)
https://greenkeeper.io/
2017-03-06 08:59:25 -08:00
Tim Neutkens bf9d34df37 Disable uglify the pretty way (#1351) 2017-03-06 08:53:00 -08:00
greenkeeper[bot] 95bd7b70a0 fix(package): update babel-loader to version 6.4.0 (#1359)
https://greenkeeper.io/
2017-03-06 08:52:33 -08:00
greenkeeper[bot] e6e57aef91 fix(package): update loader-utils to version 1.0.3 (#1361)
https://greenkeeper.io/
2017-03-06 08:52:14 -08:00
Guillermo Rauch 4cc24e4c2a Update readme.md 2017-03-06 08:51:19 -08:00
Arunoda Susiripala f8f3fa7dce Introducing Shallow Routing (#1357)
* Simplify route info handling.

* Add basic resolve=false support.

* Make sure to render getInitialProps always if it's the first render.

* Change resolve=false to shallow routing.

* Add test cases for shallow routing.

* Update README for shallow routing docs.

* Update docs.

* Update docs.

* Update docs.
2017-03-06 08:48:35 -08:00
Arunoda Susiripala 76698eaa08 Revert "Update cross-env to the latest version 🚀" (#1358) 2017-03-06 17:27:02 +05:30
Conor Dockry 193eaf4c9e Add missing ! in using-preact example (#1355) (#1356) 2017-03-06 10:46:02 +05:30
Orlin M Bozhinov 563856f477 postcss-loader, postcss-easy-import, normalize.css and autoprefixer (#1352) 2017-03-05 07:48:37 -08:00
Tim Neutkens 5947716ff7 Implement preact/inferno SSR (#1346)
* Use module-alias to alias preact server side

* Use module-alias to alias inferno server side

* Remove unneeded routes example
2017-03-04 17:47:56 -08:00
greenkeeper[bot] bcd582a1dc chore(package): update cross-env to version 3.2.0 (#1348)
https://greenkeeper.io/
2017-03-04 17:29:50 -08:00
Arunoda Susiripala ef2bbfee5a Add default entries to main.js (#1343)
So, we don't need to add them to individual pages.
This also fix the issue where, error pages doesn't ping the server.
2017-03-04 17:29:35 -08:00
Arunoda Susiripala 62fcb2b664 Add a global Promise polyfill. (#1344)
* Add a global Promise polyfill.
This is because Webpack2 depends on it.

* Change the polyfill location.
2017-03-04 11:48:33 -05:00
greenkeeper[bot] 888a029c75 fix(package): update unfetch to version 2.1.2 (#1338)
https://greenkeeper.io/
2017-03-03 09:19:05 -08:00
Tim Neutkens 2a1f8ad387 Fix linting errors in standard 9.0 (#1333)
* Fix linting errors in standard 9.0

* Update lockfile
2017-03-02 16:17:41 -08:00
Jared Palmer a0b16e03b8 Remove unused webpack import in flyfile.js (#1332) 2017-03-02 22:59:34 +01:00
Arana Jhonny bc47aac8f4 Fixed some problems with standard (#1331) 2017-03-02 22:46:16 +01:00
greenkeeper[bot] 631289f706 chore(package): update husky to version 0.13.2 (#1330)
https://greenkeeper.io/
2017-03-02 22:05:40 +01:00
Arunoda Susiripala db60fac2c2 Revert "Update friendly-errors-webpack-plugin to the latest version 🚀" (#1328) 2017-03-02 22:58:58 +05:30
Orlin M Bozhinov 38cc82d0bc With global stylesheet paths (#1327)
* with-global-stylesheet without relative paths and with node_modules

* a parenthetical remark about material-components-web not being part of the example
2017-03-02 08:37:58 -08:00
Tim Neutkens 40738c6e44 Throw Error when url.parse without true is parsed (#1282)
* Throw Error when url.parse without true is parsed

This is a bit more descriptive when this mistake is made by the user.

* Parse when needed

* Parse querystring if it is not provided
2017-03-01 15:30:07 -08:00
fridays 7c8cd4bc69 Example with next-routes (#1290)
* Example with next-routes

* optimize description

* rename to with-next-routes
2017-03-01 09:42:47 -08:00
greenkeeper[bot] fd8559c971 chore(package): update standard to version 9.0.0 (#1318)
https://greenkeeper.io/
2017-03-01 09:42:17 -08:00
greenkeeper[bot] 1f771eb2ee fix(package): update friendly-errors-webpack-plugin to version 1.6.0 (#1320)
https://greenkeeper.io/
2017-03-01 09:42:03 -08:00
Arunoda Susiripala 2aa9586052 Update prefetch docs and mention it's production only. (#1324) 2017-03-01 22:24:41 +05:30
Guillermo Rauch 7deca93a10 Release 2.0.0-beta.36 2017-02-28 15:02:33 -08:00
Arana Jhonny 68d48cb004 Update Koa example for Koa 2 with async/await (#1317) 2017-02-28 21:49:58 +01:00
Arunoda Susiripala 46b5d6a445 Fire the route cancel event only when needed. (#1316)
Earlier we do it for every route change.
2017-02-28 19:59:19 +01:00
Arunoda Susiripala 96fca5e2ad Add better hash URL support. (#1250)
* Add better hash URL support.
1. Add scrolling to given id related to hash
2. Hash changes won't trigger getInitialProps

* Add some comments.

* Fix tests.

* Add some test cases.
2017-02-28 09:31:17 -08:00