Commit Graph

1156 Commits

Author SHA1 Message Date
renovate[bot]
5c348c0618
chore(deps): update all non-major dependencies (dev) (#7419)
* chore(deps): update all non-major dependencies

* update size limits
2020-05-27 23:27:20 +02:00
Pooya Parsa
a82f8d8b1f
feat(generator): export:route hook and setPayload (#7422)
* feat(generator): shared payload support for `nuxt export`

* feat: add `export:` hooks for upward compatibility

* fix: use setPayload to avoid breaking usage

* test: update test

* fix: deep assign

* chore: update tests

* fix: route payload has more periority than shared one

* test: update generator hook tests

* lint: remove unnecessary import
2020-05-27 16:51:51 +02:00
Kevin Marrec
618eb5fad0
fix(config): remove runtimeConfig string fallback (#7421)
[release]
2020-05-27 15:38:29 +02:00
Pooya Parsa
6cbcd59d4e
feat(config): improved runtimeConfig (#7420)
* fix: ensure interpolate value is a string

* feat: allow native values from dotenv

* test: update test for regression on native value check
2020-05-27 12:38:39 +02:00
renovate[bot]
2383bcbd0f
chore(deps): update all non-major dependencies (#7417)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-26 21:02:56 +02:00
renovate[bot]
ca32427d2e
chore(deps): update all non-major dependencies (#7403)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-25 21:33:34 +02:00
Sébastien Chopin
f13b3752b2
feat: experimental nuxt telemetry (#7408)
[release]

Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
Co-authored-by: pooya parsa <pooya@pi0.ir>
2020-05-22 20:51:53 +02:00
Pooya Parsa
1e53e38f8d
refactor: inline staticAssetsBase in state chunk for full-static (#7401)
* refactor(vue-app): use NUXT.serverRendered instead of NUXT.spa

* refactor: inline staticAssetsBase into state.js chunk

* revert: unwanted change

[release]
2020-05-20 19:31:31 +02:00
Sébastien Chopin
60ae0fb011
fix(generator): keep generating pages in SPA (#7400)
* fix(generator): keep generating pages in SPA

* chore: fix lint error

Co-authored-by: pooya parsa <pooya@pi0.ir>
2020-05-20 17:55:54 +02:00
Pooya Parsa
0bdc71c8d8
refactor(config): alias export to generate (#7399)
* refactor: alias option.export to options.generate

* chore: keep same references
2020-05-20 17:43:25 +02:00
renovate[bot]
51411268af
chore(deps): update all non-major dependencies (#7385)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-20 17:23:32 +02:00
Pooya Parsa
6a6794e020
feat: components (#7374)
[release]
2020-05-18 13:58:48 +02:00
Pooya Parsa
0337932115
feat: runtime config and built-in dotenv support (#7312)
Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
Co-authored-by: Alexander Lichter <manniL@gmx.net>
2020-05-18 10:21:15 +02:00
Sibbngheid
0c81c52c41
fix: set build indicator icon height for ie11 (#7378) 2020-05-17 21:42:00 +02:00
Xin Du (Clark)
b1b14033fb
fix(modern): wrong assets mapping in ssr client modern mode (#7382) 2020-05-17 21:41:07 +02:00
Xin Du (Clark)
ffb9c65f46
feat(ssr): add non async split chunk to preload scripts (#7383) 2020-05-17 21:39:17 +02:00
Sébastien Chopin
f4f6b1912b fix(vue-app): catch error on full static for store mutations
[release]
2020-05-17 00:04:17 +02:00
Sibbngheid
7cf4edba60
fix: set build indicator icon height for ie11 (#7377) 2020-05-16 19:56:08 +02:00
Pim
224c3794ae
fix(vue-renderer): base tag should be before any link or script tag (#7376) 2020-05-16 18:03:24 +02:00
Pooya Parsa
925abf8123
chore(pkg): update rollup and dependencies (#7373)
* chore(pkg): show build error loc

* fix(cli): add nuxt serve dependencies

* chore: update rollup resolve and commonjs plugins to latest

* test: mock listener for nuxt serve
2020-05-16 15:07:56 +02:00
renovate[bot]
cdf04f4002
chore(deps): update all non-major dependencies (#7363)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-16 12:31:59 +02:00
Sébastien Chopin
9b29124d31
feat(server): add unload method support for serverMiddleware (#7358)
* feat: add unload method support for serverMiddleware

* chore: update test

Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2020-05-13 17:16:09 +02:00
Tim van den Eijnden
2e5184688f
fix(generator, builder): empty build and dist directories instead of remove (#7361) 2020-05-13 16:46:13 +02:00
renovate[bot]
c74fb41bde
chore(deps): update all non-major dependencies (#7347)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-13 12:06:13 +02:00
Pooya Parsa
42406d6075
feat: store and replay vuex mutations for static target (#7350)
* feat: store and replay vuex mutations for static target

* test: add full-static fixture

* perf: clean store subscription before render

* fix: record mutations after nuxtServerInit and middleware
2020-05-12 13:05:24 +02:00
Clark Du
498f408d9a chore(deps): update devdependency eslint to v7 2020-05-11 09:21:54 +01:00
renovate[bot]
8af076d5e6
chore(deps): update all non-major dependencies (dev) (#7326) 2020-05-11 09:14:28 +01:00
Sébastien Chopin
8e2d9764e2
fix(generator): remove trailingSlash for chunkId (#7336)
[release]
2020-05-08 18:10:06 +02:00
Pooya Parsa
631be3a1dd
fix(generator): improve error handling when build does not exists (#7335)
[release]
2020-05-08 16:37:42 +02:00
Sébastien Chopin
80396cbf41 fix(generator): avoid generating route with extension 2020-05-08 16:27:15 +02:00
Sébastien Chopin
e87bad4cce
fix(cli): add back flags for generate and add _export flag (#7334) 2020-05-08 16:15:26 +02:00
Sébastien Chopin
29ebccaa65
fix(generator): avoid error if nuxt/config.js does not exists in buildDir (#7332) 2020-05-08 13:55:39 +02:00
Sébastien Chopin
917adc0618
feat: options.target and full-static export (#6159)
* feat: add options.target

* fix(lint): lint

* fix(test): update snapshots

* fix(builder): default value for target

* fix(test): fix test

* fix(test): test fixing

* fix: use this.options.target

* fix: final test

* Update packages/vue-renderer/src/renderer.js

Co-Authored-By: Alexander Lichter <manniL@gmx.net>

* feat: Add target option and update banner

* fix(lint): fix

* feat: Add warning when using serverMiddleware in static target

* chore(utils): add TARGETS and MODES as constants

* hotfix: lint

* chore(module): add filename as alias of fileName

* feat: introducing nuxt export and router/routes.json

* hotfix: Fix the linting lord

* chore(core): add comment for filename vs fileName

* fix: use targets constant

* chore: remove warning

* fix: unit testing

* wip: refactor and use TARGETS

* fix: lint

* feat: add target as alias for first arg value

* fix: generate only for SPA

* chore: explain to use nuxt static X

* fix: render SPA fallback on redirect for static target

* fix: lint issue

* fix: only target is useful for now

* wip

* wip: nuxt static export is looking good

* Update packages/generator/src/generator.js

Co-Authored-By: Devon Rueckner <indirectlylit@users.noreply.github.com>

* Update packages/cli/src/options/common.js

Co-Authored-By: Alexander Lichter <manniL@gmx.net>

* feat: add options.target

* fix(lint): lint

* fix(test): update snapshots

* fix(builder): default value for target

* fix(test): fix test

* fix(test): test fixing

* fix: use this.options.target

* fix: final test

* Update packages/vue-renderer/src/renderer.js

Co-Authored-By: Alexander Lichter <manniL@gmx.net>

* feat: Add target option and update banner

* fix(lint): fix

* feat: Add warning when using serverMiddleware in static target

* chore(utils): add TARGETS and MODES as constants

* hotfix: lint

* chore(module): add filename as alias of fileName

* feat: introducing nuxt export and router/routes.json

* hotfix: Fix the linting lord

* chore(core): add comment for filename vs fileName

* fix: use targets constant

* chore: remove warning

* fix: unit testing

* wip: refactor and use TARGETS

* fix: lint

* feat: add target as alias for first arg value

* chore: explain to use nuxt static X

* fix: render SPA fallback on redirect for static target

* fix: lint issue

* fix: only target is useful for now

* wip

* wip: nuxt static export is looking good

* Update packages/generator/src/generator.js

Co-Authored-By: Devon Rueckner <indirectlylit@users.noreply.github.com>

* Update packages/cli/src/options/common.js

Co-Authored-By: Alexander Lichter <manniL@gmx.net>

* fix: duplicate imports

* chore: don't server render if an error happens on static target

* test: update unit and add export

* lint: fix

* lint: fix

* fix: e2e test

* fix: fallback only for static target

* fix: dev test

* feat: add generate.crawler

* fix: full static is when generate.static is given

* chore: improvements

* fix: Add isFullStatic in nuxt/config.json

* feat: handle fetch for full static

* feat: router.prefetchPayloads for full static

* chore: use fetch in async-data example

* fix: add target only if given

* fix: use created to have access to props in fetchOnServer

* chore: add console.error in dev for easy debugging

* feat: payload smart pre-fetching

* fix: remove alias for target

* fix: increment payloadFetchIndex is static set to false

* chore: lint

* chore: add serve command

* chore: rename universal to server-side

* fix: handle payloadPath on SPA fallback

* fix: lint

* chore lint again

* feat: handle spa fallback

* feat: support string for exclude

* fix: fallback only if no extension or html

* chore: use JSON.stringify() for static target

* chore: lint again, dammit

* chore: fix tests and remove too early return

* fix: early return only for server target

* fix: update tests

* fix: unit tests

* chore: add ssr option

* chore: add logic for ssr option

* fix: #6682

* chore(dx): add next command to run

* fix: lint

* fix: tests

* chore: keep old behaviour for nuxt build in spa

* fix: test again, oh boy

* fix: alright this is good now

* chore: add comment for spa fallback

* chore: move routes.json to dot nuxt dir

* chore: simplify check for promise

* chore: unique lock id

* chore: refactor isFullStatic

* fix: dont set default in build context

* chore: add test for serve

* chore: update tests

* hotfix: lint tests

* chore(dx): improve message for bundling

* feat: js payload extraction with jsonp

* fix: keep serialized session script for legacy generate

* fix: call to setPagePayload from fetchPayload

* use devalue for payload chunks

* feat: add initial load state chunk

* feat: preload payload and state scripts

* fix(vue-app): don't re-render the app if trailing slash on SSG

* hotfix: remove console.log

* chore(dx): add deploy infos for nuxt export

Co-authored-by: Pooya Parsa <pyapar@gmail.com>

* chore: handle fetching payload.js for nuxt state

* chore(dx): error when using nuxt generate and static

* chore: remove static option for clarity

* chore: remove serverless target

* hotfix: lint

* hotfix: unit tests

* chore: update legacy js resource

* chore: remove query params from url in static target

* fix: use globalName and urlJoin

* chore: typo

* feat: previewMode 👀

* chore: rename to enablePreview

* fix: wait next tick to avoid error on spa

* chore: try 1 sec

* hotfix: test only for linux, wtf azure

* refactor: static assets

- generalize logic for modules need emit export static assets
- allow customization for version, dir and base
- serialization logic is only in ssr now

* feat: smart state chunk creates

* fix(client): ignore payload load error

* perf: avoide payload loading for spa initial

* perf: avoid loading failed chunks again

* chore(cli): add simple compression for nuxt serve

* test: update snapshots

* fix version snapshot

* fix(generator): set staticAssetsBase on context only for full static

* fix tests

* fix: honor shouldHashCspScriptSrc

* chore(dx): add log for client-side fallback creation

Co-authored-by: Xin Du (Clark) <clark.duxin@gmail.com>
Co-authored-by: Alexander Lichter <manniL@gmx.net>
Co-authored-by: Pooya Parsa <pooya@pi0.ir>
Co-authored-by: Devon Rueckner <indirectlylit@users.noreply.github.com>
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2020-05-07 21:08:01 +02:00
Jimmy
a0db3644f6
fix(vue-app): allow background customization for default loading template (#7162) 2020-05-07 13:09:39 +02:00
Xin Du (Clark)
789f0e6555
chore(dep): upgrade html-webpack-plugin to v4 (#7119) 2020-05-07 11:52:26 +01:00
renovate[bot]
c37c3d4da0
chore(deps): update all non-major dependencies (dev) (#7269) 2020-05-07 09:33:52 +01:00
Xin Du (Clark)
f1d832018a
chore(test): upgrade vue test utils to v1 (#7321) 2020-05-07 09:07:21 +01:00
Mathieu TUDISCO
6040257ca3
fix(webpack): allow hmr client path to be set (#7318) 2020-05-05 23:56:03 +02:00
Xin Du (Clark)
8c7228f1e8
test: update jest to v26 (#7319) 2020-05-05 23:53:07 +02:00
Yugo Ogura
37271f8ac4
feat(server): support csp report-uri (#7307) 2020-05-04 20:24:17 +02:00
Xin Du (Clark)
c2c7081dc2
fix(webpack): use non-eval sourcemap with csp and unsafe-eval script policy (#7305) 2020-05-03 21:10:09 +02:00
Xin Du (Clark)
2bd2c3853d
feat(modern): remove inlined safari fix in csp mode (#7306) 2020-05-03 20:15:24 +02:00
Xin Du (Clark)
ab3ff4de00
fix(babel): not override presets if babelrc is true (#7297) 2020-05-01 14:23:08 +02:00
Kevin Marrec
e089ac649f
fix(vue-app): sanitizeComponent import regression with features disabled (#7271) 2020-04-24 18:05:55 +02:00
Xin Du (Clark)
1ce8041abe
feat(config): add configOverrides for loadNuxt and loadNuxtConf… (#7263) 2020-04-24 09:59:56 +01:00
renovate[bot]
5516a2182b
chore(deps): update all non-major dependencies (dev) (#7255)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-04-24 09:13:20 +01:00
renovate[bot]
67b8020c11
chore(deps): update dependency caniuse-lite to ^1.0.30001045 (d… (#7248) 2020-04-21 09:27:20 +01:00
renovate[bot]
3a6dbdd656
chore(deps): update all non-major dependencies (dev) (#7234) 2020-04-20 21:13:50 +01:00
renovate[bot]
cf205e7902
chore(deps): update all non-major dependencies (#7188)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-04-17 11:26:43 +02:00
Sébastien Chopin
479e3ffefb
feat(vue-app): inject into plugins context (#7212) 2020-04-14 11:27:13 +02:00
Nicolas PENNEC
a2495a6873
chore: fix typos (#7219) 2020-04-14 11:26:40 +02:00
Nicolas PENNEC
1002d3f456
feat(server): add custom HTTP headers into error response (#7214) 2020-04-13 20:58:53 +02:00
Xin Du (Clark)
c02ded2d86
refactor(config): move build.crossorigin to render.crossorigin (#7187) 2020-04-07 11:38:49 +02:00
Jimmy
6b1faaed80
feat(vue-renderer): add head <base> meta for spa (#7170) 2020-04-07 11:11:00 +02:00
renovate[bot]
20f086d0ce
chore(deps): update all non-major dependencies (dev) (#7179) 2020-04-06 23:14:25 +01:00
Xin Du (Clark)
16b9c157bf
feat(webpack): add mjs to babel-loader (#7178) 2020-04-05 15:41:21 +02:00
renovate[bot]
21b39fc701
chore(deps): update all non-major dependencies (dev) (#7157) 2020-04-05 11:58:52 +01:00
Eunjae Lee
4f6f7fe1cd
feat(vue-renderer): pass renderContext to vue-renderer:ssr:templateParams hook (#7168) 2020-04-02 11:28:57 +02:00
Xin Du (Clark)
728ab8841b
feat(babel-preset-app): add bugfixes option (#7144) 2020-03-30 10:48:59 +01:00
Pooya Parsa
318aad2aed
fix(server): HMR for sub-app serverMiddleware without path (#7146) 2020-03-27 22:30:43 +01:00
Pooya Parsa
06073697f4
fix(vue-app): sanitize layouts after resolve for splitChunks.layout (#7139) 2020-03-27 14:08:48 +01:00
renovate[bot]
d46c2dd4ff
chore(deps): update all non-major dependencies (#7136)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-03-27 13:57:09 +01:00
Pooya Parsa
9ef58fae63
fix(core): join with os native sep in resolver (#7131) 2020-03-27 13:56:40 +01:00
Jt Whissel
51b5bf565b
feat(builder): ignore option to function the same as .nuxtignore (#7132) 2020-03-27 11:53:23 +01:00
renovate[bot]
f18e241f70
chore(deps): update all non-major dependencies (dev) (#7125) 2020-03-26 16:30:01 +00:00
pooya parsa
8d355956d4 v2.12.1
[release]
2020-03-25 20:20:50 +01:00
Pooya Parsa
0f27f80c0c
fix(vue-app): avoid multiple $fetch calls (#7129)
Co-authored-by: Aster <duda84@gmail.com>
2020-03-25 19:40:39 +01:00
Sébastien Chopin
b82f8d1640
fix: set default name to layout to avoid multi mounted (#7128) 2020-03-25 19:14:17 +01:00
renovate[bot]
a474c00aae
chore(deps): update dependency webpack to ^4.42.1 (#7121) 2020-03-24 10:42:43 +01:00
renovate[bot]
60f1aa93bd
chore(deps): update all non-major dependencies (dev) (#7100) 2020-03-23 11:24:29 +00:00
Pooya Parsa
c8e7397d07
fix(vue-app): use globals.nuxt for fetch client mixin (#7103) 2020-03-18 11:30:50 +01:00
pooya parsa
4b34941df8 fix(builder): ensure entry is in graph for HMR (#7097) 2020-03-18 11:05:37 +01:00
pooya parsa
205a089f83 v2.12.0 2020-03-17 17:43:35 +01:00
Jason Poindexter
1f5d489850
fix(vue-app): middleware not executing on double browser back navigation (#6775)
fixes #6716.
2020-03-13 22:26:35 +01:00
Xin Du (Clark)
a7052b637b
feat(vue-app): trigger watchParam when param is changed in same route (#6244) 2020-03-13 21:28:42 +01:00
Xin Du (Clark)
52caef2053
feat(core): better module not found handling (#7079)
Co-authored-by: pooya parsa <pooya@pi0.ir>
2020-03-13 21:25:53 +01:00
Pooya Parsa
f20d932c4d
feat: allow disabling loading-screen (#6272) 2020-03-13 21:23:33 +01:00
pooya parsa
87dc99e8e5 chore(deps): update all non-major dependencies 2020-03-13 15:03:36 +01:00
Xin Du (Clark)
78bce82b2f
refactor(babel-preset-app): use @babel/helper-compilation-targets instead of deprecated api (#7071) 2020-03-12 19:13:04 +01:00
renovate[bot]
29587daf1f
chore(deps): update all non-major dependencies (#7073)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-03-12 18:59:48 +01:00
pooya parsa
5a6cde3ebc regression: read prefix from handle fn as well
fixes #7028
2020-03-12 18:33:22 +01:00
pooya parsa
f1e2362456 chore: remove new fetch warning 2020-03-12 15:40:03 +01:00
renovate[bot]
2afddf03c1
chore(deps): update all non-major dependencies (dev) (#7066) 2020-03-10 22:43:29 +00:00
Xin Du (Clark)
750676dd31
fix(babel-preset-app): TypeError when import cjs in webpack building (#7070) 2020-03-10 22:09:46 +01:00
renovate[bot]
1a34e224d4
chore(deps): update all non-major dependencies (#7052)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-03-09 14:41:20 +01:00
renovate[bot]
2c4327b867
chore(deps): update all non-major dependencies [release] (#7039) 2020-03-02 19:15:30 +01:00
Pooya Parsa
903c3de5b6
feat: expose webpack config (#7029) 2020-03-02 19:15:00 +01:00
Jonas Galvez
a3fdba885e
chore(vue-app): improve missing inject value error message (#7032) 2020-02-29 20:16:43 +01:00
renovate[bot]
ee2cceb9b2
chore(deps): update all non-major dependencies (dev) (#7010) 2020-02-27 15:09:23 +00:00
renovate[bot]
07906d0b9d
chore(deps): update all non-major dependencies (#7003)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-02-26 13:22:04 +01:00
Pooya Parsa
6e09e7824d
fix(core): correct deprecated hooks (#7002) 2020-02-25 17:15:40 +01:00
Mark Honeychurch
084a1ca1af
chore(builder): analyze mode warning rewording (#6924) 2020-02-25 00:16:43 +01:00
Xin Du (Clark)
16587029d7
feat: add crossorigin for normal ssr (#6950) 2020-02-24 22:58:24 +00:00
renovate[bot]
c785f6e22e
chore(deps): update dependency caniuse-lite to ^1.0.30001030 (#6994)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-02-24 23:49:38 +01:00
Xin Du (Clark)
10ac6aed9a
feat(wepack): support @import using ~assets in css files (#6987) 2020-02-24 23:47:43 +01:00
renovate[bot]
6d79206a68
chore(deps): update dependency serialize-javascript to v3 (#6977)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-02-24 22:41:53 +01:00
HG
c325882e1f
fix(core): Provide the correct name of routeContext hook (#6959) 2020-02-18 17:04:02 +00:00
renovate[bot]
bfc91f9682
chore(deps): update all non-major dependencies (#6978) 2020-02-18 17:01:11 +00:00
renovate[bot]
19fd3e4932
chore(deps): update all non-major dependencies (#6956) 2020-02-16 14:58:21 +01:00
Pim
bfad1e627b
perf(vue-renderer): early return render when redirect happens (#6973) 2020-02-16 14:20:08 +01:00