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

799 commits

Author SHA1 Message Date
Tim Neutkens 63e3262f2f Add message for missing peerDependencies (#1187)
* Add message for missing peerDependencies

* Remove exit

* Use console.warn
2017-02-23 17:00:37 +01:00
greenkeeper[bot] 48a2e3b5b8 chore(package): update jest-cli to version 19.0.1 (#1243)
https://greenkeeper.io/
2017-02-23 13:14:18 +01:00
Arunoda Susiripala fb496b7c9a Run tests in Travis. (#1247)
* Run tests in Travis.

* Update deps and config.

* Update jest config.

* Disable a test temp.

* Increase the timeout.
2017-02-22 23:38:49 +05:30
greenkeeper[bot] 468b75b8b0 fix(package): update friendly-errors-webpack-plugin to version 1.4.0 (#1242)
https://greenkeeper.io/
2017-02-22 13:31:41 +05:30
Tim Neutkens 9ba7a10f85 Fix linting errors (#1235) 2017-02-21 21:52:44 +01:00
Shawn Kelly 7d4d709587 fix: cmd+click Links (#1233)
Check currentTarget is 'A', not target. This is important when an anchor tag wraps another dom node.
2017-02-21 10:08:54 -08:00
greenkeeper[bot] 0ceeb6502a chore(package): update fly to version 2.0.5 (#1234)
https://greenkeeper.io/
2017-02-21 10:08:35 -08:00
greenkeeper[bot] 591be093c7 fix(package): update loader-utils to version 1.0.1 (#1231)
https://greenkeeper.io/
2017-02-21 16:40:47 +01:00
Fabien Le Frapper 22c22efc35 Fix missing dependencies (#1232)
Tried to pull & run this example, it failed, complaining about missing react & react-dom dependencies
2017-02-21 16:40:18 +01:00
greenkeeper[bot] 9d8ef921da chore(package): update jest-cli to version 19.0.0 (#1228)
https://greenkeeper.io/
2017-02-21 10:35:48 +01:00
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