Commit Graph

781 Commits

Author SHA1 Message Date
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
d74f21a42c fix(compiler-ssr): import ssr helpers from updated path 2021-09-22 23:28:20 -04: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
Evan You
b9deb6e50e release: v3.2.13 2021-09-21 14:22:53 -04:00
Ziwen Mei
56be30b5c7
chore(compiler-core): fix typo in hoistStatic (#4625) [ci skip] 2021-09-21 13:06:39 -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
Herrington Darkholme
d8a36d0198
fix(compiler-core): only merge true handlers (#4577) 2021-09-21 12:37:51 -04:00
Herrington Darkholme
044812525f
fix(compiler-core): dedupe renderSlot's default props (#4557) 2021-09-21 12:31:27 -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
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
0dc521b9e1 fix(compiler-core): support ts syntax in expressions when isTS is true 2021-09-20 11:51:01 -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
ebe00f66dd release: v3.2.12 2021-09-17 10:55:26 -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
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
Evan You
781d2d4d58 release: v3.2.11 2021-09-08 18:58:13 -04:00
Evan You
96b531bfa3 release: v3.2.10 2021-09-07 16:20:07 -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
Evan You
1045590d4b fix(compiler-core): avoid runtime dependency on @babel/types
fix #4531
2021-09-07 09:54:49 -04:00
Evan You
642710eded release: v3.2.9 2021-09-05 18:24:01 -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
Evan You
3ad9dc4880 release: v3.2.8 2021-09-02 14:46:30 -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
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
Herrington Darkholme
c00925ed5c
fix(compiler): report invalid directive name error (#4494) (#4495) 2021-09-02 09:42:20 -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
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
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
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
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
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
ceace3a8cc release: v3.2.4 2021-08-17 12:26:50 -04:00
Evan You
03abc2573c release: v3.2.3 2021-08-16 18:25:32 -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
a6c1db2728 fix(compiler-core): fix hoisting logic for elements with cached handlers + other bindings
fix #4327
2021-08-16 15:57:10 -04:00
Evan You
7ffa225aa3 release: v3.2.2 2021-08-11 11:40:25 -04:00
Evan You
2749c15170 release: v3.2.1 2021-08-09 16:29:53 -04:00
Evan You
5a7a43cc3d release: v3.2.0 2021-08-09 15:51:53 -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
Evan You
b357009a82 release: v3.2.0-beta.7 2021-07-29 13:21:30 -04:00
Evan You
204e194d2b release: v3.2.0-beta.6 2021-07-27 18:56:02 -04:00
Evan You
4b595a3ea1 release: v3.2.0-beta.5 2021-07-23 16:10:22 -04:00
Evan You
fe58bae412 release: v3.2.0-beta.4 2021-07-21 17:40:25 -04:00
webfansplz
9c931d8154
chore(types): remove unnecessary non-null assertion (#4169) 2021-07-21 15:50:08 -04:00
Evan You
9d5dd2da8c release: v3.2.0-beta.3 2021-07-20 17:47:03 -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
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
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
df0ce21836
chore(types): improve of type assertion (#4141) 2021-07-19 10:32:07 -04:00
Evan You
d4c67dd253 release: v3.2.0-beta.1 2021-07-16 14:44:06 -04:00
Evan You
317654b34f chore: fix codegen error due to scopeId deprecation change 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
29732c2c86 fix: ignore .prop/.attr modifiers in ssr 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
3b64508e3b feat: v-memo 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
02339b67d8 perf: hoist dynamic props lists 2021-07-16 14:30:49 -04:00
Evan You
63a51ffcab chore: fix test failing types 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
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
963085d18c fix(v-on): properly detect member expressions with optional chaining
fix #4107
2021-07-15 12:23:07 -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
Evan You
348c3b01e5 release: v3.1.4 2021-07-02 08:37:50 -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
Evan You
fc7b640041 release: v3.1.3 2021-07-01 19:28:06 -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
d35e0b1468 feat(sfc): change <script setup> directive resolution to require v prefix
close #3543
2021-06-28 17:35:31 -04:00
Evan You
6b6d566861 release: v3.1.2 2021-06-22 14:24:50 -04:00
Evan You
08e93220f1 fix(compiler-core/compat): fix is prop usage on components
also fix v-bind:is usage on plain element in compat mode

fix #3934
2021-06-21 16:16:49 -04:00
Evan You
bc100c5c48 fix(compiler-core): improve member expression check
fix #3910
2021-06-09 11:57:48 -04:00
Evan You
ade9bd9daa release: v3.1.1 2021-06-07 16:26:54 -04:00