Evan You
a3725a729c
release: v3.4.7
2024-01-09 18:15:03 +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
Evan You
dc91463eb6
release: v3.4.6
2024-01-08 23:01:54 +08:00
Evan You
7bd4e90506
fix(build): revert "build: add production/development export conditions ( #9977 )"
...
This reverts commit e790e1bdd7
.
close #10012
close #10020
2024-01-08 22:29:08 +08:00
三咲智子 Kevin Deng
c9fe3f12e7
Merge tag 'v3.4.5'
2024-01-04 17:43:25 +08:00
Evan You
0275dd329d
release: v3.4.5
2024-01-04 17:21:24 +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
Daniel Roe
e790e1bdd7
build: add production/development export conditions ( #9977 )
2024-01-04 11:24:17 +08:00
Evan You
f70f7ca9ae
release: v3.4.4
2024-01-03 18:40:28 +08:00
三咲智子 Kevin Deng
3d3d08d0f1
Merge remote-tracking branch 'upstream/minor'
2023-12-31 18:51:34 +08:00
Evan You
8f85b6da44
release: v3.4.3
2023-12-30 21:34:23 +08:00
Evan You
b010cb9939
release: v3.4.2
2023-12-30 19:41:35 +08:00
Evan You
f787337b47
release: v3.4.1
2023-12-30 09:02:48 +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
Evan You
d702b66482
release: v3.4.0
2023-12-29 10:50:32 +08:00
Evan You
ef90a99208
release: v3.4.0-rc.3
2023-12-27 10:15:44 +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
947aacf5ea
release: v3.4.0-rc.2
2023-12-26 15:52:53 +08:00
Evan You
9cbb27745d
release: v3.4.0-rc.1
2023-12-25 16:42:12 +08:00
Evan You
5ec937723a
chore: Merge branch 'main' into minor
2023-12-24 22:50:06 +08:00
Evan You
7aa3f250f2
fix(compiler-core): fix parsing `<script setup>` generics with >
...
close #9890
2023-12-22 22:49:30 +08:00
renovate[bot]
e01bb5bdaf
chore(deps): update compiler to ^7.23.6 ( #9858 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-20 10:38:35 +08:00
Evan You
048dffd7ee
release: v3.4.0-beta.4
2023-12-19 18:23:57 +08:00
Evan You
95f6fffea2
chore: Merge branch 'main' into minor
2023-12-19 18:16:16 +08:00
Evan You
7c49a9c4d8
release: v3.3.13
2023-12-19 18:12:48 +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
Evan You
317b783a53
release: v3.4.0-beta.3
2023-12-16 14:41:29 +08:00
Evan You
4e7967f016
release: v3.3.12
2023-12-16 14:23:40 +08:00
Cédric Exbrayat
7bc3c9e205
fix(compiler-core): vnode hooks error message ( #9842 )
2023-12-15 23:07:15 +08:00
Evan You
c51ab4c765
release: v3.4.0-beta.2
2023-12-14 10:28:34 +08:00
Evan You
e00b160435
release: v3.4.0-beta.1
2023-12-13 18:52:16 +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
Evan You
19b590fa3a
release: v3.3.11
2023-12-08 14:13:52 +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
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
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
c0d396b785
release: v3.4.0-alpha.4
2023-12-04 23:24:43 +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
d5a88ef9d7
release: v3.3.10
2023-12-04 21:42:18 +08:00
renovate[bot]
bf7269ac47
chore(deps): update compiler ( #9745 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-04 16:43:47 +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
d28d57bd3f
Merge remote-tracking branch 'upstream/minor'
2023-12-01 08:16:50 +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
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
三咲智子 Kevin Deng
5df8f0e134
Merge remote-tracking branch 'upstream/minor'
2023-11-29 21:16:14 +08:00
ZHAO Jin-Xiang
3071de44bc
fix(compiler-core): fix referencing typo ( #9708 )
2023-11-29 21:15:44 +08:00
三咲智子 Kevin Deng
377723d8b2
Merge remote-tracking branch 'upstream/minor'
2023-11-29 21:10:26 +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
三咲智子 Kevin Deng
4549e28665
fix: playground
2023-11-29 02:38:01 +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
Rizumu Ayaka
4200d4e2d0
feat: add vapor errors of `v-bind` / `v-on` ( #3 )
...
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2023-11-28 18:17:41 +08:00
Evan You
7d89887f71
release: v3.4.0-alpha.3
2023-11-28 08:26:01 +08:00
Evan You
5afd04cbb8
chore: Merge branch 'main' into minor
2023-11-28 08:14:04 +08:00
renovate[bot]
31f6ebc4df
fix(deps): update compiler to ^7.23.4 ( #9681 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-28 08:02:38 +08:00
三咲智子 Kevin Deng
9f8ba9821f
feat(dx): link errors to docs in prod build ( #9165 )
2023-11-28 07:39:11 +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
ebaeb2e0aa
release: v3.4.0-alpha.2
2023-11-27 17:26:22 +08:00
Evan You
41ff68ea57
feat(compiler): improve parsing tolerance for language-tools
2023-11-27 16:55:54 +08:00
Evan You
fb619cf9a4
fix(compiler-sfc): fix ast reuse for ssr
2023-11-27 15:38:30 +08:00
Evan You
2e65ea481f
fix(compiler-core): fix line/column tracking when fast forwarding
2023-11-27 14:49:13 +08:00
Evan You
50cde7cfbc
perf(compiler-sfc): use faster source map addMapping
2023-11-27 14:42:12 +08:00
Evan You
d193666fdc
chore: use MappingItem type
2023-11-27 14:16:16 +08:00
Evan You
f15d2f6cf6
perf: avoid sfc source map unnecessary serialization and parsing
2023-11-27 12:26:51 +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
08f0baa2ad
refactor: preserve source location convention in sfc mode for base parser
...
For compatibility w/ usage like https://github.com/vue-macros/vue-macros/blob/main/packages/setup-block/src/core/index.ts
2023-11-25 18:07:29 +08:00
Evan You
be6cae7dac
chore: remove isSelfClosing property
2023-11-25 18:03:22 +08:00
三咲智子 Kevin Deng
bdbd524d59
Merge remote-tracking branch 'upstream/main'
2023-11-25 17:04:03 +08:00
Evan You
6ec85ae872
chore: restructure parser files
2023-11-25 16:18:29 +08:00
Evan You
c11002f16a
perf(codegen): optimize source map generation
2023-11-25 16:18:29 +08:00
Evan You
3be53d9b97
perf(codegen): optimize line / column calculation during codegen
...
Previously, many CodegenContext.push() calls were unnecessarily
iterating through the entire pushed string to find newlines, when we
already know the newline positions for most of calls. Providing fast
paths for these calls significantly improves codegen performance when
source map is needed.
In benchmarks, this PR improves full SFC compilation performance by ~6%.
2023-11-25 16:18:29 +08:00
Evan You
20732366b9
perf: optimize position cloning
2023-11-25 16:18:29 +08:00