Evan You
1867591e7c
fix(reactivity): dereference nested effect scopes on manual stop
2021-07-28 12:08:01 -04:00
Pick
da6c055b19
types(reactivity): simplify UnwrapNestedRefs ( #4194 )
2021-07-28 11:15:08 -04:00
Pick
b79e4ca717
types(reactivity): Simplify the SymbolExtract ( #4162 )
2021-07-28 11:12:46 -04:00
Roan Kattouw
d2585e13e9
chore: Add LICENSE file for vue-compat ( #4200 ) [ci skip]
2021-07-28 11:07:47 -04:00
edison
771635b72a
fix(sfc/style-vars): improve ignore style variable bindings in comments ( #4202 )
2021-07-28 10:51:25 -04:00
Evan You
204e194d2b
release: v3.2.0-beta.6
2021-07-27 18:56:02 -04:00
Evan You
f994b974c0
feat: unwrap refs in toDisplayString
2021-07-27 18:42:30 -04:00
Evan You
ee4cbaeec9
fix(runtime-core): expose ssrUtils in esm-bundler build
...
this is necessary for worker environments where Vue needs to be
bundled (instead of using cjs build via Node.js require)
fix #4199
2021-07-27 17:59:13 -04:00
Evan You
561e210157
fix(inject): should auto unwrap injected refs
...
fix #4196
2021-07-27 17:52:37 -04:00
Evan You
8681c12c0c
chore: rename method to make it more explicit it is dev only
2021-07-27 17:52:37 -04:00
edison
3a75d5d694
fix(sfc/style-vars): should ignore style variable bindings in comments ( #4188 )
...
fix #4185
2021-07-26 11:19:56 -04:00
Evan You
4b595a3ea1
release: v3.2.0-beta.5
2021-07-23 16:10:22 -04:00
Evan You
ac74e1dd33
fix(v-model): avoid resetting value of in-focus & lazy input
...
fix #4182
2021-07-23 15:44:56 -04:00
Evan You
2581cfb707
fix(types): fix types for readonly ref
...
fix #4180
2021-07-23 15:24:58 -04:00
Evan You
231dafd55a
refactor: adjust custom element hmr, fix tests
2021-07-22 23:18:15 -04:00
Evan You
bff4ea74c5
fix(hmr): fix custom elements hmr edge cases
2021-07-22 18:54:26 -04:00
Evan You
5b76843b69
feat(runtime-dom): support passing initial props to custom element constructor
2021-07-22 18:19:58 -04:00
Evan You
7a7e1d8e9f
feat(runtime-dom): hmr for custom elements
2021-07-22 17:48:15 -04:00
Evan You
a7fa4ac28a
feat(runtime-dom): support specifying shadow dom styles in defineCustomElement
2021-07-22 16:33:32 -04:00
Evan You
f0ca233d8b
refactor(compiler-sfc): improve script setup import expose heuristics
2021-07-22 12:53:08 -04:00
Evan You
5a3ccfd914
feat(compiler-sfc): avoid exposing imports not used in template
...
close #3183
2021-07-22 12:04:46 -04:00
Evan You
db3f57a392
fix(hmr): fix hmr when global mixins are used
...
fix #4174
2021-07-22 10:53:59 -04:00
Evan You
fe58bae412
release: v3.2.0-beta.4
2021-07-21 17:40:25 -04:00
Evan You
8560005601
fix(runtime-core): ensure setupContext.attrs reactivity when used in child slots
...
fix #4161
2021-07-21 17:31:00 -04:00
Evan You
ff0c810300
fix(runtime-dom): defer setting value
...
fix #2325 , fix #4024
2021-07-21 16:38:01 -04:00
王嘉欣
36ae23d27e
chore(types): remove unnecessary assertions ( #4168 )
2021-07-21 15:55:31 -04:00
webfansplz
9c931d8154
chore(types): remove unnecessary non-null assertion ( #4169 )
2021-07-21 15:50:08 -04:00
Evan You
d13774b881
perf: skip patch on same vnode
2021-07-21 14:04:02 -04:00
Evan You
dd1439e711
build: reduce runtime build size
2021-07-21 11:11:40 -04:00
Evan You
9d5dd2da8c
release: v3.2.0-beta.3
2021-07-20 17:47:03 -04:00
Evan You
14ca881a1b
feat(reactivity): deferredComputed
...
Note: this is not exposed as part of Vue API, only as
a lower-level API specific to @vue/reactivity
2021-07-20 17:39:19 -04:00
Evan You
d87d059ac1
feat(runtime-core): watchSyncEffect
2021-07-20 16:49:54 -04:00
Evan You
33c2fbfdc8
fix(reactivity): revert computed scheduler change
...
fix #4157
2021-07-20 16:45:29 -04:00
Evan You
bc7f9767f5
fix(watch): ensure watchers respect detached scope
...
fix #4158
2021-07-20 14:32:17 -04:00
Evan You
2bdee50a59
fix(runtime-core): fix v-bind class/style merging regression
...
fix #4155
2021-07-20 13:58:43 -04:00
webfansplz
acb2a4d285
fix(sfc-playground): Transform named default exports without altering scope ( #4154 )
...
Co-authored-by: webfansplz <>
2021-07-20 10:28:02 -04:00
webfansplz
457c9aed1f
chore(type): remove unnecessary type assertion ( #4150 )
2021-07-20 09:31:40 -04:00
Evan You
3ff94faca1
build: fix default build script (ignore sfc-playground)
...
close #4153
2021-07-20 09:29:45 -04:00
Evan You
1034546a4c
release: v3.2.0-beta.2
2021-07-19 19:36:55 -04:00
Evan You
a21ca3dccc
fix(compiler-core): fix self-closing tags with v-pre
2021-07-19 19:29:28 -04:00
Evan You
7e75b4105a
refactor: better fix for ec6abe8d
2021-07-19 19:23:44 -04:00
Evan You
bb7b130b0b
chore: remove peer dep for compiler-sfc
2021-07-19 19:06:17 -04:00
Evan You
8dbecfcbb3
feat(compiler-sfc): add ignoreEmpty option for sfc parse method
2021-07-19 19:02:46 -04:00
Evan You
ec6abe8d5e
fix(compiler-sfc): fix whitespace preservation when block contains single self-closing tag
2021-07-19 18:54:35 -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
Pick
35cc7b0d31
chore(reactivity): correct the description of the test case ( #4135 )
2021-07-19 17:59:30 -04:00
Evan You
3056e9b3dc
fix(v-model): properly detect input type=number
...
fix #3813
2021-07-19 17:46:04 -04:00
Evan You
93a950d60d
fix(compiler-sfc): support const enum
2021-07-19 17:31:13 -04:00
Cédric Exbrayat
b771fdbef9
perf(compiler-sfc): ignore empty blocks ( #3520 )
2021-07-19 17:24:40 -04:00
Homyee King
65f82ce94f
chore(shared): remove extra NaN logic ( #3837 )
2021-07-19 17:22:21 -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
b274b08f5f
fix(compiler-sfc): expose correct range for empty blocks
2021-07-19 17:05: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
6eb47f000a
fix(reactivity): computed should not trigger scheduler if stopped
...
fix #4149
2021-07-19 13:37:03 -04:00
Austin Keener
dd0f9d1ce6
feat(compiler): allow 'comments' option to affect comment inclusion in dev ( #4115 )
...
Close : #3392
Replace: #3395
2021-07-19 11:40:37 -04:00
webfansplz
d868d5ffa7
chore(shared): remove deprecated html tags ( #4130 )
2021-07-19 11:30:43 -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
Evan You
cac6ab5bdb
chore: fix type issue
2021-07-19 11:11:17 -04:00
edison
f7607d3a15
fix(compiler-sfc): defineProps infer TSParenthesizedType ( #4147 )
2021-07-19 11:09:24 -04:00
Evan You
47ba33e27b
refactor: improve the fix for #4138
2021-07-19 10:43:14 -04:00
Evan You
a8c3a8ad61
fix(shared): normalizeStyle should handle strings
...
fix #4138
2021-07-19 10:37:12 -04:00
leno
84f6791e89
chore(runtime-core): use bit operations instead ( #4142 )
2021-07-19 10:32:14 -04:00
webfansplz
df0ce21836
chore(types): improve of type assertion ( #4141 )
2021-07-19 10:32:07 -04:00
Cédric Exbrayat
1e5e004d7c
chore(sfc-playground): remove compiler macro imports ( #4134 )
...
Importing `defineEmits` and `defineProps` is no longer needed since v3.1.3
2021-07-19 10:08:51 -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
49dc2dd1e4
fix(sfc/style-vars): properly re-apply style vars on component root elements change
...
Now uses MutationObserver to ensure it works even for HOCs
fix #3894
2021-07-16 14:30:49 -04:00
Evan You
317654b34f
chore: fix codegen error due to scopeId deprecation change
2021-07-16 14:30:49 -04:00
Evan You
fcc6a54ee7
chore: expose watchPostEffect
2021-07-16 14:30:49 -04:00
Evan You
de32cfa43e
fix: ensure customElements API ssr compatibility
...
fix #4129
2021-07-16 14:30:49 -04:00
fishDog
eca4d7891a
chore(compiler-core): reduce unnecessary cache inside v-once ( #4112 )
2021-07-16 14:30:49 -04:00
Evan You
e5a4412764
feat(sfc): support namespaced component tags when using <script setup>
2021-07-16 14:30:49 -04:00
Evan You
a8edf2bdff
refactor: remove outdated slot ctx wrapper codegen
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
29732c2c86
fix: ignore .prop/.attr modifiers in ssr
2021-07-16 14:30:49 -04:00
Evan You
e66a493da1
refactor: remove deprecated defineEmit() support
2021-07-16 14:30:49 -04:00
Evan You
562bddb3ce
feat(sfc): (experimental) new ref sugar
2021-07-16 14:30:49 -04:00
Evan You
27104eaaf0
feat: remove experimental status of <script setup>
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
1c7d737cc8
feat: support v-bind .prop & .attr modifiers
...
Also allows render function usage like the following:
```js
h({
'.prop': 1, // force set as property
'^attr': 'foo' // force set as attribute
})
```
2021-07-16 14:30:49 -04:00
Evan You
00f0b3c465
feat: custom element reflection, casting and edge cases
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
5cea9a1d4e
feat(reactivity): support onTrack/onTrigger debug options for computed
2021-07-16 14:30:49 -04:00
Evan You
b7ea7c1485
perf: also hoist all-static children array
2021-07-16 14:30:49 -04:00
Evan You
2dd4739089
test: more test cases for computed w/ scheduler
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
02339b67d8
perf: hoist dynamic props lists
2021-07-16 14:30:49 -04:00
Evan You
979a841946
chore: use consistent file naming
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
cc09772d55
chore: remove unncessary property on ComputedRef interface
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
Evan You
63a51ffcab
chore: fix test failing types
2021-07-16 14:30:49 -04:00
Evan You
b2554aefba
refactor: small bundle size / readability optimization
2021-07-16 14:30:49 -04:00
Bas van Meurs
64310405ac
perf(reactivity): ref-specific track/trigger and miscellaneous optimizations ( #3995 )
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
b6cc8640c5
test: test for compat mode v3 render fn detection
2021-07-16 10:23:25 -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
TheDro
1cfe290352
fix(reactivity): call array subclass methods ( #3624 )
...
fix #2314 , close #2315
2021-07-15 17:17:13 -04:00
Evan You
299f7c08c7
chore: fix snapshot from merge
2021-07-15 16:57:30 -04:00
patak
29010501cc
fix(compiler-sfc): duplicated injected css var with repeated vars in style ( #2802 )
2021-07-15 16:45:37 -04:00
鱼
b31712ecc5
test(teleport): fix meaningless test case ( #2872 )
2021-07-15 16:36:36 -04:00
HcySunYang
3756270272
fix(runtime-dom): capture errors when setting value for IDL ( #3578 )
...
fix #3576
2021-07-15 16:32:25 -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
Yang Mingshan
08f504c1b7
fix(ref): should not trigger when setting value to same proxy ( #3658 )
2021-07-15 16:28:01 -04:00
Carlos Rodrigues
f6a5f09a3a
types(defineComponent): fix unwrap when returning Ref<T>|undefined
from setup
( #4100 )
2021-07-15 15:58:20 -04:00
Tan Zhen Yong
e508ee08e9
chore: fix typo in inherit-attrs warning ( #4094 )
2021-07-15 15:45:23 -04:00
Austin Keener
e00aa56658
fix(compiler): Addressed infinite loop in compiler ( #3992 )
...
close #3987
2021-07-15 14:57:47 -04:00
Evan You
7013e8f578
fix(runtime-dom): remove class attribute on nullish values
...
close #3173
2021-07-15 13:45:43 -04:00
Evan You
5af718ba41
fix(v-model): support calling methods in v-model expression
...
close #3993
2021-07-15 13:34:42 -04:00
Evan You
395572b593
fix(v-on): proper member exp detection for bracket assignment
...
fix #4097
2021-07-15 13:26:09 -04:00
Evan You
c0db807844
refactor: simplify static content insertion
2021-07-15 13:16:19 -04:00
Evan You
5df7dfcd71
fix(sfc): only enable jsx parser plugin when explicitly using tsx
...
fix #4106
2021-07-15 13:12:06 -04:00
Evan You
963085d18c
fix(v-on): properly detect member expressions with optional chaining
...
fix #4107
2021-07-15 12:23:07 -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
edison
c23153d82e
fix(compiler-core): fix forwarded slots detection on template slots ( #4124 )
...
fix #4123
2021-07-15 11:37:11 -04:00
edison
6a0c7cd905
fix(sfc): fix style variables injection on static vnode ( #3847 )
...
fix #3841
2021-07-14 18:08:12 -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
Evan You
6fad2093a4
fix(compiler-sfc): should not rewrite ref sugar identifiers in types
...
fix #4062
2021-07-05 14:41:53 -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
253ca2729d
fix(compiler-sfc): fix parse-only mode when there is no script setup block
2021-07-02 08:24:24 -04:00
Evan You
438754a0d1
fix(build): avoid using async/await syntax
2021-07-02 08:06:25 -04:00
Evan You
a44d528af1
fix(codegen): ensure valid types in genreated code when using global directives
...
fix #4054
2021-07-02 07:59:47 -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
Evan You
d2df28dca4
fix(compiler-core): properly exit self-closing pre tag
...
fix #4030
2021-07-01 15:34:12 -04:00
Evan You
127ed1b969
fix(types): improve type of unref()
...
fix #3954
2021-07-01 15:20:49 -04:00
Bas van Meurs
69b74a806f
chore(puppeteer): upgrade puppeteer ( #4019 )
...
* chore(puppeteer): upgrade puppeteer
* fix(tests): fix typescript error with puppeteer 5.X types
Co-authored-by: bas <bas@planning.nl>
2021-07-01 13:56:38 -04:00
Johnson Chu
8ed3ed6c27
feat(types/ide): support find definition for jsx tags, events ( #3570 )
2021-07-01 13:49:16 -04:00
Johnson Chu
81e69b29ec
feat(types): support IDE renaming for props ( #3656 )
2021-07-01 13:48:23 -04:00
Evan You
1ffd48a2f5
fix(compiler-sfc): support TS runtime enum in <script setup>
2021-06-30 12:03:42 -04:00
Evan You
f8a6b57ddd
refactor(reactivity): improve tree-shaking annotations
2021-06-30 11:39:31 -04:00
Evan You
601a290caa
feat(compiler-sfc): compileScript parseOnly mode
...
This is an internal feature meant for IDE support
2021-06-29 17:56:49 -04:00
Evan You
96cc335aa7
feat(sfc): make ref sugar disabled by default
2021-06-29 15:22:26 -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
Evan You
fd7fa6f694
test: fix script setup directive test
2021-06-28 18:55:27 -04:00
Evan You
211793d376
fix(compiler-sfc): avoid script setup marker showing up in devtools
2021-06-28 18:48:38 -04:00
Evan You
2e10261b38
chore: warn script setup compiler macro imports
2021-06-28 17:57:58 -04:00
Evan You
d35e0b1468
feat(sfc): change <script setup>
directive resolution to require v prefix
...
close #3543
2021-06-28 17:35:31 -04:00
Evan You
0245c98640
chore(sfc-playground): handle ssr-only compile errors
2021-06-28 17:34:52 -04:00
Evan You
62c1b2f7dc
fix(compiler-sfc): fix defineProps/defineEmits usage in multi-variable declarations
...
fix #3739
2021-06-28 16:31:55 -04:00
Evan You
2973b6c30a
feat(sfc): support referenced types for defineEmits
2021-06-28 16:03:27 -04:00
Evan You
afdd2f2835
fix(compiler-sfc): support method signature in defineProps
...
fix #2983
2021-06-28 15:39:04 -04:00
Evan You
2f91db30cd
feat(sfc): support using declared interface or type alias with defineProps()
2021-06-28 15:30:28 -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
be0f614ac0
feat(sfc-playground): support lang=ts
2021-06-25 15:56:51 -04:00
Evan You
691d354af9
fix(compiler-sfc): fix defineProps() call on imported identifier
2021-06-25 14:05:59 -04:00
Evan You
be2b1d3c2f
feat(sfc): defineExpose
2021-06-25 13:14:49 -04:00
Evan You
b0203a3092
feat(expose): always expose $ instance properties on child refs
2021-06-24 21:28:09 -04:00
Evan You
a5a66c5196
fix(compiler-sfc): fix script setup hidden flag codegen
2021-06-24 10:11:30 -04:00
Evan You
ac853ff4ab
test: fix script setup helpers tests
2021-06-23 10:31:32 -04:00
Evan You
075889ebfc
chore: comments
2021-06-23 10:21:33 -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
Evan You
6f6f0cf5dc
feat(sfc): remove <template inherit-attrs>
support
2021-06-22 21:06:51 -04:00
Evan You
65f8c823aa
chore: add missing snapshot
2021-06-22 17:56:45 -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
9f6f8b35c1
fix(compiler-ssr): fix attr fallthrough for transition/keep-alive as template root
...
fix #3981
2021-06-22 14:19:14 -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
08e93220f1
fix(compiler-core/compat): fix is prop usage on components
...
also fix v-bind:is usage on plain element in compat mode
fix #3934
2021-06-21 16:16:49 -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
de954f4560
chore: include estree types in compiler-sfc deps
2021-06-14 15:43:27 -04:00
Evan You
056ef2a7d2
refactor: use markRaw instead of internal flag check
2021-06-11 18:46:31 -04:00
ygj6
b228abb72f
fix(compiler-sfc): rewriteDefault support multiline ( #3917 )
2021-06-09 15:07:48 -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
Evan You
bc100c5c48
fix(compiler-core): improve member expression check
...
fix #3910
2021-06-09 11:57:48 -04:00
Herrington Darkholme
9a5bdb15df
chore(playground): support unicode in sfc playground ( #3662 )
...
atob/btoa only supports ASCII string which makes playground fails
to save unicode source. This patch add unicode support by combining
escape/encodeURIComponent. `escape` is chosen for backward
compatibility.
2021-06-08 10:12:15 -04:00
zhangenming
960ef1691f
chore(reactivity): remove unnecessary RefImpl _shallow default value ( #3895 )
2021-06-08 09:58:02 -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
Daniel Roe
434ea30505
fix(compat): update cjs dist file names ( #3893 )
2021-06-07 16:22:42 -04:00
Evan You
ac15df46c5
release: v3.1.0
2021-06-07 12:38:42 -04:00
Evan You
78380efa65
chore: update compat build readme [ci skip]
2021-06-07 12:34:08 -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
HcySunYang
ecd97ee6e4
fix(runtime-dom/v-model): only set selectedIndex when the value changes ( #3845 )
2021-05-29 20:42:13 -04:00
Evan You
8b94464a3b
fix(compiler-sfc): fix style injection when using normal script + setup
...
fix #3688
2021-05-28 18:40:45 -04:00
edison
2c7bd42801
fix(compiler-sfc): fix template expression assignment codegen for script setup let refs ( #3626 )
...
fix #3625
2021-05-28 17:58:46 -04:00
Evan You
aa96a0e88a
release: v3.1.0-beta.6
2021-05-28 16:58:54 -04:00
HcySunYang
6bfb50aff9
fix(compiler-sfc): correctly remove parens used for wrapping ( #3582 )
...
fix #3581
2021-05-28 16:02:31 -04:00
Evan You
6fbf0dd315
chore: use variable instead of literal
2021-05-28 15:56:07 -04:00
GU Yiling
e3f5dcb99b
fix(runtime-dom): should remove attribute when binding null
to value
( #3564 )
2021-05-28 15:48:22 -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
HcySunYang
9b2e894017
fix(compiler-core): improve the isMemberExpression function ( #3675 )
2021-05-27 21:07:26 -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
Evan You
669037277b
fix(compiler-dom): fix in-browser attribute value decoding w/ html tags
...
fix #3001
2021-05-27 17:25:34 -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
Evan You
f1f52300e6
release: v3.1.0-beta.4
2021-05-24 19:16:44 -04:00
Evan You
b76c453507
refactor: adjust absent prop casting logic
2021-05-24 19:09:18 -04:00
Evan You
0255be2f4b
fix(runtime-core): avoid double-setting props when casting
...
fix #3371 , close #3384
2021-05-24 18:48:33 -04:00
HcySunYang
4ce0df6ef1
fix(runtime-core): avoid the proxy object polluting the slots of the internal instance ( #3698 )
...
fix #3695
2021-05-24 18:17:37 -04:00
HcySunYang
7c74feb3dc
fix(compiler-dom): comments in the v-if branchs should be ignored when used in Transition ( #3622 )
...
fix #3619
2021-05-24 17:10:29 -04:00
Evan You
3ef1fcc859
fix(compiler-ssr): disable hoisting in compiler-ssr
...
fix #3536
2021-05-24 16:48:31 -04:00
Lo Leon
90aa835812
fix(types/reactivity): error TS4058 caused by RefSymbol
( #2548 )
2021-05-24 16:36:08 -04:00
Carlos Rodrigues
a0c57936f8
types(jsx): improve type for number attributes ( #3776 )
...
fix #3788
2021-05-24 12:15:45 -04:00
Jason
01e8ba8f87
fix(compiler-sfc): support tsx in setup script ( #3825 )
...
close #3808
2021-05-24 12:13:37 -04:00
Guillaume Chau
f7c54caeb1
feat(devtools): performance events
2021-05-19 20:48:35 +02:00
Guillaume Chau
1355ee27a6
fix(devtools): send update to component owning the slot
...
https://github.com/vuejs/vue-devtools/issues/1404
2021-05-19 18:19:28 +02:00
HcySunYang
4f17be7b1c
fix(compat): avoid accidentally delete the modelValue prop ( #3772 )
2021-05-17 14:07:53 -04:00
Carlos Rodrigues
92e7330385
types(props): Support undefined
as default ( #3783 )
2021-05-17 14:04:31 -04:00
HcySunYang
47da92146c
fix(compiler-core): fix whitespace management for slots with whitespace: 'preserve' ( #3767 )
...
fix #3766
2021-05-13 18:24:43 -04:00
Yunfei He
49fd1696c9
chore(types): remove unnecessary type assertion ( #3724 )
2021-05-12 17:47:52 -04:00
GU Yiling
9b160b9405
fix(types): declared prop keys should always exist in props
argument ( #3726 )
2021-05-12 17:47:31 -04:00
Cédric Exbrayat
f01aadf2a1
fix(compat): enum coercion warning ( #3755 )
2021-05-12 17:47:00 -04:00
edtam
15450dc685
chore: fix package link ( #3750 ) [skip ci]
2021-05-12 17:44:02 -04:00
Evan You
b663aa8a81
release: v3.1.0-beta.3
2021-05-12 17:37:04 -04:00
Evan You
fa3f8e44ed
chore: improve transition test stability
2021-05-12 17:28:18 -04:00
Stanislav Lashmanov
2bfb8b574d
fix(compat): correctly merge lifecycle hooks when using Vue.extend ( #3762 )
...
fix #3761
2021-05-12 17:13:44 -04:00
HcySunYang
a56ab148fd
fix(compiler-core): bail out to array children when the element has custom directives + only one text child node ( #3757 )
2021-05-12 16:12:32 -04:00
Cédric Exbrayat
0e3bbd0626
chore: fix typos in compat document
2021-05-11 10:44:36 +08:00
Cédric Exbrayat
808ccf0963
chore: fix typo in compat warning
2021-05-11 10:41:51 +08:00
Evan You
99a5ccf6b2
release: v3.1.0-beta.2
2021-05-08 16:59:12 -04:00
Evan You
94e69fd389
fix(compat): handle and warn config.optionMergeStrategies
2021-05-08 16:48:59 -04:00
Evan You
ed6c5fe903
release: v3.1.0-beta.1
2021-05-08 16:24:34 -04:00
Evan You
f2fb8a51a9
build: fix compat build type treatment
2021-05-08 16:21:06 -04:00
Evan You
341fa38f9b
chore: document ts and alt strategy for compat build
2021-05-08 16:20:50 -04:00
Evan You
fb96a85ee7
chore: migration build docs [ci skip]
2021-05-08 00:46:25 -04:00
HcySunYang
5036c51cb7
fix(reactivity): fix tracking for readonly + reactive Map ( #3604 )
...
fix #3602
2021-05-07 18:49:11 -04:00
HcySunYang
c8d96837b8
fix(hydration): fix update before async component is hydrated ( #3563 )
...
fix #3560
2021-05-07 18:42:58 -04:00
HcySunYang
43f78151bf
fix(Teleport): avoid changing the reference of vnode.dynamicChildren ( #3642 )
...
fix #3641
2021-05-07 18:04:36 -04:00
AbaAba~
e7300eb479
fix(runtime-core): watching multiple sources: computed ( #3066 )
...
fix #3068
2021-05-07 18:03:35 -04:00
Guillaume Chau
349eb0f0ad
feat: onServerPrefetch ( #3070 )
...
Support equivalent of `serverPrefetch` option via Composition API.
2021-05-07 12:00:52 -04:00
Evan You
372f152d23
ci: improve transition tests ci stability
2021-05-07 09:56:31 -04:00
Evan You
28eb314d87
chore: bump more
2021-05-07 09:28:14 -04:00
Evan You
21edc18ac3
chore: bump transition test duration on CI
2021-05-07 09:08:10 -04:00
Evan You
5db594f0e5
chore: remove markdown spec debounce assertion for ci stability
2021-05-07 09:08:10 -04:00
Evan You
80c7ac7d37
chore: bump e2e test debounce
2021-05-06 18:49:04 -04:00
Evan You
b10db86711
wip: make legacy global apis available on app instance as well
2021-05-06 17:15:11 -04:00
Evan You
fa48722441
wip: fix v3 render fn detection regex
2021-05-06 16:18:00 -04:00
Evan You
5a0bab0bd2
wip: defineReactive on instance with keys starting with $
2021-05-06 16:17:32 -04:00
Evan You
37ee2959fc
wip: allow compatConfig mode to be a function
2021-05-06 10:57:34 -04:00
Guillaume Chau
9db3cbbfc1
fix(hmr): don't remove __file key from component type
2021-05-06 14:21:54 +02:00
Evan You
293b41ba3b
wip: expose configureCompat via named export
2021-05-05 19:31:06 -04:00
Evan You
f2a5a3ee55
wip: make singleton mutations affect all app instances
2021-05-05 17:56:09 -04:00
Evan You
61edb700d7
wip: only generate non-scope slot flag when compatConfig is present
2021-05-05 16:36:16 -04:00
Evan You
7a8cee8688
wip: remove v-if key warning as there are legit use cases
2021-05-05 16:35:44 -04:00
Evan You
c32760147c
wip: relay compiler-core warnings in compiler-sfc with codeframe
2021-05-05 14:24:46 -04:00
Evan You
7f93c76b96
wip: exclude legacy slots from $scopedSlots
2021-05-05 11:06:15 -04:00
Evan You
5278e0622a
wip: more private properties
2021-05-05 09:47:14 -04:00
Evan You
7e6a76e587
wip: enable private vnode properties even for built-ins
2021-05-04 18:26:28 -04:00
Evan You
ae0fb14305
wip: fix native template compat
2021-05-04 18:26:28 -04:00
Evan You
7c1e665215
wip: root instance $destroy before $mount
2021-05-04 18:26:28 -04:00
Evan You
4d62670d3d
wip: vm._data for vuex compat
2021-05-04 18:26:28 -04:00
Evan You
80303bcf5a
wip: compat test coverage
2021-04-30 18:05:03 -04:00
Evan You
324a00c85d
wip: test for global filter registration
2021-04-30 17:16:47 -04:00
Evan You
bd3cc4d2c7
wip: tests for compiler compat
2021-04-30 15:50:32 -04:00
Evan You
b4c92ccf6b
wip: move compat test cases + filter tests
2021-04-29 16:58:14 -04:00
Evan You
bb76cfae12
wip: test for v-model compat
2021-04-29 16:22:39 -04:00
Evan You
6db7c00b42
wip: test for legacy component compat
2021-04-29 15:51:37 -04:00
Evan You
3963f2e963
wip: more tests for v2 compat
2021-04-29 14:45:22 -04:00
Evan You
d3d9355c5a
wip: test for instance and options compat
2021-04-28 17:21:05 -04:00
Evan You
d0dd6674bb
wip: fix isCustomElement
2021-04-28 12:36:08 -04:00
Evan You
cd33714935
chore: Merge branch 'v2-compat'
2021-04-28 12:30:57 -04:00
Evan You
c27f01bc74
wip: tests for global config compat
2021-04-28 12:29:51 -04:00
Evan You
ce0bbe053a
feat: support component-level compilerOptions
when using runtime compiler
...
- The `delimiters` component option is deprecated.
Use `compilerOptions.delimiters` instead.
2021-04-28 11:40:16 -04:00
Evan You
e486254431
fix(compiler-core): preserve comment content in production when comments option is enabled
2021-04-28 11:22:16 -04:00
Evan You
1d1af403ca
wip: tests for global api compat
2021-04-27 17:34:19 -04:00
Evan You
86703c23a6
wip: ref v-for compat
2021-04-26 17:35:41 -04:00
Evan You
3e815be24e
wip: fix tests
2021-04-26 17:35:30 -04:00
Evan You
5913e01d6b
wip: whitespace behavior compat
2021-04-26 12:21:36 -04:00
Evan You
091e6d67bf
feat(config): support configuring runtime compiler via app.config.compilerOptions
...
- `config.isCustomElement` is deprecated - use `app.config.compilerOptions.isCustomElement` instead.
2021-04-26 11:46:29 -04:00
Evan You
b047a0864c
refactor(compiler): improve whitespace: 'preserve' behavior from #1600
...
- discard leading/ending whitespace inside an element
- condense preserved whitesapce into single space
2021-04-26 11:46:17 -04:00
CodeDaraW
dee3d6ab8b
feat(compiler-core): whitespace handling strategy
2021-04-26 09:44:27 -04:00
sallycn
b46d8578fd
chore: fix typo in assertion
2021-04-26 17:57:15 +08:00
Guillaume Chau
03ae3006e1
feat(devtools): improved KeepAlive support
...
This change allows the devtools to access the cached vnodes from the KeepAlive component in order to display them as inactive in the components tree
2021-04-23 16:52:28 +02:00
Evan You
7b37f78dc9
wip: add private api compat flag
2021-04-22 17:50:49 -04:00
Evan You
6f8fe4eac9
wip: more compat tweaks
2021-04-22 17:30:54 -04:00
Evan You
7e0224aa8c
wip: more compat tweaks
2021-04-22 14:59:54 -04:00
Evan You
98bc9a26e9
wip: more compat tweaks
2021-04-22 09:49:25 -04:00
Evan You
12abd4af85
wip: class/style fallthrough compat
2021-04-21 22:04:26 -04:00
Evan You
a75b00c558
wip: treat compat model listener as already declared
2021-04-21 19:13:26 -04:00
Evan You
5566d39d46
perf: only trigger $attrs update when it has actually changed
2021-04-21 19:05:20 -04:00
Evan You
66b6b4226b
chore: include component info in recursive update warning
2021-04-21 15:20:15 -04:00
Evan You
1b8f14ee76
wip: more compat progress
2021-04-21 15:09:18 -04:00
Evan You
62b8f4a39c
fix(watch): avoid traversing non-plain objects
2021-04-20 17:13:58 -04:00
Evan You
f6dee53270
wip: compat integration progress
2021-04-20 09:25:12 -04:00
zhaozhao
060c5f1d0a
chore: adjust the parameter order of the mountChildren function
2021-04-20 13:43:19 +08:00
Evan You
7dc681c196
wip: filters compat
2021-04-19 12:29:55 -04:00
Evan You
467076361a
wip: warn against <template functional>
2021-04-17 23:51:40 -04:00
Evan You
3ea68691e2
wip: inline-template compat
2021-04-17 23:19:40 -04:00
Evan You
1390ece04f
wip: refactor
2021-04-17 22:50:16 -04:00
Evan You
505269405e
wip: plain template tag compat
2021-04-17 22:16:48 -04:00
Evan You
048ac299f3
perf(compiler): skip unncessary checks when parsing end tag
2021-04-17 22:05:18 -04:00
Evan You
2c31227e7c
wip: warn v-bind object ordering
2021-04-17 20:53:55 -04:00
Evan You
bf41354abd
wip: remove unncessary deprecation messages
2021-04-17 16:13:57 -04:00
Evan You
810fe4d583
wip: default mode for compat build
2021-04-17 16:05:27 -04:00
Evan You
c5c304af14
wip: compiler should default to v3 behavior
2021-04-17 15:55:14 -04:00
Evan You
3528ced0b4
wip: warn key usage of v-if branches
2021-04-17 15:35:44 -04:00
Evan You
ab21468982
wip: warn v-if/v-for co-usage
2021-04-17 14:38:30 -04:00
Evan You
7ceb873783
wip: v-bind.sync compat
2021-04-16 17:11:44 -04:00
Evan You
ad97bbab85
wip: invert compiler compat behavior default during tests
2021-04-16 12:26:17 -04:00
Evan You
bbf708dbe9
wip: support configuring compiler deprecations at runtime + warn invalid deprecation configs
2021-04-16 12:19:12 -04:00
Evan You
79cbf21c3e
wip: generate codeframe for compiler deprecations
2021-04-16 11:51:47 -04:00
Evan You
d974adb327
wip: is usage compat
2021-04-16 11:43:05 -04:00
kiyon
7a8bac73e1
chore: fix typo in test case description
2021-04-16 10:43:56 +08:00
Evan You
e130c7db23
wip: compiler deprecation config
2021-04-12 19:43:53 -04:00
Evan You
115372dd5b
wip: refactor deprecations into a single file
2021-04-12 18:47:50 -04:00
Evan You
af9e6999e1
feat: support casting plain element to component via is="vue:xxx"
...
In Vue 3's custom elements interop, we no longer process `is` usage on
known native elements as component casting. (ref:
https://v3.vuejs.org/guide/migration/custom-elements-interop.html )
This introduced the need for `v-is`. However, since it is a directive,
its value is considered a JavaScript expression. This makes it awkward
to use (e.g. `v-is="'foo'"`) when majority of casting is non-dynamic,
and also hinders static analysis when casting to built-in Vue
components, e.g. transition-group.
This commit adds the ability to cast a native element to a Vue component
by simply adding a `vue:` prefix:
```html
<button is="vue:my-button"></button>
<ul is="vue:transition-group" tag="ul"></ul>
```
2021-04-12 13:08:07 -04:00
Evan You
422b13e798
wip: testing compiler deprecation warnings
2021-04-12 09:09:00 -04:00
edison
7db8c9c19a
chore: use isArray to keep the code consistency
2021-04-12 18:31:11 +08:00
Evan You
24bab94a72
wip: staticStyle and staticClass
2021-04-11 22:21:10 -04:00
Evan You
62bfdae043
wip: Vue.util compat
2021-04-11 16:53:43 -04:00
Evan You
c55f3ed0e8
wip: fix render fn compat detection
2021-04-11 11:15:40 -04:00
Evan You
a2f441dc0e
wip: refactor compat check utils
2021-04-09 23:51:50 -04:00
Evan You
7a25cbb7a7
wip: fix compat utils usage
2021-04-09 23:21:54 -04:00
Evan You
183f9b0013
wip: component v-model compat
2021-04-09 23:10:29 -04:00
Evan You
f05d6dfd98
wip: render function compat
2021-04-09 18:56:31 -04:00
Evan You
457a56e331
wip: compat for legacy functional component
2021-04-09 15:14:14 -04:00
Evan You
d71c488540
chore: fix dts
2021-04-08 17:15:02 -04:00
Evan You
3db29eb773
wip: support per-component compatConfig
2021-04-08 17:11:05 -04:00
Evan You
f8e2361d83
wip: make tests pass again
2021-04-08 16:33:53 -04:00
Evan You
18cf63ff05
wip: async component compat
2021-04-08 16:11:28 -04:00
Evan You
d7957a7440
wip: tweak warning dedupe logic
2021-04-08 11:09:40 -04:00
Evan You
d4af747a50
wip: $attrs class/style warning
2021-04-08 10:41:25 -04:00
Evan You
c9a93a5c4c
wip: $scopedSlots compat
2021-04-08 10:21:14 -04:00
Evan You
960e9deaed
wip: vm.$listeners compat
2021-04-08 10:06:12 -04:00
Evan You
c1e5cfe7d6
wip: attr coersion compat
2021-04-07 17:42:03 -04:00
Evan You
cf6bcdf895
wip: transition group root compat
2021-04-07 16:19:25 -04:00
Evan You
1c2c77eb9f
wip: apply compat enabled flags to currently implemented features
2021-04-07 16:19:25 -04:00
Evan You
208bef5d97
wip: watch array compat
2021-04-07 16:19:25 -04:00
Evan You
e2fc84c773
wip: compat configuration
2021-04-07 16:19:24 -04:00
Evan You
068d93b9e5
wip: keyCode compat
2021-04-07 16:19:24 -04:00
Evan You
2784d6615d
wip: $children compat
2021-04-07 16:19:24 -04:00
Evan You
db09805688
wip: instance event emitter api compat
2021-04-07 16:19:24 -04:00
Evan You
9828ef0845
wip: transition class compat
2021-04-07 16:19:24 -04:00
Evan You
926e12862b
wip: fix root data option compat
2021-04-07 16:19:24 -04:00
Evan You
3d810eb422
wip: basic compat test
2021-04-07 16:19:24 -04:00
Evan You
47b765d63a
wip: custom directive compat
2021-04-07 16:19:24 -04:00
Evan You
d619a770a8
wip: props default this compat
2021-04-07 16:19:24 -04:00
Evan You
65cc649559
wip: beforeDestroy & destroyed compat
2021-04-07 16:19:24 -04:00
Evan You
960e0943f7
wip: config.ignoredElements compat
2021-04-07 16:19:24 -04:00
Evan You
d0da0028f2
wip: data option compat
2021-04-07 16:19:24 -04:00
Evan You
53b8127a9c
wip: progress
2021-04-07 16:19:24 -04:00
Evan You
40e3dd28e1
wip: restructure compat code + global api alignment
2021-04-07 16:19:24 -04:00
Evan You
e2d6ff845b
wip: root mount api compat
2021-04-07 16:19:24 -04:00
Evan You
24850a99c6
wip: initial compat build setup
2021-04-07 16:19:24 -04:00
Evan You
870f2a7ba3
fix(watch): this.$watch should support watching keypath
2021-04-07 16:19:04 -04:00
Eduardo San Martin Morote
0f2d8f3244
test: typo in spy ( #3556 )
2021-04-07 14:19:12 +02:00
Evan You
4fe4de0a49
fix(runtime-core): ensure declare prop keys are always present
...
fix #3288
2021-04-01 20:25:12 -04:00
Evan You
f0cf14bcc5
release: v3.0.11
2021-04-01 19:52:45 -04:00
Evan You
c1cd42e627
fix(runtime-core): fix v-on object kebab-case event emit matching
...
fix #3527
2021-04-01 19:47:58 -04:00
HcySunYang
995d76bd12
fix(runtime-core): fix render function + optimized slot edge case ( #3523 )
...
fix #2893
Manually rendering the optimized slots should allow subsequent updates to exit the optimization mode correctly
2021-04-01 19:28:58 -04:00
Cédric Exbrayat
c90fb945f4
refactor(sfc-playground): modes declaration ( #3522 )
2021-04-01 18:37:50 -04:00
Evan You
7f7dcc9f7d
fix(compiler-sfc): fix wrong scopeId for nested <script setup>
components
2021-04-01 18:11:04 -04:00
edison
8c57b9131d
chore(types): use NormalizedStyle for consistency ( #2590 )
2021-04-01 11:29:24 +08:00
Evan You
4dc457dae5
workflow(sfc-playground): make it work in safari and ff
2021-03-31 15:23:01 -04:00
Evan You
5ee7e6bc70
workflow(sfc-playground): support import map
2021-03-31 13:31:00 -04:00
Evan You
e097bd4dd5
chore(sfc-playground): use svg logo
2021-03-31 12:36:45 -04:00
Evan You
7bc5fd9a04
chore(sfc-playground): teardown preview update watcher
2021-03-31 12:22:25 -04:00
Evan You
ebf396251c
chore(sfc-playground): responsive
2021-03-30 22:10:18 -04:00
Evan You
9d39cd46e9
workflow(sfc-playground): support selecting versions
2021-03-30 22:00:46 -04:00
Evan You
ad6c124e6c
release: v3.0.10
2021-03-30 20:05:45 -04:00
Evan You
9cf75258c8
fix(runtime-core): fix dev fragment root flag check
2021-03-30 19:55:05 -04:00
Evan You
66b94dc5e1
chore: use alias instead of module field
...
...before we figure out what is the ideal behavior when adding exports field
2021-03-30 19:51:55 -04:00
Evan You
58e2376c4d
refactor(ssr): adjust ssr scope id logic for client-compiled render functions
2021-03-30 19:30:05 -04:00
Evan You
5e54081d5b
fix(ssr): fix scopeId inheritance across mixed parent chain
...
fix #3513
2021-03-30 18:39:42 -04:00
Evan You
6cab91dfe8
workflow(sfc-playground): clear errors in edge cases
2021-03-30 12:49:50 -04:00
Evan You
b6298dbd01
workflow(sfc-playground): warn on <style module> usage
2021-03-30 12:39:08 -04:00
Evan You
c771b1dc80
workflow(sfc-playground): add ssr compile output
2021-03-30 12:36:59 -04:00
edison
2e50acfbb8
perf(runtime-core): optimize the performance of getTypeIndex ( #3206 )
2021-03-30 10:53:14 -04:00
Evan You
c8df6185fe
chore: bump vite
2021-03-29 21:44:12 -04:00
Evan You
b39208cf06
perf(compiler-sfc): skip srcset transform if all candidates are external
2021-03-29 19:15:57 -04:00
HcySunYang
33ba0e3229
fix(runtime-dom): fix event listeners call in firefox <= 53 ( #3501 )
...
fix #3485
2021-03-29 19:15:12 -04:00
Jonas Kruckenberg
42b68c773d
fix(compiler-sfc): fix missing whitespace issue in srcsets ( #3132 )
...
fix #3069
2021-03-29 18:28:22 -04:00
Calvin Liang
0fe567abfc
fix(compiler-core): properly transform replaced nodes ( #2927 )
2021-03-29 18:08:10 -04:00
HcySunYang
5db2b141dc
fix(types): add a type-only differentiator to assist Mixin's type infer ( #3481 )
...
fix #3468
2021-03-29 18:07:36 -04:00
liaoliao666
c61e767422
fix(reactivity): should not trigger when setting value to same proxy ( #2904 )
2021-03-29 17:52:57 -04:00
Kael
4f26835dac
fix(types/tsx): make JSX.Element extend VNode ( #3171 )
2021-03-29 17:38:25 -04:00
Evan You
bb8cdcad9f
fix(compiler-sfc): support proper type arguments for defineEmit helper
...
fix #2874
2021-03-29 16:38:07 -04:00
Evan You
2793bc0918
chore(sfc-playground): use type defineEmit
2021-03-29 16:36:40 -04:00
Evan You
f5827fdf78
fix(compiler-sfc): do not resolve assets from setup bindings
...
when not using script setup
fix #3270 , fix #3275
2021-03-29 16:11:38 -04:00
Evan You
4d9f9fdf9d
workflow(sfc-playground): make warnings dismissable
2021-03-29 16:11:38 -04:00
Evan You
7ab519cc96
workflow(sfc-playground): pass along analyzed bindings when compiling template
2021-03-29 16:11:38 -04:00
Evan You
4d2853ef57
workflow(sfc-playground): display analyzed bindings in js output
2021-03-29 16:11:38 -04:00
HcySunYang
555b016dcb
fix(compiler-core): allow PascalCase dynamic component tag usage ( #3508 )
...
fix #3507
2021-03-29 15:18:25 -04:00
HcySunYang
3736496006
fix(runtime-core): avoid unmount teleport's children multiple times ( #3499 )
...
fix #3497
2021-03-29 15:15:08 -04:00
Evan You
117a61bc17
chore(sfc-playground): fix clipboard usage
2021-03-29 10:54:32 -04:00
Evan You
24a90abeda
chore(sfc-playground): logo, responsive
2021-03-29 10:33:19 -04:00
Evan You
3aaa53748b
workflow(sfc-playground): tweaks and commit links
2021-03-29 02:07:04 -04:00
Evan You
69b4727204
fix(compiler-sfc): fix function scope variable declaration marking
2021-03-29 00:32:46 -04:00
Evan You
bb937e9033
workflow(sfc-playground): attach filename
2021-03-29 00:32:28 -04:00
Evan You
ce5e0b67a9
workflow(sfc-playground): fix download
2021-03-28 23:48:01 -04:00
Evan You
9613969ffc
workflow(sfc-playground): share and download buttons
2021-03-28 23:36:36 -04:00
Evan You
aa8bf1b7a3
workflow(sfc-playground): improve module rewrite
2021-03-28 21:55:22 -04:00
Evan You
3ac661b896
chore: force refresh playground editor on startup
2021-03-28 18:50:12 -04:00
Evan You
d1bf35c8b8
workflow(sfc-playground): support multiple files
2021-03-28 18:41:33 -04:00
Evan You
2e3984fd5b
chore: default code for sfc playground
2021-03-28 02:24:25 -04:00
Evan You
16e8f45199
workflow(sfc-playground): fix newline
2021-03-28 02:17:55 -04:00
Evan You
f76ddc5ac3
workflow: sfc playground
2021-03-28 01:35:45 -04:00
Evan You
2424768808
build: make compiler-sfc global build work
2021-03-27 12:33:52 -04:00
Evan You
67039b3434
release: v3.0.9
2021-03-27 11:30:12 -04:00
Richard Cooke
4549e65bae
fix(runtime-core): remove dev-only props property from setup context for consistency ( #3492 )
2021-03-27 11:23:10 -04:00
Johnson Chu
e752bddb33
fix(compiler-core): fix slot source location ( #3494 )
2021-03-27 11:20:39 -04:00
Evan You
2121c32e22
fix(runtime-core): fix kebab-case prop required warning
...
fix #3495
ref #3363
2021-03-27 11:16:39 -04:00
Evan You
37c17091fd
fix: ensure backwards compat for pre-compiled sfc components
...
fix #3493
2021-03-27 10:53:45 -04:00
Evan You
9ff70be2b3
release: v3.0.8
2021-03-26 17:35:44 -04:00
Evan You
60d777d228
fix(runtime-core): fix erraneous emits warnings w/ mixins
...
fix #2651
2021-03-26 16:29:40 -04:00
Evan You
d5824b97c5
fix(runtime-core): should not track deps in pre flush watcher callbacks
...
fix #2728
2021-03-26 15:52:49 -04:00
Thorsten Lünborg
22cc4a7659
fix(reactivity): ensure that shallow and normal proxies are tracked seperately ( close #2843 ) ( #2851 )
...
fix #2843
2021-03-26 15:39:56 -04:00