Commit Graph

3101 Commits

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