Commit Graph

321 Commits

Author SHA1 Message Date
renovate[bot] 16954e1962
chore(deps): update dependency defu to v4 (#9184)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-23 20:46:27 +02:00
renovate[bot] 8ebb92a9f6
chore(deps): update all non-major dependencies (#8806)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-15 20:14:54 +01:00
Pooya Parsa 18d1cd086a v2.15.4 [release] 2021-04-01 13:25:16 +02:00
Pooya Parsa f08f4efcde v2.15.3 2021-03-10 13:28:36 +01:00
Daniel Roe 69b5264ef3
fix: allow relative public paths (#8935) 2021-03-10 12:48:41 +01:00
renovate[bot] 0bcf5b8dbe
chore(deps): update all non-major dependencies (#8917)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-05 18:10:19 +01:00
Hannes Küttner 07e97f168a
fix(vue-renderer): respect injectScripts for target:static (#8912) 2021-03-01 20:29:51 +00:00
Pooya Parsa b7f9cdc2a4 v2.15.2 [release] 2021-02-23 10:16:01 +01:00
renovate[bot] 308fd426d3
chore(deps): update all non-major dependencies (#8870)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-23 09:37:12 +01:00
renovate[bot] 55b522cc8f
chore(deps): update dependency lodash to ^4.17.21 (#8865)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-20 16:49:08 +00:00
Pooya Parsa 95daddf43c chore: add missing defu dep to vue-renderer 2021-02-19 17:38:07 +01:00
Pooya Parsa 608a380e1d v2.15.1 [release] 2021-02-19 17:36:59 +01:00
pooya parsa 1b9a9d6449
fix(renderer): deep merge runtimeConfig for server (#8856) 2021-02-19 17:33:00 +01:00
Pooya Parsa dcfb42b772 v2.15.0 [release] 2021-02-15 12:04:09 +01:00
Daniel Roe 9d33456e69
fix(vue-app): add leading slash for payload hydration (#8802) 2021-02-10 13:18:27 +01:00
renovate[bot] c221f60780
chore(deps): update dependency ufo to ^0.6.5 (#8805)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-10 12:33:54 +01:00
Daniel Roe c8a4b91ad4
fix: ignore trailing slash in static payloads manifest (#8794) 2021-02-09 16:58:49 +01:00
renovate[bot] 87ec80603a
chore(deps): update dependency ufo to ^0.6.2 (#8791)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-08 11:54:41 +01:00
renovate[bot] c3f3a18506
chore(deps): update all non-major dependencies (#8755)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-08 09:05:35 +01:00
renovate[bot] be79532715
chore(deps): update all non-major dependencies (#8751)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-03 13:26:37 +00:00
renovate[bot] f917297a70
chore(deps): update all non-major dependencies (#8742)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-02 12:17:06 +00:00
renovate[bot] 7931d1b619
chore(deps): update all non-major dependencies (#8734)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-01 17:28:54 +00:00
renovate[bot] 498f85532d
chore(deps): update all non-major dependencies (#8663)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-20 12:31:29 +00:00
renovate[bot] db5cea1d17
chore(deps): update all non-major dependencies (#8595) 2021-01-11 16:54:27 +00:00
Pooya Parsa 108cd8216a chore: reorder deps 2020-12-22 18:40:31 +01:00
Pooya Parsa 7529d65d75 chore: migrate from @nuxt/ufo to ufo 2020-12-22 18:20:41 +01:00
Daniel Roe 9681a8937d
feat(config, vue-app, vue-renderer): support dynamic `base` and `publicPath` (#8520)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2020-12-22 18:15:59 +01:00
pooya parsa dec8f99fc3
feat: support plug-and-play, typescript runtime and native modules (#8389)
Co-authored-by: Clark Du <clark.duxin@gmail.com>
2020-12-22 18:07:50 +01:00
Daniel Roe fb191d2fbd
fix(vue-app, vue-renderer, utils): respect `trailingSlash` setting for payloads (#8489)
* fix(utils): don't inject a trailing slash on catchall routes (e.g. `/*/`)

closes #8488

* fix(vue-app, vue-renderer): respect `trailingSlash` setting for payloads

* refactor: use new ufo `parsePath` utility

Co-authored-by: pooya parsa <pyapar@gmail.com>
2020-12-17 12:51:14 +01:00
renovate[bot] 5a5161aa52
chore(deps): update dependency @nuxt/ufo to ^0.5.2 (#8499)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-12-16 15:22:23 +01:00
renovate[bot] fedba22f73
chore(deps): update all non-major dependencies (#8463)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-12-16 14:42:38 +01:00
Pooya Parsa a78427c165 v2.14.12 [hotfix] [release] 2020-12-16 14:21:30 +01:00
Pooya Parsa bde4c5f6b0 v2.14.12 2020-12-16 14:13:06 +01:00
pooya parsa a25bdd622d
fix: fix issues with url handling (#8494) 2020-12-16 14:12:16 +01:00
Pooya Parsa 79c6cb5ee3 v2.14.11 [hotfix] 2020-12-10 00:25:44 +01:00
Pooya Parsa d85f4b9264 v2.14.11 [release] 2020-12-10 00:20:26 +01:00
Pooya Parsa 85bb97906c v2.14.10 [hotfix] 2020-12-07 11:37:14 +01:00
Pooya Parsa e97051adfa v2.14.10 [release] 2020-12-07 11:28:46 +01:00
pooya parsa fc51ca3330
fix: normalize routes and decode resolved query (#8430) 2020-12-06 18:32:39 +01:00
Pooya Parsa dad4590613 chore: 2.14.9 hotfix 2020-12-02 11:39:55 +01:00
Pooya Parsa e9f380c9e6 v2.14.9 [release] 2020-12-02 11:34:18 +01:00
Xin Du (Clark) ab039f051a
feat: update all dependencies that require node 10.x (#8346) 2020-12-01 12:40:50 +01:00
Daniel Roe 8d9d6a94d2
feat(vue-renderer): allow adding async attribute to `<script>` tags (#8347) 2020-12-01 12:10:44 +01:00
Pooya Parsa 68d8fb8487 v2.14.8 [release] 2020-12-01 12:05:12 +01:00
pooya parsa c15fc421ab
refactor: use nuxt everywhere (#8210) 2020-11-30 23:44:04 +01:00
pooya parsa cc1f6d94b5
fix: handle route encoding (#8325)
Co-authored-by: farnabaz <farnabaz@users.noreply.github.com>
2020-11-30 23:10:02 +01:00
Sébastien Chopin 691f21c683
fix(vue-app): handle missing payloads on full static (#8314)
* fix(vue-app): handle missing payloads on full static

Fixes #7717

* chore: rename routesManifest to manifest

* chore: remove console.log

* chore(vue-app): don't have staticAssetsBase if undefined

* chore: add manifest option

* test: update snapshot

* chore: use foundRoute to avoid multiple vars name

Co-authored-by: Pooya Parsa <pyapar@gmail.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2020-11-25 15:19:29 +01:00
Daniel Roe b050861332
fix(generator): respect publicPath for static assets (#8344)
* fix: respect publicPath for static assets

* test: add test for correct `publicPath` URL handling
2020-11-14 23:10:16 +01:00
pooya parsa 265d0e7aac v2.14.7
[release]
2020-10-15 18:17:49 +02:00
pooya parsa 41176577ad v2.14.6
[release]
2020-09-21 12:30:19 +02:00
pooya parsa 3b037720f2 v2.14.5
[release]
2020-09-10 14:35:08 +02:00
pooya parsa 1a77fba4eb v2.14.4 2020-08-27 12:25:35 +02:00
Per Anders Ljusbäck 2f76702291
fix(vue-renderer): add `crossorigin` for styles (#7954)
* Added ability for styles to get crossorigin if set

* refactor to addAttrs

Co-authored-by: Clark Du <clark.duxin@gmail.com>
2020-08-26 13:03:31 +01:00
renovate[bot] e72d03a49a
chore(deps): update all non-major dependencies (#7929)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-25 15:11:17 +01:00
Alexander Lichter a969e87014
chore: add avif format as image (#7961) 2020-08-25 15:10:22 +01:00
pooya parsa 5e9d759d7b v2.14.3 [release] 2020-08-16 19:03:06 +02:00
Daniel Roe f1a95c8af8
fix(vue-renderer): apply `nomodule` to legacy chunks (#7928)
closes #7927
2020-08-16 19:02:10 +02:00
pooya parsa 34c56722c8 v2.14.2 [release] 2020-08-16 12:57:53 +02:00
Xin Du (Clark) 68b9183c4c
fix(modern): missing nomodule on legacy modules (#7919) 2020-08-14 23:59:10 +02:00
renovate[bot] 5fdfba2279
chore(deps): update all non-major dependencies (#7853)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-13 15:05:54 +02:00
pooya parsa c30499d7e0 v2.14.1
[release]
2020-08-04 17:33:56 +02:00
pooya parsa 60f68638cb v2.14.0 [release] 2020-07-27 19:23:49 +02:00
Timothy R. Chavez 2dc11a71dc
fix(vue-renderer): read `target` from class instead of `serverContext` (#7752) 2020-07-22 14:51:31 +02:00
Harlan Wilton 124cb0994a
feat(vue-renderer): add `vue-renderer:spa:prepareContext` hook (#7633)
[release]
2020-07-09 15:15:41 +02:00
pooya parsa e3821ba78c v2.13.3 [release] 2020-07-02 20:06:42 +02:00
pooya parsa c998072c94 v2.13.2 2020-06-26 20:58:45 +02:00
renovate[bot] 000ad67f99
chore(deps): update dependency consola to ^2.14.0 (#7617) 2020-06-26 17:10:50 +02:00
pooya parsa 56b158e7d6 v2.13.1 [release] 2020-06-24 10:36:15 +02:00
Pooya Parsa dbecbe4ada v2.13.0 [release] 2020-06-18 18:48:36 +02:00
Xin Du (Clark) 8fb196c5d5
fix(modern): modern is wrongly enalbed in full static (#7509)
[release]
2020-06-12 21:36:08 +02:00
renovate[bot] b19006d1c7
chore(deps): update all non-major dependencies (#7494)
[release]
2020-06-12 15:30:36 +02:00
Xin Du (Clark) 245d32d0dc
fix(modern): modulepreload not work in generate (#7498) 2020-06-12 10:18:16 +01:00
Pim df7e1ad3a2
fix(vue-renderer): fix meta injection when ssr renderer generates a spa page (#7439) 2020-06-10 17:26:50 +02:00
Sébastien Chopin 7c6e170a89
fix: handle router.base for crawler and serve (#7486)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2020-06-10 09:51:29 +02:00
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 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
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
Xin Du (Clark) b1b14033fb
fix(modern): wrong assets mapping in ssr client modern mode (#7382) 2020-05-17 21:41:07 +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 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
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
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
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
Eunjae Lee 4f6f7fe1cd
feat(vue-renderer): pass `renderContext` to `vue-renderer:ssr:templateParams` hook (#7168) 2020-04-02 11:28:57 +02:00
pooya parsa 8d355956d4 v2.12.1
[release]
2020-03-25 20:20:50 +01:00
pooya parsa 205a089f83 v2.12.0 2020-03-17 17:43:35 +01:00
Pooya Parsa f20d932c4d
feat: allow disabling loading-screen (#6272) 2020-03-13 21:23:33 +01:00
renovate[bot] ee2cceb9b2
chore(deps): update all non-major dependencies (dev) (#7010) 2020-02-27 15:09:23 +00:00
Pooya Parsa 6e09e7824d
fix(core): correct deprecated hooks (#7002) 2020-02-25 17:15:40 +01:00
Xin Du (Clark) 16587029d7
feat: add crossorigin for normal ssr (#6950) 2020-02-24 22:58:24 +00:00
Pim bfad1e627b
perf(vue-renderer): early return `render` when redirect happens (#6973) 2020-02-16 14:20:08 +01:00
Pooya Parsa d83f697c15 chore: sort package.json 2020-02-06 13:32:56 +01:00
renovate[bot] 1a48059438 chore(deps): update all non-major dependencies (#6859) 2020-01-13 11:48:10 +01:00
404-NOTFOUND af75aa86e1 perf(vue-renderer): don't serialize session when `injectScripts` is false (#6846) 2020-01-10 21:43:50 +01:00
renovate[bot] aada6e50d9 chore(deps): update dependency consola to ^2.11.3 (#6839) 2020-01-01 12:42:55 +01:00
Renovate Bot 14e6eb6b27
chore(deps): update all non-major dependencies 2019-12-29 22:19:43 +00:00
Pooya Parsa 7af9ec8c23 v2.11.0 2019-12-17 11:22:18 +01:00
renovate[bot] 51b3163c2a chore(deps): update dependency consola to ^2.11.1 (#6800) 2019-12-17 10:59:30 +01:00