Commit Graph

4199 Commits

Author SHA1 Message Date
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
Cédric Exbrayat
b9b28e229a
chore: set node engine to v16 (#4471)
As some packages rely on the experimental "stream/web" package only available in node v16.5+,
this commit updates the `engines` property to reflect that.
2021-09-01 16:39:09 -04:00
dependabot[bot]
18f2ed22ac
build(deps-dev): bump @typescript-eslint/parser from 4.29.2 to 4.30.0 (#4487)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.29.2 to 4.30.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.30.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-01 16:38:46 -04:00
dependabot[bot]
ffd4f8d5e3
build(deps-dev): bump @microsoft/api-extractor from 7.18.6 to 7.18.7 (#4485)
Bumps [@microsoft/api-extractor](https://github.com/microsoft/rushstack) from 7.18.6 to 7.18.7.
- [Release notes](https://github.com/microsoft/rushstack/releases)
- [Commits](https://github.com/microsoft/rushstack/compare/@microsoft/api-extractor_v7.18.6...@microsoft/api-extractor_v7.18.7)

---
updated-dependencies:
- dependency-name: "@microsoft/api-extractor"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-01 16:38:38 -04:00
dependabot[bot]
8154d13fdd
build(deps-dev): bump @vitejs/plugin-vue from 1.4.0 to 1.6.0 (#4488)
Bumps [@vitejs/plugin-vue](https://github.com/vitejs/vite/tree/HEAD/packages/plugin-vue) from 1.4.0 to 1.6.0.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/plugin-vue/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/create-app@1.6.0/packages/plugin-vue)

---
updated-dependencies:
- dependency-name: "@vitejs/plugin-vue"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-01 16:38:10 -04:00
dependabot[bot]
ddadd93367
build(deps-dev): bump vite from 2.5.0 to 2.5.3 (#4484)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 2.5.0 to 2.5.3.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/create-vite@2.5.3/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-01 16:37:58 -04:00
dependabot[bot]
33fc1a46a8
build(deps-dev): bump @types/node from 16.7.1 to 16.7.10 (#4483)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.7.1 to 16.7.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-01 16:37:49 -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