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

1037 commits

Author SHA1 Message Date
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
greenkeeper[bot] 25414acf15 fix(package): update friendly-errors-webpack-plugin to version 1.5.0 (#1315)
https://greenkeeper.io/
2017-02-28 14:40:52 +01:00
Arunoda Susiripala 818cd63ee9 Fire the route cancelled error right away. (#1312)
Earlier it wait until the JSON page is fetched.
But that's wrong and it affects when using libs like NProgress.
2017-02-28 09:48:40 +01:00
Arunoda Susiripala fd430e53bf Revert "Ignore .next from hot reload watcher" (#1313) 2017-02-28 09:46:11 +01:00
Guillermo Rauch 012c4d1f81 Release 2.0.0-beta.35 2017-02-27 21:50:33 -08:00
Arunoda Susiripala c79d2676d2 Disable common chunks plugin in dev. (#1311)
With the on-demand-entires, this makes no sense.
2017-02-27 21:49:49 -08:00
Tim Neutkens e1babdfe9d Render styled-jsx in _document example (#1287) 2017-02-28 05:15:49 +05:30
Guillermo Rauch 1971517c17 Release 2.0.0-beta.34 2017-02-27 15:21:01 -08:00
Tim Neutkens 4620cd8cd6 Ignore .next from hot reload watcher (#1307)
* Move on-demand-entries-ping to _next namespace

* Ignore .next from watching
2017-02-27 13:35:17 -08:00
Arunoda Susiripala ee56636660 Make sure to invalidate only once before webpack complete the build. (#1297)
* Make sure to invalidate only once before webpack complete the build.

* Increase the touch timeout to 1 sec.
2017-02-27 12:05:10 -08:00
Tim Neutkens ebb397975d Add benchmarks for server rendering (#1294)
* Add benchmarks for server rendering

* Remove bench from flyfile
2017-02-27 12:04:41 -08:00
Tim Neutkens b37431461d Move on-demand-entries-ping to _next namespace (#1305) 2017-02-27 12:04:01 -08:00
Tim Neutkens 01fa65d4a2 Unregister old serviceworker code (#1304)
Bring back 1b9e8771ec with a check for the prefetch serviceworker + if it is supported by the browser
2017-02-27 11:15:39 -08:00
greenkeeper[bot] 9e9382936c fix(package): update send to version 0.15.0 (#1285)
https://greenkeeper.io/
2017-02-27 16:33:02 +01:00
greenkeeper[bot] e8b59fdf36 fix(package): update unfetch to version 2.1.1 (#1298)
https://greenkeeper.io/
2017-02-27 10:51:08 +05:30
Tim Neutkens f8f90955c5 Add prefetch to propTypes + flow typings (#1295) 2017-02-27 10:50:28 +05:30
Guillermo Rauch 8399ea70d4 Release 2.0.0-beta.33 2017-02-26 11:47:50 -08:00
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 1417f3040b ponify (#1278) 2017-02-25 19:41:17 -08:00
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
Marshall Bowers 8a6c57de00 Add better documentation around url.parse (#1281) 2017-02-25 19:35:10 +01:00
Sébastien Dubois 6ede206d82 update link prefetch syntax in examples (#1276) 2017-02-25 15:54:42 +01:00
Eric Ferraiuolo e24db68f8b Add example app with React Intl (#1055)
* Add example app with React Intl

Fixes #1022

* Update examples/with-react-intl/package.json to be consistent
2017-02-24 22:45:18 +01: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
Joe Lutz e3bf20cbcf Fix relative module aliases for Windows (#1249)
* Fix relative module aliases for Windows

* Update regular expressions to use `path.sep` instead of `[\\/]`

* Make the minimal changes possible.
2017-02-24 04:49:34 +05:30
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