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

2103 commits

Author SHA1 Message Date
Arunoda Susiripala 6f9b51fce6 Remove pageNotFound key from the error. 2017-04-11 14:51:28 +05:30
C. T. Lin 8e6615dcf9 upgrade react to v15.5 and use prop-types instead of React.PropTypes (#1684)
* upgrade react to v15.5 and use prop-types instead of React.PropTypes

* Update package.json
2017-04-11 00:05:26 +05:30
Kevin Donahue c9bfba6865 Only watch config file that exists on the level of source files (#1643) 2017-04-10 16:07:38 +02:00
Guillermo Rauch 0ed3978a51 add lock 2017-04-07 11:41:43 -07:00
Guillermo Rauch e4a42977a8 Release 2.1.1 2017-04-07 11:40:57 -07:00
Arunoda Susiripala 060cac3e3f Move all the modules used in 1/2 of all pages into the common chunks. (#1659) 2017-04-07 11:39:00 -07:00
Arunoda Susiripala 0007cd2a97 [custom server] Handle internal routes automatically (#1658)
* Implement the initial version.

* Improve the render logic a bit.

* Move all the webpack paths under /_next/

* Keep the log:false flag.
2017-04-07 10:58:35 -07:00
Remy Sharp 0487956c47 docs: don't blow away existing query string (#1638)
* docs: don't blow away existing query string

See comments in diff - I ran across this and it took me a while to work out why my client side code worked, but the server didn't. It was because I didn't realise that `.render`'s 3rd arg was the query object, so it was losing the _actual_ query string.

* chore: remove trailing spaces

¯\_(ツ)_/¯ I think!
2017-04-07 10:01:40 -07:00
greenkeeper[bot] feb62816e0 chore(package): update chromedriver to version 2.29.0 (#1648)
https://greenkeeper.io/
2017-04-07 10:00:43 -07:00
greenkeeper[bot] 5a48e8afa3 fix(package): update babel-plugin-transform-react-remove-prop-types to version 0.3.3 (#1649)
https://greenkeeper.io/
2017-04-07 09:58:44 -07:00
Arunoda Susiripala 0b8a14f35c Use existing route info when Router.reload() is called. (#1654)
Earlier, it tries to get that info from the location.href.
That's incorrect.
2017-04-07 09:52:41 -07:00
alex newman 8d2bbf940d Refactor the build server to remove tie to fs (#1656) 2017-04-07 09:52:12 -07:00
Guillermo Rauch 6e0e2307da Release 2.1.0 2017-04-06 10:29:18 -07:00
Arunoda Susiripala 866319c76d Merge with master. 2017-04-06 15:44:05 +05:30
alex newman 9347c8bdd0 Specify a different build directory for #1513 (#1599)
* Update references to `.next`

* Remove console logs and extraneous semi colons

* Remove lint errors

* Update references to .next and update docs

* Update options from nested to flat with `distDir`

* Add integration tests, and update `.gitignore`

* Rename integration folder to dist-dir to match standards
2017-04-06 15:39:26 +05:30
Arunoda Susiripala 4f26e84ff2 Move webpack idle wait code to the page-loader.
Because that's the place to do it.
2017-04-06 12:19:00 +05:30
Arunoda Susiripala 751d2e9853 Remove lib/eval-script.js
We no longer need it.
2017-04-06 11:42:36 +05:30
Arunoda Susiripala e46edc2460 Load everything async. 2017-04-06 11:41:13 +05:30
Arunoda Susiripala f6f175db73 Remove some unwanted code. 2017-04-06 11:01:44 +05:30
Arunoda Susiripala 65a2603917 Rename NEXT_LOADED_PAGES into __NEXT_LOADED_PAGES__ 2017-04-06 10:58:04 +05:30
Arunoda Susiripala 32cdf3f2d0 Rename NEXT_PAGE_LOADER into __NEXT_PAGE_LOADER__ 2017-04-06 10:56:13 +05:30
Arunoda Susiripala 5aa02d0727 Remove the json-pages plugin. 2017-04-06 10:33:11 +05:30
Paul Molluzzo 12a7610d9a Add example using glamorous 💄 (#1620)
* Add example using glamorous 💄

* Fix linting errors

* Fix FOUC with server rendering and rehydration

* Camelcase CSS property names

* Fix title in README

* Fix typo in README
2017-04-05 17:54:42 -07:00
Vinay Puppal 897ff6c010 fix typo in with-universal-configuration example (#1628) 2017-04-05 17:54:00 -07:00
Arunoda Susiripala 76bfc38a09 Remove all the inline code. 2017-04-05 17:13:34 +05:30
Robin Millette 8c19286a4d Add glob dependency (glob-promise peer). (#1624) 2017-04-05 09:22:32 +02:00
Arunoda Susiripala 822a99b0d5 Get rid of eval completely. 2017-04-05 12:15:39 +05:30
Arunoda Susiripala 57e3a67f62 Fix unit tests. 2017-04-05 08:46:48 +05:30
Arunoda Susiripala 6f65a053a8 Fix ondemand test cases. 2017-04-05 08:21:20 +05:30
Arunoda Susiripala a1f11a4660 Fix production tests. 2017-04-05 08:18:15 +05:30
Arunoda Susiripala 03209d88fd Fix some issues related to rendering. 2017-04-05 02:38:38 +05:30
Arunoda Susiripala e3d68ff401 Fix a typo and remove unwanted code. 2017-04-05 02:05:25 +05:30
Arunoda Susiripala c95d2b28d0 Implement router using the page-loader. 2017-04-05 01:25:56 +05:30
greenkeeper[bot] ee91726d75 fix(package): update webpack-hot-middleware to version 2.18.0 (#1586)
https://greenkeeper.io/
2017-04-03 19:49:22 -07:00
Arunoda Susiripala 8938843025 Call ensurePage only in the dev mode. 2017-04-03 23:44:42 +05:30
Arunoda Susiripala a0945c7800 Introduce script tag based page loading system. 2017-04-03 23:40:24 +05:30
greenkeeper[bot] 1e88331baf fix(package): update webpack to version 2.3.3 (#1604)
https://greenkeeper.io/
2017-04-03 18:37:14 +05:30
Alexander Ryzhikov d10d80ce3c Fix react-helmet example missing initial props (#1598)
* Fix react-helmet example missing initial props

* Fix semicolon
2017-04-03 09:51:26 +05:30
Tim Neutkens 7f0591896a Use latest version of Next for all examples (#1597)
* Use latest for all examples

* Update yarn.lock
2017-04-03 09:46:35 +05:30
Kevin Donahue f9aa7bdbc1 Fix typo in signal message on process close event (#1601) 2017-04-03 09:19:29 +05:30
Kevin Donahue 191d65889b Fix typo in Shallow Routing doc (#1593) 2017-04-02 09:28:39 +02:00
Arunoda Susiripala 5fcb49632e Introduce better debug error handling (#1592)
* Introduce better debug error handling
With this we are rendering runtime and debug errors inside
a it's own error root.
That gives us better error handling and control.
Also, now we are patching React core to capture runtime errors.

* Render the initial error on the server.
2017-04-01 14:03:40 -07:00
Arunoda Susiripala 87ff667e6e Revert "Introduce better debug error handling (#1590)" (#1591)
This reverts commit 0bdd321654.
2017-04-01 13:23:09 -07:00
Arunoda Susiripala 0bdd321654 Introduce better debug error handling (#1590)
With this we are rendering runtime and debug errors inside
a it's own error root.
That gives us better error handling and control.
Also, now we are patching React core to capture runtime errors.
2017-04-01 13:09:16 -07:00
greenkeeper[bot] b176f33142 fix(package): update babel-plugin-module-resolver to version 2.6.2 (#1571)
https://greenkeeper.io/
2017-03-31 18:10:42 -07:00
greenkeeper[bot] 407f8b66e5 fix(package): update webpack to version 2.3.2 (#1502)
https://greenkeeper.io/
2017-04-01 00:51:14 +02:00
greenkeeper[bot] ce78c9654d chore(package): update cross-env to version 4.0.0 (#1572)
https://greenkeeper.io/
2017-04-01 00:50:23 +02:00
greenkeeper[bot] b298460331 fix(package): update case-sensitive-paths-webpack-plugin to version 2.0.0 (#1581)
https://greenkeeper.io/
2017-03-31 15:15:54 -07:00
jwalter 9393440402 Remove babelrc from preact example doc (#1583)
The mentioned .babelrc usage is not needed for using preact with Next anymore. The actual code change was merged in (#1194)
2017-03-31 15:15:28 -07:00
Arunoda Susiripala 6ab3e6606d Add test cases for getInitialProps based redirect logic. (#1578)
With that, we are making sure we don't break this
functionality in the future.
2017-03-31 11:35:45 -03:00