Evan You
ea190f24e4
chore(deps): upgrade to entities 5.0
...
close #11507
2024-08-05 14:14:52 +08:00
Evan You
67bb820904
fix(compiler-core): properly handle for loop variable declarations in expression transforms
...
ref https://github.com/vuejs/core/pull/11467#issuecomment-2263069794
2024-08-05 14:07:44 +08:00
Evan You
077a1aeb3c
fix(compiler-core): fix expression transform for try...catch block params
...
close #11465
close #11467
2024-08-05 13:46:51 +08:00
三咲智子 Kevin Deng
a8248cf152
Merge remote-tracking branch 'upstream/minor'
2024-07-19 18:52:32 +08:00
Evan You
f15ba2c2e2
chore: Merge branch 'main' into minor
2024-07-17 17:32:31 +08:00
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
3107b57e2e
refactor: isVNode -> isVOnce
2024-07-13 21:07:45 +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
三咲智子 Kevin Deng
4be49b2620
Merge remote-tracking branch 'upstream/minor'
2024-06-22 23:39:45 +08:00
Evan You
7d06ca3a83
chore: Merge branch 'main' into minor
2024-06-22 21:05:15 +08:00
_Kerman
e102670bde
fix(compiler-core): should not remove slot node with `v-else` ( #11150 )
2024-06-22 17:08:39 +08:00
Simon He
914f064429
refactor(compat/compiler-core): improve conditional branching ( #11185 )
2024-06-22 17:05:35 +08:00
三咲智子 Kevin Deng
cf8be999df
Merge remote-tracking branch 'upstream/minor'
2024-06-16 17:01:49 +08:00
Evan You
26356264d2
chore: Merge branch 'main' into minor
2024-06-14 12:32:28 +02: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
Evan You
cd0ea0d479
fix(compiler-core): change node hoisting to caching per instance ( #11067 )
...
close #5256
close #9219
close #10959
2024-06-04 20:09:54 +08:00
三咲智子 Kevin Deng
334e72eeee
Merge remote-tracking branch 'upstream/minor'
2024-05-30 21:41:53 +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
Kevin Deng 三咲智子
cdb1d1795d
chore: disallow optional chaining ( #10919 )
2024-05-29 15:03:20 +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
Haoqun Jiang
07b3c4b786
fix(compat): correctly transform non-identifier expressions in legacy filter syntax ( #10896 )
...
close #10852
2024-05-27 17:04:48 +08:00
Ray
5b8c1afb74
fix(compiler-core): make `ForIteratorExpression`'s `returns` property optional ( #11011 )
2024-05-27 16:15:54 +08:00
三咲智子 Kevin Deng
7cd70505d5
Merge remote-tracking branch 'upstream/minor'
2024-05-11 22:11:30 +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
fefce06b41
fix(compiler-core): fix bail constant for globals
2024-04-29 16:21:25 +08:00
skirtle
d00632b1de
refactor: remove optional chaining ( #10792 )
2024-04-29 14:04:05 +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
三咲智子 Kevin Deng
7fe4712831
Merge remote-tracking branch 'upstream/main'
2024-04-25 01:59:41 +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
Evan You
f12c81efca
fix(compiler-ssr): fix hydration mismatch for conditional slot in transition
...
close #10743
2024-04-22 22:23:09 +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
三咲智子 Kevin Deng
b8c609f437
Merge remote-tracking branch 'upstream/minor'
2024-04-18 14:43:54 +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
7ae9dbf57d
chore(deps): bump TS to 5.4
2024-04-15 13:36:43 +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
三咲智子 Kevin Deng
65909f6e60
Merge remote-tracking branch 'upstream/main'
2024-02-27 18:48:24 +08:00
Evan You
e0e02535cd
fix(parser): should not treat uppercase components as special tags
...
close #10395
2024-02-25 23:05:15 +08:00
三咲智子 Kevin Deng
669fec8dad
feat: delegate event for vapor
...
closes #136
2024-02-25 02:07:20 +08:00
三咲智子 Kevin Deng
bf5f7c389b
refactor(compiler): move `expressionPlugins` to shared options
2024-02-10 21:50:00 +08:00
三咲智子 Kevin Deng
0c8153eca8
fix(compiler): add `vaporRuntimeModuleName` option
2024-02-10 21:43:09 +08:00
三咲智子 Kevin Deng
ab1121e512
Merge remote-tracking branch 'upstream/main'
2024-02-10 13:05:19 +08:00
三咲智子 Kevin Deng
e050646079
fix(compiler-vapor): generate assignment for v-model
2024-02-09 00:09:05 +08:00
三咲智子 Kevin Deng
0cdc9f20c6
refactor(compiler): export isLiteralWhitelisted
2024-02-08 20:35:11 +08:00
Evan You
2b0a706dc7
chore: move X_V_BIND_INVALID_SAME_NAME_ARGUMENT to preserve error code order
2024-02-08 11:36:51 +08:00
三咲智子 Kevin Deng
5e52ac9ab4
Merge remote-tracking branch 'upstream/main'
2024-02-07 22:02:23 +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
三咲智子 Kevin Deng
3c3b56ac04
Merge remote-tracking branch 'upstream/main'
2024-02-06 20:24:11 +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
164fd90df4
refactor(compiler-vapor): codegen result
2024-01-27 22:00:34 +08:00
三咲智子 Kevin Deng
736db791a4
Merge remote-tracking branch 'upstream/main'
2024-01-19 16:29:21 +08:00
Evan You
c3087ff2cc
fix: correct url for production error reference links
2024-01-18 20:00:01 +08:00
三咲智子 Kevin Deng
af9f892afa
Merge remote-tracking branch 'upstream/main'
2024-01-14 23:33:08 +08:00
Evan You
c60479146a
dx(defineModel): warn against reference of setup scope variables in defineModel options
...
close #10093
2024-01-12 22:07:16 +08:00
zhangenming
9c54dacd0d
chore: use NOOP. ( #9938 )
2024-01-09 15:24:10 +08:00
Haoqun Jiang
923d560d0b
fix(parser): skip compat mode check for SFC root `<template>` tags ( #10034 )
...
Fixes https://github.com/vitejs/vite-plugin-vue/issues/330
2024-01-09 11:14:00 +08:00
三咲智子 Kevin Deng
e971b0699b
Merge remote-tracking branch 'upstream/main'
2024-01-04 16:25:58 +08:00
Evan You
ae60a91cc2
fix(compiler-sfc): fix sfc template unref rewrite for class instantiation
...
close #6483
close #6491
2024-01-04 15:58:13 +08:00
Rizumu Ayaka
a82d070890
Merge remote-tracking branch 'upstream/minor'
2023-12-29 21:03:21 +08:00
Masa-Shin
77d33e263c
fix(compat): correct enum value for COMPILER_FILTERS feature ( #9875 )
2023-12-29 12:41:21 +08:00
三咲智子 Kevin Deng
116c3f37ae
Merge remote-tracking branch 'upstream/minor'
2023-12-26 23:47:18 +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
edison
eb51b23d85
fix(compile-sfc): fix identifier prefixing edge case caused by reused AST ( #9867 )
...
close #9853
close #9863
2023-12-19 18:04:36 +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
三咲智子 Kevin Deng
597eae423b
Merge remote-tracking branch 'upstream/minor'
2023-12-16 16:12:55 +08:00
Cédric Exbrayat
7bc3c9e205
fix(compiler-core): vnode hooks error message ( #9842 )
2023-12-15 23:07:15 +08:00
Evan You
0b6effb423
chore: preserve error code enum order
2023-12-13 00:48:32 +08:00
三咲智子 Kevin Deng
cf77435338
refactor(compiler-core): reuse unwrapTS utility function ( #9795 )
2023-12-11 10:46:28 +08:00
三咲智子 Kevin Deng
da8e196ca5
refactor(compiler-vapor): v-on
2023-12-10 00:06:20 +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
三咲智子 Kevin Deng
c695fdc1de
Merge remote-tracking branch 'upstream/minor'
2023-12-06 18:50:31 +08:00
三咲智子 Kevin Deng
a9f2bfcdba
fix: resolve options for parser
...
ref: https://github.com/vuejs/core/pull/9760
2023-12-06 18:48:45 +08:00
三咲智子 Kevin Deng
0dc875d53e
fix(compiler-core): use the same resolved options for all compile stages ( #9760 )
2023-12-06 14:41:21 +08:00
三咲智子 Kevin Deng
f644ed4081
feat: compound expression for v-bind
2023-12-06 00:17:16 +08:00
Evan You
fef451d2ca
chore: remove v-is deprecation enum
...
support is already removed during parser rewrite
2023-12-05 00:13:04 +08:00
Evan You
6c7eb8a9e2
feat(compiler): lift vnode hooks deprecation warning to error
2023-12-05 00:13:04 +08:00
Evan You
0ba131a6de
feat(compiler-sfc): analyze import usage in template via AST ( #9729 )
...
close #8897
close nuxt/nuxt#22416
2023-12-05 00:13: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
三咲智子 Kevin Deng
9843175c2c
feat: push codegen
2023-12-01 22:12:19 +08:00
Evan You
c3b704e446
chore: remove v-is deprecation enum
...
support is already removed during parser rewrite
2023-12-01 11:57:22 +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
三咲智子 Kevin Deng
0d9f0867d7
refactor(compiler-vapor): errors
2023-12-01 08:05:43 +08:00
三咲智子 Kevin Deng
cfd6d40d72
feat(compiler-vapor): node transform
2023-12-01 07:42:43 +08:00
三咲智子 Kevin Deng
5957c18a0b
fix(compiler-vapor): prefix identifiers
2023-12-01 06:01:25 +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
ZHAO Jin-Xiang
3071de44bc
fix(compiler-core): fix referencing typo ( #9708 )
2023-11-29 21:15:44 +08:00
edison
509c192ff4
chore: fix typo ( #9689 )
2023-11-29 12:26:10 +08:00
ZHAO Jin-Xiang
fff7b864f4
feat: use enum to replace const enum ( #9261 )
...
close #1228
2023-11-29 12:24:50 +08:00
Evan You
47ea285be3
fix(parser): properly set initial inXML state based on root ns
2023-11-28 18:37:17 +08:00
Evan You
ef97e8b07d
fix(parser): should reset inRCDATA state
2023-11-28 18:31:17 +08:00
三咲智子 Kevin Deng
9f8ba9821f
feat(dx): link errors to docs in prod build ( #9165 )
2023-11-28 07:39:11 +08:00