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
Evan You
059caafc13
wip: pass all compiler-sfc 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
e05ba29555
wip: pass all non-error parsing tests
2023-11-25 16:18:29 +08:00
Evan You
a60ad9180d
refactor: swap to new template parser
...
- get rid of SourceLocation.source for memory efficiency
- move source location generation logic transform phase into the parser
itself so that SourceLocation.source is no longer needed
- move v-for expression parsing into the parser itself
- added nameLoc on AttributeNode for use in transformElement
Tests are not passing yet.
2023-11-25 16:18:29 +08:00
Evan You
bc170c49fc
chore: disable parser tests for now
2023-11-25 16:18:29 +08:00
Evan You
19bd714239
wip: port parser
2023-11-25 16:18:29 +08:00
Evan You
1ea775633d
chore: Merge branch 'main' into minor
2023-11-21 09:48:26 +08:00
renovate[bot]
16a6438236
chore(deps): update lint ( #9627 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-11-18 10:33:24 +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
edison
a2d810eb40
fix(compiler-core): avoid rewriting scope variables in inline for loops ( #7245 )
...
close #7238
2023-11-09 17:20:54 +08:00
zhiyuanzmj
26399aa6fa
feat(compiler-core): support v-bind shorthand for key and value with the same name ( #9451 )
2023-11-02 17:48:11 +08:00
丶远方
a75d1c5c62
fix(compiler-core): known global should be shadowed by local variables in expression rewrite ( #9492 )
...
fix #9482
2023-10-28 15:22:03 +08:00
Evan You
733437691f
fix(hmr): fix hmr error for hoisted children array in v-for
...
fix #6978
close #7114
2023-10-21 21:08:49 +08:00
丶远方
b01fc7ea84
chore: remove unnecessary imports ( #8262 )
2023-05-19 07:54:12 +08:00
Evan You
8dc8cf852b
fix(compiler-core): treat floating point numbers as constants
...
close #8295
2023-05-12 10:53:40 +01:00
Evan You
b434d12bf6
fix(compiler-core): handle slot argument parsing edge case
...
ref https://github.com/vuejs/language-tools/issues/2710
2023-04-27 16:55:37 +08:00
Evan You
1849b9940f
test: update tests for deprecations
2023-04-21 16:06:08 +08:00
Evan You
0f77a2b1d1
fix(compiler): fix expression codegen for literal const bindings in non-inline mode
2023-04-18 11:39:53 +08:00
Evan You
19e17a951c
perf(compiler): use source-map-js
2023-04-09 16:50:20 +08:00
Evan You
6bda4b6688
fix(compiler-core): fix codegen for literal const in non-inline mode
2023-03-30 15:19:27 +08:00
三咲智子 Kevin Deng
77686cf476
fix(compiler-core): check if expression is constant ( #7974 )
...
close #7973
2023-03-29 09:02:16 +08:00
Evan You
e60ebd07a4
chore: bump vite & vitest
2023-03-23 16:36:33 +08:00
Evan You
c1cbb747b5
chore: fix types
2023-02-02 15:27:29 +08:00
Evan You
5804406fac
wip(vitest-migration): compiler-core tests passing
2023-01-26 16:20:59 +08:00
Evan You
8867bb259a
wip(vitest-migration): reactivity tests passing
2023-01-26 15:25:55 +08:00
Anthony Fu
4a16b204be
chore: run format
2023-01-12 12:58:11 +01:00
Evan You
9d5e30d911
build: bump jest, puppeteer and use official rollup terser plugin
2022-11-14 18:21:58 +08:00
三咲智子 Kevin Deng
87c72ae49a
fix(v-model): ensure v-model listener casing is consistent with manual v-on listener ( #7067 )
...
fix #7066
2022-11-14 02:21:29 -05:00
三咲智子 Kevin Deng
9060bf0353
refactor(compiler-core): make ast.helpers a Set ( #6774 )
2022-11-13 20:44:02 -05:00
Evan You
9ca8b7c1b5
chore: fix test
2022-11-10 14:30:50 +08:00
Evan You
001184e6bb
fix(compiler/v-model): catch incorrect v-model usage on prop bindings
...
close #5584
2022-11-10 10:42:27 +08:00
白雾三语
2c27556fe5
fix(compiler): avoid namespace collisions when transforming template refs in inline mode ( #6975 )
...
fix #6964
2022-11-08 22:22:29 -05:00
白雾三语
5bfe438ef3
fix(compiler-core/v-on): only apply case preservation on native elements ( #6902 )
...
fix #6900
2022-11-08 21:58:22 -05:00
Evan You
dd3354c4c7
fix(compiler-core): fix parsing error on comments between v-if in prod
...
close #6843
2022-11-08 23:35:35 +08:00
Rudy
48876182db
fix(compiler-core): keep whitespaces between interpolation and comment ( #6828 )
...
fix #6352
2022-11-08 09:50:43 -05:00
Travis
bcfe480d75
fix(compiler-core/v-on): support inline handler with return type annotation ( #6769 )
...
fix #6378
2022-11-07 22:09:15 -05:00
被雨水过滤的空气(Rairn)
640cfce4ff
fix(compiler-core): avoid duplicate keys in codegen with `v-if` ( #6689 )
...
fix #6641
2022-11-07 22:04:31 -05:00
Evan You
fc5bdb36ed
fix(runtime-core): avoid hoisted vnodes retaining detached DOM nodes
...
fix #6591
2022-09-27 16:20:52 +08:00
Evan You
00036bb52c
fix(slots): ensure different branches of dynamic slots have different keys
...
fix #6202
2022-08-30 15:55:09 +08:00
Evan You
0739f8909a
fix(custom-element): fix event listeners with capital letter event names on custom elements
...
close https://github.com/vuejs/docs/issues/1708
close https://github.com/vuejs/docs/pull/1890
2022-08-30 14:07:35 +08:00
Travis
7fbc933f4d
fix(compiler-core): fix svg with directives being incorrectly hoisted ( #5919 )
...
fix #5289
2022-05-22 21:40:53 -04:00