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