Commit Graph

3267 Commits

Author SHA1 Message Date
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