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

2221 commits

Author SHA1 Message Date
Arana Jhonny e01056d3f1 example using inferno v1.0.* (#663)
* example using inferno v1.0.*

* fix name.
2017-01-05 09:26:01 -08:00
Craig Smith e38cacc4c2 Prevent prefetcher from making identical requests. (#665) 2017-01-05 19:16:20 +09:00
Greenkeeper b78ab40c9c chore(package): update gulp-jest to version 1.0.0 (#653) 2017-01-05 13:34:26 +09:00
Greenkeeper ef25cf698d chore(package): update webpack-hot-middleware to version 2.15.0 (#654) 2017-01-05 13:34:14 +09:00
Greenkeeper c01e306022 chore(package): update babel-preset-env to version 1.1.5 (#660) 2017-01-05 13:31:55 +09:00
Guillermo Rauch 45bc4fe465 Release 2.0.0-beta.13 2017-01-03 11:09:24 -08:00
Ovidiu Cherecheș 741500c603 Warn about webpack loaders (#638) 2017-01-03 10:06:55 -08:00
Arana Jhonny 1d700d0240 Aphrodite example. (#634)
* add aphrodite example

* fix props

* Update README.md
2017-01-03 10:06:04 -08:00
Naoyuki Kanezawa 0a3313d1b9 add the watch ignored setting (#636) 2017-01-03 10:05:04 -08:00
Arunoda Susiripala 6d6ef1ca9f Remove the use of fs.access (#625) 2017-01-02 16:50:01 -08:00
Arunoda Susiripala 01a17738db Reset prefetchCache when reloading a route. (#617)
* Reset prefetchCache when reloading a route.

* Prefetch again when there's a HMR reload.

* Make .send() to return a promise.
2017-01-02 20:18:14 +09:00
Arana Jhonny 856978918e Add cxs example. (#613)
* add cxs example

* fix example location
2017-01-01 22:35:14 -08:00
Naoyuki Kanezawa ef06aeee45 display error informations to top left (#615) 2017-01-01 22:32:42 -08:00
Naoyuki Kanezawa c1a620a7c4 Support relative urls on Link component (#614)
* link: support relative urls

* link: support protocol-relative urls

* router: fix error for clicking anchor tag
2017-01-01 22:22:07 -08:00
Greenkeeper 0cce0962d2 chore(package): update ansi-html to version 0.0.7 (#612) 2017-01-01 21:20:57 -08:00
Arunoda Susiripala 4b9f3fc431 Fix JSON pages not building on Windows (#611)
* Check for .json file extension before JSON parse. Was throwing when reading js files.

* Fix cross platform regex

* Revert back to the original content in read-page.js
2017-01-01 20:06:49 -08:00
Guillermo Rauch 43e2707e5d Release 2.0.0-beta.12 2017-01-01 11:41:28 -08:00
Naoyuki Kanezawa 897c60b4fd Fix error routes (#595)
* fix router error handlings

* respond with JSON when error occurs on JSON routes
2017-01-01 11:36:37 -08:00
Naoyuki Kanezawa 0854855197 Fix meta and styles on error page (#600)
* set meta tag for mobile on error page

* make error page center
2017-01-01 11:36:17 -08:00
nkzawa 64aa4454ac examples: fix SSR of styled-components 2017-01-01 20:24:48 +09:00
Arunoda Susiripala 33fa931207 Resolve the path in renderJSON before serving. (#599) 2017-01-01 19:07:56 +09:00
Guillermo Rauch 81a67581ed Release 2.0.0-beta.11 2016-12-31 21:57:58 -08:00
Naoyuki Kanezawa 1e308c7118 fix webpack resolve paths (#592) 2016-12-31 21:57:13 -08:00
Guillermo Rauch f2483cfe1c Release 2.0.0-beta.10 2016-12-31 20:26:59 -08:00
Greenkeeper dce7fad28f chore(package): update styled-jsx to version 0.3.2 (#585) 2016-12-31 20:26:33 -08:00
Guillermo Rauch 697010f9ae Release 2.0.0-beta.9 2016-12-31 12:37:31 -08:00
Guillermo Rauch 8df45d0ba9 Merge branch 'master' of github.com:zeit/next.js 2016-12-31 11:43:16 -08:00
Guillermo Rauch ec895a13a3 Release 2.0.0-beta.8 2016-12-31 11:43:05 -08:00
Naoyuki Kanezawa 8d543bd148 remove the monkeypatch of watchpack (#580) 2016-12-31 11:40:18 -08:00
nkzawa 629051db2c package.json: set publishConfig.tag 2016-12-31 23:01:20 +09:00
nkzawa 72b910a117 Release 2.0.0-beta.7 2016-12-31 22:19:57 +09:00
Arunoda Susiripala 3dae510d51 Add app's node_modules dir to resolveLoaders. (#583)
Otherwise, webpack will throw an error saying
it couldn't find entries.
That's because it couldn't find babel-loader and
other loaders installed into app's node_modules dir.
2016-12-31 22:17:52 +09:00
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