Commit Graph

437 Commits

Author SHA1 Message Date
Evan You d343a0dc01
fix(v-once): properly unmount v-once cached trees
close #5154
close #8809
2024-07-13 21:38:32 +08:00
Evan You aef807746a
refactor(compiler): move patchFlag text generation to codegen phase 2024-07-13 19:40:04 +08:00
Tycho 746352a14d
fix(compiler-core): handle inline comments with undefined bindings (#11217)
close #11216
2024-06-28 09:48:23 +08:00
_Kerman e102670bde
fix(compiler-core): should not remove slot node with `v-else` (#11150) 2024-06-22 17:08:39 +08:00
Vadim Kruglov 29425df1ac
fix(compiler-core): fix :key shorthand on v-for (#10942)
close #10882
close #10939
2024-06-04 20:18:24 +08:00
Wouter 5d258502a0
fix(compiler-core): emit TS-compatible function declaration when requested (#9363)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Haoqun Jiang <haoqunjiang@gmail.com>
2024-05-30 18:19:04 +08:00
Travis 3ea964473d
fix(compiler-core): allow unicode to appear in simple identifiers (#6765)
close #6367
2024-05-30 17:45:11 +08:00
huangcheng b9ca202f47
fix(compiler-core): v-for expression missing source with spaces should emit error (#5821)
close #5819
2024-05-30 17:24:37 +08:00
linzhe 87c5443044
fix(compiler-core): should set `<math>` tag as block to retain MathML namespace after patching (#10891)
Co-authored-by: linzhe141 <linzhe141@qq.com>
2024-05-28 14:26:29 +08:00
huangcheng ca7d421e87
fix(compiler-core): add support for arrow aysnc function with unbracketed (#5789)
close #5788
2024-04-29 18:55:58 +08:00
Evan You 96e8e99304
test: fix test case name 2024-04-29 18:12:27 +08:00
Evan You fefce06b41
fix(compiler-core): fix bail constant for globals 2024-04-29 16:21:25 +08:00
Evan You 09b4df809e
fix(compiler-core): remove unnecessary constant bail check
member expressions and call expressions can only happen when there are identifiers

close #10807
2024-04-29 12:21:38 +08:00
Evan You b92c25f53d
fix(compiler-core): properly parse await expressions in edge cases
close #10754
2024-04-22 23:21:18 +08:00
Vadim Kruglov da7adefa84
fix(compiler-core): handle template ref bound via v-bind object on v-for (#10706)
close #10696
2024-04-22 20:46:11 +08:00
Haoqun Jiang ea494af993
chore: update to ESLint 9 (#10705) 2024-04-17 21:58:35 +08:00
Evan You 04af9504a7
fix(compiler-core): fix v-bind shorthand for component :is
close #10469
close #10471
2024-04-15 17:36:05 +08:00
Evan You 16174da21d
fix(compiler-core): fix loc.source for end tags with whitespace before >
close #10694
close #10695
2024-04-15 11:50:57 +08:00
Evan You f709238c30
chore: use correct parse in parser tests for whitespace: condense 2024-04-15 11:35:05 +08:00
孟世博 3199189901
chore: standardize the spelling of TypeScript (#10186) [ci skip] 2024-02-20 21:43:45 +08:00
Evan You cb87b6213d fix(compiler-core): handle same-name shorthand edge case for in-DOM templates
Also add error for invalid arguments for same-name shorthand.

close #10280
2024-02-07 12:15:39 +08:00
zhoulixiang 91f058a90c
fix(compiler-core): support v-bind shorthand syntax for dynamic slot name (#10218)
close #10213
2024-02-06 17:54:06 +08:00
三咲智子 Kevin Deng bfe6b459d3
style: update format & lint config (#9162)
Co-authored-by: 丶远方 <yangpanteng@gmail.com>
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
Co-authored-by: Guo Xingjun <99574369+Plumbiu@users.noreply.github.com>
2023-12-26 19:39:47 +08:00
Evan You 7aa3f250f2 fix(compiler-core): fix parsing `<script setup>` generics with >
close #9890
2023-12-22 22:49:30 +08:00
Evan You 95f6fffea2 chore: Merge branch 'main' into minor 2023-12-19 18:16:16 +08:00
白雾三语 bae79ddf85
fix(compiler-core): fix v-on with modifiers on inline expression of undefined (#9866)
close #9865
improve isMemberExpression check for undefined
2023-12-19 17:08:46 +08:00
Evan You 2ffc1e8cfd
feat(ssr): improve ssr hydration mismatch checks (#5953)
- Include the actual element in the warning message
- Also warn class/style/attribute mismatches

Note: class/style/attribute mismatches are check-only and will not be
rectified.

close #5063
2023-12-08 15:49:09 +08:00
Adrien Foulon 638f1abbb6
feat(compiler-core): add current filename to TransformContext (#8950) 2023-12-08 15:23:50 +08:00
Evan You a817883c26 chore: Merge branch 'main' into minor 2023-12-05 10:54:20 +08:00
Evan You e2f2b75b62 chore(deps): bump vitest to 1.0 2023-12-05 10:48:04 +08:00
Evan You e12b10ac3e chore: Merge branch 'main' into minor 2023-12-04 23:17:41 +08:00
Evan You 53aaa1eb28 fix(parser): fix interpolation parsing in v-pre
ref: https://github.com/vuejs/docs/issues/2586
2023-12-04 23:06:56 +08:00
Evan You 8abc754d5d feat(compiler): lift vnode hooks deprecation warning to error 2023-12-01 11:56:29 +08:00
Evan You e8bbc946cb
feat(compiler-sfc): analyze import usage in template via AST (#9729)
close #8897
close nuxt/nuxt#22416
2023-12-01 11:14:48 +08:00
Evan You f8b74dcf29 chore: group parser edge case tests 2023-11-30 22:39:55 +08:00
Evan You 4d94ebfe75 perf(v-on): constant handlers with modifiers should not be treated as dynamic 2023-11-30 19:26:36 +08:00
edison 7cbcee3d83
fix(compiler-sfc): support resolving components from props (#8785) 2023-11-30 18:03:23 +08:00
Eduardo San Martin Morote bcca475dbc
feat(compiler-core): support accessing Error as global in template expressions (#7018) 2023-11-30 16:39:40 +08:00
Evan You ef97e8b07d fix(parser): should reset inRCDATA state 2023-11-28 18:31:17 +08:00
Evan You e49dffc9ec fix(parser): directive arg should be undefined on shorthands with no arg 2023-11-27 18:10:00 +08:00
Evan You 41ff68ea57 feat(compiler): improve parsing tolerance for language-tools 2023-11-27 16:55:54 +08:00
Evan You 157cfcb796 refactor: restore isSelfClosing as optional property 2023-11-25 22:55:39 +08:00
Evan You bab5bd375b chore: fix tests with rawExp 2023-11-25 22:50:40 +08:00
Evan You e48cbf02be refactor: restore SourceLocation.source
this is used extensively in @vue/language-tools and does not have
noticeable impact on performance
2023-11-25 19:22:39 +08:00
Evan You be6cae7dac chore: remove isSelfClosing property 2023-11-25 18:03:22 +08:00
Evan You 6ec85ae872 chore: restructure parser files 2023-11-25 16:18:29 +08:00
Evan You 6022ac05c4 chore: document rationale for ignoring some parsing errors 2023-11-25 16:18:29 +08:00
Evan You 59227d4124 wip: parse error tests 2023-11-25 16:18:29 +08:00
Evan You 94c86269d0 refactor: fix v-bind no-exp shorthand for new parser 2023-11-25 16:18:29 +08:00
Evan You fc4f801070 wip: decodeEntities test 2023-11-25 16:18:29 +08:00