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

2539 commits

Author SHA1 Message Date
Davide Bertola d4b018e91f add ‘with-refnux’ example (#1215) 2017-02-20 20:13:05 -08:00
greenkeeper[bot] 7aa9f5424d fix(package): update loader-utils to version 0.2.17 (#1225)
https://greenkeeper.io/
2017-02-20 20:12:10 -08:00
Guillermo Rauch c866540601 Release 2.0.0-beta.32 2017-02-20 15:51:19 -08:00
Arunoda Susiripala 0bd250f4aa Handle BUILD_ID mismatch error (#1224)
* Reload the page if the buildIds are mismatch.

* Reload the browser with main.js and commons.js buildId mismatch.

* Implement proper reloading with an API to persist the state.

* Add some tests for force reload.

* Change _reload to _forceReload.

* Add a section about reload hooks to the README.

* Allow to add a hook to handle BUILD_ID mismatch.

* Remove readme docs.

* Do not show a custom error to the user.

* Cancel the routing when there's a BUILD_ID mismatch.

* Fix a typo.

* Passing route to SingletonRouter.onBuildIdMismatch

* Handle buildId mismatch automatically.
2017-02-20 15:48:17 -08:00
Tim Neutkens 20c7d98efe Move lastAppProps back where it should be (#1208)
* Check for lastAppProps

* Move lastAppProps back where it belongs

* Add comment
2017-02-20 05:35:48 +09:00
Tim Neutkens 310f430963 Rename next/prefetch to <Next prefetch> in docs (#1206) 2017-02-19 23:56:33 +09:00
Tim Neutkens e5844314e3 Fix linting errors (#1197) 2017-02-18 20:12:19 +01:00
greenkeeper[bot] 90f2ee6fb7 fix(package): update webpack-dev-middleware to version 1.10.1 (#1200)
https://greenkeeper.io/
2017-02-18 20:11:27 +01:00
胡子大哈 bdd5b9ef3d Add note for next-connect-redux #1193 (#1203) 2017-02-18 19:39:34 +01:00
Guillermo Rauch 47e5231cdd Revert "Use the original idea of provider wrapper for redux example (#1201)"
This reverts commit ba54c6ac3d.
2017-02-18 14:11:54 -03:00
胡子大哈 ba54c6ac3d Use the original idea of provider wrapper for redux example (#1201)
Use the original idea of provider wrapper from #1193 and remove
unnecessary `initStore` in every page.
2017-02-18 14:03:02 -03:00
greenkeeper[bot] 6268105807 fix(package): update styled-jsx to version 0.5.7 (#1198)
https://greenkeeper.io/
2017-02-18 15:07:09 +01:00
Kirill Konshin f0cb5b71a0 Added next-redux-wrapper to example (#1196)
* Added next-redux-wrapper to example

* Docs, renamed withRedux
2017-02-18 01:10:27 -03:00
Tim Neutkens 00590d7181 Remove babelrc for preact example (#1194) 2017-02-17 20:03:02 -03:00
Thomas Lindstrøm 6e5d57dae9 Add example with-scoped-stylesheets-and-postcss (#1146)
* Add example `with-external-stylesheets-and-postcss`

* 🔥 Remove extra semi-colon

* 📝 Attribute `with-global-stylesheet`

* Force a new test

* 📝 Update README.md

* Rename `external` -> `scoped`
2017-02-17 16:04:58 +01:00
Tim Neutkens 45de5b8374 Lowercase file name (#1190) 2017-02-17 14:36:47 +01:00
Emil Bruckner d30363800d Fix link to contributing.md (#1188)
CONTRIBUTING.md -> 404
2017-02-17 14:32:56 +01:00
Leo Lamprecht 4f1a446688
Peer dependencies shouldn't be pinned 2017-02-17 13:24:50 +01:00
Guillermo Rauch 49eb8d2f54 Release 2.0.0-beta.31 2017-02-17 02:03:05 -03:00
Guillermo Rauch b621f2d840 Release 2.0.0-beta.30 2017-02-17 02:02:07 -03:00
Arunoda Susiripala f4337d3072 Make sure reading the body of same JSON page request safe. (#1185)
* Make sure reading the body of same JSON page request safe.
It's not possible to read the body twice from fetch()'s response
So, we've to clone the response before doing anything.

* Fix tests.
2017-02-17 01:12:32 -03:00
greenkeeper[bot] 9f3e61b0fe fix(package): update styled-jsx to version 0.5.6 (#1184)
https://greenkeeper.io/
2017-02-17 00:25:53 -03:00
Leo Lamprecht 48d8e4f246
Updated lockfile for yarn 2017-02-17 00:01:21 +01:00
Leo Lamprecht 73f493cba5
is part of the build output 2017-02-16 23:55:28 +01:00
Leo Lamprecht 009dc90b4a
No comments allowed in JSON 2017-02-16 23:54:55 +01:00
Leo Lamprecht 70f02ea8af
Lowercased text files 2017-02-16 23:54:22 +01:00
Leo Lamprecht 1a8dd6bac3
Pinned dependencies 2017-02-16 23:53:39 +01:00
Dan Zajdband e33a7dbc25 Now that we have react-dom as a peerDependency this import issue was fixed (#1183) 2017-02-16 19:44:43 -03:00
Guillermo Rauch db758e00ae Release 2.0.0-beta.29 2017-02-16 19:36:54 -03:00
Guillermo Rauch 1b9e8771ec Revert "Add a way to disable running service workers. (#1167)"
This reverts commit d8af41d690.
2017-02-16 19:35:36 -03:00
Guillermo Rauch 59726866a5 Release 2.0.0-beta.28 2017-02-16 17:34:07 -03:00
Joe Lutz 2e0db62b52 Fix "EXDEV: cross-device link not permitted" error (#1174)
* Fix "EXDEV: cross-device link not permitted" error

* Fix lint errors

Not sure why standard passes in my dev environment, but hopefully this fixes the CI errors.

* Fix logic mistake

Wow, my bad :/
2017-02-16 15:16:02 +01:00
greenkeeper[bot] d5208389be fix(package): update babel-loader to version 6.3.2 (#1178)
https://greenkeeper.io/
2017-02-16 11:20:55 +01:00
greenkeeper[bot] d64f5aa7d9 fix(package): update friendly-errors-webpack-plugin to version 1.3.1 (#1176)
https://greenkeeper.io/
2017-02-16 09:46:09 +01:00
greenkeeper[bot] 1f2e52dbb6 fix(package): update webpack-hot-middleware to version 2.17.0 (#1162)
https://greenkeeper.io/
2017-02-15 23:49:08 -03:00
Fin Hopkins 47d57f4bcd Async render fixes for #1170 (#1172)
The change in #1155 to remove server-side gzipping changed static
rendering to no longer return a promise, which broke the Hapi example
that was waiting for a resolved promise before closing the request.

This PR fixes up all render or serve methods of server.js to
consistently either await and/or return. Additionally, it collapses
serveStatic and _serveStatic, as _serveStatic no longer needs to be
factored out.
2017-02-15 23:48:35 -03:00
Fin Hopkins 8a5250985f Changes hard-coded module aliases to be relative (#1164)
Without this, modules built with Babel or Webpack would have hard-coded absolute paths
all the way back to the root of the filesystem. This prevented compilation and running
on different machines or even from different directories on the same machine.

With this change, paths are hard-coded to the top-most node_madules directory found,
which should make them portable relative to the app.

Fixes #1160
2017-02-16 07:37:29 +05:30
greenkeeper[bot] 711588f76e fix(package): update friendly-errors-webpack-plugin to version 1.3.0 (#1169)
https://greenkeeper.io/
2017-02-16 01:49:49 +01:00
Fabien Le Frapper 561087fa04 Fix typo in a href example (#1168) 2017-02-16 01:35:25 +01:00
Arunoda Susiripala d8af41d690 Add a way to disable running service workers. (#1167) 2017-02-15 21:13:27 -03:00
greenkeeper[bot] 2c9c84e143 fix(package): update babel-loader to version 6.3.1 (#1145)
https://greenkeeper.io/
2017-02-16 05:14:25 +09:00
Naoyuki Kanezawa 8e4e2e3e01 improve prefetch (#1161) 2017-02-16 00:59:42 +05:30
Arunoda Susiripala 00e7a29731 Move the test babel setup to the main babelrc file. (#1163)
* Move the test babel setup to the main babelrc file.

* Add es2015 preset.
2017-02-16 00:43:31 +05:30
Guillermo Rauch 09442173ea Release 2.0.0-beta.27 2017-02-15 15:59:02 -03:00
Arunoda Susiripala 412f9739d8 Reload the page if asked to change the current URL (#1159)
* Add support to reload the page when ask to change the same url.

* Do not run change() in the initial page load.

* Add integration tests.

* Add self-reload.js
2017-02-15 19:27:41 +01:00
Arunoda Susiripala b2360ec567 Completely delete the build dir. (#1158) 2017-02-15 17:31:21 +01:00
greenkeeper[bot] fa590bfd7a fix(package): update friendly-errors-webpack-plugin to version 1.2.0 (#1156)
https://greenkeeper.io/
2017-02-15 13:18:09 -03:00
Tim Neutkens fca186f9e7 Remove pre-gzip support (#1155) 2017-02-15 15:49:45 +01:00
Naoyuki Kanezawa 540a86f007 fix prefetch url (#1154) 2017-02-15 15:01:03 +01:00
Naoyuki Kanezawa 141ab99888 build on tmp dir (#1150) 2017-02-15 10:03:33 -03:00