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
Evan You
7dfe146096
fix(compiler-sfc): fix object default values for reactive props destructure
2022-05-10 08:39:27 +08:00
Evan You
0683a022ec
types(reactivity-transform): improve type readability for reactive variables
2022-05-07 10:37:07 +08:00
qinxiaosen_ccc
292ce69439
chore: remove outdated type comment ( #5103 )
2022-05-06 06:44:28 -04:00
zhangenming
b9484543db
refactor(reactivity): make some expression simpler ( #5131 )
2022-05-06 06:42:22 -04:00
Zclhlmgqzc
98b821d94a
fix(types): preserve and expose original options on defineComponent return type ( #5416 )
...
fix #3796
2022-05-06 05:44:05 -04:00
Carlos Rodrigues
32e53bfd47
fix(types): keep the original type when unwrapping `markRaw` ( #3791 )
2022-05-06 05:07:49 -04:00
Evan You
67099fe202
fix(runtime-core): ensure consistent behavior between dev/prod on invalid v-for range
...
close #5867
2022-05-06 16:49:15 +08:00
Evan You
4a3237ad93
refactor: use Event constructor
...
close #5723
Since we no longer support IE11, it is safe to use Event() constructor
2022-04-16 11:26:00 +08:00
Evan You
74d2a76af6
fix(watch): fix flush: pre watchers triggered synchronously in setup
...
fix #5721
2022-04-15 18:08:44 +08:00
Evan You
82bdf86254
fix(reactivity): ensure computed is invalidated before other effects
...
fix #5720
2022-04-15 16:43:17 +08:00
Evan You
56879e6b23
release: v3.2.33
2022-04-14 18:14:37 +08:00
Evan You
62eba63172
fix(transition): handle transition for v-if branches with comment
...
fix #5675
2022-04-14 18:06:52 +08:00
edison
767d212d20
fix(transition): fix broken leave transition on dev root fragment ( #5268 )
2022-04-14 05:10:41 -04:00
Thorsten Lünborg
71c9536625
fix(runtime-core): ensure custom events are not emitted anymore after unmount. ( #5679 )
...
close #5674
2022-04-13 23:47:24 -04:00
木杉
8e29ef6019
fix(compiler-sfc): handle type modifier in import specifiers ( #5498 )
2022-04-13 22:10:26 -04:00
Anthony Catel
cc238cdb8e
fix(ssr): avoid rendering reserved internal keys in output ( #5564 )
...
fix #5563
2022-04-13 22:03:17 -04:00
Evan You
f641c4b228
fix(runtime-core): fix use of non-existent-in-prod internal property in defineProperty trap
...
fix #5710
2022-04-14 10:00:53 +08:00
edison
1f14f19439
fix(reactivity-transform): should not rewrite catch param ( #5711 )
...
fix #5709
2022-04-13 20:06:58 -04:00
Cédric Exbrayat
86858a9582
test(vue-compat): remove test.only ( #5715 )
2022-04-13 20:06:07 -04:00
Thorsten Lünborg
85af139863
fix(runtime-dom): properly handle style properties with undefined values ( #5348 )
...
fix #5322
2022-04-13 06:20:39 -04:00
edison
f4d2c9fc6a
fix(custom-elements): work with async component + slots ( #4657 )
...
close #4639
2022-04-13 05:58:29 -04:00
Thorsten Lünborg
1612971471
fix(compat): copy additional properties for functions bound via globalProperties ( #4873 )
...
close #4403
2022-04-13 05:53:07 -04:00
宋铄运 (Alan Song)
c6eb3cccce
build: improve treeshakeability ( #5682 )
2022-04-13 05:39:02 -04:00
Thorsten Lünborg
053c65bc5e
dx(suspense): warn when using async setup when not inside a Suspense boundary ( #5565 )
...
close #3649
2022-04-13 05:36:43 -04:00
zhoulixiang
57ca32b096
chore: remove superfluous code ( #5683 )
2022-04-13 05:30:22 -04:00
zscumt123
fa1d14c2c8
fix(runtime-dom): catch more cases of DOM property setting error ( #5552 )
...
close #5545
2022-04-13 05:25:11 -04:00
Haoqun Jiang
74d239caf7
chore(@vue/shared): add `"sideEffects": false` ( #5480 )
2022-04-13 05:23:45 -04:00
Code_xxmyyds
711c826c68
chore(reactivity): use warn ( #5548 )
2022-04-13 05:21:38 -04:00
木杉
2c09969b13
fix(runtime-dom): patch translate as an attr ( #5485 )
...
close #5462
2022-04-13 05:16:33 -04:00
Evan You
154233abdb
fix(reactivity): fix ref tracking of self-stopping effects
...
close #5707
2022-04-13 17:00:31 +08:00
Evan You
f4f5e80a19
release: v3.2.32
2022-04-12 16:07:43 +08:00
Evan You
ea6fc845f2
chore: trim non-public properties on EffectScope type
2022-04-12 15:57:07 +08:00
Thorsten Lünborg
f44087e171
fix(runtime-core): ensure custom directive instance properly exposes properties on closed instances. ( #5022 )
...
fix #5018
2022-04-12 03:54:03 -04:00
Wei
0a301d4dab
fix(reactivity): fix currentScope loss when running detached effect scope ( #5575 )
2022-04-12 03:51:05 -04:00
lidlanca
cee1eafb4d
fix(runtime-core/template-ref): named ref in v-for regression fix ( #5118 )
...
close #5116
close #5447
close #5525
2022-04-12 03:28:40 -04:00
Evan You
7efb9dba30
refactor: remove use of Object.assign
...
TS already transpiles spread to Object.assign with target:es2016
2022-04-12 15:22:11 +08:00
Yuchao
d121a9bc7e
fix(runtime-core): Avoid mutating original options object in createApp ( #4840 )
...
fix #4398
2022-04-12 03:14:23 -04:00
Evan You
4311dddfa7
fix(transition): ensure flattened transition group children inherit parent keys
...
close #4718
close #5360
close #5392
2022-04-12 15:06:46 +08:00
Evan You
68bb8f2529
chore: remove debugger
2022-04-12 14:47:15 +08:00
iwusong
8eceabd14e
fix(runtime-core): fix event listener as dynamicProp is added erroneously to props ( #5517 )
...
fix #5520
2022-04-12 02:42:00 -04:00
Evan You
b2b6b6ff62
chore: bump vite & esbuild
2022-04-12 14:29:49 +08:00
Evan You
245230e135
chore: remove no longer present V_FOR_REF compat entry
...
close vuejs/v3-migration-guide#10
2022-03-31 08:15:59 +08:00
Guillaume Chau
1070f127a7
fix(devtools): perf: use high-resolution time
2022-03-09 14:30:24 +01:00
lidlanca
1574edd490
fix(runtime-core): allow spying on proxy methods regression ( #5417 )
...
fix #5415 (regression by #4216 )
2022-02-13 20:40:12 -05:00
Evan You
d56dec6b4a
release: v3.2.31
2022-02-12 16:41:52 +08:00
Cédric Exbrayat
8457d8b980
fix(runtime-core): allow spying on proxy methods ( #4216 )
...
Since Jest v26.6.1, the mock method changed (see this commit 30e8020362 ) to rely on `Object.defineProperty` in some cases.
This breaks spying on proxy's methods, because even if Jest is properly calling `Object.defineProperty`, the cached value in the `get` section of the proxy is never updated, and the spy is in fact never used.
This is easily reproducible as vue-next already uses a version of jest with these changes.
This is blocking projects (like vue-test-utils-next and vue-cli) to update to recent Jest versions.
This commit adds a `defineProperty` method to the proxy handler, that properly updates the defined value in the cache.
2022-02-12 03:35:05 -05:00
Evan You
436c500d2c
fix(compiler-ssr): no need to inject resolveDirective calls for setup custom directives
2022-02-12 16:29:24 +08:00
Anthony Fu
0342fae8ad
fix(ssr): always hydrate children for HMR ( #5406 )
...
fix #5405
2022-02-12 03:24:19 -05:00
Evan You
15adf251ab
release: v3.2.30
2022-02-07 14:14:53 +08:00
Evan You
ce34d9114e
chore: remove v3.vuejs.org references
2022-02-07 13:13:26 +08:00
Evan You
48de8a42b7
chore: remove next references [ci skip]
2022-02-07 12:16:22 +08:00
Evan You
60cf175d88
feat(ssr): support custom directive getSSRProps in optimized compilation
...
close #5304
2022-02-04 08:58:31 +08:00
Evan You
a51f935b72
refactor: remove isTracking() method
2022-01-30 18:53:43 +08:00
Evan You
bb43704b64
chore: check string first in toDisplayString
2022-01-30 18:50:28 +08:00
Evan You
81a6708739
chore: simplify effectScope
2022-01-28 21:02:09 +08:00
Evan You
2993a24618
perf(reactivity): optimize effect/effectScope active state tracking
2022-01-28 18:35:09 +08:00
Evan You
6b6889852f
release: v3.2.29
2022-01-23 22:02:23 +08:00
Evan You
9aa5dfd4bb
fix(runtime-dom): fix static content re-insertion
...
fix #5308
The regression was introduced in ed9eb62 . In the cached code path,
we attempt re-insertion by cloning cached nodes. However if the static
fragment was removed as component root, it loses the nodes between
start and end because each node was removed individually. Therefore
the cached path can only be taken if the fragment has a single node, or
it was removed as part of a parent tree so the sibling information is
still available.
2022-01-23 21:44:32 +08:00
Thorsten Lünborg
4be1037f31
fix(reactivity): ensure readonly refs can be replaced with new refs in reactive objects ( #5310 )
...
fix #5307
2022-01-23 08:08:27 -05:00
Evan You
059c63eab7
test: add missing edge case for css v-bind
2022-01-23 21:03:37 +08:00
Evan You
16fa18da6d
fix(compiler-sfc): fix css v-bind inside other css functions
...
fix #5302 , close #5306
2022-01-23 20:58:43 +08:00
Evan You
283df0ad68
release: v3.2.28
2022-01-21 16:15:13 +08:00
edison
95d49bf7e7
fix(compiler-sfc): support complex expression in CSS v-bind() ( #5114 )
...
fix #5109
2022-01-21 15:57:30 +08:00
btea
63210fe41a
refactor: includes instead of indexOf ( #5117 )
2022-01-21 02:36:48 -05:00
HcySunYang
c64907d261
fix(types): calling readonly() with ref() should return Readonly<Ref<T>> ( #5212 )
2022-01-21 02:33:30 -05:00
Thorsten Lünborg
171f5e9c60
fix(reactivity): mutating a readonly ref nested in a reactive object should fail. ( #5048 )
...
fix : #5042
2022-01-21 02:33:18 -05:00
Soha Jin
72130ac7b5
fix(compat): convertLegacyVModelProps should merge model option in mixins ( #5251 )
2022-01-21 02:02:02 -05:00
Yugang Cao
92e04a651f
chore: type improvements ( #5264 )
2022-01-21 01:56:20 -05:00
edison
9f55e6fbb1
fix(compiler-core): handle v-memo in template v-for ( #5291 )
...
fix #5288
2022-01-21 01:54:46 -05:00
Evan You
b2bac9fa17
chore: comment dom tag config usage [ci skip]
2022-01-21 14:31:00 +08:00
Thorsten Lünborg
97f6bd942f
fix(compat): ensure fallthrough *Native events are not dropped during props update ( #5228 )
2022-01-21 01:21:42 -05:00
Yugang Cao
e603fd258c
chore: fix typo ( #5261 ) [ci skip]
2022-01-21 01:18:34 -05:00
Bruno Perel
e8022755ae
chore: fix typo ( #5282 ) [ci skip]
2022-01-21 01:16:19 -05:00
Stanislav Lashmanov
d0b9708620
fix(compat): simulate Vue 2.6.14 version in compat build ( #5293 )
...
Some Vue plugins that are actually compatible with the `vue-compat` won't work because of the version check. Right now `vue-compat` returns 3x version for the legacy method of checking Vue version via `Vue.version`. This PR instends to simulate Vue 2 version in those instances and instead return a 2x-compatible version: `2.6.14-compat:3.x.x`.
2022-01-21 01:15:35 -05:00
Thorsten Lünborg
c35ec47d73
fix(runtime-core): ensure mergeProps skips undefined event handlers ( #5299 )
...
fix #5296
2022-01-21 01:13:29 -05:00
Evan You
2f91872e7b
fix(ssr): only cache computed getters during render phase
...
fix #5300
2022-01-21 12:31:54 +08:00
Evan You
25bc6549eb
perf(reactivity): optimize effect run condition
2022-01-21 09:41:58 +08:00
Evan You
4768f26f59
fix(compiler-sfc/reactivity-transform): fix edge case where normal script has ref macros but script setup does not
2022-01-21 08:47:48 +08:00
Evan You
a05b000948
fix(reactivity-transform): apply transform for labelled variable declarations
...
ref https://github.com/vuejs/core/issues/5298#issuecomment-1017970061
2022-01-21 07:48:41 +08:00
Evan You
a81a9922bb
fix(reactivity-transform): apply transform on exported variable declarations
...
fix #5298
2022-01-21 07:40:35 +08:00
Evan You
ae4b0783d7
chore: update repo references
2022-01-18 16:43:59 +08:00
Evan You
9c304bfe79
fix(reactivity): differentiate shallow/deep proxies of same target when nested in reactive
...
fix #5271
2022-01-18 09:22:41 +08:00
Evan You
9fda9411ec
feat(reactivity): add isShallow api
2022-01-18 09:22:41 +08:00
Evan You
0c06c748a5
chore: bump marked
2022-01-18 09:22:41 +08:00
Evan You
3adfc0fe94
release: v3.2.27
2022-01-16 22:08:18 +08:00
Evan You
ed9eb62e59
perf: improve memory usage for static vnodes
...
Use the already mounted nodes as cache instead of separate caching via
template. This reduces memory usage by 30%+ in VitePress.
2022-01-16 21:10:26 +08:00
Evan You
f4f0966b33
fix(ssr): make computed inactive during ssr, fix memory leak
...
fix #5208
2022-01-16 18:22:18 +08:00
Evan You
78df8c78c4
fix(types/tsx): allow ref_for type on tsx elements
2022-01-16 15:54:58 +08:00
Evan You
5ac703055f
fix(types): handle ToRef<any>
...
fix #5188
2022-01-16 15:47:00 +08:00
Evan You
6cfd72e760
refactor: move type utils to shared
2022-01-16 15:47:00 +08:00
edison
2e3e183b4f
fix(KeepAlive): remove cached VNode properly ( #5260 )
...
fix #5258
2022-01-16 02:37:14 -05:00
Evan You
55cc4af25e
fix(ssr): remove missing ssr directive transform error
2022-01-16 15:20:56 +08:00
Evan You
92fcb9db05
workflow: use esbuild for dev scripts
2022-01-14 16:21:50 +08:00
Evan You
ff2d6d1cb7
chore: comment usage of short property name
2022-01-12 22:08:05 +08:00
Evan You
ce49fdf999
refactor: more readable type names for watch cleanup function
2022-01-12 22:07:47 +08:00
Evan You
3007d5b4ca
fix(types): KeepAlive match pattern should allow mixed array
2022-01-12 22:07:19 +08:00
Evan You
92f11d6740
fix(types): fix shallowReadonly type
2022-01-10 15:05:09 +08:00
Evan You
eb721d49c0
workflow: improve template explorer hash persistence
2022-01-04 17:32:25 +08:00
Evan You
2b506d7df6
chore: fix template exploerer boot with no storage
2022-01-04 17:09:13 +08:00
Evan You
7007ffb2c7
fix(reactivity-transform): should not rewrite for...in / for...of scope variables
2021-12-31 11:23:50 +08:00
yfmei
dd70003cc3
chore: typo in comment [skip ci] ( #5173 )
2021-12-27 12:57:39 +01:00
Johnson Chu
a570b38741
feat(types): simplify `ExtractPropTypes` to avoid props JSDocs being removed ( #5166 )
2021-12-25 02:52:22 -05:00
Cédric Exbrayat
e373b0bbe2
chore: remove obsolete test snapshot ( #5162 )
2021-12-24 12:10:59 +01:00
Evan You
fef191fb07
chore: remove stale references of ref-transform
2021-12-23 16:56:36 +08:00
Evan You
a273e8844c
chore: bump repl
2021-12-21 16:49:20 +08:00
Eduardo San Martin Morote
44b95276f5
fix(sfc-playground): hide title to avoid overlap ( #5099 )
2021-12-14 08:24:14 -05:00
Evan You
ccb6651b12
release: v3.2.26
2021-12-12 15:03:29 +08:00
Evan You
17f4dd833e
build: include missing dts files in package
2021-12-12 14:52:12 +08:00
Evan You
756534bde0
release: v3.2.25
2021-12-12 12:21:13 +08:00
Evan You
d6be3405b3
types(compiler-sfc): export additional types
2021-12-12 11:44:23 +08:00
Evan You
5fda93801e
ci: move vite back to root again
2021-12-12 10:52:55 +08:00
Evan You
7e400601ec
ci: adjust deps for sfc playground
2021-12-12 10:38:09 +08:00
Evan You
65309b5aed
ci: move vite plugin-vue to workspace root
2021-12-12 10:35:36 +08:00
Evan You
38b977dad5
chore: remove no longer needed shim for stream/web
2021-12-12 10:12:20 +08:00
wxsm
9ac0ddea4b
feat(sfc-playground): add github link ( #5067 )
2021-12-11 21:01:48 -05:00
wxsm
b0275070e4
feat(sfc-playground): prevent ctrl+s default behavior ( #5066 )
2021-12-11 21:01:15 -05:00
Forzen FIsh
57a09331b2
chore: fix some typos ( #5050 ) [ci skip]
2021-12-11 20:58:46 -05:00
Evan You
7e4f0a8694
fix(compiler-sfc): generate valid TS in script and script setup co-usage with TS
...
fix #5094
2021-12-12 09:53:52 +08:00
Evan You
ea1fcfba37
chore: bump babel deps
2021-12-12 09:11:36 +08:00
Evan You
434dedf488
chore: cleanup deps
2021-12-12 09:08:08 +08:00
Evan You
50f13278f9
chore: avoid api-extractor warnings
2021-12-12 00:14:25 +08:00
Evan You
d70fd8d36b
feat(reactivity-transform): rename @vue/ref-transform to @vue/reactivity-transform
2021-12-12 00:04:38 +08:00
Evan You
f4dcbbc7b9
chore: fix build
2021-12-11 23:48:32 +08:00
Evan You
fbd0fe9759
feat(reactivity-transform): support optionally importing macros
2021-12-11 18:28:03 +08:00
Evan You
db729ce99e
feat(reactivity-transform/types): restructure macro types + export types for all shorthand methods
2021-12-11 18:15:44 +08:00
Evan You
198ca14f19
feat(reactivity-transform): $$() escape for destructured prop bindings
2021-12-11 17:50:09 +08:00
Evan You
179fc05a84
feat(reactivity-transform): support $-shorthands for all ref-creating APIs
2021-12-11 17:17:01 +08:00
Evan You
93ba6b974e
feat(reactivity-transform): use toRef() for $() destructure codegen
...
- now supports destructuring reactive objects
- no longer supports rest elements
2021-12-11 17:13:15 +08:00
Evan You
2db9c909c2
feat(reactivity): support default value in toRef()
2021-12-11 16:41:58 +08:00
Evan You
d0ea900922
workflow: report brotli size of baseline build
2021-12-11 10:38:21 +08:00
Evan You
1928c9b537
refactor: move template ref setter into dedicated file
2021-12-11 10:09:21 +08:00
Evan You
41c18effea
feat: support ref in v-for, remove compat deprecation warnings
2021-12-10 23:49:01 +08:00
Evan You
a1167c57e5
fix(runtime-core): disallow recurse in vnode/directive beforeUpdate hooks
2021-12-10 17:17:15 +08:00
Evan You
4b0ca8709a
feat(compiler-core): support aliasing vue: prefixed events to inline vnode hooks
2021-12-10 16:09:23 +08:00
Evan You
1c9a4810fc
fix(compiler): force block for custom dirs and inline beforeUpdate hooks
...
to ensure they are called before children updates
2021-12-10 15:36:10 +08:00
Evan You
4b5d1ac894
chore: remove outdated test case
2021-12-10 15:35:20 +08:00
Evan You
9823bd95d1
feat(experimental): allow const for ref sugar declarations
2021-12-10 14:05:40 +08:00
Evan You
d955cfacd6
release: v3.2.24
2021-12-06 17:03:10 +08:00
edison
6d887aaf59
fix(runtime-core): handle initial undefined attrs ( #5017 )
...
fix #5016
2021-12-06 00:58:45 -05:00
Noel De Martin
34985fee6b
feat(types/script-setup): add generic type to defineExpose ( #5035 )
2021-12-05 23:25:35 -05:00
Lucas Werkmeister
f73547fc05
chore(compat): fix example config syntax error ( #5027 )
...
The chainWebpack arrow function wasn’t being closed.
2021-12-05 23:24:59 -05:00
Thorsten Lünborg
f8552697fb
fix(package): ensure ref-macros export is recognized by vue-tsc ( #5003 )
2021-12-05 23:22:59 -05:00
Illya Klymov
ee97cf5a4d
fix(compat): maintain compatConfig option in legacy functional comp ( #4974 )
2021-12-05 23:20:27 -05:00
Che Guevara
595a93715b
refactor(types): use `DOMRect` instead of the `Position` type ( #5012 )
2021-12-05 23:19:47 -05:00
Ziwen Mei
d70dd9faaa
chore(compiler-sfc): fix typo in comments ( #5029 )
2021-12-05 23:19:15 -05:00
三咲智子
523b4b78f5
fix(types/reactivity): export ShallowRef type ( #5026 )
...
close #5205
2021-12-05 23:18:21 -05:00
Forzen FIsh
095fe269cb
chore: remove redundant variable declaration ( #5053 )
2021-12-05 23:10:58 -05:00
Evan You
29beda7c6f
fix(compiler-dom): avoid bailing stringification on setup const bindings
2021-12-06 11:53:02 +08:00
Evan You
4713578367
workflow(template-explorer): handle debugging with nodeTransforms
2021-12-06 11:51:56 +08:00
Evan You
31d6a31d97
chore: fix template explorer local css link
2021-12-06 09:46:05 +08:00
Evan You
87c73e99d6
fix(compiler-sfc): make asset url imports stringifiable
2021-12-06 01:19:06 +08:00
Evan You
3e5ed6c1fc
chore(playground): bump repl
2021-12-05 20:59:35 +08:00
n2ptune
772574febb
chore(custom-element): fix comment typo ( #5028 ) [skip ci]
2021-12-03 10:10:54 +01:00
Ziwen Mei
2d4f455434
chore(compiler-sfc): fix typo in compileScript ( #5000 )
...
Co-authored-by: meiziwen1 <meiziwen1@xdf.cn>
2021-11-26 10:21:35 +01:00
Evan You
b6a8a451b8
release: v3.2.23
2021-11-26 14:33:46 +08:00
Evan You
68c45e73da
feat(compiler-sfc): expose properties for more accurate HMR
...
ref #4358
reverts #4908
2021-11-26 14:22:26 +08:00
mehan
2a4f134fc5
chore: remove unnecessary assertion ( #4867 )
2021-11-25 23:08:25 -05:00
ygj6
c61baac75a
feat(compiler-sfc): export resolveTemplateUsageCheckString for HMR plugin use ( #4908 )
2021-11-25 22:58:14 -05:00
Evan You
6d46b36e7c
revert: "fix(types): use proper array type when unwrapping reactive array ( #4807 )"
...
This reverts commit 89c54ee2b9 .
2021-11-26 10:54:12 +08:00
Evan You
124570973d
fix(types): export ref-macros.d.ts
2021-11-26 10:48:33 +08:00
Che Guevara
4e1131e251
chore: improve BaseTransition ( #4811 )
2021-11-25 05:42:24 -05:00
Cheese
89c54ee2b9
fix(types): use proper array type when unwrapping reactive array ( #4807 )
2021-11-25 05:41:25 -05:00
Evan You
3bdd03b152
workflow: use terser minification when checking size
2021-11-25 18:39:13 +08:00
Stefan Mayer
1701bf3968
fix(runtime-dom): patchDOMProps should not set _value if element is custom element ( #4839 )
...
Co-authored-by: Stefan Mayer <stefan.m.mayer@daimler.com>
2021-11-25 05:30:32 -05:00
Evan You
aac0466cb8
fix(runtime-core): fix component public instance has check for accessed non-existent properties
...
close #4962
2021-11-25 18:15:06 +08:00
Thorsten Lünborg
89b2f924fc
fix(runtime-dom): fix option element value patching edge case ( #4959 )
...
fix #4956
2021-11-25 05:05:02 -05:00
fishDog
3c449cd408
fix(types): fix propType<any> type inference ( #4985 )
...
fix #4983
2021-11-25 04:52:13 -05:00
Cédric Exbrayat
c17cbdc28f
refactor: use refTransform instead of deprecated refSugar ( #4957 )
2021-11-25 04:39:36 -05:00
JensDll
c6cd6a7938
fix (types): do not unwrap refs in `toRefs` ( #4966 )
2021-11-25 04:39:09 -05:00
Thorsten Lünborg
f2d2d7b2d2
fix(types): scrip-setup+ts: ensure proper handling of `null` as default prop value. ( #4979 )
...
fix #4868
2021-11-25 04:33:29 -05:00
Evan You
d145128ab4
fix(reactivity): retain readonly proxies when setting as reactive property
...
fix #4986
2021-11-25 12:14:39 +08:00
ygj6
820a143457
fix(runtime-core): handle error in async KeepAlive hooks ( #4978 )
2021-11-22 02:50:19 -05:00
Jeet Mandaliya
61720231b4
chore: typo [skip ci] ( #4961 )
2021-11-18 11:01:11 +01:00
Evan You
7c11c58faf
workflow: separate unit and e2e tests
2021-11-15 12:14:57 +08:00
Evan You
635d88aa9e
release: v3.2.22
2021-11-15 11:45:05 +08:00
edison
31fd590fd4
fix(compiler-sfc): fix expose codegen edge case ( #4919 )
...
fix #4917
2021-11-14 22:22:53 -05:00
edison
b4eb7e3866
fix(runtime-core): improve dedupe listeners when attr fallthrough ( #4912 )
...
fix #4859
2021-11-14 22:20:38 -05:00
Cathrine Vaage
04e5835196
fix(types/sfc): fix withDefaults type inference when using union types ( #4925 )
2021-11-14 22:09:00 -05:00
yuuang
fa2237f1d8
fix(devtool): improve devtools late injection browser env detection ( #4890 )
2021-11-14 22:04:46 -05:00
btea
e1ee3c4fe8
refactor(compiler-core): refactor isComponentTag method ( #4934 )
2021-11-14 21:39:13 -05:00
zisasign
574070f43f
fix(compiler-sfc): externalRE support automatic http/https prefix url pattern ( #4922 )
...
fix #4920
2021-11-14 21:37:50 -05:00
btea
fd7c3407c7
refactor(compiler-sfc): replace filter method with for loop ( #4905 )
2021-11-14 21:31:44 -05:00
ygj6
9c42a1e2a3
fix(compiler-sfc): add type for props include Function in prod mode ( #4938 )
2021-11-14 21:31:11 -05:00
yuchao
f454dd62ab
chore: comments grammar ( #4913 ) [ci skip]
2021-11-14 19:41:45 -05:00
Evan You
d19cfc0503
build: add types conditioanl exports for TS 4.5 nodenext mode
2021-11-12 10:34:33 +08:00
Evan You
a8ab9e9311
workflow(sfc-playground): fix preview height
2021-11-12 10:10:24 +08:00
sudongyu
065c367175
chore: typo ( #4910 ) [ci skip]
2021-11-07 20:02:20 -05:00
ygj6
090df0837e
fix(compiler-sfc): add type for props's properties in prod mode ( #4790 )
...
fix #4783
2021-11-02 22:04:04 -04:00
Marvin Rudolph
d56f115f71
chore(reactivity): fix typo in types ( #4889 )
2021-11-02 20:19:39 +01:00
Evan You
fe853a5a40
release: v3.2.21
2021-11-02 14:35:14 +08:00
Evan You
4b7f76e36a
fix(custom-element): fix custom element props access on initial render
...
ref: #4792
2021-11-02 13:20:31 +08:00
Evan You
6916d725a0
fix(devtools): avoid open handle in non-browser env
...
fix #4815
2021-11-02 11:45:41 +08:00
Che Guevara
6b32f0d976
fix(devtools): fix memory leak when devtools is not installed ( #4833 )
...
fix #4829
2021-11-01 23:26:40 -04:00
Captain
2c221fcd49
chore: typo in comment [skip ci] ( #4875 )
2021-10-29 10:38:37 +02:00
C.Y.Kun
5eb72630a5
fix(runtime-core): add `v-memo` to built-in directives check ( #4787 )
2021-10-18 20:22:44 -04:00
Evan You
3f38d599f5
fix(runtime-dom): fix behavior regression for v-show + style display binding
...
fix #4768
2021-10-09 19:31:52 -04:00
Evan You
3ca83179d1
fix(custom-element): fix initial attr type casting for programmtically created elements
...
fix #4772
2021-10-09 18:34:54 -04:00
Evan You
c803eb15ec
chore: avoid rollup plugin ts warning
2021-10-09 18:34:54 -04:00
Evan You
20a361541c
fix(types): fix ref unwrapping type inference for nested shallowReactive & shallowRef
...
fix #4771
2021-10-09 17:51:15 -04:00
Che Guevara
e772108922
chore: break compat mode v-for/v-if precedence check loop early ( #4773 )
2021-10-09 17:12:34 -04:00
Evan You
759ae31e08
workflow: fix template explorer deps
2021-10-08 17:09:18 -04:00
Evan You
61c5fbd3e3
workflow: move to pnpm ( #4766 )
2021-10-08 14:23:30 -04:00
Evan You
3c500e422f
release: v3.2.20
2021-10-08 13:01:51 -04:00
Evan You
d4c04e9799
fix(compiler-sfc): fix props codegen w/ leading import
...
fix #4764
2021-10-08 12:52:48 -04:00
Evan You
9e3d7731c7
fix(hmr): fix hmr for components with no active instance yet
...
fix #4757
2021-10-08 12:39:24 -04:00
Che Guevara
6bcb7a5ea3
chore: remove deprecated usage of String.prototype.substr ( #4699 )
2021-10-08 12:31:34 -04:00
btea
c9613ebe09
chore: prettier format ( #4715 ) [ci skip]
2021-10-08 12:00:05 -04:00
HanochMa
7a1e6620bf
chore: grammar in comments [ci skip]
...
Co-authored-by: maheng <maheng01@longfor.com>
2021-10-08 11:59:47 -04:00
Che Guevara
925bc346fe
fix(types): make `toRef` return correct type( fix #4732 ) ( #4734 )
...
* fix(types): make `toRef` return correct type(fix #4732 )
* chore: use correct test
Co-authored-by: Evan You <yyx990803@gmail.com>
2021-10-08 11:57:49 -04:00
edison
f66d456b7a
fix(compiler-sfc): support runtime Enum in normal script ( #4698 )
2021-10-08 11:57:39 -04:00
Evan You
914e2e3880
chore: bump repl
2021-10-07 19:42:22 -04:00
Evan You
f4639e0a36
fix(devtools): clear devtools buffer after timeout
...
fix #4738
2021-10-07 19:36:32 -04:00
Evan You
646e694f0a
chore: remove babelParserDefaultPlugins
...
The version of @babel/parser we are using now has these plugins enabled by default.
2021-10-07 19:33:06 -04:00
Thorsten Lünborg
ed0071ac1a
fix(types): ensure that DeepReadonly handles Ref type properly ( #4714 )
2021-10-07 18:30:54 -04:00
Evan You
467e113b95
feat(compiler-sfc): `<script setup>` defineProps destructure transform ( #4690 )
2021-09-27 14:24:21 -04:00
Che Guevara
d84d5ecdbd
test(vue): add config.compilerOptions.isCustomElement test ( #4682 )
2021-09-27 10:52:59 -04:00
Evan You
c5c53846ed
release: v3.2.19
2021-09-25 14:58:20 -04:00
skirtle
50d9d34360
fix(server-renderer): respect compilerOptions during runtime template compilation ( #4631 )
2021-09-25 14:40:32 -04:00
Daniel Roe
e4ae1fc3d0
chore(vue): package `index.mjs` ( #4675 )
2021-09-25 14:21:40 -04:00
Herrington Darkholme
7aa0ea06c8
fix(compiler-core): should treat attribute key as expression ( #4658 )
2021-09-25 14:21:09 -04:00
Evan You
901e18bd94
chore: upgrade repl
...
close #4673
2021-09-24 17:08:47 -04:00
Evan You
13bfa2edfe
release: v3.2.18
2021-09-24 16:05:16 -04:00
Evan You
570c955b48
build: add exports field to support Node native ESM
2021-09-24 15:20:57 -04:00
Evan You
f5076eb4b7
release: v3.2.17
2021-09-24 12:43:11 -04:00
Evan You
7b7e28ad6a
test: fix utils test
2021-09-24 12:34:31 -04:00
Evan You
fc85ad28ae
fix(build): avoid importing @babel/parser in esm-bundler build
...
fix #4665
2021-09-23 23:20:53 -04:00
Evan You
87c86e4cc2
refactor: ensure ssr branches are included in esm-bundler build
2021-09-23 15:02:19 -04:00
Evan You
4886a63d82
ci: fix size on ci
2021-09-23 14:56:02 -04:00
Evan You
f27a98becc
ci: improve size script
2021-09-23 14:46:16 -04:00
Evan You
c1cf26d207
chore: improve feature flag warning
2021-09-23 14:04:52 -04:00
Evan You
1e5a0db4d4
refactor: use getGlobalThis when attachting hmr runtime
2021-09-23 11:53:00 -04:00
Evan You
114b856fd1
release: v3.2.16
2021-09-23 10:17:02 -04:00
Evan You
8e05b7f9fc
fix(ssr): fix ssr runtime helper import in module mode
2021-09-23 10:08:28 -04:00
Evan You
74a84ff546
release: v3.2.15
2021-09-23 09:48:59 -04:00
Evan You
acd869f4d6
chore(compiler-sfc): avoid relying on estree type in generated dts
2021-09-23 00:13:54 -04:00
Evan You
d74f21a42c
fix(compiler-ssr): import ssr helpers from updated path
2021-09-22 23:28:20 -04:00
Guillaume Chau
f730ed9177
chore(playground): update @vue/repl
2021-09-23 00:51:17 +02:00
Evan You
df4fcd94d8
release: v3.2.14
2021-09-22 18:36:57 -04:00
Evan You
6257adeaac
fix(compiler-core): more robust member expression check in Node
2021-09-22 17:16:21 -04:00
Evan You
686d0149b6
fix(compiler-core): generate TS-cast safe assignment code for v-model
...
fix #4655
2021-09-22 16:55:06 -04:00
Ziwen Mei
1873f0f48c
chore(compiler-core): fix typo in transformElement ( #4649 ) [ci skip]
2021-09-22 10:12:52 -04:00
Ziwen Mei
bf267b1ce3
chore(compiler-core): fix typo in errors.ts and options.ts ( #4650 ) [ci skip]
2021-09-22 10:12:33 -04:00
zhangenming
52e4ea732d
refactor(reactivity): reuse toReactive helper ( #4641 )
2021-09-22 10:11:54 -04:00
Evan You
6d6cc90912
fix(compiler-sfc): fix local var access check for bindings in normal script
...
fix #4644
2021-09-22 10:10:20 -04:00
Evan You
2476eaad6e
fix(devtools): fix prod devtools detection + handle late devtools hook injection ( #4653 )
2021-09-22 09:07:08 -04:00
Evan You
64aa8e26ae
docs: add note on compiler-sfc/server-renderer usage update [ci skip]
2021-09-21 22:55:10 -04:00
Evan You
b9deb6e50e
release: v3.2.13
2021-09-21 14:22:53 -04:00
Che Guevara
a0cacc0d83
chore: fix warning in ref-transform ( #4643 ) [ci skip]
2021-09-21 13:12:20 -04:00
Ziwen Mei
56be30b5c7
chore(compiler-core): fix typo in hoistStatic ( #4625 ) [ci skip]
2021-09-21 13:06:39 -04:00
zhangenming
b264551c9b
refactor(reactivity): reuse computed getter check ( #4623 )
2021-09-21 13:03:09 -04:00
就是喜欢陈粒
5addef8ecd
fix(compiler-core): add check when v-else-if is behind v-else ( #4603 )
2021-09-21 12:59:38 -04:00
skirtle
5aa4255808
fix(runtime-core): return the exposeProxy from mount ( #4606 )
2021-09-21 12:55:08 -04:00
tryag
2ca45dc3e6
chore: fix docs typo ( #4602 ) [ci skip]
2021-09-21 12:49:41 -04:00
Amour1688
140f089917
fix(types): incorrect type inference of array ( #4578 )
2021-09-21 12:41:10 -04:00
ygj6
58b1fa5ed1
fix(hydration): ensure hydrated event listeners have bound instance ( #4529 )
...
fix #4479
2021-09-21 12:39:21 -04:00
Herrington Darkholme
d8a36d0198
fix(compiler-core): only merge true handlers ( #4577 )
2021-09-21 12:37:51 -04:00
tryag
f31a6c105d
chore: fix type in compatConfig.ts ( #4604 ) [ci skip]
2021-09-21 12:35:42 -04:00
tryag
08e5909659
chore: remove unused parameter type definitions ( #4607 )
2021-09-21 12:35:11 -04:00
Wouter Kettlitz
6171aecdcd
types: allow binding any value to SelectElement ( #4575 )
2021-09-21 12:34:25 -04:00
Yang Mingshan
11a2098a69
fix(watch): remove redundant parameter default value ( #4565 )
2021-09-21 12:32:12 -04:00
Herrington Darkholme
044812525f
fix(compiler-core): dedupe renderSlot's default props ( #4557 )
2021-09-21 12:31:27 -04:00
Evan You
ed6470c845
fix(compiler-dom): fix transition children check for whitespace nodes
...
fix #4637
2021-09-21 12:25:05 -04:00
Evan You
d23fde3d3b
fix(compiler-core): more robust member expression check when running in node
...
fix #4640
2021-09-21 12:19:27 -04:00
Evan You
7c3c28eb03
test: bump @vue/consolidate to fix dts tests
2021-09-21 10:53:48 -04:00
Evan You
471f66a1f6
build: expose compiler-sfc and server-renderer under main vue package + optimize package size
2021-09-21 10:26:08 -04:00
Evan You
a42a14d3bc
types(compiler-sfc): type annotation tweaks + move @babel/types to devDeps
2021-09-20 22:06:12 -04:00
Evan You
0dc521b9e1
fix(compiler-core): support ts syntax in expressions when isTS is true
2021-09-20 11:51:01 -04:00
Evan You
e9c0694451
chore: bump repl
2021-09-19 22:04:46 -04:00
Evan You
cb2d7c0e3c
fix(compiler-core): ensure hoisted scopeId code can be treeshaken
2021-09-19 17:14:26 -04:00
Evan You
54db1eb372
chore: bump repl
2021-09-19 14:59:49 -04:00
Evan You
585615beb1
feat(compiler-sfc): allow disabling sourcemap when not needed
2021-09-18 17:42:09 -04:00
Evan You
ebe00f66dd
release: v3.2.12
2021-09-17 10:55:26 -04:00
Evan You
c36b557b3e
chore: bump repl version
2021-09-17 10:49:27 -04:00
Evan You
dd9a2760a8
fix(compiler-ssr): handle v-memo in ssr compilation
2021-09-17 10:23:06 -04:00
Evan You
71f22061a6
chore: improve component resolution failure message
2021-09-17 10:01:04 -04:00
Evan You
51f74679ef
chore(sfc-playground): fix autoresize
2021-09-17 09:48:17 -04:00
Evan You
0cfa2112ce
fix(custom-elements): fix number prop casting
...
fix #4370 , close #4393
2021-09-16 19:15:15 -04:00
Evan You
5bd0ac67f3
chore: bump repl version
2021-09-16 18:40:42 -04:00
Evan You
a276e7253a
chore(sfc-playground): improve buttons
2021-09-16 17:25:29 -04:00
edison
8055445b68
fix(compiler-sfc): register exported bindings in normal script when using script setup ( #4601 )
...
fix #4600
2021-09-16 17:22:29 -04:00
Evan You
cab9541ffd
refactor(compiler-sfc): improve TLA codegen
2021-09-16 17:07:29 -04:00
Evan You
39cebf5f7a
fix(compiler-sfc): fix TLA codegen semicolon insertion
...
fix #4596
2021-09-16 16:49:59 -04:00
edison
ae942cdcd9
fix(compiler-sfc): support nested await statements ( #4458 )
...
fix #4448
2021-09-16 16:23:46 -04:00
Evan You
524688bc99
chore(sfc-playground): add dark mode toggle
2021-09-16 14:25:43 -04:00
Thorsten Lünborg
bdb1a7958b
fix(compiler-sfc): handle empty strings during template usage analysis of setup bindings ( #4608 )
...
fix #4599
2021-09-16 13:47:11 -04:00
ygj6
fcd5422b4a
fix(compile-sfc): add symbol judge in prop type checks. ( #4594 )
...
fix #4592
2021-09-16 13:45:55 -04:00
Evan You
06c5bf53ab
fix(compiler-sfc): properly reuse hoisted asset imports
...
fix #4581
2021-09-16 13:33:02 -04:00
lidlanca
fc968d607b
fix(compiler-core): v-on inline async function expression handler ( #4569 )
...
fix #4568
2021-09-16 12:36:04 -04:00
Evan You
141a5e188c
fix(suspense): fix suspense slot inside deoptimized slot call
...
fix #4556
2021-09-16 12:14:33 -04:00
Evan You
93949ed20a
types: relax OptionHTMLAttributes.value type requirement
...
fix #4574
2021-09-16 11:58:22 -04:00
Wouter Kettlitz
8370118c13
types: extend CSSProperties with PropertiesHyphen ( #4553 )
...
fix #4552
2021-09-16 11:46:41 -04:00
ygj6
f29d061124
fix(compiler): fix template ref codegen for setup-maybe-ref binding types ( #4549 )
...
fix #4546
2021-09-16 11:33:16 -04:00
ygj6
14fcced281
fix(runtime-core): avoid script setup bindings overwriting reserved ctx properties ( #4570 )
2021-09-16 11:16:07 -04:00
Evan You
a31303f835
build: generate more treeshaking friendly code
2021-09-16 10:56:34 -04:00
Evan You
a6e5f82d8e
fix(compiler-sfc): properly analyze destructured bindings with dynamic keys
...
fix #4540
2021-09-09 12:28:59 -04:00
Evan You
781d2d4d58
release: v3.2.11
2021-09-08 18:58:13 -04:00
Evan You
aa8908a854
fix(hmr): handle possible duplicate component definitions with same id
...
fixes regression in vitepress
2021-09-08 18:36:21 -04:00
Evan You
96b531bfa3
release: v3.2.10
2021-09-07 16:20:07 -04:00
Evan You
70c4eee065
chore: remove unused api-extractor.json
2021-09-07 16:16:38 -04:00
Evan You
d534515836
fix(runtime-dom): style patching shoud always preserve v-show display property
...
close #4424
2021-09-07 12:25:00 -04:00
Roy Eden
b8653d390a
fix(compiler): condense whitespaces in static class attributes ( #4432 )
...
fix #4251
2021-09-07 12:01:17 -04:00
Herrington Darkholme
5d262e08d5
fix(compiler-core): pick last char when dynamic directive doesn't close ( #4507 )
2021-09-07 11:36:37 -04:00
Herrington Darkholme
1c4f0f0afd
chore: fix typo in jsdoc ( #4526 ) [ci skip]
2021-09-07 11:31:27 -04:00
n2ptune
2361ca4fc2
chore(reactivity): fix typo in dep ( #4534 ) [ci skip]
2021-09-07 11:31:12 -04:00
Evan You
1045590d4b
fix(compiler-core): avoid runtime dependency on @babel/types
...
fix #4531
2021-09-07 09:54:49 -04:00
Evan You
9527887426
chore(sfc-playground): remove unused font
2021-09-07 00:29:40 -04:00
Evan You
a5f1e679e7
chore(sfc-playground): dark mode
2021-09-07 00:29:18 -04:00
Evan You
d80d40a9c1
chore(sfc-playground): use standalone version of @vue/repl
2021-09-06 18:02:35 -04:00
fishDog
4178d5d7d9
fix(type): fix prop type infer ( #4530 )
...
fix #4525
2021-09-06 15:24:15 -04:00
Evan You
642710eded
release: v3.2.9
2021-09-05 18:24:01 -04:00
Husam Ibrahim
4645a42b79
types(runtime-core): fix for multiple possible prop types including Date ( #4518 )
...
fix #4517
2021-09-05 18:16:44 -04:00
webfansplz
fac9a2926d
fix(compile-sfc): support `Date` prop type with defineProps ( #4519 )
2021-09-05 18:13:12 -04:00
edison
14d65181f1
fix(compiler-sfc): support using declared interface in normal script with defineProps() ( #4522 )
...
fix #4423
2021-09-05 18:10:15 -04:00
edison
5594643d7b
fix(compiler-sfc): fix script setup ref assignment codegen edge case ( #4520 )
...
fix #4514
2021-09-05 18:02:50 -04:00
webfansplz
e6fe751b20
fix(compile-sfc): generate setup prop type format error ( #4506 )
...
fix #4505
2021-09-05 17:36:46 -04:00
ygj6
0178f4ed31
fix(ref-transform): not transform the prototype attributes. ( #4503 )
...
fix #4502
2021-09-05 17:35:13 -04:00
Evan You
12acf5102c
build: avoid require call to consolidate in esm-browser build
2021-09-05 17:30:18 -04:00
Evan You
fa5b583ba5
build: module alias for compiler-sfc browser esm build
2021-09-05 17:21:24 -04:00
Evan You
815bfcffae
fix(types): fix ref macro types
...
fix #4499
2021-09-04 16:42:46 -04:00
fishDog
5852cc8d82
fix(types/ref-transform): fix $$() type
2021-09-04 12:04:12 -04:00
Evan You
3ad9dc4880
release: v3.2.8
2021-09-02 14:46:30 -04:00
Evan You
fb43aab117
chore: remove wrongly placed type casts
2021-09-02 14:18:52 -04:00
Evan You
bacb2012ac
fix(compiler-sfc): ensure script setup generates type-valid ts output
...
fix #4455
2021-09-02 11:51:41 -04:00
ygj6
4cd282b0a1
fix(compiler): generate function ref for script setup if inline is ture. ( #4492 )
2021-09-02 11:27:20 -04:00
webfansplz
85807967dc
fix(compiler-sfc): generate matching prop types when withDefaults is used ( #4466 )
...
fix #4455
2021-09-02 11:26:52 -04:00
dependabot[bot]
305883a12f
build(deps-dev): bump typescript from 4.3.5 to 4.4.2 ( #4482 )
...
* build(deps-dev): bump typescript from 4.3.5 to 4.4.2
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.3.5 to 4.4.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.3.5...v4.4.2 )
---
updated-dependencies:
- dependency-name: typescript
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* build(deps-dev): bump typescript from 4.3.5 to 4.4.2
* test: fix nodeOps types
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Carlos Rodrigues <carlos@hypermob.co.uk>
Co-authored-by: Evan You <yyx990803@gmail.com>
2021-09-02 09:53:57 -04:00
huangkairan
592cdbdd7c
chore: remove unnecessary 'async' for test case ( #4490 )
2021-09-02 09:44:38 -04:00
Herrington Darkholme
c00925ed5c
fix(compiler): report invalid directive name error ( #4494 ) ( #4495 )
2021-09-02 09:42:20 -04:00
Evan You
d7f1b771f8
fix(types): include ref-macros.d.ts in npm dist files
...
fix #4433
2021-09-02 09:40:47 -04:00
Evan You
b079996040
release: v3.2.7
2021-09-01 18:05:16 -04:00
Evan You
3628991906
fix(compiler): only generate non-static ref for script setup if the binding exists
...
fix #4431
2021-09-01 17:27:03 -04:00
Evan You
168a17ad8a
chore: update snapshot
2021-09-01 17:26:31 -04:00
X.L
ef5b73159d
fix(suspense): misusing DOM Comment element constructor as a vnode type ( #4451 )
2021-09-01 16:57:56 -04:00
edison
33cf6c8866
fix(ref-transform): should transform $ref when used with generic arguments ( #4446 )
...
fix #4442
2021-09-01 16:55:30 -04:00
zhangenming
a6e6253319
types(reactivity): adjust type exports ( #4407 )
2021-09-01 16:49:12 -04:00
Herrington Darkholme
4502a0eab5
refactor(compiler): refine CDATA endTokens ( #4459 )
2021-09-01 16:43:10 -04:00
Herrington Darkholme
7178716b4c
chore: fix typo in error message ( #4434 ) [ci skip]
2021-09-01 16:42:24 -04:00
laineus
741d3b36f2
fix(runtime-core): properly merge unmounted and beforeUnmount options ( #4447 )
2021-09-01 16:41:57 -04:00
ShroXd
6f555cf98c
refactor(runtime-core): improve the type of defineAsyncComponent ( #4441 )
2021-09-01 16:41:08 -04:00
Cédric Exbrayat
b49f446ad0
chore(deps): update jest to v27 ( #4472 )
...
Updates jest and ts-jest to v27, as jest v27.1.0 includes a necessary fix to unblock further work on spying issues.
See https://github.com/facebook/jest/pull/11721
2021-09-01 16:39:46 -04:00
Evan You
b89ff9291e
fix(compiler-sfc): ensure script setup lang=ts output is tree-shakable
2021-09-01 12:40:36 -04:00
Evan You
935b4e2210
fix(compiler-core): remove no longer necessary withScopeId import in generated code
2021-09-01 11:30:34 -04:00
Evan You
72d2b26e96
release: v3.2.6
2021-08-24 12:54:30 -04:00
Evan You
4c468eb30a
fix(build): avoid imports to @babel/types in client build of compiler-core
2021-08-24 12:39:38 -04:00
Evan You
a137d73e91
release: v3.2.5
2021-08-24 11:54:22 -04:00
shadowings-zy
32827506ff
fix(compiler-core): fix duplicated component identifier for names with non-ascii chars ( #4429 )
...
fix #4422
2021-08-24 11:48:08 -04:00
Evan You
586ec51c49
chore: warnings for ref transform
2021-08-24 10:26:38 -04:00
Evan You
8f1101c498
refactor(ref-transform): use shallowRef to align with types
2021-08-24 09:20:32 -04:00
Evan You
b40845153c
feat(experimental): expose ref macro types using separate d.ts file
2021-08-23 20:35:12 -04:00
Carlos Rodrigues
afd49b3e88
types(PropType): Allow `undefined` function to be used on `PropType` ( #4405 )
2021-08-23 19:04:03 -04:00
klwf
98263821f8
fix(compiler-sfc): fix `<script>` and `<script setup>` co-usage ordering edge case ( #4419 )
...
Fix : #4395
Fix : #4376
2021-08-23 19:02:54 -04:00
阿崔cxr
a46b0a9a96
chore(test): make unnecessarily async test case sync ( #4421 )
2021-08-23 18:52:11 -04:00
lidlanca
4792ebd687
fix(compiler-sfc): fix 'export default' rewrite with extra whitespaces ( #4375 )
2021-08-23 18:40:16 -04:00
zhangenming
9043d0dca7
refactor(reactivity): use explicit assignments. ( #4401 )
2021-08-23 18:32:58 -04:00
HcySunYang
ebd0baca98
fix(types): improve the type of createElementBlock ( #4406 )
...
fix #4391
2021-08-23 18:28:52 -04:00
Evan You
f1fa30adc3
refactor(ref-transform): improve algorithm into one pass
2021-08-23 18:22:21 -04:00
Evan You
06051c4bf2
feat(experimental): support ref transform for sfc normal `<script>`
2021-08-23 16:00:46 -04:00
Evan You
f173cf0026
chore(sfc-playground): improve version dropdown
2021-08-23 14:23:46 -04:00
Evan You
40994e967c
chore: fix sfc playground ci build
2021-08-23 14:10:11 -04:00
Evan You
80ed275073
chore(sfc-playground): enable ref transform
2021-08-23 12:21:17 -04:00
Evan You
6453359852
feat(ref-transform): auto infer parser plugins
2021-08-23 12:20:53 -04:00
Evan You
0805abe573
refactor(compiler-sfc): refSugar -> refTransform, export shouldTransformRef
2021-08-23 12:19:41 -04:00
Evan You
986681568f
chore: export extractIdentifiers
2021-08-23 12:18:43 -04:00
Evan You
e565831c98
feat(experimental): shouldTransform for ref-transform
2021-08-23 10:45:58 -04:00
Evan You
0c2ea1c134
refactor(compiler-sfc): remove parseOnly mode
2021-08-22 22:28:47 -04:00
Evan You
db8dc753c0
feat(experimental): standalone ref transform
2021-08-22 22:21:42 -04:00
Evan You
84b24a71f0
chore: bump deps
2021-08-22 15:33:21 -04:00
Evan You
73f8cae465
refactor(compiler): further extract babel ast utilities
2021-08-22 14:51:16 -04:00