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
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
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
4d94ebfe75
perf(v-on): constant handlers with modifiers should not be treated as dynamic
2023-11-30 19:26:36 +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
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
40f72d5e50
feat(compiler-core): support specifying root namespace when parsing
2023-11-25 16:18:29 +08:00
Evan You
a1b10a21ac
wip: pass more compiler-dom tests
2023-11-25 16:18:29 +08:00
Evan You
c4e50e46bb
wip: more tests passing
2023-11-25 16:18:29 +08:00
Evan You
2859b653c9
fix(v-model): unnecessary value binding error should apply to dynamic instead of static binding
...
close #3596
2023-11-15 08:51:50 +08:00
被雨水过滤的空气-Rain
b71a889f52
refactor(compiler-dom): use String's built-in repeat method ( #6700 )
2023-11-10 14:39:19 +08:00
Evan You
364f319d21
fix(hydration): force hydration for v-bind with .prop modifier
...
ref #7490
2023-11-10 13:13:07 +08:00
丶远方
b01fc7ea84
chore: remove unnecessary imports ( #8262 )
2023-05-19 07:54:12 +08:00
白雾三语
5261085113
fix(compiler-dom): handle newlines when evaluating constants during stringification ( #7995 )
...
fix #7994
2023-03-31 16:33:00 +08:00
Evan You
e60ebd07a4
chore: bump vite & vitest
2023-03-23 16:36:33 +08:00
Evan You
8599242bb4
wip(vitest-migration): compiler-dom tests passing
2023-01-26 16:48:19 +08:00
Evan You
8867bb259a
wip(vitest-migration): reactivity tests passing
2023-01-26 15:25:55 +08:00
Evan You
9d5e30d911
build: bump jest, puppeteer and use official rollup terser plugin
2022-11-14 18:21:58 +08:00
某时橙
6c6fe2c0cd
fix(compiler-dom): remove v-bind boolean attribute with literal false value when stringifying ( #6635 )
...
fix #6617
2022-09-27 17:18:49 +08:00
Evan You
6283b2ec41
fix(compiler-dom): properly stringify v-html/v-text with constant value
...
fix #5439
close #5445
2022-05-13 08:57:43 +08:00
Evan You
425310e8b6
fix(transition/v-show): ensure transition is in persisted mode when used with v-show
...
fix #4845
close #4852
2022-05-11 19:22:55 +08:00
那里好脏不可以
6042ab0f2f
chore: type [ci skip]
2022-05-09 22:51:51 -04:00
Evan You
60cf175d88
feat(ssr): support custom directive getSSRProps in optimized compilation
...
close #5304
2022-02-04 08:58:31 +08:00
Evan You
29beda7c6f
fix(compiler-dom): avoid bailing stringification on setup const bindings
2021-12-06 11:53:02 +08: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
Evan You
2641422aa7
fix(compiler-dom): stringify eligible svg content
...
fix #4282
2021-08-09 14:39:50 -04:00
Evan You
47f488350c
chore: run updated prettier
2021-07-19 18:24:18 -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
HcySunYang
ceff89905b
perf: improve VNode creation performance with compiler hints ( #3334 )
2021-07-16 14:30:49 -04:00
Evan You
669037277b
fix(compiler-dom): fix in-browser attribute value decoding w/ html tags
...
fix #3001
2021-05-27 17:25:34 -04:00
HcySunYang
7c74feb3dc
fix(compiler-dom): comments in the v-if branchs should be ignored when used in Transition ( #3622 )
...
fix #3619
2021-05-24 17:10:29 -04:00
HcySunYang
7715c49af9
fix(compiler-core): avoid generating useless createVNode helper ( #2938 )
...
close #2739
2021-03-25 17:01:50 -04:00
GU Yiling
ca6aa01181
fix(compiler-dom): stringifyStatic should remove attribute bindings with `null` value ( #3477 )
...
fix #3475
2021-03-25 16:14:06 -04:00
Evan You
90bdf59f4c
refactor(compiler): better constant hoist/stringify checks
2020-11-20 19:26:07 -05:00
Eduardo San Martin Morote
314ab2c7c5
fix(compiler): stringify values on v-text ( #2432 )
...
fix #2430
2020-10-19 18:12:09 -04:00
ᴜɴвʏтᴇ
052a621762
feat(compile-core): handle falsy dynamic args for v-on and v-bind ( #2393 )
...
fix #2388
2020-10-19 17:15:53 -04:00
Evan You
c930f2ee8a
chore: update snapshot
2020-07-27 17:45:30 -04:00
Evan You
71c3c6e2a0
fix(v-model): allow v-model usage on declared custom elements
...
fix #1699
2020-07-27 17:09:30 -04:00
Evan You
00ab9e2e85
refactor: adjust event options handling to be JSX friendly
2020-07-14 13:20:59 -04:00
Evan You
380c6792d8
fix(v-on): refactor DOM event options modifer handling
...
fix #1567
Previously multiple `v-on` handlers with different event attach option
modifers (`.once`, `.capture` and `.passive`) are generated as an array
of objects in the form of `[{ handler, options }]` - however, this
makes it pretty complex for `runtime-dom` to properly handle all
possible value permutations, as each handler may need to be attached
with different options.
With this commit, they are now generated as event props with different
keys - e.g. `v-on:click.capture` is now generated as a prop named
`onClick.capture`. This allows them to be patched as separate props
which makes the runtime handling much simpler.
2020-07-14 11:48:05 -04:00
Evan You
6b63ba2f45
fix(compiler-dom): fix v-on .left .right modifier handling
2020-07-13 14:50:11 -04:00
Evan You
5e52f4e4d7
fix(compiler-dom): should ignore and warn side effect tags like script and style
...
This keeps behavior consistency with v2.
2020-07-08 12:32:07 -04:00
Evan You
9b5d13e598
fix: bail stringification for slots
...
fix #1281 , close #1286
2020-06-10 14:31:59 -04:00
Evan You
3f80183f1f
test: test for table stringification bail
2020-06-09 17:10:07 -04:00
Zardddddd60
64ec8bfb54
fix(compiler-core): bail static stringfication even threshold is met ( #1298 )
...
fix #1128
2020-06-09 16:26:03 -04:00
Evan You
dd2bfb5a8f
fix(compiler-dom): should bail stringification on runtime constant regardless of position
...
ref: vuejs/vite#157
2020-05-18 10:04:18 -04:00
Evan You
baa6973b13
wip(compiler): tests for new stringification
2020-05-15 15:50:42 -04:00