HcySunYang
420c8f4580
fix(ssr/hydration): handle ending empty text node ( #3246 )
...
fix #3245
2021-03-26 11:45:28 -04:00
Evan You
2e71f07bc1
fix(ssr): ensure async setup error handling work with suspense during ssr
2021-03-26 11:00:30 -04:00
edison
d668d48e9e
fix(runtime-core): handle error in async setup ( #2881 )
2021-03-26 10:26:30 -04:00
Evan You
abd129d845
fix(component): prioritize registered component over implicit self-reference via filename
...
ref: #2827
2021-03-26 10:04:36 -04:00
Evan You
da944cb379
fix(ssr): fix memory leak when vnode component render throws error
...
fix #3100
2021-03-25 18:04:21 -04:00
HcySunYang
2b588cf1bc
fix(types): unwrap refs on public instance data ( #3319 )
...
fix #3315
2021-03-25 17:30:10 -04:00
HcySunYang
44166b43d9
fix(runtime-core): cache props default values to avoid unnecessary watcher trigger ( #3474 )
...
fix #3471
2021-03-25 17:26:58 -04:00
HcySunYang
2451dd8ae6
fix(runtime-core): the select tag's multiple prop should be set before the children mounting ( #3202 )
...
fix #3199
2021-03-25 16:49:34 -04:00
Evan You
084e932e85
refactor: simplify lifecycle hook call logic
2021-03-25 16:48:51 -04:00
HcySunYang
b58bb16959
fix(runtime-core): should call chained mixins and extends ( #3040 )
...
fix #3038
2021-03-25 16:39:57 -04:00
HcySunYang
86ceef4352
fix(runtime-core): fix warning for absent props ( #3363 )
...
fix #3362
2021-03-25 16:22:43 -04:00
Evan You
7cf143dd4f
chore: fix test
2021-03-25 16:06:02 -04:00
HcySunYang
6e88156934
fix(runtime-core): should not cache property access during data() invocation ( #3299 )
...
fix #3297
2021-03-25 15:48:12 -04:00
07akioni
3755e60c52
fix(types): union function prop ( #3119 )
...
fix #3357
2021-03-25 11:27:54 -04:00
TJ Koblentz
e4b5fccd0c
fix(ssr): watchEffect onInvalidate runner initialization ( #3323 )
...
close #3322
2021-03-25 11:17:57 -04:00
edison
bf34e33c90
fix(runtime-core): ensure only skip unflushed job ( #3406 )
2021-03-25 11:13:35 -04:00
HcySunYang
776951315d
fix(Teleport): component with multi roots should be removed when unmounted ( #3157 )
...
fix #3156
2021-03-25 11:02:50 -04:00
HcySunYang
0a583d5ca2
fix(ssr): respect render function from extends/mixins in ssr ( #3006 )
...
fix #3004
2021-03-25 10:32:17 -04:00
edison
eb1fae63f9
fix(runtime-core): handle error in async watchEffect ( #3129 )
2021-03-23 10:20:52 +01:00
鱼
21d1288133
fix(teleport): targetAnchor should also be removed when unmounted ( #2870 )
...
* fix(teleport): targetAnchor should also be removed when unmounted
* fix(teleport): targetAnchor should also be removed when unmounted
2021-03-23 10:19:09 +01:00
Cédric Exbrayat
3b3a9a1f52
fix: add display name for suspense component ( #3312 )
2021-03-23 10:17:15 +01:00
HcySunYang
67a0290c0a
fix(transition): toggling branches with in-out mode should be transitioned correctly ( #3109 )
...
fix #3104
2021-03-22 16:56:24 -04:00
HcySunYang
e8e9b00f81
fix(KeepAlive): adapt keepalive for ssr ( #3259 )
...
fix #3255
2021-03-22 16:49:07 -04:00
Evan You
ff4d4ec249
chore: fix all test cases
2021-03-05 18:28:12 -05:00
Evan You
68416e988f
chore: fix types
2021-03-05 18:28:12 -05:00
Evan You
02cbbb718c
perf: support only attaching slot scope ids when necessary
...
This is done by adding the `slotted: false` option to:
- compiler-dom
- compiler-ssr
- compiler-sfc (forwarded to template compiler)
At runtime, only slotted component will render slot fragments with
slot scope Ids. For SSR, only slotted component will add slot scope Ids
to rendered slot content. This should improve both runtime performance
and reduce SSR rendered markup size.
Note: requires SFC tooling (e.g. `vue-loader` and `vite`) to pass on
the `slotted` option from the SFC descriptoer to the `compileTemplate`
call.
2021-03-05 18:28:12 -05:00
Evan You
aea88c3280
refactor: fix implementation of SFC :slotted id handling
...
fix #2892
2021-03-05 18:28:12 -05:00
Evan You
69304cf166
refactor: adjust logic branches
2021-03-01 15:45:55 -05:00
HcySunYang
7562e72c2b
fix(runtime-core): fix async component ref handling ( #3191 )
...
fix #3188
2021-03-01 15:00:32 -05:00
Evan You
75fdcd85ce
chore: rename test to match src filename
2021-03-01 12:30:04 -05:00
HcySunYang
8ffcde2836
fix(runtime-dom): support mounting app to svg container ( #2929 )
...
fix #2926
2021-03-01 11:51:32 -05:00
Evan You
1a955e2278
release: v3.0.7
2021-03-01 10:59:29 -05:00
HcySunYang
45fae9d308
fix(scheduler): ensure updates are always inserted in ascending id order ( #3184 )
...
fix #2768 , fix #2829
2021-02-25 09:37:25 -05:00
Evan You
75964aba03
test: test case for #3300 , #3301
2021-02-25 09:07:49 -05:00
HcySunYang
e3568bae27
fix(runtime-core): properties in methods should be writable and enumerable in DEV ( #3301 )
...
fix #3300
2021-02-25 09:04:28 -05:00
HcySunYang
4a965802e8
types: support object as props type ( #3165 )
2021-02-24 16:20:41 -05:00
HcySunYang
354966204e
dx(runtime-dom): warn config.isCustomElement usage in runtime-only build ( #2945 )
2021-02-24 16:18:55 -05:00
Evan You
d0ea74556f
fix: init devtools after feature flag checks
2021-02-24 15:59:38 -05:00
Evan You
d9f91e26f9
release: v3.0.6
2021-02-24 15:19:31 -05:00
Evan You
5a7a1b8293
fix(hmr): deep clone reused hoisted trees during dev
...
fix vitejs/vite#2022
2021-02-15 15:09:27 -05:00
edison
ec8fd10cec
fix(runtime-core): instanceWatch should pass this.proxy
to source as the first argument ( #2753 )
2021-02-09 08:00:32 +01:00
JokcyLou
bd1240c127
feat: remove useless option in KeepAlive ( #3170 )
2021-02-09 07:58:53 +01:00
HcySunYang
f43a3b0beb
fix(runtime-core): align $parent/$root with the template ref when using expose ( #3158 )
2021-02-07 14:39:52 +01:00
edison
3efa2aff13
chore(runtime-core): remove unnecessary variables ( #2680 )
2021-02-05 20:06:50 +01:00
Alan Wang
1f567264a7
test: fix typo in expect message ( #2678 )
2021-02-05 20:06:21 +01:00
Cédric Exbrayat
73117f6b5b
fix(runtime-core): allow overriding properties other than props ( #3105 )
...
This is useful for testing, as Jest can't spy on an object without `hasOwnProperty`.
VTU can add it, but this commit is needed first.
2021-02-05 19:59:46 +01:00
HcySunYang
48f0d2944f
fix(types): extract the correct props type for the DateConstructor ( #2676 )
2021-02-05 19:56:23 +01:00
Thorsten Lünborg
288ae0a8d9
feat(runtime-core): improve render context warning ( #2496 )
...
Co-authored-by: Thorsten Luenborg <t.luneborg@googlemail.com>
2021-02-05 19:55:45 +01:00
Yang Mingshan
01fdbf4b06
types: use non-null assertion instead of explicit type cast ( #2974 )
2021-02-05 19:55:23 +01:00
HcySunYang
347a8798a4
fix(runtime-core): check the DEV_ROOT_FRAGMENT flag correctly in the dev environment ( #2750 )
2021-02-05 19:54:59 +01:00