Commit Graph

39 Commits

Author SHA1 Message Date
Xin Du (Clark)
e999060da5 refactor(server): only append not empty allowed sources to csp (#6771) 2019-12-16 21:16:51 +01:00
Xin Du (Clark)
e8aca9eb11 chore: update @nuxtjs/eslint-config to v2 and fix lint errors (#6732) 2019-11-26 23:42:39 +01:00
Pim
4e4aa4d5d4 feat(server): add config option to define etag hash function (#6438) 2019-09-20 20:49:16 +02:00
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)
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
pooya parsa
2ca08a6bf3 fix(server): don't call getCspString when cspScriptSrcHashes is unavailable (#5474)
Co-Authored-By: Andreas Zoellner <andreaszoellner@gmail.com>
2019-04-07 13:32:32 +04:30
Sébastien Chopin
ef41e205e6 feat: loading screen (#5251)
[release]
2019-03-20 12:47:53 +03:30
phof
5b7f6d78ec fix(server): handle decodeURI error (#5243) 2019-03-17 01:03:22 +03:30
Xin Du (Clark)
1fb7538dfe fix: publicPath is not reactive in dev restarting (#5227) 2019-03-13 22:45:26 +03:30
Xin Du (Clark)
cc573a4925
test: unit tests for server module (#5154) 2019-03-04 20:12:33 +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
d9a0b5f61b fix: not send Server-Timing header if no timing info 2019-02-14 15:23:25 +00:00
Clark Du
c6d8e8ff66 refactor: isModernBrowser return boolean for avoiding duplicate call 2019-02-14 14:01:30 +00:00
Clark Du
2b4d79c199 refactor: not detect modern browser if modern mode is disabled 2019-02-14 13:21:11 +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
Xin Du (Clark)
5c08db20b4 fix: await buildDone hook (#4955) 2019-02-05 13:23:47 +03:30
Xin Du (Clark)
b23f5c9b4b feat(server): timing option for Server-Timing header (#4800) 2019-01-19 21:44:54 +03:30
Alexander Lichter
40fbe5ba47 refactor: cleanups and code style improvements (#4788) 2019-01-18 00:48:29 +03:30
Pim
9eab5589c0 fix: add iron browser as modern (#4775) 2019-01-17 00:15:46 +03:30
Dmitry Molotkov
d3b939690c fix(server): process browser version with non semver versions (#4673) 2019-01-03 01:22:09 +03:30
Clark Du
35151150fd fix: wrong devMiddleware in non-modern dev mode 2018-12-28 13:26:46 +00:00
Xin Du (Clark)
df9b32a1c4 fix: hmr in modern mode (#4623) 2018-12-24 19:56:39 +03:30
Sébastien Chopin
498c4f11d3 feat: better stack traces for SSR error, show error with correct URL and use eventsource-polyfill (#4600)
[release]
2018-12-23 12:10:36 +03:30
Xin Du (Clark)
324135df51 refactor: @nuxt/utils (#4609) 2018-12-23 00:35:13 +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
Ryan Lindskog
29c5bb6513 refactor: remove caniuse-lite dependency (#4419) 2018-12-11 01:05:04 +03:30
Dmitry Molotkov
c3128eaced fix(server): allow rendering urls with unicode characters (#4512) 2018-12-10 16:48:23 +00:00
Clark Du
e6808c57ef fest: add build.corssorgin (#4472) 2018-12-05 19:51:58 +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
Dmitry Molotkov
949785f58e fix(server, vue-app): allow unicode page names (#4402) 2018-11-25 18:22:37 +03:30
Sébastien Chopin
aa7b9da2bb fix: Fix typo 2018-11-15 16:27:31 -05:00
Dmitry Molotkov
9fbd581557 fix: handle errors that are not error instances (#4321) 2018-11-14 22:47:44 +03:30
Alexander Lichter
f5bf24ab83 fix(server): don't accept ranges (#3870) (#4295) 2018-11-08 22:13:14 +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
Pooya Parsa
39b558f59c
refactor core into sub-packages (#4202) 2018-10-31 00:12:53 +03:30