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

252 commits

Author SHA1 Message Date
Arunoda Susiripala d3b1ead149 Implement "on demand entries" (#1111)
* Add a plan for dynamic entry middleware.

* Use dynamic pages middleware to load pages in dev.

* Add the first version of middleware but not tested.

* Integrated.

* Disable prefetching in development.
Otherwise it'll discard the use of dynamic-entries.

* Build custom document and error always.

* Refactor code base.

* Change branding as on-demand entries.

* Fix tests.

* Add a client side pinger for on-demand-entries.

* Dispose inactive entries.

* Add proper logs.

* Update grammer changes.

* Add integration tests for ondemand entries.

* Improve ondemand entry disposing logic.

* Try to improve testing.

*  Make sure entries are not getting disposed in basic integration tests.

* Resolve conflicts.

* Fix tests.

* Fix issue when running Router.onRouteChangeComplete

* Simplify state management.

* Make sure we don't dispose the last active page.

* Reload invalid pages detected with the client side ping.

* Improve the pinger code.

* Touch the first page to speed up the future rebuild times.

* Add Websockets based pinger.

* Revert "Add Websockets based pinger."

This reverts commit f706a49a3d886d0231259b7a1fded750ced2e48f.

* Do not send requests per every route change.

* Make sure we are completing the middleware request always.

* Make sure test pages are prebuilt.
2017-02-26 11:45:16 -08:00
greenkeeper[bot] 48d8b248c8 fix(package): update cross-spawn to version 5.1.0 (#1293)
https://greenkeeper.io/
2017-02-26 19:44:22 +01:00
Tim Neutkens 408633c1dc Remove traces of glamor (#1286)
* Remove traces of glamor

As talked about with @rauchg. Glamor takes up around 60KB of the bundle (pre-gzip). Since styled-jsx is the way to go now and we support adding glamor by the user we should remove it as dependency cause it is bundled even when not used.

Added rehydration to the example, since we did that in our code.

There is only one thing I'm not sure about and want to discuss:
what should we do with next/css. Right now I added a throw for when it is imported. I'm not sure if we should do that / some other way to notify the user it has been removed. The reasoning behind the throw is that when we would do a console.warn the user would see 'css.default.<X>' not found because we don't have the glamor dependency anymore.

* Update yarn.lock

* Remove test for styles
2017-02-26 17:58:00 +05:30
Guillermo Rauch bb526fdf53 bump unfetch 2017-02-25 19:31:50 -08:00
Guillermo Rauch e7c85e0162 Revert "Remove unfetch because of production build errors. (#1288)"
This reverts commit 756a32aefd.
2017-02-25 19:28:24 -08:00
Arunoda Susiripala 756a32aefd Remove unfetch because of production build errors. (#1288)
See https://github.com/zeit/next.js/pull/1278#issuecomment-282528628
2017-02-26 08:26:55 +05:30
greenkeeper[bot] 9fc6b68180 fix(package): update unfetch to version 2.0.1 (#1284)
https://greenkeeper.io/
2017-02-25 12:43:47 -08:00
Dan Zajdband 216efa526b Using developit/unfetch as the Fetch API polyfill (#1278) 2017-02-25 15:49:27 -03:00
greenkeeper[bot] 898f90218e fix(package): update webpack-hot-middleware to version 2.17.1 (#1266)
https://greenkeeper.io/
2017-02-24 09:54:39 +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
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
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
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
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
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
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
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 1a8dd6bac3
Pinned dependencies 2017-02-16 23:53:39 +01:00
Guillermo Rauch db758e00ae Release 2.0.0-beta.29 2017-02-16 19:36:54 -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
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
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
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
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
Arunoda Susiripala 14c86bef1d Introduce a simple prefetching solution (#957)
* Implement a very simple prefetching solution.

* Remove next-prefetcher.

* Require 'whatwg-fetch' only in the client.

* Use xhr in the code.

* Use a simple fetching solution.

* Fix 404 and xhr status issue.

* Move the prefetching implementation to next/router.

* Add deprecated warnning for next/prefetch

* Run only 2 parellel prefetching request at a time.

* Change xhr to jsonPageRes.

* Improve the prefetching logic.

* Add unit tests covering the Router.prefetch()

* Update examples to use the new syntax.

* Update docs.

* Use execOnce() to manage warn printing.

* Remove prefetcher building from the flyfile.js
Because, we no longer use it.
2017-02-15 14:22:22 +05:30
greenkeeper[bot] 3766cd0013 fix(package): update babel-runtime to version 6.23.0 (#1136)
https://greenkeeper.io/
2017-02-15 04:31:50 +09:00
Guillermo Rauch 507e8c2ca4 Release 2.0.0-beta.26 2017-02-14 12:31:34 -03:00
Naoyuki Kanezawa 45e77d535f Fix status messages on error (#1131)
* fix status messages on error

* error: use the special message for 404
2017-02-14 16:15:42 +01:00
greenkeeper[bot] fb8f050667 fix(package): update glamor to version 2.20.23 (#1129)
https://greenkeeper.io/
2017-02-14 13:26:35 +01:00
greenkeeper[bot] 01213506ba fix(package): update babel-loader to version 6.3.0 (#1127)
https://greenkeeper.io/
2017-02-14 10:39:42 +01:00
greenkeeper[bot] cd894fb6e2 fix(package): update babel-core to version 6.23.1 (#1122)
https://greenkeeper.io/
2017-02-14 08:15:46 +05:30
Arunoda Susiripala 9d529ea0b1 Remove babell-plugin-transform-react-constant-elements. (#1102)
* Remove babell-plugin-transform-react-constant-elements.
With this, our shared-modules example's counter won't work in
production mode. (as this plugin enabled)
So, we could see more issues like this.
That's why we don't need this at this time.

* Update package.json.
2017-02-14 07:37:34 +05:30
Tim Neutkens 77c14f96b1 Add react-jsx-source for development (#1115) 2017-02-14 07:24:01 +05:30
greenkeeper[bot] b39a32a126 fix(package): update babel-preset-react to version 6.23.0 (#1121)
https://greenkeeper.io/
2017-02-14 07:14:19 +05:30
greenkeeper[bot] 674e1c785d fix(package): update styled-jsx to version 0.5.5 (#1114)
https://greenkeeper.io/
2017-02-13 18:57:17 -03:00
nkzawa 60bfd00ccf Release 2.0.0-beta.25 2017-02-14 02:32:05 +09:00
Tim Neutkens faef6e48e0 Remove pure-class-to-function (#1077)
* Optimize React

* Remove unused preset

* Remove pure-class-to-function
2017-02-11 07:42:12 +05:30
Tim Neutkens 250c066de5 Optimize React on next build (#1075)
* Optimize React

* Remove unused preset
2017-02-11 04:05:13 +09:00