Commit Graph

417 Commits

Author SHA1 Message Date
Pooya Parsa
7dd33fedd2 feat(builder): validate vue-app dependencies and suggest fix (#4669) 2019-01-02 14:17:19 +00:00
Xin Du (Clark)
7ff4058318 fix: Vue.component(RouterLink) is undefined in vue-router 3.0.0 (#4668) 2019-01-02 13:06:47 +01:00
Sébastien Chopin
f319033928
feat(nuxt-link): Smart prefetching and $nuxt.isOffline (#4574)
* feat(nuxt-link): Improve <n-link> and add automatic prefetch

* Update packages/vue-app/template/components/nuxt-link.js

Co-Authored-By: Atinux <seb@orion.sh>

* add missing space

* feat(nuxt-link): Split in two components for smaller bundle

* fix(vue-app): Use requestIdleCallback

* chore(vue-app): Improve nuxt prefetch strategy for nuxt links

* chore(vue-app): Add .isOnline and handle it for prefetch

* chore(vue-app): Add .isOffline and use it

* chore(vue-app): Add .isOffline

* chore(server): Check is options.modern is given in dev mode

* chore(vue-app): Add intersection-observer polyfill if router.prefetchLinks is 'polyfill'

* chore(vue-app): Remove polyfill

* chore(vue-app): Use only process.client

* chore(vue-app): Add TS typings for .isOnline and isOffline

* chore(vue-app): Update typings by @kevinmarrec

* chore(vue-app): Reorder names

* examples(nuxt-prefetch): Add Nuxt prefetching example

* chore(vue-app): Add router.linkPrefetchedClass

* lint(vue-app): Fix lint

* chore(vue-app): Use intersectionRatio, recommend by @maoberlehner

* fix(lint): Fix linting issues

* lint(vue-app): Fix again (lol)

* types(vue-app): Update TS typings

* chore(vue-app): Update Vetur tags description

* fix(vue-app): Use prefetchClass

* chore(vue-app): Disable linkPrefetchedClass by default
2018-12-28 17:27:03 +01:00
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
Dmitry Molotkov
8dc15d07b7 fix: allow keepAliveProps for nuxt component (#4610)
[skip ci]
2018-12-23 11:13:36 +03:30
Andrey Shertsinger
b1b9e0bcbc feat(vue-app): support named views (#4410)
* support named views for extendRoutes config

* fix lint errors

* fix lint errors 2

* some refactoring

* var rename

* fixture & unit tests

* fix: style

* nuxt-child named view example and test

* nuxt element with named view in layout

* lint
2018-12-20 16:50:22 +01:00
Xin Du (Clark)
e71c4559ff feat: mode for plugins (#4592) 2018-12-20 12:58:10 +03:30
Sébastien Chopin
96892c5341 fix(vue-app): Fix default error handler in production 2018-12-19 19:39:38 +01:00
Sébastien Chopin
7812d8d87d Merge branch 'missing-chunk-reload' of https://github.com/aldarund/nuxt.js into aldarund-missing-chunk-reload
Conflicts:
	packages/vue-app/template/client.js
2018-12-19 18:48:38 +01:00
Sébastien Chopin
951e745e54 fix(vue-app): Set window. equals to window.{globalName} when defined 2018-12-19 18:29:45 +01:00
Sébastien Chopin
6c4280f87f fix(vue-app): Call Vue.config.errorHandler instead of simply logging the error 2018-12-19 18:12:39 +01:00
Sébastien Chopin
59aee74a88
feat(vue-app): add vetur helpers for components auto-complete on VS Code (#4524)
* feat(vue-app): Add vetur helpers for components auto-complete on VS Code

* update vetur helper

* Update nuxt-attributes.json

* Update nuxt-tags.json
2018-12-19 17:31:10 +01:00
Alexander Lichter
81cf09cb76 fix: apply store HMR to whole store (#4589) 2018-12-19 17:26:58 +01:00
Sébastien Chopin
c8b920a145 feat(vue-app): Add deprecating for classic mode and handle mutations/actions HMR to store/index.js 2018-12-19 17:15:01 +01:00
Alexander Lichter
b2eee1772e feat: add store module HMR (#4582)
* feat: add store module HMR

* fix: replace export with window.$nuxt

Thanks to @pi0 for the suggestion :)

* refactor: apply only in dev mode on client side

* test: make store module test more descriptive

* fix: clear modules to apply HMR

* fix: remove console.log

* fix: e2e tests

* refactor: use void
2018-12-19 16:22:00 +01:00
renovate[bot]
186b3cb233 chore(deps): update all non-major dependencies (#4581)
[skip release]
2018-12-18 20:32:05 +03:30
Jonas Galvez
25d26ba42f chore(vue-app): use serializeFunction when appropriate (#4575) 2018-12-17 17:26:23 +00:00
Jonas Galvez
669fecc6a3 feat: allow scrollToTop to be explicitly disabled (#4564)
Co-authored-by: James Homer <jameshomer85@gmail.com>
2018-12-16 13:32:39 +03:30
Jonas Galvez
7831e57943 fix: properly serialize head functions (#4558)
#4079
2018-12-15 12:07:31 +03:30
renovate[bot]
e6ca79969a chore(deps): update all non-major dependencies (#4551)
[skip release]
2018-12-15 11:01:59 +03:30
Ricardo Gobbo de Souza
99614535b5 feat(vue-app, vue-renderer): support meta headAttrs (#4536) 2018-12-14 17:36:26 +03:30
Hartmut
da0a3794ef fix(vue-app): add type definition for ComponentOptions.middleware (#4531) 2018-12-14 06:01:25 +03:30
Alexander Lichter
c60b1945e8 chore: cleanup (#4529) 2018-12-12 10:01:49 +03:30
renovate[bot]
13c7b6d671 chore(deps): vue v2.5.21 (#4523) 2018-12-12 09:57:26 +03:30
Sébastien Chopin
15051978f0 feat(vue-app): <n-link> and <n-child> component aliases (#4525) 2018-12-11 20:37:04 +03:30
ousiri
431cc15617 fix: keepAliveProps broken in <nuxt-child> (#4521) 2018-12-11 11:11:15 +01:00
renovate[bot]
b07c27a843 chore(deps): update all non-major dependencies to ^2.5.20 (#4514) 2018-12-10 22:09:04 +03:30
renovate[bot]
6d8aeec81c chore(deps): update vue to v2.5.19 (#4509) 2018-12-10 01:47:40 +03:30
Sébastien Chopin
45be638479 fix(vue-app): Fix route meta to handle order 2018-12-09 13:07:06 +01:00
renovate[bot]
7c820d9262 chore(deps): update all non-major dependencies (#4497)
* chore(deps): update all non-major dependencies

* pin vue to 2.5.17
2018-12-09 12:28:49 +03:30
Clark Du
5a8e6e4bdf fix: merge route.meta into options.meta (#4479)
[skip release]
2018-12-04 15:49:05 +03:30
Clark Du
e2ab1b4896 fix(vue-app): router.meta is null on extendRoutes(#4478)
fixes #4154
2018-12-03 14:21:17 +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
Dmitry Molotkov
a6fed0acbd fix(vue-app): allow passing custom props to error function (#4462)
Resolves #4460.
2018-11-30 22:45:29 +03:30
Clark Du
18b9b750f5 Merge remote-tracking branch 'origin/2.x' into dev 2018-11-28 16:36:36 +00:00
Dmitry Molotkov
6ed3ecacc7 hotfix(vue-app): ReferenceError error passed with routeChanged (#4444) 2018-11-28 17:30:40 +01:00
Pooya Parsa
8cc954d48e merge 2.x changes into dev
commit 0f28f9cdb6
Author: Pooya Parsa <pyapar@gmail.com>
Date:   Mon Nov 26 21:23:55 2018 +0330

    add simple release script

commit 16c5b892fa
Author: Pooya Parsa <pyapar@gmail.com>
Date:   Mon Nov 26 21:20:03 2018 +0330

    v2.3.4

commit e4a02a51ac
Author: Pooya Parsa <pyapar@gmail.com>
Date:   Mon Nov 26 21:17:40 2018 +0330

    whitelist CHANGELOG files

commit c96e9f4996
Author: Pooya Parsa <pyapar@gmail.com>
Date:   Mon Nov 26 21:14:29 2018 +0330

    lerna auto tag

commit be126bd962
Author: Pooya Parsa <pyapar@gmail.com>
Date:   Mon Nov 26 21:12:22 2018 +0330

    remove extra gitHead

commit eefa13033f
Author: Pooya Parsa <pyapar@gmail.com>
Date:   Mon Nov 26 21:09:31 2018 +0330

    hotfix: build on prepublish hook

commit d0af6a4736
Author: Sébastien Chopin <seb@chopin.io>
Date:   Mon Nov 26 18:37:12 2018 +0100

    bump: Bump to v2.3.3

commit 2e90166f2a
Author: Pooya Parsa <pyapar@gmail.com>
Date:   Mon Nov 26 20:32:11 2018 +0330

    update @nuxtjs/opencollective to 0.2.0

commit f10c9829a8
Author: renovate[bot] <renovate[bot]@users.noreply.github.com>
Date:   Mon Nov 26 20:24:49 2018 +0330

    chore(deps): update dependency vue-meta to ^1.5.6 (#4427)

commit b7285fe8f3
Author: Pooya Parsa <pyapar@gmail.com>
Date:   Mon Nov 26 20:05:18 2018 +0330

    remove build with devtools tests as feature is not merged yet

commit b582e706fc
Author: Pooya Parsa <pyapar@gmail.com>
Date:   Mon Nov 26 19:58:34 2018 +0330

    update patch-only dependencies

commit 289d30f836
Author: Pooya Parsa <pyapar@gmail.com>
Date:   Mon Nov 26 19:55:51 2018 +0330

    remove typings

commit 7e1beed9b8
Author: Dmitry Molotkov <aldarund@gmail.com>
Date:   Sun Nov 25 17:48:13 2018 +0300

    perf(pkg): remove lodash dependency from packages (#4411)

commit 4a85c0311f
Author: Pooya Parsa <pyapar@gmail.com>
Date:   Sun Nov 25 22:46:19 2018 +0330

    fix(pkg): move opencollective dependency nuxt and nuxt-legacy (#4415)

commit d1877935a3
Author: Dmitry Molotkov <aldarund@gmail.com>
Date:   Sun Nov 25 17:52:37 2018 +0300

    fix(server, vue-app): allow unicode page names (#4402)

commit e1c1240b8d
Author: Alexander Lichter <manniL@gmx.net>
Date:   Sun Nov 25 14:51:32 2018 +0000

    fix(server, jsdom): fix timeout error message (#4412)

    [skip release]

commit 0c6c69b011
Author: Alexander Lichter <manniL@gmx.net>
Date:   Sat Nov 24 21:35:43 2018 +0000

    fix(scrollBehavior): emit triggerScroll event after changing layer (#4399)

    resolves: #4080

commit 8030ca1a3d
Author: Alexander Lichter <manniL@gmx.net>
Date:   Sat Nov 24 18:30:28 2018 +0000

    fix(progress-bar): allow 0 for values and remove duplicate defaults (#4397)

commit 54d273720c
Author: Clark Du <clark.duxin@gmail.com>
Date:   Sat Nov 24 00:02:13 2018 +0000

    fix: router Expected "0" to be defined (#4394)

commit 47f02ae5ca
Author: Clark Du <clark.duxin@gmail.com>
Date:   Fri Nov 23 22:34:05 2018 +0000

    fix: empty error message in dev mode

commit ff7c083dda
Author: Clark Du <clark.duxin@gmail.com>
Date:   Thu Nov 22 15:48:26 2018 +0000

    fix: modern=true or false not work as expected (#4378)
2018-11-26 21:32:10 +03:30
Pooya Parsa
16c5b892fa v2.3.4 2018-11-26 21:20:03 +03:30
Pooya Parsa
be126bd962 remove extra gitHead 2018-11-26 21:12:22 +03:30
Sébastien Chopin
d0af6a4736 bump: Bump to v2.3.3 2018-11-26 18:37:12 +01:00
Pooya Parsa
289d30f836 remove typings 2018-11-26 20:48:50 +03:30
Dmitry Molotkov
d1877935a3 fix(server, vue-app): allow unicode page names (#4402) 2018-11-26 20:48:50 +03:30
Alexander Lichter
0c6c69b011 fix(scrollBehavior): emit triggerScroll event after changing layer (#4399)
resolves: #4080
2018-11-26 20:48:50 +03:30
Alexander Lichter
8030ca1a3d fix(progress-bar): allow 0 for values and remove duplicate defaults (#4397) 2018-11-26 20:48:50 +03:30
Clark Du
54d273720c fix: router Expected "0" to be defined (#4394) 2018-11-26 20:48:50 +03:30
Dmitry Molotkov
949785f58e fix(server, vue-app): allow unicode page names (#4402) 2018-11-25 18:22:37 +03:30
Alexander Lichter
330301cacf fix(scrollBehavior): emit triggerScroll event after changing layer (#4399)
resolves: #4080
2018-11-25 01:05:43 +03:30
Clark Du
52a92fbc48 refactor: use PascalCase for components names (#4396) 2018-11-24 22:19:19 +03:30
Alexander Lichter
ecdc7bcc25 fix(progress-bar): allow 0 for values and remove duplicate defaults (#4397) 2018-11-24 22:00:28 +03:30
Clark Du
39b1b8e5e0
fix: router Expected "0" to be defined (#4394) 2018-11-24 00:02:13 +00:00
Pooya Parsa
d590858ff5 Merge branch '2.x' into dev 2018-11-21 13:43:26 +03:30
Sébastien Chopin
205c9d3815 bump: Bump to v2.3.2 2018-11-20 21:48:46 +01:00
Pooya Parsa
b472e47466 [skip ci] remove changelogs 2018-11-20 22:56:45 +03:30
Pooya Parsa
c3318644c1 [skip ci] use dependent versioning 2018-11-20 22:56:45 +03:30
Pooya Parsa
33d4e89925 [skip ci] remove changelogs 2018-11-18 02:14:02 +03:30
Pooya Parsa
3e48de906a [skip ci] use dependent versioning 2018-11-18 01:49:27 +03:30
Kevin Marrec
d5716eb3db feat(ts): provide type definitions (#4164) 2018-11-17 14:22:21 +03:30
Sébastien Chopin
2f7ba13084 fix: Bump to v2.3.1 2018-11-16 09:30:11 -05:00
Sébastien Chopin
fcea3ebbc6 bump: Nuxt v2.3.0 2018-11-16 09:15:00 -05:00
Dmitry Molotkov
9fbd581557 fix: handle errors that are not error instances (#4321) 2018-11-14 22:47:44 +03:30
Jonas Galvez
3b7958b99a fix: dev tools detection of custom global name (#4305) 2018-11-11 14:52:50 +03:30
Pooya Parsa
7c4e77ffb9
feat: dx improvements (#4259) 2018-11-08 12:45:56 +03:30
Alexander Lichter
b3eb4278a5 fix: serialize config head fn shorthand correctly (#4283)
[skip ci]
2018-11-08 02:03:09 +03:30
Alexander Lichter
10c608a649 chore(vue-app): deprecate callback-based asyncData, fetch and middleware (#4256) 2018-11-06 16:32:07 +03:30
Sébastien Chopin
965c2a6c55 page: Update Nuxt uvp 2018-10-31 09:34:17 +01:00
Sébastien Chopin
b5522f627b page: Update Nuxt uvp and tweaks on CSS 2018-10-31 09:34:17 +01:00
Pooya Parsa
39b558f59c
refactor core into sub-packages (#4202) 2018-10-31 00:12:53 +03:30