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
HcySunYang
2587f36fe3
fix(runtime-core): component methods should override global properties in DEV ( #3074 )
2021-02-05 19:52:40 +01:00
Yang Mingshan
e109f7b898
chore: remove overloads numbers in comments ( #2976 )
2021-02-04 14:34:40 +08:00
edison
ffd5288545
feat(runtime-core): props type support BigInt
( #2891 )
2021-02-03 19:25:45 +01:00
hiroki
18b0c9a011
docs(type): remove unmount parameters ( #2601 )
2021-02-03 19:09:59 +01:00
Thorsten Lünborg
60e05eff23
fix(runtime-core): ensure app instance can be garbage collected after unmount ( close #2907 ) ( #2909 )
...
close #2907
Co-authored-by: Thorsten Luenborg <t.luneborg@googlemail.com>
2021-02-03 19:09:20 +01:00
Evan You
310cb8cfab
chore: fix useSSRContext casing in warning message
2021-01-29 15:03:52 -05:00
Guillaume Chau
4fecb27f86
fix(devtools): send instance to devtools when it's mounted instead of created
2021-01-29 16:48:37 +01:00
Godpu
f2228a87d4
chore: typo ( #2953 )
2021-01-06 10:46:51 +01:00
Bruno P. Kinoshita
ee266af42a
chore: typo "depdendency" ( #2920 )
2020-12-31 11:15:57 +01:00
Evan You
5a5d037dbb
release: v3.0.5
2020-12-30 15:50:28 -05:00
Guillaume Chau
3626ff07fe
feat(devtools): send instance
2020-12-18 18:24:01 +01:00
Bas van Meurs
3867bb4c14
fix(runtime-core): component mount anchor memory leak ( #2459 )
...
fix #2458
2020-12-04 18:03:10 -05:00
edison
82bf7ebf36
refactor(runtime-core): extract common getComponentName function ( #2454 )
2020-12-04 17:03:03 -05:00
Zcating
d2d27b2e66
types(watch): better typing when watching multiple sources ( #2425 )
2020-12-04 16:32:26 -05:00
Carlos Rodrigues
6684c6334d
types: mixin and extends typing on data and setup ( #2404 )
...
close #2350
2020-12-04 16:06:34 -05:00
edison
c59897c7b0
fix(runtime-core): skip patchBlockChildren if n1.dynamicChildren is null ( #2717 )
...
fix #2715
The bug was introduced by #2485 where a compiled slot may result in a bailed Fragment
which then gets its dynamicChildren set to `null` by the renderer.
2020-12-03 12:17:04 -05:00
Evan You
d067fb2dbb
release: v3.0.4
2020-12-02 17:23:43 -05:00
Evan You
3523f743e5
build(deps-dev): handle @types/jest bump
2020-12-02 17:05:30 -05:00
Evan You
4307610c35
chore: fix setRef usage
2020-11-30 20:07:06 -05:00
Evan You
64d4681e4b
fix(async-component): forward refs on async component wrapper
...
fix #2671
2020-11-30 18:59:14 -05:00