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
Evan You
62f752552a
refactor(compiler): extract shared ast transform utils
...
Also improve referenced identifier check using isReferenced from @babel/types
2021-08-22 13:24:16 -04:00
Evan You
6be6c268e8
test(compiler-core): include test case for expression prefixing in assignments
2021-08-22 12:33:00 -04:00
Evan You
4adc5042f9
types: improve ref sugar $computed typing
2021-08-20 00:07:16 -04:00
Evan You
872b3f7ec5
fix(compiler-sfc): should also expose regular script block bindings when <script setup>
is used
...
close #4369
2021-08-17 15:52:48 -04:00
Evan You
e22d7cdb08
chore(sfc-playground): update code style and syntax
2021-08-17 15:42:18 -04:00
Evan You
ceace3a8cc
release: v3.2.4
2021-08-17 12:26:50 -04:00
Evan You
951fbb197b
Revert "chore: add missing space in warning message ( #4359 ) [ci skip]"
...
This reverts commit c68cba82ea
.
2021-08-17 12:18:54 -04:00
似水微寒
c51fb74599
refactor(compiler-sfc): remove duplicate judgment conditions ( #4368 )
2021-08-17 12:12:18 -04:00
zhangenming
d8da4214fc
refactor(reactivity): reduce variable access ( #4366 )
2021-08-17 12:11:52 -04:00
okbug
c68cba82ea
chore: add missing space in warning message ( #4359 ) [ci skip]
2021-08-17 11:28:33 -04:00
Evan You
644971ec06
fix(runtime-core): ensure consistent arguments for tempalte and render funtion slot usage
...
fix #4367
2021-08-17 11:15:53 -04:00
Evan You
c1f564e1dc
fix(runtime-core): fix child component double update on props change
...
fix #4365
2021-08-17 10:57:28 -04:00
Evan You
57f10812cc
fix(compiler-sfc): fix import usage check for lowercase imported components
...
fix #4358
2021-08-17 10:10:26 -04:00
Evan You
03abc2573c
release: v3.2.3
2021-08-16 18:25:32 -04:00
webfansplz
0627765b36
chore(types): remove unnecessary type assertions ( #4336 )
2021-08-16 18:19:44 -04:00
Haoqun Jiang
7c4e4514d1
chore: rename onDispose
to onScopeDispose
in warnings and tests ( #4355 )
2021-08-16 18:19:06 -04:00
skirtle
620a69b871
fix(runtime-dom): consistently remove boolean attributes for falsy values ( #4348 )
2021-08-16 18:18:36 -04:00
Evan You
f855ccb2c1
fix(compiler-sfc): fix import usage check in template strings in expressions
...
fix #4340
2021-08-16 18:03:09 -04:00
webfansplz
ad66295cb3
fix(defineProps): defineProps generates unnecessary array of same types ( #4353 )
...
fix #4352
2021-08-16 17:40:00 -04:00
Evan You
77223df2d2
types(runtime-dom): fix jsx type for IDE v-model inference
...
fix #4321
2021-08-16 17:13:37 -04:00
Amour1688
516d464830
types(runtime-dom): export type StyleValue
( #3718 )
2021-08-16 16:52:34 -04:00
zdw
84d4357f6f
fix(types): fix tsx ref component instance type ( #2486 )
2021-08-16 16:51:41 -04:00
fishDog
092bdcdf58
fix(compiler-core): fix style binding edge case ( #4319 )
...
where static `style` attribute and `:style` with constant binding are used together
fix #4317
2021-08-16 16:37:31 -04:00
Evan You
aae3725e57
fix(compiler-sfc): bail on import usage check when template has custom lang
...
fix #4312
2021-08-16 16:08:52 -04:00
Evan You
a6c1db2728
fix(compiler-core): fix hoisting logic for elements with cached handlers + other bindings
...
fix #4327
2021-08-16 15:57:10 -04:00
鱼
5b3f1e8424
fix(runtime-core): patchChildren first in patchElement ( #4313 )
2021-08-16 15:46:27 -04:00
HcySunYang
cd2d98499e
fix(runtime-core): vnode hooks should not be called on async wrapper ( #4349 )
...
fix #4346
2021-08-16 15:35:50 -04:00
lidlanca
3201224ecb
test(shared): improve test case for toDisplayString ( #4337 )
2021-08-16 15:34:59 -04:00
edison
42a334e12e
fix(shared): fix toDisplayString on object with null prototype ( #4335 )
...
fix #4334
2021-08-16 15:28:34 -04:00
Hazlank
6db15a27cf
refactor: merge bitwise flag checks ( #4324 )
2021-08-16 15:13:04 -04:00
Evan You
7ffa225aa3
release: v3.2.2
2021-08-11 11:40:25 -04:00
edison
e7b0a9d3cf
fix(runtime-dom): patch textContent
on svg properly ( #4301 )
...
fix #4296
2021-08-11 10:53:54 -04:00
webfansplz
1ce34e25d5
fix(types): fix tsx emit-mapped handler return type ( #4290 )
...
fix #4288
2021-08-11 10:52:36 -04:00
edison
380608bd44
fix(types): fix forceUpdate type ( #4302 )
2021-08-11 10:46:18 -04:00
Shinigami
6e5801f8a8
fix(types): allow symbol in JSX ReservedProps.key ( #4306 )
2021-08-11 10:42:46 -04:00
Evan You
00b76d3dc1
feat(sfc): support $shallowRef ref sugar
2021-08-11 10:19:58 -04:00
Evan You
e42d7794cb
chore(compiler-sfc): emit compiler error against incorrect ref sugar usage
2021-08-10 14:57:47 -04:00
Evan You
2224610b0b
fix(server-renderer): pipeToWebWritable CF worker compat
...
fix #4287
2021-08-10 14:03:51 -04:00
webfansplz
e04680b0aa
test(reactivity): add test case for effectScope ( #4239 )
2021-08-10 13:59:58 -04:00
Jordan Pittman
c46af8fe26
chore: remove left over debugger line ( #4286 ) [ci skip]
2021-08-10 13:57:27 -04:00
Evan You
2749c15170
release: v3.2.1
2021-08-09 16:29:53 -04:00
Evan You
1e1682f060
fix(compiler-sfc): fix import usage check for last expression
2021-08-09 16:22:20 -04:00
Evan You
c9c7030041
chore: update sfc playground download dep versions
2021-08-09 16:08:53 -04:00
Evan You
5a7a43cc3d
release: v3.2.0
2021-08-09 15:51:53 -04:00
lidlanca
6779bff537
feat(runtime-core): support dynamic / external array in v-memo ( #4255 )
2021-08-09 15:39:22 -04:00
Evan You
2641422aa7
fix(compiler-dom): stringify eligible svg content
...
fix #4282
2021-08-09 14:39:50 -04:00
WoodyJang
f258f5d2c2
chore: delete useless props type ( #4271 )
2021-08-09 12:36:34 -04:00
Evan You
88a4504e82
fix(compiler-sfc): fix import usage detection for names containing $
...
fix #4274
2021-08-09 12:17:22 -04:00
Evan You
4781965cc2
release: v3.2.0-beta.8
2021-08-06 23:12:27 -04:00
fishDog
abb3a81e87
fix(compiler-core): detected forwarded slots in nested components ( #4268 )
...
fix #4244
2021-08-06 22:37:55 -04:00
edison
a211e271ee
fix(v-memo): ensure track block when returning cached vnode ( #4270 )
...
fix #4253
2021-08-06 21:44:45 -04:00
edison
3b60358d0e
fix(v-memo): should work on v-for with constant expression ( #4272 )
...
fix #4246
2021-08-06 21:37:09 -04:00
Evan You
c421fb91b2
feat(runtime-dom): support async component in defineCustomElement
...
close #4261
2021-08-06 19:15:55 -04:00
Evan You
1994f1200d
test: improve test case for 865b84bf
2021-08-06 13:01:39 -04:00
Eugene Kopich
fdc9a4d301
chore: update link in comments for new ref sugar ( #4265 ) [ci skip]
2021-08-06 12:58:40 -04:00
Evan You
865b84bfe8
fix(compiler-sfc): fix ref sugar rewrite for identifiers in ts casting expressions
...
fix #4254
2021-08-06 12:55:48 -04:00
Evan You
86d78d10e3
refactor(server-renderer): adjust streaming API
...
- add `pipeToNodeWritable`
- add `pipeToWebWritable`
2021-08-06 12:41:40 -04:00
James Ross
17cc4e15a7
docs(server-renderer): fix typo in renderToWebStream
error, and remove Cloudflare Worker reference ( #4249 ) [ci skip]
2021-08-06 11:23:12 -04:00
AlexandraCaragata
d045055b47
fix(core): typing of key in VNodeProps ( #4242 )
...
close #4240
2021-08-06 11:11:26 -04:00
Evan You
9bee5ccea4
chore: update new ref sugar warning link
2021-08-04 17:06:23 -04:00
Evan You
bf2589b1f0
refactor(compiler-sfc): use shallowRef for ref sugar destructure
2021-08-04 15:39:32 -04:00
hfutsora
bc7dd93f92
fix(runtime-dom): fix shadowRoot instanceof check in unsupported browsers ( #4238 )
2021-08-02 09:41:41 -04:00
Amour1688
d3d5ad204d
fix(types): remove explicit return type annotation requirement for this
inference in computed options ( #4221 )
2021-08-02 09:18:35 -04:00
Evan You
f9f9bad53f
chore(server-renderer): readme [ci skip]
2021-07-29 17:20:07 -04:00
Evan You
6aa871e565
fix(runtime-core): component effect scopes should be detached
2021-07-29 17:15:56 -04:00
Evan You
b357009a82
release: v3.2.0-beta.7
2021-07-29 13:21:30 -04:00
Evan You
08672222c6
feat(server-renderer): decouple esm build from Node + improve stream API
...
- deprecate `renderToSTream`
- added `renderToNodeStream`
- added `renderToWebStream`
- added `renderToSimpleStream`
close #3467
close #3111
close #3460
2021-07-29 13:14:02 -04:00
Roan Kattouw
9d5fd33d6d
fix(shared): support custom .toString() in text interpolation again ( #4210 )
...
fix #3944
2021-07-29 10:51:03 -04:00
Bartek Igielski
1e3d468ca1
build(server-renderer): Add ESM as a build target ( #4209 )
2021-07-29 10:48:15 -04:00
Evan You
13c69469f2
refactor: simplify for size
2021-07-29 10:45:05 -04:00
Bas van Meurs
91f29540fe
refactor(reactivity): optimize child effect scope dereferencing ( #4184 )
2021-07-29 10:26:24 -04:00
Evan You
3b38c9ae9b
feat(sfc): remove experimental status for sfc style v-bind
2021-07-28 18:31:48 -04:00
Evan You
51ee84fc6a
fix(suspense): fix dynamicChildren tracking when suspense root is a block itself
...
e.g. `<slot>` inside suspense
fix #4183 , fix #4198
2021-07-28 16:49:34 -04:00
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