Commit Graph

118 Commits

Author SHA1 Message Date
Pim
174c13d56c feat(vue-app): support configurable features (#6287) 2019-09-05 17:15:27 +02:00
Pim
df424e56cb feat(vue-renderer): support prepend/append body tags during ssr for all allowed tag types (#6134) 2019-08-19 23:08:13 +04:30
Xin Du (Clark)
35ba65562f fix(vue-renderer): call render:resourcesLoaded hook before createRenderer (#6223)
fixes #5960
2019-08-13 01:25:21 +04:30
Dzmitry Bachko
76b1167d27 fix: modulepreload warnings (#6118) 2019-07-24 18:01:33 +01:00
pooya parsa
e7cc2757c3 refactor: update eslint-config to 1.x
Co-authored-by: Alexander Lichter <manniL@gmx.net>
2019-07-10 15:15:49 +04:30
Xin Du (Clark)
a1124d2fff
fix(renderer): correctly load nomodule scripts in safari 10 (#6033) 2019-07-06 16:22:50 +01:00
Ustun Ozgur
ae9d3519f7 fix(vue-renderer): clone spa meta to prevent cache modification (#5964) 2019-06-28 00:47:43 +04:30
Clark Du
fc5502cd8d Merge remote-tracking branch 'upstream/dev' into next 2019-06-26 16:32:47 +01:00
William Chong
cf39c75711 feat(vue-renderer): add csp option for csp v1 compatibility (#5975) 2019-06-26 16:22:45 +01:00
Josh Deltener
1d4421ef1d chore: inverse wording of error message (#5990) 2019-06-26 16:20:43 +01:00
Pooya Parsa
31f5729828
fix(vue-renderer): prevent can't set headers after they are sent (#5863) 2019-06-04 19:19:18 +04:30
Pooya Parsa
7e50fe744f
fix(vue-renderer): add vary header for ‍user-agent‍ in modern server mode (#5807) 2019-05-26 00:24:00 +04:30
aidou
0fc8ee41d1 feat(vue-renderer): render.injectScripts option (#5745) 2019-05-25 22:49:10 +04:30
Xin Du (Clark)
21aaef3b48 feat(vue-renderer): support render.ssrLog for controlling SSR logs (#5784) 2019-05-23 14:19:16 +04:30
pooya parsa
ffb1844646 update args logging 2019-05-20 20:35:17 +04:30
Xin Du (Clark)
106836f806 fix(vue-app): wrong index and string in ssr log (#5771) 2019-05-20 18:39:35 +04:30
Pooya Parsa
38fc721f50
fix(vue-renderer): safe format ssr logs (#5764) 2019-05-19 23:19:24 +04:30
Sébastien Chopin
4b11dcc9ad feat(vue-renderer/vue-app): report SSR console logs to the browser with consola (#5673) 2019-05-09 11:36:17 +04:30
Xin Du (Clark)
56d5c0c548 fix(vue-renderer): await on spa:templateParams hook (#5619)
fixes #5601
2019-04-29 13:05:33 +04:30
Xin Du (Clark)
b7284e1b4a refactor(vue-renderer): remove chalk in renderer (#5609) 2019-04-26 16:24:37 +04:30
Xin Du (Clark)
31a15559e5 refactor: move modern detection from server to utils (#5584) 2019-04-23 13:46:56 +04:30
Xin Du (Clark)
f5bbc585ee
refactor(vue-renderer): split renderer into ssr, spa and modern (#5559) 2019-04-20 13:02:51 +01:00
Xin Du (Clark)
87fcf556a4 fix(vue-renderer): use modulepreload for modern mode spa generate (#5489) 2019-04-08 22:13:56 +04:30
James George
b978a3761d feat(vue-renderer): add csp meta tags (#5354) 2019-04-02 00:29:58 +04:30
Pooya Parsa
8b9969599d
fix(renderer): retry render if renderer is in loading or created state (#5417) 2019-03-30 23:35:15 +04:30
Sam Bowler
97db6a4b41 fix(vue-renderer): add the csp hash if unsafe-inline hasn't been specified (#5387) 2019-03-29 20:39:53 +04:30
Pooya Parsa
535327c4f1
refactor(vue-renderer): improve ready status error (#5339) 2019-03-23 11:33:08 +04:30
Pooya Parsa
caf5198430
fix(builder): await for renderer to load resources (#5341) 2019-03-23 11:32:55 +04:30
Sébastien Chopin
ef41e205e6 feat: loading screen (#5251)
[release]
2019-03-20 12:47:53 +03:30
Xin Du (Clark)
648062c308
fix: correct public path in generation and start (#5202) 2019-03-12 15:52:15 +00:00
Pooya Parsa
13cb0f73d9 refactor: remove builder coupling from server (#5157) 2019-03-08 20:43:23 +00:00
Pooya Parsa
d07aefa5db feat(vue-renderer): use async fs (#5186) 2019-03-08 12:20:03 +00:00
Clark Du
a188f07f19 chore: remove unnecessary checks 2019-03-05 17:07:05 +00:00
Xin Du (Clark)
05299d6738 refactor: improve modern middleware and spa modern rendering (#5037) 2019-03-03 11:22:59 +03:30
Clark Du
5f9b1044ff Merge remote-tracking branch 'origin/2.x' into dev 2019-02-15 13:18:09 +00:00
Xin Du (Clark)
3516580701
fix(hotfix): preload modern resource in spa modern mode (#5043) 2019-02-15 13:08:27 +00:00
Alexander Lichter
69dfd848d7 refactor: some small stuff (#4979)
* refactor: flatten ifs

* refactor: unnecessary curly brackets

* refactor: unnecessary else

* refactor: promise.all instead of for-await

* refactor: apply changes suggested by @clarkdo

* chore: fix typo

* refactor: early return

* refactor: add removal TODOs

* refactor: more descriptive variable name

* refactor: prefer template string

* refactor: one-line

* refactor: early returns

* refactor: early return

* refactor: parallel promises

* refactor: early return and no else

* refactor: spread operator

* refactor: spread operator and early return

* fix: remove error and throw string instead

* fix: always return true

* refactor: clear multiline ternary

* refactor: err stack assignment

* refactor: early return and async/await

* refactor: one line

* refactor: early return

* refactor: early return

* refactor: promise.all

* refactor: args spread
2019-02-08 17:25:11 +01:00
Pooya Parsa
29297160a1
feat(vue-renderer): improvements (#4722) 2019-02-08 13:35:01 +03:30
Alexander Lichter
40fbe5ba47 refactor: cleanups and code style improvements (#4788) 2019-01-18 00:48:29 +03:30
Clark Du
0a21d4b34c fix: undefined script in modern mode 2019-01-10 11:17:28 +00:00
Xin Du (Clark)
df9b32a1c4 fix: hmr in modern mode (#4623) 2018-12-24 19:56:39 +03:30
Xin Du (Clark)
324135df51 refactor: @nuxt/utils (#4609) 2018-12-23 00:35:13 +03:30
Pooya Parsa
8b366fd216
chore: use @nuxt for all core dependencies (#4596)
[skip release]
2018-12-20 14:45:12 +03:30
Ricardo Gobbo de Souza
99614535b5 feat(vue-app, vue-renderer): support meta headAttrs (#4536) 2018-12-14 17:36:26 +03:30
Alexander Lichter
c60b1945e8 chore: cleanup (#4529) 2018-12-12 10:01:49 +03:30
William Chong
683dbba4f7 fix: csp SHA hashes accumulate when using custom script-src rules (#4519)
[skip ci]
2018-12-12 09:59:28 +03:30
Pooya Parsa
f0cb654a5d fix(vue-renderer): improve ready handling (#4511) 2018-12-10 12:16:05 +00:00
Jonas Galvez
655f11cefd chore: update code to meet new curly-all rule (#4505)
[skip ci]
2018-12-10 01:30:48 +03:30
Pooya Parsa
1162f2ddc1 feat: use runInNewContext: true for nuxt dev (#4508) 2018-12-09 21:37:36 +00:00
Pooya Parsa
fe0516978a
fix: improvements for build and dev stability (#4470) 2018-12-09 14:12:22 +03:30
Clark Du
e6808c57ef fest: add build.corssorgin (#4472) 2018-12-05 19:51:58 +03:30
Clark Du
14fe6792ae feat: check modern build file in modern mode (#4467)
[skip release]
2018-12-04 15:41:18 +03:30
Pooya Parsa
4b643b9528 fix(renderer): ignore invalid sourcemaps 2018-12-01 14:21:10 +03:30
Pooya Parsa
c0721c0174 fix(vue-renderer): parse JSON values before passing to bundle-renderer
prevent error that occuers in rare cases: TypeError: Cannot read property 'sections' of undefined

Related to #4439
2018-12-01 14:11:10 +03:30
Pooya Parsa
0f104aa588
feat: improve SSR bundle (#4439)
- Better insights and inspection for server bundle
- Remove all vue related dependencies from vue-renderer package as much as possible to reduce install size of nuxt-start
- Support for single file distributions (serverless)
- Remove server-bundle.json and use the standard .js files for dist/server
- Mitigate CALL_AND_RETRY_LAST Allocation failed errors. Most of the cases happen on JSON.parse() the part when loading bundle. (#4225, #3465, #1728, #1601, #1481)
- Reduce server dist size by removing escape characters caused by JSON serialize
- Faster dev reloads and production start by removing extra JSON.serialize/JSON.parse time
- Less memory usage
- General performance improvements and refactors
2018-12-01 13:43:28 +03:30
Clark Du
fe492d8363
feat(modern): auto detect modern mode (#4422) 2018-11-26 22:49:47 +00:00
Clark Du
6990efc1bc fix: correct renderer.noSSR name 2018-11-26 13:01:00 +00:00
Clark Du
701190d796
feat: preload and push modern resources in modern mode (#4362) 2018-11-26 12:09:30 +00:00
Clark Du
52a92fbc48 refactor: use PascalCase for components names (#4396) 2018-11-24 22:19:19 +03:30
Clark Du
ccbe6c3b1f chore: upgrade lru-cache to v5 (#4380) 2018-11-21 17:02:13 +03:30
Clark Du
70f0dc3825 refactor: spa renderer (#4316) 2018-11-21 16:38:03 +03:30
Pooya Parsa
68523b95bc
feat(server): fallback option (#4323) 2018-11-14 23:02:07 +03:30
Pooya Parsa
7c4e77ffb9
feat: dx improvements (#4259) 2018-11-08 12:45:56 +03:30
Clark Du
64839313a9 refactor: use modernMode instead of isModernBrowser for more semantic 2018-11-07 23:50:33 +00:00
Clark Du
2a36dbad22
feat: client mode modern and support dev/generate (#4264) 2018-11-07 23:37:06 +00:00
Clark Du
7d34f2ef26
refactor: persist isModernBrowser on http connection (#4268) 2018-11-04 14:47:56 +00:00
Clark Du
bed0714fad
feat: modern build (#4231)
* feat: modern build

* refactor: use single module import for lodash

* refactor: add credit comment for modern plugin

* feat: ssr modern build

* fix: not null check for request

* fix: not null check for request.headers

* feat: add modern argument on build command

* refactor: simpilfy filenames for modern

* refactor: use packages/webpack src instead of dist in test

* test: add feature test for modern build
2018-10-31 15:52:35 +00:00
Pooya Parsa
39b558f59c
refactor core into sub-packages (#4202) 2018-10-31 00:12:53 +03:30