Commit Graph

292 Commits

Author SHA1 Message Date
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
966796fbdf
fix: fix issues with route normalization (#8462)
Co-authored-by: Clark Du <clark.duxin@gmail.com>
2020-12-10 00:19:31 +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
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
renovate[bot]
8d20da91c3
chore(deps): update all non-major dependencies (#8396)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-30 23:18:57 +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
renovate[bot]
e635cc5044
chore(deps): update all non-major dependencies (#8326)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-25 15:15:58 +01:00
renovate[bot]
63f5a0ed8c
chore(deps): update all non-major dependencies (#8300)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-09 18:11:56 +01:00
renovate[bot]
8a25a91b60
chore(deps): update all non-major dependencies (#8267) 2020-11-04 13:59:02 +00: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
d864b2bd75
chore(config): deprecate mode option (#8044) 2020-09-09 16:39:20 +02:00
remigermain
7e3532ea59
fix(config): normalize build.indicator: true to default value (#8030)
* fix(config): indicator set to true

* fix eslint

* Update options.js

* indicator is not ad-hoc

Co-authored-by: rgermain <germain.remi@protonmail.com>
Co-authored-by: pooya parsa <pyapar@gmail.com>
2020-09-09 11:37:49 +02:00
pooya parsa
4de44e6c52
fix(config): avoid recursion when interpolating env (#8014) 2020-09-09 10:50:27 +02:00
pooya parsa
a3d836401c
fix: revert production js chunk names (#8012) 2020-09-09 10:49:31 +02:00
pooya parsa
a7da6fd56f
fix(config): don't interpolate variables with undefined value (#8013) 2020-09-03 13:42:17 +02:00
pooya parsa
1a77fba4eb v2.14.4 2020-08-27 12:25:35 +02:00
pooya parsa
5e9d759d7b v2.14.3 [release] 2020-08-16 19:03:06 +02:00
pooya parsa
34c56722c8 v2.14.2 [release] 2020-08-16 12:57:53 +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
Xin Du (Clark)
f130901ab1
fix(core, config): disabe esm cache (#7839) 2020-08-04 11:28:31 +02:00
pooya parsa
2e1025f2de
fix(webpack): avoid grouping with default name (#7808)
[release]
2020-07-30 16:22:03 +02:00
pooya parsa
60f68638cb v2.14.0 [release] 2020-07-27 19:23:49 +02:00
Ahad Birang
6a2576b6f6
feat(webpack): auto detect core-js version (#7785)
* feat: add build option to set corejs version

* fix tests

* refactor: improve error handling and warn for invalid corejs version

* fix: only pick major part

* simplify as we are already using try/catch

Co-authored-by: pooya parsa <pyapar@gmail.com>
2020-07-27 15:36:46 +02:00
pooya parsa
c5a4465572
feat: static target DX improvements (#7712)
[release]

Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
Co-authored-by: pimlie <pimlie@hotmail.com>
2020-07-16 17:10:54 +02:00
pooya parsa
e3821ba78c v2.13.3 [release] 2020-07-02 20:06:42 +02:00
pooya parsa
1edac29eba
fix(webpack): use compact name for concatenated modules (#7639)
[release]
2020-06-30 19:47: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
renovate[bot]
4c410e351d
chore(deps): update all non-major dependencies (#7557)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-22 11:50:56 +02:00
Pooya Parsa
dbecbe4ada v2.13.0 [release] 2020-06-18 18:48:36 +02:00
renovate[bot]
f8c0b781ab
chore(deps): update dependency rc9 to v1 (#7528)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-16 15:44:18 +02:00
renovate[bot]
833ea4d585
chore(deps): update dependency destr to v1 (#7525)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-16 14:41:41 +02:00
renovate[bot]
b13f9355dd
chore(deps): update dependency jiti to ^0.1.9 (#7508)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-12 20:41:40 +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)
db65c2eb6b
feat: createRequire option and disable esm for jest (#7476) 2020-06-11 15:59:13 +02:00
pooya parsa
796282ceec
feat: improve production debugging dx (#7463) 2020-06-09 21:45:52 +02:00
pooya parsa
1e4ce5055e
refactor: ad-hoc modules (#7452) 2020-06-03 21:34:10 +02:00
renovate[bot]
484e70fdd8
chore(deps): update all non-major dependencies (#7433)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-06-01 18:48:09 +02:00
Pooya Parsa
3db31abb05
feat(config): support .nuxtrc (#7430)
[release]
2020-05-28 18:27:49 +02:00
renovate[bot]
2e711c143b
chore(deps): update all non-major dependencies (#7427)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-05-28 16:46:15 +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
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]
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
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
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
renovate[bot]
8af076d5e6
chore(deps): update all non-major dependencies (dev) (#7326) 2020-05-11 09:14:28 +01: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)
1ce8041abe
feat(config): add configOverrides for loadNuxt and loadNuxtConf… (#7263) 2020-04-24 09:59:56 +01:00
Xin Du (Clark)
c02ded2d86
refactor(config): move build.crossorigin to render.crossorigin (#7187) 2020-04-07 11:38:49 +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
Pooya Parsa
1df1874f8a fix(pkg): add explicit dependencies 2020-02-06 13:57:42 +01:00
Pooya Parsa
d83f697c15 chore: sort package.json 2020-02-06 13:32:56 +01:00
Pooya Parsa
00d95903c6
fix(webpack): provide global URL and URLSearchParams (#6864) 2020-01-19 09:37:06 +01:00
Pooya Parsa
2707bdb37e
feat: improve programatic usage (#6868) 2020-01-19 09:36:06 +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
Xin Du (Clark)
e999060da5 refactor(server): only append not empty allowed sources to csp (#6771) 2019-12-16 21:16:51 +01:00
Daniel Roe
697407d6b4
test: pass array to allowedSources 2019-11-30 12:49:00 +00:00
Xin Du (Clark)
75a29c8b13 global name is wrongly set to nuxt-edge (#6736)
[release]
2019-11-27 20:51:48 +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
Alexander Lichter
75bb0884cb feat: optionally strip non-client or non-server code (#6149) 2019-11-24 16:39:45 +01:00
Xin Du (Clark)
9ada4e63a9 feat(config): add ignoreOptions for node-ignore (#6597) 2019-11-24 13:28:37 +01:00
renovate[bot]
abd82805a7 chore(deps): update all non-major dependencies (#6677) 2019-11-12 10:42:05 +00:00
Daniel Roe
4f0aa74ef2 perf(webpack): prefer using contenthash (#6632) 2019-10-29 19:06:14 +01:00
Pooya Parsa
f6aa45dda6 v2.10.2 [release] 2019-10-21 23:16:29 +02:00
PedroD
257ae2279b fix(config): typo in unsafeInlineCompatibility name (#6583) 2019-10-19 10:15:07 +02:00
Pooya Parsa
624c4c058e v2.10.1 [release] 2019-10-11 10:08:40 +02:00
Pooya Parsa
c17afa77a7 v2.10.0
[release]
2019-10-02 13:40:59 +02:00
Daniel Roe
46a7a67ad4 feat(cli, config): cli.bannerColor option (#6399) 2019-09-30 10:46:58 +02:00
Jonas Galvez
bdcc7dd341 feat(config): serverMiddleware as a simple key/value object (#6414) 2019-09-29 11:11:25 +02:00
Snir Shechter
92c7f4ed24 feat(builder): followSymlinks option to allow for symlinks (#6368) 2019-09-29 11:06:44 +02:00
Alexander Lichter
c202893b9e fix(webpack): correct sass options for sass-loader@8 (#6460) 2019-09-26 14:10:54 +02:00
Pim
4e4aa4d5d4 feat(server): add config option to define etag hash function (#6438) 2019-09-20 20:49:16 +02:00
Pim
b17f331fe5 feat: support setting (non-essential) vue-meta options by user (#6432) 2019-09-18 15:51:44 +02:00
Xin Du (Clark)
8ccca220ed fix(config): enable total timing by default when server.timing is enabled (#6371) 2019-09-09 16:44:36 +02:00
Xin Du (Clark)
eadde4e88c fix(config, vue-app): add module declaration for config and vue-app (#6379) 2019-09-09 09:31:42 +02:00
Pim
174c13d56c feat(vue-app): support configurable features (#6287) 2019-09-05 17:15:27 +02:00
Jonas Galvez
81f0c8af33 feat(builder): extendPlugins option and builder:extendPlugins hook (#6285) 2019-09-04 14:19:50 +02:00
Alexander Lichter
7c90310166 feat(builder, router): enforce uniform trailing slash handling (#6331) 2019-09-01 16:37:25 +02:00