Evan You
2bdee50a59
fix(runtime-core): fix v-bind class/style merging regression
...
fix #4155
2021-07-20 13:58:43 -04:00
Evan You
1034546a4c
release: v3.2.0-beta.2
2021-07-19 19:36:55 -04:00
Evan You
47f488350c
chore: run updated prettier
2021-07-19 18:24:18 -04:00
Amour1688
69344ff1ae
feat(types): map declared emits to onXXX props in inferred prop types ( #3926 )
2021-07-19 18:22:19 -04:00
ioslh
20b6619793
fix(ssr): update initial old value to watch callback in ssr usage ( #4103 )
2021-07-19 17:13:37 -04:00
Evan You
d810a1a569
fix(scheduler): fix insertion for id-less job
...
fix #4148
2021-07-19 13:37:38 -04:00
Evan You
bbf6ca9bca
fix(runtime-core): fix null type in required + multi-type prop declarations
...
fix #4146 (in combination with #4147 )
2021-07-19 11:20:28 -04:00
leno
84f6791e89
chore(runtime-core): use bit operations instead ( #4142 )
2021-07-19 10:32:14 -04:00
Evan You
327c8983fb
types: typing for ref macros
2021-07-16 17:35:04 -04:00
Evan You
1bab53e717
chore: remove deprecated defineEmit & useContext APIs
2021-07-16 16:56:51 -04:00
Evan You
d4c67dd253
release: v3.2.0-beta.1
2021-07-16 14:44:06 -04:00
Evan You
fcc6a54ee7
chore: expose watchPostEffect
2021-07-16 14:30:49 -04:00
Evan You
2a310df753
fix(runtime-core): fix default shapeFlag for fragments
2021-07-16 14:30:49 -04:00
Evan You
f596e008ef
refactor: remove deprecated scopeId codegen
...
BREAKING CHANGE: Output of SFC using `<style scoped>` generated by 3.2+
will be incompatible w/ runtime <3.2.
2021-07-16 14:30:49 -04:00
Evan You
bf4893c17c
types: fix dts tests
2021-07-16 14:30:49 -04:00
Evan You
4e5897d2df
test: fix renderSlot tests
2021-07-16 14:30:49 -04:00
Evan You
8610e1c9e2
feat(runtime-dom): defineCustomElement
2021-07-16 14:30:49 -04:00
Evan You
42ace9577d
feat: watchPostEffect
2021-07-16 14:30:49 -04:00
Evan You
3b64508e3b
feat: v-memo
2021-07-16 14:30:49 -04:00
Evan You
1fe2239270
refactor: sync value access for chained computed w/ scheduler
2021-07-16 14:30:49 -04:00
Evan You
eae7c247af
refactor: reduce bundle size
2021-07-16 14:30:49 -04:00
Bas van Meurs
6cf2377cd4
perf(reactivity): use bitwise dep markers to optimize re-tracking ( #4017 )
2021-07-16 14:30:49 -04:00
Evan You
bde855e017
test: test for computed optimization
2021-07-16 14:30:49 -04:00
Evan You
ebaac9a56d
perf(reactivity): avoid triggering re-render if computed value did not change
2021-07-16 14:30:49 -04:00
Anthony Fu
f5617fc3bb
feat(reactivity): new effectScope API ( #2195 )
2021-07-16 14:30:49 -04:00
Evan You
87f69fd0bb
perf(reactivity): improve reactive effect memory usage ( #4001 )
...
Based on #2345 , but with smaller API change
- Use class implementation for `ReactiveEffect`
- Switch internal creation of effects to use the class constructor
- Avoid options object allocation
- Avoid creating bound effect runner function (used in schedulers) when not necessary.
- Consumes ~17% less memory compared to last commit
- Introduces a very minor breaking change: the `scheduler` option passed to `effect` no longer receives the runner function.
2021-07-16 14:30:49 -04:00
HcySunYang
ceff89905b
perf: improve VNode creation performance with compiler hints ( #3334 )
2021-07-16 14:30:49 -04:00
Evan You
31abdc8ada
release: v3.1.5
2021-07-16 12:38:01 -04:00
Evan You
8dbad83e7f
fix(compat): fix v3 compiled fn detection in production
2021-07-16 10:17:38 -04:00
Evan You
68365b9b2b
fix(runtime-core): enter optimized mode for component as root
...
fix #3943
2021-07-15 18:51:59 -04:00
鱼
b31712ecc5
test(teleport): fix meaningless test case ( #2872 )
2021-07-15 16:36:36 -04:00
Carlos Rodrigues
18911abb91
fix(type): infer parent as this
on nextTick
function ( #3608 )
...
fix #3599
2021-07-15 16:28:20 -04:00
Evan You
c0db807844
refactor: simplify static content insertion
2021-07-15 13:16:19 -04:00
Evan You
2937530bef
fix(v-model): handle mutations of v-model bound array/sets
...
fix #4096
2021-07-15 12:14:19 -04:00
Evan You
03e26845e2
fix(sfc): fix <script setup>
async context preservation logic
...
fix #4050
2021-07-06 14:31:53 -04:00
Evan You
d12206db8e
test: add test case for proper effect teardown w/ withAsyncContext
2021-07-06 11:39:27 -04:00
Austin Keener
f3e15f633e
fix(compat): fix props check for v-model compat warning ( #4056 )
2021-07-04 18:32:44 -04:00
Evan You
348c3b01e5
release: v3.1.4
2021-07-02 08:37:50 -04:00
Evan You
438754a0d1
fix(build): avoid using async/await syntax
2021-07-02 08:06:25 -04:00
Austin Keener
12cf9f4ea1
fix(runtime-core): fix instance accessed via $parent chain when using expose() ( #4048 )
2021-07-02 07:51:54 -04:00
wonderl17
735ada1507
fix(runtime-core): add useAttrs and useSlots export ( #4053 )
2021-07-02 07:51:09 -04:00
Evan You
fc7b640041
release: v3.1.3
2021-07-01 19:28:06 -04:00
Evan You
ba89ca9eca
fix(runtime-dom): fix static node content caching edge cases
...
reverts fded1e8
fix #4023 , #4031 , #4037
2021-07-01 19:19:53 -04:00
Guillaume
347d90173b
types: export CreateComponentPublicInstance
2021-07-02 00:10:07 +02:00
Evan You
33708e8bf4
fix(ssr): ensure behavior consistency between prod/dev when mounting SSR app to empty containers
...
close #4034
2021-07-01 17:22:03 -04:00
Evan You
34d4991dd5
fix(ssr): properly hydrate non-string value bindings
...
fix #4006
2021-07-01 17:11:23 -04:00
Evan You
fded1e8dfa
fix(runtime-core): fix mouting of detached static vnode
...
fix #4023
2021-07-01 16:11:50 -04:00
Johnson Chu
81e69b29ec
feat(types): support IDE renaming for props ( #3656 )
2021-07-01 13:48:23 -04:00
Evan You
9ee41e14d2
fix: prevent withAsyncContext currentInstance leak in edge cases
2021-06-29 14:22:18 -04:00
Evan You
0240e82a38
feat(sfc): auto restore current instance after await statements in async setup()
2021-06-29 09:24:12 -04:00
LordTerabyte
d069796b8f
fix(runtime-core): add missing serverPrefetch hook error string ( #4014 )
2021-06-28 15:30:20 -04:00
Evan You
ef5c41523f
types: fix global helpers dts generation
2021-06-26 21:47:18 -04:00
Evan You
fddef8bb74
chore: remove unnecessary casting
2021-06-26 21:35:25 -04:00
Evan You
004bd18cf7
feat(sfc/types): make <script setup>
helper types available globally
2021-06-26 21:12:26 -04:00
Evan You
4c5844a9ca
feat(sfc): withDefaults helper
2021-06-26 21:11:57 -04:00
Evan You
3ffc7be864
chore(sfc-playground): ignore duplicate logs
2021-06-25 19:31:47 -04:00
Evan You
1675b6d723
fix: defineExpose type definition and runtime warning
2021-06-25 16:18:21 -04:00
Evan You
b0203a3092
feat(expose): always expose $ instance properties on child refs
2021-06-24 21:28:09 -04:00
Evan You
ac853ff4ab
test: fix script setup helpers tests
2021-06-23 10:31:32 -04:00
Evan You
0b8b576428
fix(sfc): allow variables that start with _ or $ in <script setup>
2021-06-23 10:13:23 -04:00
Evan You
63e9e2e9aa
feat(sfc): useAttrs + useSlots
...
Deprecate useContext
2021-06-22 21:07:42 -04:00
Eduardo San Martin Morote
a137da8a9f
feat(sfc): add defineEmits
and deprecate defineEmit
( #3725 )
2021-06-22 15:02:56 -04:00
Evan You
6b6d566861
release: v3.1.2
2021-06-22 14:24:50 -04:00
Evan You
9b607fe409
fix(watch): fix watch option merging from mixins
...
fix #3966
2021-06-22 13:54:43 -04:00
Eduardo San Martin Morote
ab6e927041
fix(Suspense): emit initial fallback and pending events ( #3965 )
...
Fix #3964
2021-06-21 17:03:07 -04:00
edison
43e2a72900
fix(Suspense): fallback should work with transition ( #3968 )
...
fix #3963
2021-06-21 16:58:43 -04:00
Evan You
4de5d24aa7
perf: improve static content insertion perf
...
Especially on multiple insertions of the same static node.
fix #3090
2021-06-21 14:38:29 -04:00
Evan You
056ef2a7d2
refactor: use markRaw instead of internal flag check
2021-06-11 18:46:31 -04:00
Eunjae Lee
db1dc1c630
fix(runtime-core): bind default function of inject to instance ( #3925 )
...
fix #3923
2021-06-09 12:02:05 -04:00
LYlanfeng
011dee8644
fix(runtime-core): fix multiple .once event handlers on same component ( #3904 )
...
fix #3902
2021-06-08 09:52:45 -04:00
Guillaume
2b52d5d7c5
fix(devtools): expose root instance
...
related to https://github.com/vuejs/vue-devtools/issues/1376
2021-06-07 23:23:45 +02:00
Evan You
ade9bd9daa
release: v3.1.1
2021-06-07 16:26:54 -04:00
Evan You
ac15df46c5
release: v3.1.0
2021-06-07 12:38:42 -04:00
Evan You
ad844cf1e7
fix(compat): revert private properties on $options in comapt mode
...
fix #3883
2021-06-07 11:04:41 -04:00
Evan You
5bce2ae723
fix(runtime-core): fix fragment update inside de-opt slots
...
fix #3881
2021-06-04 18:03:40 -04:00
Evan You
71f7c25fbe
release: v3.1.0-beta.7
2021-06-02 16:12:54 -04:00
Evan You
2b5a559055
chore: avoid compat disabled error for built-in components
2021-06-02 16:06:09 -04:00
Evan You
9acc9a1fa8
fix(watch): avoid traversing objects that are marked non-reactive
...
e.g. Vue public instances
2021-06-02 15:51:27 -04:00
Evan You
51d2be2038
perf: avoid deopt for props/emits normalization when global mixins are used
2021-06-02 15:22:52 -04:00
Evan You
e2ca67b59a
fix(runtime-core): align option merge behavior with Vue 2
...
fix #3566 , #2791
2021-06-02 15:19:56 -04:00
Evan You
1e35a860b9
refactor: adjust component options merge cache strategy
...
BREAKING CHANGE: optionMergeStrategies functions no longer receive
the component instance as the 3rd argument. The argument was technically
internal in Vue 2 and only used for generating warnings, and should not
be needed in userland code. This removal enables much more efficient
caching of option merging.
2021-06-02 10:42:52 -04:00
Evan You
44996d1a0a
fix(suspense): fix suspense regression for errored template component
...
fix #3857
2021-05-31 17:19:03 -04:00
Evan You
c7efb967ca
fix(compat): fix deep data merge with extended constructor
...
fix #3852
2021-05-31 16:48:18 -04:00
Evan You
aa96a0e88a
release: v3.1.0-beta.6
2021-05-28 16:58:54 -04:00
Evan You
071986a2c6
fix(transition): fix higher order transition components with merged listeners
...
fix #3227
2021-05-28 15:42:08 -04:00
edison
d6607c9864
fix(runtime-core): fix resolving inheritAttrs from mixins ( #3742 )
...
fix #3741
2021-05-27 21:53:41 -04:00
Evan You
1ff06376ff
chore: type fix
2021-05-27 20:58:27 -04:00
Evan You
03a7a73148
fix(reactivity): ensure computed always expose value
...
fix #3099
Also changes the original fix for #910 by moving the fix from
reactivity to the scheduler
2021-05-27 20:53:21 -04:00
Evan You
32e21333dd
fix(runtime-core): stricter compat root mount check
2021-05-27 20:47:46 -04:00
HcySunYang
a641eb201f
fix(runtime-core): fix cases of reused children arrays in render functions ( #3670 )
...
fix #3666
2021-05-27 17:06:55 -04:00
HcySunYang
ff50e8d78c
fix(runtime-core): should disable tracking inside directive lifecycle hooks ( #3699 )
2021-05-27 16:53:19 -04:00
Evan You
9f24195d2c
fix(suspense): fix suspense patching in optimized mode
...
fix #3828
2021-05-27 16:32:31 -04:00
Evan You
f0eb1978b2
release: v3.1.0-beta.5
2021-05-26 16:06:51 -04:00
Evan You
b46a4dccf6
fix(ssr): handle hydrated async component unmounted before resolve
...
fix #3787
2021-05-26 15:26:18 -04:00
Evan You
b57e995edd
fix(scheduler): handle preFlush cb queued inside postFlush cb
...
fix #3806
2021-05-26 14:21:49 -04:00
HcySunYang
e8ddf86080
fix(runtime-core): properly check forwarded slots type ( #3781 )
...
fix #3779
2021-05-26 11:52:03 -04:00
edison
4e3f82f683
fix(runtime-core/teleport): ensure the nested teleport can be unmounted correctly ( #3629 )
...
fix #3623
2021-05-26 10:51:55 -04:00
HcySunYang
201060717d
fix(runtime-core): should not track dynamic children when the user calls a compiled slot inside template expression ( #3554 )
...
fix #3548 , partial fix for #3569
2021-05-25 13:33:41 -04:00
Evan You
1526f94edf
fix(watch): should not leak this context to setup watch getters
...
ref #3603
2021-05-25 11:10:11 -04:00
HcySunYang
9e3708ca75
fix(keep-alive): include/exclude should work with async component ( #3531 )
...
fix #3529
2021-05-25 10:50:00 -04:00