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
Arunoda Susiripala 165924b71b Add Gzip support for JSON pages (#571)
* Server JSON pages directly from the filesystem.

* Make Json pages even if there's an error.

* Implement much better page serving.

* Use JsonPagesPlugin in the production mode as well.

* Add gzip support for JSON pages.

* Use glob-promise instead of recursive-readdir

* Handle renderStatic 404 properly.

* Simply the gzip code.

* Cache already read JSON pages.

* Change JSON pages extension to .json.

* Fix HMR related issue.

* Fix hot-reload for .json solely on server.

* Properly clear cache on hot-reloader.

* Convert .js pages into .json page right inside the plugin.

* Fix gzipping .json pages.

* Remove unwanted json pages cleanup.

* Get rid of deprecated fs.exists for fs.access
2016-12-31 21:46:23 +09:00
Guillermo Rauch 56ca84bae2 Release 2.0.0-beta.6 2016-12-30 18:39:08 -08:00
Guillermo Rauch 5ab71d16b1 Update README.md 2016-12-30 17:37:06 -08:00
Arunoda Susiripala c890dc3573 Implement Router Events (#511)
* Move route loading logic to a common place.

* Add router events.

* Add EventEmitter's core API methods.

* Add example app for loading events and docs.

* Fix some typos.

* Get rid of Router.ready()

* Remove events package.
It's already shipping with webpack.

* Handling aborting properly.

* Expose simple attribute based events listener API.
Removed the proposed event listener API from the public API.

* Remove error logged when there's an abort error.
There are many other ways to capture this error.
So, it doesn't look nice to print this always.

* Change router events to pass only the current URL as arguments.

* Add a section about Cancelled Routes to README.
2016-12-30 17:15:22 -08:00
Greenkeeper 6d8079a261 chore(package): update glamor to version 2.20.20 (#578) 2016-12-30 12:56:45 -08:00
Naoyuki Kanezawa c210a2e73c check if response is already sent (#569) 2016-12-30 11:55:20 -08:00
Naoyuki Kanezawa 0f11018819 fix getInitialProps called on client on first load (#572) 2016-12-30 11:55:00 -08:00
Naoyuki Kanezawa f7ee50323d use Promise to update head (#574) 2016-12-30 11:14:36 -08:00
nkzawa 1fbf324883 update yarn.lock 2016-12-30 16:19:09 +09:00
nkzawa 98db4b51c6 bump styled-jsx 2016-12-30 16:18:32 +09:00
Arunoda Susiripala 29c226771c Add AOT gzip content-encoding support for main build files. (#565)
* Add AOT gzip content-encoding support.
Currently we only do this for
main.js and commons.js only.

* Remove unwanted await.

* Use Promise.all to gzip assets in parallel.
2016-12-29 14:38:19 -08:00
Greenkeeper 84fc6781bb chore(package): update glamor to version 2.20.19 (#567) 2016-12-29 14:37:46 -08:00
Stephen Mathieson 369bc873f8 examples/nested-components: use an apostrophe rather than a prime (#566)
This is just my OCD, but this file is much easier on the eyes when apostrophes are used rather than primes. It's also proper, as the [prime](https://en.wikipedia.org/wiki/Prime_(symbol)) is used in mathematics, not written English.
2016-12-29 10:50:36 -08:00
Tim Neutkens 030a1ed6a9 Clean up docs about next/babel (#557)
* Clean up docs about next/babel

* Add suggestions from #553
2016-12-29 10:58:28 -03:00
Dan Zajdband 31703d4c78 Fixed log on component prefetch (#563) 2016-12-29 22:56:22 +09:00
Tim Neutkens e8985b3588 Add warning for multiple children in Link (#558)
* Add warning for multiple children in Link

* Add space after if

* Use proptype validation
2016-12-29 21:53:20 +09:00
Greenkeeper 892da7eb73 chore(package): update glamor to version 2.20.18 (#551) 2016-12-28 12:23:31 -08:00
Naoyuki Kanezawa ff117b7ed6 Webpack 2 (#449)
* upgrade webpack

* fix WatchRemoveEventPlugin for webpack2

* use webpack2 for building for files

* bump webpack

* bump webpack

* monkeypatch watchpack
2016-12-28 10:16:52 -08:00
Naoyuki Kanezawa 917a96a1cd set build and start npm scripts on all examples (#549) 2016-12-28 10:12:24 -08:00
nkzawa b0eb0ea353 fix install script of .travis.yml 2016-12-28 18:32:20 +09:00
nkzawa 3c909a2ae5 update .travis.yml 2016-12-28 18:21:53 +09:00
Greenkeeper 4fdfaa5ada chore(package): update glamor to version 2.20.17 (#548) 2016-12-28 17:39:26 +09:00
nkzawa ae102f96f0 Release 2.0.0-beta.5 2016-12-28 14:40:28 +09:00
Naoyuki Kanezawa 242758e3ee fix navigation failure (#546) 2016-12-27 21:27:52 -08:00
Guillermo Rauch 0c6efce5f0 yarn.lock (#528) 2016-12-27 18:24:33 -08:00
Guillermo Rauch 58ce55f305 Release 2.0.0-beta.4 2016-12-27 15:34:54 -08:00
Naoyuki Kanezawa 798fd3c1e8 Fix custom document compilation (#534)
* compile _document using webpack

* don't emit the bundle file of _document.js

* exclude _document.js from minChunks of CommonsChunkPlugin

* handle creation/removal of pages/_document.js

* improve path handlings
2016-12-27 15:28:19 -08:00
Naoyuki Kanezawa 815f17989b fix config path (#537) 2016-12-27 15:27:51 -08:00
Greenkeeper 65e7ab0227 chore(package): update glamor to version 2.20.15 (#542) 2016-12-27 15:27:35 -08:00
Arunoda Susiripala 1ba315fcc1 Add a preact example. (#543)
* Add preact example.

* Update .babelrc
2016-12-27 10:58:10 -08:00
nkzawa de7801df2d example: fix npm script (fix #526) 2016-12-27 23:39:00 +09:00
Greenkeeper 9c7da4ead9 chore(package): update glamor to version 2.20.14 (#539) 2016-12-27 23:30:59 +09:00
Greenkeeper 9e69ba7b49 chore(package): update glamor to version 2.20.13 (#535) 2016-12-27 17:34:37 +05:30
Guillermo Rauch d022cd9f24 Update README.md 2016-12-26 15:14:27 -08:00
Guillermo Rauch 1456af8fd6 Release 2.0.0-beta.3 2016-12-26 14:17:09 -08:00
Arunoda Susiripala d580b8f0c9 Use ^2.0.0-beta as the version for with-prefetching example. (#530) 2016-12-26 12:37:03 -08:00
Greenkeeper df997faeb0 chore(package): update styled-jsx to version 0.3.0 (#529) 2016-12-26 11:47:31 -08:00
Arunoda Susiripala ac2a71876d Add support for using .babelrc in the app root. (#493)
* Add support for using .babelrc in the app root.

* Update the README about the .babelrc usage.

* Fix a typo.

* Remove additional example usage.
2016-12-26 10:13:45 -08:00
Naoyuki Kanezawa ad0f0a4d79 watch-page-plugin: prevent null access (#523) 2016-12-26 10:13:28 -08:00
nkzawa 1888a251a8 fix npm script on examples 2016-12-26 12:59:09 +09:00
Arunoda Susiripala 157d9aebf7 Remove strict-mode from the eval-script. (#520)
* Remove strict-mode from the eval-script.

* Use exact version for babel-plugin-transform-remove-strict-mode

* Use babelrc=false
2016-12-26 12:29:53 +09:00
Greenkeeper 499a4f111a chore(package): update styled-jsx to version 0.2.4 (#519) 2016-12-25 16:29:23 -08:00
Naoyuki Kanezawa d1f8b1aef1 fix recovering runtime error (#515) 2016-12-25 12:03:07 -08:00
Greenkeeper 78e21d0f74 chore(package): update source-map-support to version 0.4.8 (#514) 2016-12-25 23:04:49 +09:00
Ian Mitchell 355dbf8fdd Fix SSR Cache Example (#510) 2016-12-25 00:38:35 +05:30
Guillermo Rauch e81852c742 Update README.md 2016-12-24 09:57:15 -08:00
Naoyuki Kanezawa af2d78c042 router: register initial route (#508) 2016-12-24 09:29:23 -08:00
Greenkeeper 87e136501f chore(package): update benchmark to version 2.1.3 (#509) 2016-12-24 09:27:50 -08:00
James O'Dwyer 200f8eecb2 Add warning about module.exports use (#505)
* add warning about module.exports to readme

* rm unnecessary react imports
2016-12-24 09:53:08 +05:30
nkzawa b9f875318e Release 2.0.0-beta.2 2016-12-24 11:05:22 +09:00