Arunoda Susiripala
753113bb9c
Add some tests for dynamic rendering.
2017-04-27 08:39:52 -07:00
Arunoda Susiripala
7fcd1ea760
Add async-reactor example.
2017-04-27 08:22:25 -07:00
Arunoda Susiripala
857a1d3138
Add some test cases for the same loop promise.
2017-04-27 08:16:38 -07:00
Arunoda Susiripala
17329edcc9
Handle require.ensure errors well.
...
Introduce a new Promise library which runs on the same eventloop.
2017-04-19 23:55:06 +05:30
Arunoda Susiripala
b5a03a3896
Implement ssr=false support.
2017-04-18 22:21:31 +05:30
Arunoda Susiripala
f2bfcd01b0
Add an example with custom loading component.
2017-04-18 22:07:57 +05:30
Arunoda Susiripala
90ea471aa7
Merge master into dynamic-import.
2017-04-18 21:42:21 +05:30
Arunoda Susiripala
f82e52935d
Implement ETag support for server rendered pages. ( #1693 )
2017-04-18 21:15:42 +05:30
Arunoda Susiripala
e0f71d8448
Use babel-preset-env instead of babel-preset-latest. ( #1701 )
...
Here we don't use the full capabilities of babel-preset-env.
But it's recommended to use it without browser configs as
a substitute for babel-preset-latest.
That's why we did this.
2017-04-18 19:28:34 +05:30
Arunoda Susiripala
b3f15f8d5c
Fix a typo. ( #1749 )
2017-04-18 19:14:26 +05:30
Arunoda Susiripala
dec85fe6c4
Add CDN support with assetPrefix ( #1700 )
...
* Introduce script tag based page loading system.
* Call ensurePage only in the dev mode.
* Implement router using the page-loader.
* Fix a typo and remove unwanted code.
* Fix some issues related to rendering.
* Fix production tests.
* Fix ondemand test cases.
* Fix unit tests.
* Get rid of eval completely.
* Remove all the inline code.
* Remove the json-pages plugin.
* Rename NEXT_PAGE_LOADER into __NEXT_PAGE_LOADER__
* Rename NEXT_LOADED_PAGES into __NEXT_LOADED_PAGES__
* Remove some unwanted code.
* Load everything async.
* Remove lib/eval-script.js
We no longer need it.
* Move webpack idle wait code to the page-loader.
Because that's the place to do it.
* Remove pageNotFound key from the error.
* Remove unused error field 'buildError'
* Add much better logic to normalize routes.
* Get rid of mitt.
* Introduce a better way to register pages.
* Came back to the mitt() based page-loader.
* Add link rel=preload support.
* Add assetPrefix support to add support for CDNs.
* Add assetPrefix support for preload links.
* Update readme.md
2017-04-17 21:18:43 -07:00
Arunoda Susiripala
dfa28815a5
Add server side rendering for dynamic imports.
2017-04-18 01:45:50 +05:30
Arunoda Susiripala
f51300f14b
Add core import() support.
2017-04-17 21:03:40 +05:30
Xavier Brown
bdc30bc089
Update readme.md ( #1741 )
...
The link element in the example code didn't end its first bracket before <a>
2017-04-17 09:00:12 +05:30
Orlin M Bozhinov
b46502f8f1
corrected css pre-processing #readme link ( #1709 )
2017-04-14 17:54:55 -03:00
greenkeeper[bot]
b32f5e3814
fix(package): update babel-plugin-transform-react-remove-prop-types to version 0.4.0 ( #1713 )
...
https://greenkeeper.io/
2017-04-14 02:53:52 +05:30
Jaga Santagostino
2103e0541b
remove roadmap to 2.0 ( #1711 )
...
2.0 is already released
2017-04-13 20:43:30 +05:30
Arunoda Susiripala
e054430026
Fix a typo
2017-04-13 20:32:05 +05:30
Jaga Santagostino
a52458181a
Add learnnextjs link ( #1710 )
...
* Add learnnextjs link
* fix typos
2017-04-13 16:43:06 +02:00
greenkeeper[bot]
af1afa472b
chore(package): update babel-eslint to version 7.2.2 ( #1703 )
...
https://greenkeeper.io/
2017-04-13 06:43:27 +05:30
greenkeeper[bot]
4df6f5b434
fix(package): update prop-types to version 15.5.7 ( #1695 )
...
https://greenkeeper.io/
2017-04-13 06:37:06 +05:30
Arunoda Susiripala
6f735eeb05
Fix a typo.
2017-04-12 21:42:04 +05:30
Arunoda Susiripala
95558ae47c
Add link rel=preload support.
2017-04-12 16:11:54 +05:30
Arunoda Susiripala
6e0e7b4d5a
Came back to the mitt() based page-loader.
2017-04-11 22:07:59 +05:30
Arunoda Susiripala
7997c1fd3c
Introduce a better way to register pages.
2017-04-11 20:03:18 +05:30
Leo Lamprecht
2337827c40
We are not in beta anymore, so remove publishConfig
...
Added in 629051db2c
2017-04-11 13:07:00 +02:00
Arunoda Susiripala
fb2f90bec1
Get rid of mitt.
2017-04-11 15:35:29 +05:30
Arunoda Susiripala
c077ebe7ba
Add much better logic to normalize routes.
2017-04-11 15:12:22 +05:30
Arunoda Susiripala
b5bd0daf62
Remove unused error field 'buildError'
2017-04-11 14:55:53 +05:30
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