Commit Graph

3525 Commits

Author SHA1 Message Date
小刘(liulinboyi)
73e6523134
fix(compiler-sfc): support export { default } from '...' (#5937)
fix #5935
2022-05-18 19:51:44 -04:00
Yunyoung LEE
991d62322f
fix(compiler-sfc): type-only defineProps does not recognize Promise (fix #5941) (#5943) 2022-05-18 19:34:52 -04:00
Carlos Rodrigues
7c8f4578e9
fix(types): fix defineComponent inference to Component (#5949) 2022-05-18 19:34:35 -04:00
Cédric Exbrayat
3e2850fa6c
fix(types): export ComponentProvideOptions (#5947) 2022-05-18 19:32:20 -04:00
Evan You
595263c0e9 fix(ssr/teleport): support nested teleports in ssr
fix #5242
2022-05-18 18:13:08 +08:00
Evan You
84f0353511 test: hydration test case for component w/ teleport root 2022-05-18 17:27:53 +08:00
Evan You
cdda49bbfb fix(runtime-core): adjust force diff of dev root fragments
fix #5946
2022-05-18 16:36:00 +08:00
Evan You
b60cff052c fix(ssr): fix hydration error when teleport is used as component root
fix #4293
2022-05-18 12:18:12 +08:00
Bulat Aykaev
0841b9b524 fix(keep-alive): fix keep-alive rendering when placed in vnode branch
fix #4817
2022-05-18 10:48:58 +08:00
Evan You
3705b3b46a fix(ssr): fix hydration error when transition contains comment children
fix #5351
2022-05-18 10:03:00 +08:00
Evan You
aed10c5072 fix(ssr): render fallthrough attributes for transition-group with tag
fix #5141
2022-05-18 09:55:39 +08:00
Evan You
1035c6b51b chore: split ssr transition group tests 2022-05-18 09:31:31 +08:00
Evan You
ee4186ef9e fix(ssr): fix hydration error on falsy v-if inside transition/keep-alive
fix #5352
2022-05-18 09:28:18 +08:00
Evan You
c65b805ef1 fix(compiler-ssr): only inject fallthrough attrs for root transition/keep-alive 2022-05-18 08:37:24 +08:00
Roan Kattouw
c03459b9b6
fix(ssr): support client-compiled v-model with dynamic type during ssr (#5787)
fix #5786
2022-05-17 05:52:44 -04:00
Evan You
847d7f782b fix(ssr): inherit scope id on functional component during ssr
fix #5817
2022-05-17 17:45:53 +08:00
Evan You
415091b0ee fix(compiler-core): should generate HYDRATE_EVENTS flag on dynamic component that resolves to element
fix #5870
2022-05-17 16:39:48 +08:00
Evan You
f811dc2b60 fix(compiler-ssr): fix component event handlers inheritance in ssr
fix #5664
2022-05-17 15:50:23 +08:00
Evan You
4caa52120d chore: bump repl 2022-05-17 15:06:49 +08:00
Evan You
7fd761e577 release: v3.2.34-beta.1 2022-05-17 12:53:51 +08:00
Evan You
77fef97344 fix(ssr): resolve teleports for stream render APIs 2022-05-17 12:41:40 +08:00
Evan You
57d3a0566f workflow: add prod/dev toggle to sfc playground 2022-05-17 12:10:29 +08:00
Evan You
70c2d5bbc0 fix(ssr): fix ssr render output for fragment in slots
fix #5859
2022-05-17 11:13:22 +08:00
Evan You
efea4a8b57 fix(ssr/sfc-css-vars): fix v-bind css vars codegen for SSR
fix #5443
close #5444
2022-05-17 09:21:44 +08:00
edison
2a9e9a4096
refactor(runtime-core): extract function isReservedPrefix (#3265)
* chore(runtime-core): extract function isReservedKey

* chore: improve code

Co-authored-by: Evan You <yyx990803@gmail.com>
2022-05-13 04:52:19 -04:00
edison
40794c80ca
refactor(runtime-core): extract type SetRootFn (#3209) 2022-05-13 04:48:20 -04:00
阿崔cxr
e85e0a7f3a
chore: use ast node creation helper (#5255) 2022-05-13 04:37:50 -04:00
Package
9def7aa508
fix(types): allow css variables in style binding (#5542) 2022-05-13 04:30:30 -04:00
Spencer McWilliams
e5a90893a6
fix(types): add Set<any> to checkbox binding type for v-model (#5713) 2022-05-13 04:23:33 -04:00
Vanilla
eef14471b2
fix(shared): improve isDate check (#5803) 2022-05-13 04:17:31 -04:00
Adam Jedlička
4d7803ed28
fix(ssr): render teleport inside async component (#5187) 2022-05-13 03:57:10 -04:00
Evan You
31c0bb355a chore: fix snapshots 2022-05-13 15:45:26 +08:00
Evan You
be6a0bff98 refactor: simplify logic 2022-05-13 15:41:49 +08:00
liulinboyi
a0290fe781 fix(compiler-sfc): add test for #5808 2022-05-13 15:41:49 +08:00
liulinboyi
6c3b681d23 fix(compiler-sfc): async transformer doesn't correctly detect need for semicolon in block #5808 2022-05-13 15:41:49 +08:00
Evan You
de7a879cda chore: fix snapshot + simplify fix 2022-05-13 11:04:24 +08:00
liulinboyi
3b7b107120 fix(compiler-sfc): <script> after <script setup> the script content not end with \\n 2022-05-13 11:04:24 +08:00
edison
242914d938
fix(reactivity-transform): fix props access codegen for non-identifier prop names (#5436)
fix #5425
2022-05-12 22:38:46 -04:00
zs
0c07f12541
chore: warn when mounting different apps on the same host element (#5573) 2022-05-12 21:09:18 -04:00
Travis
f2c48f5352
fix(compiler-sfc): fix defineEmits() scope reference check error message (#5404) 2022-05-12 21:08:28 -04:00
Evan You
6283b2ec41 fix(compiler-dom): properly stringify v-html/v-text with constant value
fix #5439
close #5445
2022-05-13 08:57:43 +08:00
Marcos Dantas
cd92654510
chore: comments (#5332) [ci skip] 2022-05-12 20:23:28 -04:00
edison
220f255fe9
fix(watch): fix watching multiple sources containing shallowRef (#5381)
fix #5371
2022-05-12 20:20:04 -04:00
三咲智子
04fff05f00
fix(sfc-playground): default selected app (#5370) 2022-05-12 20:16:29 -04:00
Evan You
8758da4749 chore: bump @vue/repl dep
close #5825
2022-05-13 07:56:11 +08:00
小刘(liulinboyi)
71066b5afe
fix(v-model): fix case where .trim and .number modifiers are used together (#5842)
fix #5839
2022-05-12 19:52:16 -04:00
huangcheng
a3881299e9
fix(runtime-core): handle NaN identity check in v-memo (#5852)
fix #5853
2022-05-12 19:49:51 -04:00
Evan You
d36ca4d80e fix(runtime-core): clone root vnode before inheriting directives 2022-05-13 07:29:37 +08:00
Cédric Exbrayat
9ecee16f89
chore: add no-debugger eslint rule (#5906) 2022-05-12 19:10:00 -04:00
Evan You
8a123ac34f fix(compiler-sfc): fix treeshaking of namespace import when used in template
fix #5209
2022-05-12 18:56:54 +08:00
Evan You
8c51c6514f fix(v-model): exclude range from lazy guard logic
fix #5875
2022-05-12 18:39:17 +08:00
Evan You
ccf92564d3 fix(compiler-sfc): fix template usage check false positives on types
fix #5414
2022-05-12 18:23:10 +08:00
Evan You
ba17792b72 fix(runtime-core): fix missed updates when passing vnode to <component :is>
fix #4903
2022-05-12 17:52:17 +08:00
Evan You
0f00cf43cf fix(compiler-core): normalize v-bind:style with array literal value
fix #5106
2022-05-12 16:31:16 +08:00
Evan You
59cf2958e7 fix(transition): handle edge case of cancel leave before next frame
fix #4462
2022-05-12 15:39:34 +08:00
Evan You
9309b044bd fix(ssr): fix hydration error for slot outlet inside transition
fix #3989
2022-05-12 15:06:32 +08:00
Evan You
da49c863a2 fix(keep-alive): fix unmounting late-included components
fix #3648
based on #3650
2022-05-12 11:52:54 +08:00
Evan You
20ed16f68c fix(keep-alive): invoke initial activated hook for async components
revert #5459
fix #5095
fix #5651
2022-05-12 11:29:26 +08:00
Evan You
9d815d28ad chore: remove dbeugger [ci skip] 2022-05-12 10:38:40 +08:00
Dongcai Huang
109453f2ba
chore: add explaination about the utility type IfAny<T, Y, N> (#5862) [ci skip] 2022-05-11 21:39:06 -04:00
WangJing
9329feb7d3
chore(compiler): improve readability of compiler-core's test case (#4886) 2022-05-11 20:47:10 -04:00
Evan You
54753c3401 chore: update branch references 2022-05-12 08:45:06 +08:00
HeYunfei
b5b103a736
chore(types): delete @ts-ignore or use @ts-expected-error instead (#3669)
Co-authored-by: heyunfei.i <heyunfei.i@bytedance.com>
2022-05-11 20:40:59 -04:00
edison
cd395559ce
chore(compiler-core): use aliasHelper (#3592) 2022-05-11 20:40:05 -04:00
Zardddddd60
eed3973459
chore(runtime-code): delete outdated test case (#3036) 2022-05-11 20:25:06 -04:00
edison
f1d1cdbb69
fix(runtime-core): fix activated hook when using async component with KeepAlive (#5459)
fix #5095
fix #5651
2022-05-11 20:19:11 -04:00
Simon Legner
d4fcfddec6
fix(types): allow indeterminate for checkbox (#3473) 2022-05-11 07:38:13 -04:00
Johnson Chu
c901dca5ad
feat(types): avoid props JSDocs loss by default option (#5871) 2022-05-11 07:37:49 -04:00
Evan You
425310e8b6 fix(transition/v-show): ensure transition is in persisted mode when used with v-show
fix #4845
close #4852
2022-05-11 19:22:55 +08:00
Evan You
2bab639683 fix(runtime-core): fix directive inheritance on dev root fragment
fix #5523
2022-05-11 18:02:31 +08:00
Evan You
51f3d386de fix(compiler-core): template v-if should never be treated as dev root fragment
close #5189
2022-05-11 17:43:20 +08:00
Evan You
b7025d24f1 fix(compiler-sfc): ensure consistent behavior of export default render with script setup
close #4980
2022-05-11 17:20:32 +08:00
Evan You
41d255ba5d fix(compiler-sfc): fix skipped srcset transform when using base option
Based on implementation from #4835 due to conflicts

fix #4819
close #4834, close #4835
2022-05-11 16:55:58 +08:00
Evan You
57bb37bd64 fix(ssr): should not hoist transformed asset urls in ssr compile
fix #3874
2022-05-11 12:43:54 +08:00
Kael
fec12d7dcc
fix(runtime-core): transition hooks can be arrays of functions (#5177) 2022-05-10 21:56:57 -04:00
Kael
da10dd7de9
fix(ssr): don't warn for missing teleport target if disabled (#5135) 2022-05-10 21:33:08 -04:00
edison
cd659fc86f
fix(ssr): should de-optimize on vnode with PatchFlags.BAIL (#4818)
fix #4679
fix #5771
2022-05-10 06:35:34 -04:00
Evan You
410144149f fix(compiler-sfc): defineProps return binding or rest binding should be considered reactive 2022-05-10 17:34:15 +08:00
Evan You
03b03eee44 chore: bump vite 2022-05-10 17:15:12 +08:00
Thorsten Lünborg
e4dffe900a
fix(runtime-core): ensure raw slot function is only normalized once (#5358)
fix: #5343
2022-05-10 04:41:54 -04:00
Evan You
8e31765fd3 chore: fix snapshot 2022-05-10 16:16:26 +08:00
descire
b87dc06193
fix(reactivity): ios10.x compatibility (#4900) 2022-05-10 04:10:40 -04:00
Evan You
d52907f4eb fix(runtime-core): ensure consistent identity of $forceUpdate and $nextTick instance methods
fix #5556
2022-05-10 14:17:04 +08:00
那里好脏不可以
6042ab0f2f
chore: type [ci skip] 2022-05-09 22:51:51 -04:00
Khinenw
181872f744
types(runtime-dom): fix typo in jsx type autosave (#5638) 2022-05-09 22:50:49 -04:00
Leon Si
908ffb4fd4
chore: typo (#5732) [ci skip] 2022-05-09 22:49:14 -04:00
huangcheng
392ca5dd88
chore: fix eslint error (#5876) 2022-05-09 22:43:35 -04:00
netcon
0aeb4bc9bf
fix(shared): missed Symbol judge in looseEqual (#3553) 2022-05-09 22:15:26 -04:00
Evan You
c355c4b784 fix(ssr): implement empty read() on node stream
fix #3846
close #3867
2022-05-10 10:05:24 +08:00
Evan You
30c33af839 chore: use explicit type import to avoid Rollup warning 2022-05-10 10:05:24 +08:00
Julian Hundeloh
e58277f6ea
fix(runtime-dom): "el._assign is not a function" in compat mode (#4121) 2022-05-09 21:58:51 -04:00
Evan You
16a0b232d7 chore: remove unused import due to merge conflict resolve mistake 2022-05-10 09:58:28 +08:00
Evan You
29e454d4d1 chore: fix duplicate export 2022-05-10 09:50:12 +08:00
edison
2a44225446
chore(runtime-core): Remove duplicate variable assignments (#3700) 2022-05-09 21:42:41 -04:00
edison
762a9e99ce
chore(runtime-core): use getGlobalThis when installing HMR API (#3217) 2022-05-09 21:40:19 -04:00
edison
decad9df57
types(compiler-sfc): export SFCParseResult type (#2923)
close #2921
2022-05-09 21:37:59 -04:00
tarunama
7540a3ff1d
chore(server renderer): readable warn message (#2890) 2022-05-09 21:37:00 -04:00
Damon Muma
0abcb2b80d
chore: update reference to transformExpressions (#2682) [ci skip] 2022-05-09 21:30:50 -04:00
小刘(liulinboyi)
7d7a2410e5
fix(compiler-sfc): remove the jsx from the babelParserPlugins when not match the case of adding jsx (#5846)
fix #5845
2022-05-09 21:20:18 -04:00
ygj6
16939241b0
fix(compiler-sfc): automatically infer component name from filename when using script setup (#4997)
close #4993
2022-05-09 21:16:28 -04:00