Evan You
036914c10b
release: v3.3.0-alpha.8
2023-04-04 18:23:06 +08:00
Evan You
9a09e47667
release: v3.3.0-alpha.7
2023-04-03 18:19:11 +08:00
Evan You
8ac0620c1b
release: v3.3.0-alpha.6
2023-03-30 18:22:42 +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
Evan You
ba9c2ae247
feat(compiler-sfc): enable reactive props destructure by default and deprecate withDefaults() ( #7986 )
2023-03-30 11:58:16 +08:00
三咲智子 Kevin Deng
77686cf476
fix(compiler-core): check if expression is constant ( #7974 )
...
close #7973
2023-03-29 09:02:16 +08:00
三咲智子 Kevin Deng
b7bd50f505
feat(compiler-core): support parsing `const` modifier in type parameters ( #7912 )
2023-03-28 17:31:23 +08:00
三咲智子 Kevin Deng
0002567728
feat(compiler-sfc): support module string names syntax ( #7428 )
...
https://github.com/tc39/ecma262/pull/2154
2023-03-28 16:28:06 +08:00
三咲智子 Kevin Deng
1b69d5f2f4
fix(compiler-sfc): unwrap TS node for defineProps ( #7340 )
2023-03-28 15:22:01 +08:00
三咲智子 Kevin Deng
7def8b15b8
feat(complier-sfc): hoist literal constants for script ( #5752 )
...
- Support using literal constants in macros
- fix useCssVars insert position edge case
- fix non-literal-const enum hoisting
close #5750
2023-03-28 11:34:29 +08:00
Evan You
27e1e38641
release: v3.3.0-alpha.5
2023-03-26 16:52:46 +08:00
Evan You
58e5c51149
build: upgrade to TypeScript 5.x
2023-03-23 17:11:35 +08:00
Evan You
e60ebd07a4
chore: bump vite & vitest
2023-03-23 16:36:33 +08:00
Evan You
aac163110f
refactor: remove circular dependencies in compiler
2023-03-23 16:30:42 +08:00
Evan You
78b86150b8
release: v3.3.0-alpha.4
2023-02-06 14:10:56 +08:00
Evan You
097f6beca2
release: v3.3.0-alpha.3
2023-02-06 10:27:25 +08:00
Evan You
37ec04b984
release: v3.3.0-alpha.2
2023-02-05 16:23:54 +08:00
Evan You
85f4d8ccb9
release: v3.3.0-alpha.1
2023-02-05 11:20:39 +08:00
Evan You
eb0c1e7025
build: remove api-extractor
2023-02-03 15:57:00 +08:00
Evan You
53e3533b75
chore: bump deps
2023-02-03 05:47:40 +08:00
Evan You
e22b5c510d
chore: remove hanging slash from import
2023-02-03 04:31:17 +08:00
Evan You
124373db50
wip: isolatedModules + use rollup-plugin-esbuild
2023-02-03 04:30:19 +08:00
Evan You
c1cbb747b5
chore: fix types
2023-02-02 15:27:29 +08:00
Evan You
45984d559f
release: v3.2.47
2023-02-02 13:48:18 +08:00
Evan You
29f8cf8b07
release: v3.2.46
2023-02-02 11:32:04 +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
Cédric Exbrayat
b46ba6e2ad
chore(compiler-core): missing space in v-slot mixed usage error message ( #7076 )
2022-11-14 02:06:24 -05:00
Samuel Rigaud
378386694b
fix(compiler-core): typeof should be allowed in browser expression validation ( #7037 )
2022-11-14 01:50:35 -05:00
三咲智子 Kevin Deng
9060bf0353
refactor(compiler-core): make ast.helpers a Set ( #6774 )
2022-11-13 20:44:02 -05:00
Evan You
6f663d47e5
release: v3.2.45
2022-11-11 17:35:27 +08:00
Evan You
15e889afaf
fix(v-model): fix incorrect codegen for non-ref bindings
...
fix #6241
2022-11-10 15:32:58 +08: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
Evan You
ec795bfc51
release: v3.2.44
2022-11-10 07:25:22 +08:00
Evan You
71977ec972
release: v3.2.43
2022-11-09 21:00:57 +08:00
Evan You
f023d49a49
release: v3.2.42
2022-11-09 11:36:09 +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
09bb3e996e
fix(compiler-ssr): fix invalid codegen when v-slot name is explicit empty attr ( #3326 )
...
squashed from fix by @tjk
2022-10-26 16:18:19 +08:00
Evan You
9617dd4b2a
release: v3.2.41
2022-10-14 18:41:15 +08:00
世新
82e3f2dc30
chore: symbols as helperNameMap index type ( #6622 )
2022-10-06 05:26:16 +08:00
Anthony Fu
534593cfa8
chore: format
2022-10-03 15:30:43 +08:00
Evan You
551f606d98
release: v3.2.40
2022-09-28 11:40:24 +08:00
Evan You
f402d416b8
refactor(compiler-core): extract props merging helper
2022-09-28 10:59:13 +08:00
Dunqing
f9d43b99f8
fix(compilre-core): dynamic v-on and static v-on should be merged ( #6747 )
...
fix #6742
2022-09-27 22:46:55 -04:00
Evan You
03820193a8
fix(ssr): fix pre tag windows newline hydration mismatch
...
fix #6410
2022-09-28 08:45:32 +08: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
f79c423621
release: v3.2.39
2022-09-08 10:12:39 +08:00
Evan You
6624ead663
release: v3.2.38
2022-08-30 16:02:01 +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
Evan You
bdffc143ef
release: v3.2.37
2022-06-06 20:08:19 +08:00
Evan You
160d5df34a
release: v3.2.36
2022-05-23 10:04:12 +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
Evan You
a0c577692f
release: v3.2.35
2022-05-21 01:16:26 +08:00
Evan You
3991609087
release: v3.2.34
2022-05-19 12:42:34 +08:00
Evan You
516bc548fc
fix(compiler-ssr): fix wrong attrs fallthrough on non-single-root v-if branches
...
fix #5140
2022-05-19 11:21:17 +08:00
Evan You
415091b0ee
fix(compiler-core): should generate HYDRATE_EVENTS flag on dynamic component that resolves to element
...
fix #5870
2022-05-17 16:39:48 +08:00
Evan You
7fd761e577
release: v3.2.34-beta.1
2022-05-17 12:53:51 +08:00
阿崔cxr
e85e0a7f3a
chore: use ast node creation helper ( #5255 )
2022-05-13 04:37:50 -04:00
edison
242914d938
fix(reactivity-transform): fix props access codegen for non-identifier prop names ( #5436 )
...
fix #5425
2022-05-12 22:38:46 -04: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
0f00cf43cf
fix(compiler-core): normalize v-bind:style with array literal value
...
fix #5106
2022-05-12 16:31:16 +08:00
WangJing
9329feb7d3
chore(compiler): improve readability of compiler-core's test case ( #4886 )
2022-05-11 20:47:10 -04:00
edison
cd395559ce
chore(compiler-core): use aliasHelper ( #3592 )
2022-05-11 20:40:05 -04:00
Evan You
51f3d386de
fix(compiler-core): template v-if should never be treated as dev root fragment
...
close #5189
2022-05-11 17:43:20 +08:00
Evan You
410144149f
fix(compiler-sfc): defineProps return binding or rest binding should be considered reactive
2022-05-10 17:34:15 +08:00
那里好脏不可以
6042ab0f2f
chore: type [ci skip]
2022-05-09 22:51:51 -04:00
Evan You
56879e6b23
release: v3.2.33
2022-04-14 18:14:37 +08:00
Evan You
f4f5e80a19
release: v3.2.32
2022-04-12 16:07:43 +08:00
Evan You
d56dec6b4a
release: v3.2.31
2022-02-12 16:41:52 +08:00
Evan You
15adf251ab
release: v3.2.30
2022-02-07 14:14:53 +08:00
Evan You
ce34d9114e
chore: remove v3.vuejs.org references
2022-02-07 13:13:26 +08: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
6b6889852f
release: v3.2.29
2022-01-23 22:02:23 +08:00
Evan You
283df0ad68
release: v3.2.28
2022-01-21 16:15:13 +08:00
btea
63210fe41a
refactor: includes instead of indexOf ( #5117 )
2022-01-21 02:36:48 -05:00
edison
9f55e6fbb1
fix(compiler-core): handle v-memo in template v-for ( #5291 )
...
fix #5288
2022-01-21 01:54:46 -05:00
Yugang Cao
e603fd258c
chore: fix typo ( #5261 ) [ci skip]
2022-01-21 01:18:34 -05:00
Evan You
ae4b0783d7
chore: update repo references
2022-01-18 16:43:59 +08:00
Evan You
3adfc0fe94
release: v3.2.27
2022-01-16 22:08:18 +08:00
Evan You
ccb6651b12
release: v3.2.26
2021-12-12 15:03:29 +08:00
Evan You
756534bde0
release: v3.2.25
2021-12-12 12:21:13 +08:00
Forzen FIsh
57a09331b2
chore: fix some typos ( #5050 ) [ci skip]
2021-12-11 20:58:46 -05:00
Evan You
ea1fcfba37
chore: bump babel deps
2021-12-12 09:11:36 +08:00
Evan You
41c18effea
feat: support ref in v-for, remove compat deprecation warnings
2021-12-10 23:49:01 +08:00
Evan You
4b0ca8709a
feat(compiler-core): support aliasing vue: prefixed events to inline vnode hooks
2021-12-10 16:09:23 +08:00
Evan You
1c9a4810fc
fix(compiler): force block for custom dirs and inline beforeUpdate hooks
...
to ensure they are called before children updates
2021-12-10 15:36:10 +08:00
Evan You
d955cfacd6
release: v3.2.24
2021-12-06 17:03:10 +08:00
Forzen FIsh
095fe269cb
chore: remove redundant variable declaration ( #5053 )
2021-12-05 23:10:58 -05:00
Evan You
29beda7c6f
fix(compiler-dom): avoid bailing stringification on setup const bindings
2021-12-06 11:53:02 +08:00
Evan You
b6a8a451b8
release: v3.2.23
2021-11-26 14:33:46 +08:00
Evan You
635d88aa9e
release: v3.2.22
2021-11-15 11:45:05 +08:00
btea
e1ee3c4fe8
refactor(compiler-core): refactor isComponentTag method ( #4934 )
2021-11-14 21:39:13 -05:00
Evan You
fe853a5a40
release: v3.2.21
2021-11-02 14:35:14 +08:00
Che Guevara
e772108922
chore: break compat mode v-for/v-if precedence check loop early ( #4773 )
2021-10-09 17:12:34 -04:00
Evan You
3c500e422f
release: v3.2.20
2021-10-08 13:01:51 -04:00
Che Guevara
6bcb7a5ea3
chore: remove deprecated usage of String.prototype.substr ( #4699 )
2021-10-08 12:31:34 -04:00
btea
c9613ebe09
chore: prettier format ( #4715 ) [ci skip]
2021-10-08 12:00:05 -04:00
Evan You
646e694f0a
chore: remove babelParserDefaultPlugins
...
The version of @babel/parser we are using now has these plugins enabled by default.
2021-10-07 19:33:06 -04:00
Evan You
467e113b95
feat(compiler-sfc): `<script setup>` defineProps destructure transform ( #4690 )
2021-09-27 14:24:21 -04:00
Evan You
c5c53846ed
release: v3.2.19
2021-09-25 14:58:20 -04:00
Herrington Darkholme
7aa0ea06c8
fix(compiler-core): should treat attribute key as expression ( #4658 )
2021-09-25 14:21:09 -04:00
Evan You
13bfa2edfe
release: v3.2.18
2021-09-24 16:05:16 -04:00
Evan You
f5076eb4b7
release: v3.2.17
2021-09-24 12:43:11 -04:00
Evan You
7b7e28ad6a
test: fix utils test
2021-09-24 12:34:31 -04:00
Evan You
fc85ad28ae
fix(build): avoid importing @babel/parser in esm-bundler build
...
fix #4665
2021-09-23 23:20:53 -04:00
Evan You
114b856fd1
release: v3.2.16
2021-09-23 10:17:02 -04:00
Evan You
8e05b7f9fc
fix(ssr): fix ssr runtime helper import in module mode
2021-09-23 10:08:28 -04:00
Evan You
74a84ff546
release: v3.2.15
2021-09-23 09:48:59 -04:00
Evan You
d74f21a42c
fix(compiler-ssr): import ssr helpers from updated path
2021-09-22 23:28:20 -04:00
Evan You
df4fcd94d8
release: v3.2.14
2021-09-22 18:36:57 -04:00
Evan You
6257adeaac
fix(compiler-core): more robust member expression check in Node
2021-09-22 17:16:21 -04: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
Ziwen Mei
1873f0f48c
chore(compiler-core): fix typo in transformElement ( #4649 ) [ci skip]
2021-09-22 10:12:52 -04:00
Ziwen Mei
bf267b1ce3
chore(compiler-core): fix typo in errors.ts and options.ts ( #4650 ) [ci skip]
2021-09-22 10:12:33 -04:00
Evan You
b9deb6e50e
release: v3.2.13
2021-09-21 14:22:53 -04:00
Ziwen Mei
56be30b5c7
chore(compiler-core): fix typo in hoistStatic ( #4625 ) [ci skip]
2021-09-21 13:06:39 -04:00
就是喜欢陈粒
5addef8ecd
fix(compiler-core): add check when v-else-if is behind v-else ( #4603 )
2021-09-21 12:59:38 -04:00
Herrington Darkholme
d8a36d0198
fix(compiler-core): only merge true handlers ( #4577 )
2021-09-21 12:37:51 -04:00
Herrington Darkholme
044812525f
fix(compiler-core): dedupe renderSlot's default props ( #4557 )
2021-09-21 12:31:27 -04:00
Evan You
d23fde3d3b
fix(compiler-core): more robust member expression check when running in node
...
fix #4640
2021-09-21 12:19:27 -04:00
Evan You
471f66a1f6
build: expose compiler-sfc and server-renderer under main vue package + optimize package size
2021-09-21 10:26:08 -04:00
Evan You
0dc521b9e1
fix(compiler-core): support ts syntax in expressions when isTS is true
2021-09-20 11:51:01 -04:00
Evan You
cb2d7c0e3c
fix(compiler-core): ensure hoisted scopeId code can be treeshaken
2021-09-19 17:14:26 -04:00
Evan You
ebe00f66dd
release: v3.2.12
2021-09-17 10:55:26 -04:00
lidlanca
fc968d607b
fix(compiler-core): v-on inline async function expression handler ( #4569 )
...
fix #4568
2021-09-16 12:36:04 -04:00
ygj6
f29d061124
fix(compiler): fix template ref codegen for setup-maybe-ref binding types ( #4549 )
...
fix #4546
2021-09-16 11:33:16 -04:00
Evan You
781d2d4d58
release: v3.2.11
2021-09-08 18:58:13 -04:00
Evan You
96b531bfa3
release: v3.2.10
2021-09-07 16:20:07 -04:00
Roy Eden
b8653d390a
fix(compiler): condense whitespaces in static class attributes ( #4432 )
...
fix #4251
2021-09-07 12:01:17 -04:00
Herrington Darkholme
5d262e08d5
fix(compiler-core): pick last char when dynamic directive doesn't close ( #4507 )
2021-09-07 11:36:37 -04:00
Herrington Darkholme
1c4f0f0afd
chore: fix typo in jsdoc ( #4526 ) [ci skip]
2021-09-07 11:31:27 -04:00
Evan You
1045590d4b
fix(compiler-core): avoid runtime dependency on @babel/types
...
fix #4531
2021-09-07 09:54:49 -04:00
Evan You
642710eded
release: v3.2.9
2021-09-05 18:24:01 -04:00
edison
5594643d7b
fix(compiler-sfc): fix script setup ref assignment codegen edge case ( #4520 )
...
fix #4514
2021-09-05 18:02:50 -04:00
Evan You
3ad9dc4880
release: v3.2.8
2021-09-02 14:46:30 -04:00
ygj6
4cd282b0a1
fix(compiler): generate function ref for script setup if inline is ture. ( #4492 )
2021-09-02 11:27:20 -04:00
dependabot[bot]
305883a12f
build(deps-dev): bump typescript from 4.3.5 to 4.4.2 ( #4482 )
...
* build(deps-dev): bump typescript from 4.3.5 to 4.4.2
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.3.5 to 4.4.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.3.5...v4.4.2 )
---
updated-dependencies:
- dependency-name: typescript
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* build(deps-dev): bump typescript from 4.3.5 to 4.4.2
* test: fix nodeOps types
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Carlos Rodrigues <carlos@hypermob.co.uk>
Co-authored-by: Evan You <yyx990803@gmail.com>
2021-09-02 09:53:57 -04:00
Herrington Darkholme
c00925ed5c
fix(compiler): report invalid directive name error ( #4494 ) ( #4495 )
2021-09-02 09:42:20 -04:00
Evan You
b079996040
release: v3.2.7
2021-09-01 18:05:16 -04:00
Evan You
3628991906
fix(compiler): only generate non-static ref for script setup if the binding exists
...
fix #4431
2021-09-01 17:27:03 -04:00
Herrington Darkholme
4502a0eab5
refactor(compiler): refine CDATA endTokens ( #4459 )
2021-09-01 16:43:10 -04:00
Herrington Darkholme
7178716b4c
chore: fix typo in error message ( #4434 ) [ci skip]
2021-09-01 16:42:24 -04:00
Evan You
935b4e2210
fix(compiler-core): remove no longer necessary withScopeId import in generated code
2021-09-01 11:30:34 -04:00
Evan You
72d2b26e96
release: v3.2.6
2021-08-24 12:54:30 -04:00
Evan You
4c468eb30a
fix(build): avoid imports to @babel/types in client build of compiler-core
2021-08-24 12:39:38 -04:00
Evan You
a137d73e91
release: v3.2.5
2021-08-24 11:54:22 -04:00
shadowings-zy
32827506ff
fix(compiler-core): fix duplicated component identifier for names with non-ascii chars ( #4429 )
...
fix #4422
2021-08-24 11:48:08 -04:00
Evan You
f1fa30adc3
refactor(ref-transform): improve algorithm into one pass
2021-08-23 18:22:21 -04:00
Evan You
06051c4bf2
feat(experimental): support ref transform for sfc normal `<script>`
2021-08-23 16:00:46 -04:00
Evan You
986681568f
chore: export extractIdentifiers
2021-08-23 12:18:43 -04:00
Evan You
e565831c98
feat(experimental): shouldTransform for ref-transform
2021-08-23 10:45:58 -04:00
Evan You
db8dc753c0
feat(experimental): standalone ref transform
2021-08-22 22:21:42 -04:00
Evan You
84b24a71f0
chore: bump deps
2021-08-22 15:33:21 -04:00
Evan You
73f8cae465
refactor(compiler): further extract babel ast utilities
2021-08-22 14:51:16 -04:00
Evan You
62f752552a
refactor(compiler): extract shared ast transform utils
...
Also improve referenced identifier check using isReferenced from @babel/types
2021-08-22 13:24:16 -04:00
Evan You
6be6c268e8
test(compiler-core): include test case for expression prefixing in assignments
2021-08-22 12:33:00 -04:00
Evan You
ceace3a8cc
release: v3.2.4
2021-08-17 12:26:50 -04:00
Evan You
03abc2573c
release: v3.2.3
2021-08-16 18:25:32 -04:00
fishDog
092bdcdf58
fix(compiler-core): fix style binding edge case ( #4319 )
...
where static `style` attribute and `:style` with constant binding are used together
fix #4317
2021-08-16 16:37:31 -04:00
Evan You
a6c1db2728
fix(compiler-core): fix hoisting logic for elements with cached handlers + other bindings
...
fix #4327
2021-08-16 15:57:10 -04:00
Evan You
7ffa225aa3
release: v3.2.2
2021-08-11 11:40:25 -04:00
Evan You
2749c15170
release: v3.2.1
2021-08-09 16:29:53 -04:00
Evan You
5a7a43cc3d
release: v3.2.0
2021-08-09 15:51:53 -04:00
Evan You
4781965cc2
release: v3.2.0-beta.8
2021-08-06 23:12:27 -04:00
fishDog
abb3a81e87
fix(compiler-core): detected forwarded slots in nested components ( #4268 )
...
fix #4244
2021-08-06 22:37:55 -04:00
edison
a211e271ee
fix(v-memo): ensure track block when returning cached vnode ( #4270 )
...
fix #4253
2021-08-06 21:44:45 -04:00
Evan You
b357009a82
release: v3.2.0-beta.7
2021-07-29 13:21:30 -04:00
Evan You
204e194d2b
release: v3.2.0-beta.6
2021-07-27 18:56:02 -04:00
Evan You
4b595a3ea1
release: v3.2.0-beta.5
2021-07-23 16:10:22 -04:00
Evan You
fe58bae412
release: v3.2.0-beta.4
2021-07-21 17:40:25 -04:00
webfansplz
9c931d8154
chore(types): remove unnecessary non-null assertion ( #4169 )
2021-07-21 15:50:08 -04:00
Evan You
9d5dd2da8c
release: v3.2.0-beta.3
2021-07-20 17:47:03 -04:00
Evan You
1034546a4c
release: v3.2.0-beta.2
2021-07-19 19:36:55 -04:00
Evan You
a21ca3dccc
fix(compiler-core): fix self-closing tags with v-pre
2021-07-19 19:29:28 -04:00
Evan You
7e75b4105a
refactor: better fix for ec6abe8d
2021-07-19 19:23:44 -04:00
Evan You
ec6abe8d5e
fix(compiler-sfc): fix whitespace preservation when block contains single self-closing tag
2021-07-19 18:54:35 -04:00
Evan You
47f488350c
chore: run updated prettier
2021-07-19 18:24:18 -04:00
Austin Keener
dd0f9d1ce6
feat(compiler): allow 'comments' option to affect comment inclusion in dev ( #4115 )
...
Close : #3392
Replace: #3395
2021-07-19 11:40:37 -04:00
webfansplz
df0ce21836
chore(types): improve of type assertion ( #4141 )
2021-07-19 10:32:07 -04:00
Evan You
d4c67dd253
release: v3.2.0-beta.1
2021-07-16 14:44:06 -04:00
Evan You
317654b34f
chore: fix codegen error due to scopeId deprecation change
2021-07-16 14:30:49 -04:00
fishDog
eca4d7891a
chore(compiler-core): reduce unnecessary cache inside v-once ( #4112 )
2021-07-16 14:30:49 -04:00
Evan You
e5a4412764
feat(sfc): support namespaced component tags when using `<script setup>`
2021-07-16 14:30:49 -04:00
Evan You
a8edf2bdff
refactor: remove outdated slot ctx wrapper codegen
2021-07-16 14:30:49 -04:00
Evan You
29732c2c86
fix: ignore .prop/.attr modifiers in ssr
2021-07-16 14:30:49 -04:00
Evan You
f596e008ef
refactor: remove deprecated scopeId codegen
...
BREAKING CHANGE: Output of SFC using `<style scoped>` generated by 3.2+
will be incompatible w/ runtime <3.2.
2021-07-16 14:30:49 -04:00
Evan You
1c7d737cc8
feat: support v-bind .prop & .attr modifiers
...
Also allows render function usage like the following:
```js
h({
'.prop': 1, // force set as property
'^attr': 'foo' // force set as attribute
})
```
2021-07-16 14:30:49 -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
Evan You
02339b67d8
perf: hoist dynamic props lists
2021-07-16 14:30:49 -04:00
Evan You
63a51ffcab
chore: fix test failing types
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
31abdc8ada
release: v3.1.5
2021-07-16 12:38:01 -04:00
Evan You
5af718ba41
fix(v-model): support calling methods in v-model expression
...
close #3993
2021-07-15 13:34:42 -04:00
Evan You
395572b593
fix(v-on): proper member exp detection for bracket assignment
...
fix #4097
2021-07-15 13:26:09 -04:00
Evan You
963085d18c
fix(v-on): properly detect member expressions with optional chaining
...
fix #4107
2021-07-15 12:23:07 -04:00
edison
c23153d82e
fix(compiler-core): fix forwarded slots detection on template slots ( #4124 )
...
fix #4123
2021-07-15 11:37:11 -04:00
Evan You
348c3b01e5
release: v3.1.4
2021-07-02 08:37:50 -04:00
Evan You
a44d528af1
fix(codegen): ensure valid types in genreated code when using global directives
...
fix #4054
2021-07-02 07:59:47 -04:00
Evan You
fc7b640041
release: v3.1.3
2021-07-01 19:28:06 -04:00
Evan You
d2df28dca4
fix(compiler-core): properly exit self-closing pre tag
...
fix #4030
2021-07-01 15:34:12 -04:00
Evan You
d35e0b1468
feat(sfc): change `<script setup>` directive resolution to require v prefix
...
close #3543
2021-06-28 17:35:31 -04:00
Evan You
6b6d566861
release: v3.1.2
2021-06-22 14:24:50 -04:00
Evan You
08e93220f1
fix(compiler-core/compat): fix is prop usage on components
...
also fix v-bind:is usage on plain element in compat mode
fix #3934
2021-06-21 16:16:49 -04:00
Evan You
bc100c5c48
fix(compiler-core): improve member expression check
...
fix #3910
2021-06-09 11:57:48 -04:00
Evan You
ade9bd9daa
release: v3.1.1
2021-06-07 16:26:54 -04:00
Evan You
ac15df46c5
release: v3.1.0
2021-06-07 12:38:42 -04:00
Evan You
71f7c25fbe
release: v3.1.0-beta.7
2021-06-02 16:12:54 -04:00
edison
2c7bd42801
fix(compiler-sfc): fix template expression assignment codegen for script setup let refs ( #3626 )
...
fix #3625
2021-05-28 17:58:46 -04:00
Evan You
aa96a0e88a
release: v3.1.0-beta.6
2021-05-28 16:58:54 -04:00
HcySunYang
9b2e894017
fix(compiler-core): improve the isMemberExpression function ( #3675 )
2021-05-27 21:07:26 -04:00
Evan You
f0eb1978b2
release: v3.1.0-beta.5
2021-05-26 16:06:51 -04:00
Evan You
f1f52300e6
release: v3.1.0-beta.4
2021-05-24 19:16:44 -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
47da92146c
fix(compiler-core): fix whitespace management for slots with whitespace: 'preserve' ( #3767 )
...
fix #3766
2021-05-13 18:24:43 -04:00
Evan You
b663aa8a81
release: v3.1.0-beta.3
2021-05-12 17:37:04 -04:00
HcySunYang
a56ab148fd
fix(compiler-core): bail out to array children when the element has custom directives + only one text child node ( #3757 )
2021-05-12 16:12:32 -04:00
Evan You
99a5ccf6b2
release: v3.1.0-beta.2
2021-05-08 16:59:12 -04:00
Evan You
ed6c5fe903
release: v3.1.0-beta.1
2021-05-08 16:24:34 -04:00
Evan You
61edb700d7
wip: only generate non-scope slot flag when compatConfig is present
2021-05-05 16:36:16 -04:00
Evan You
7a8cee8688
wip: remove v-if key warning as there are legit use cases
2021-05-05 16:35:44 -04:00
Evan You
7f93c76b96
wip: exclude legacy slots from $scopedSlots
2021-05-05 11:06:15 -04:00
Evan You
ae0fb14305
wip: fix native template compat
2021-05-04 18:26:28 -04:00
Evan You
bd3cc4d2c7
wip: tests for compiler compat
2021-04-30 15:50:32 -04:00
Evan You
b4c92ccf6b
wip: move compat test cases + filter tests
2021-04-29 16:58:14 -04:00
Evan You
e486254431
fix(compiler-core): preserve comment content in production when comments option is enabled
2021-04-28 11:22:16 -04:00
Evan You
86703c23a6
wip: ref v-for compat
2021-04-26 17:35:41 -04:00
Evan You
b047a0864c
refactor(compiler): improve whitespace: 'preserve' behavior from #1600
...
- discard leading/ending whitespace inside an element
- condense preserved whitesapce into single space
2021-04-26 11:46:17 -04:00
CodeDaraW
dee3d6ab8b
feat(compiler-core): whitespace handling strategy
2021-04-26 09:44:27 -04:00
Evan You
7dc681c196
wip: filters compat
2021-04-19 12:29:55 -04:00
Evan You
3ea68691e2
wip: inline-template compat
2021-04-17 23:19:40 -04:00
Evan You
1390ece04f
wip: refactor
2021-04-17 22:50:16 -04:00
Evan You
505269405e
wip: plain template tag compat
2021-04-17 22:16:48 -04:00
Evan You
048ac299f3
perf(compiler): skip unncessary checks when parsing end tag
2021-04-17 22:05:18 -04:00
Evan You
2c31227e7c
wip: warn v-bind object ordering
2021-04-17 20:53:55 -04:00
Evan You
bf41354abd
wip: remove unncessary deprecation messages
2021-04-17 16:13:57 -04:00
Evan You
c5c304af14
wip: compiler should default to v3 behavior
2021-04-17 15:55:14 -04:00
Evan You
3528ced0b4
wip: warn key usage of v-if branches
2021-04-17 15:35:44 -04:00
Evan You
ab21468982
wip: warn v-if/v-for co-usage
2021-04-17 14:38:30 -04:00
Evan You
7ceb873783
wip: v-bind.sync compat
2021-04-16 17:11:44 -04:00
Evan You
ad97bbab85
wip: invert compiler compat behavior default during tests
2021-04-16 12:26:17 -04:00
Evan You
bbf708dbe9
wip: support configuring compiler deprecations at runtime + warn invalid deprecation configs
2021-04-16 12:19:12 -04:00
Evan You
79cbf21c3e
wip: generate codeframe for compiler deprecations
2021-04-16 11:51:47 -04:00
Evan You
d974adb327
wip: is usage compat
2021-04-16 11:43:05 -04:00
Evan You
e130c7db23
wip: compiler deprecation config
2021-04-12 19:43:53 -04:00
Evan You
af9e6999e1
feat: support casting plain element to component via is="vue:xxx"
...
In Vue 3's custom elements interop, we no longer process `is` usage on
known native elements as component casting. (ref:
https://v3.vuejs.org/guide/migration/custom-elements-interop.html )
This introduced the need for `v-is`. However, since it is a directive,
its value is considered a JavaScript expression. This makes it awkward
to use (e.g. `v-is="'foo'"`) when majority of casting is non-dynamic,
and also hinders static analysis when casting to built-in Vue
components, e.g. transition-group.
This commit adds the ability to cast a native element to a Vue component
by simply adding a `vue:` prefix:
```html
<button is="vue:my-button"></button>
<ul is="vue:transition-group" tag="ul"></ul>
```
2021-04-12 13:08:07 -04:00
Evan You
422b13e798
wip: testing compiler deprecation warnings
2021-04-12 09:09:00 -04:00
Evan You
f0cf14bcc5
release: v3.0.11
2021-04-01 19:52:45 -04:00
Evan You
7f7dcc9f7d
fix(compiler-sfc): fix wrong scopeId for nested `<script setup>` components
2021-04-01 18:11:04 -04:00
Evan You
ad6c124e6c
release: v3.0.10
2021-03-30 20:05:45 -04:00
Calvin Liang
0fe567abfc
fix(compiler-core): properly transform replaced nodes ( #2927 )
2021-03-29 18:08:10 -04:00
Evan You
f5827fdf78
fix(compiler-sfc): do not resolve assets from setup bindings
...
when not using script setup
fix #3270 , fix #3275
2021-03-29 16:11:38 -04:00
HcySunYang
555b016dcb
fix(compiler-core): allow PascalCase dynamic component tag usage ( #3508 )
...
fix #3507
2021-03-29 15:18:25 -04:00
Evan You
67039b3434
release: v3.0.9
2021-03-27 11:30:12 -04:00
Johnson Chu
e752bddb33
fix(compiler-core): fix slot source location ( #3494 )
2021-03-27 11:20:39 -04:00
Evan You
37c17091fd
fix: ensure backwards compat for pre-compiled sfc components
...
fix #3493
2021-03-27 10:53:45 -04:00
Evan You
9ff70be2b3
release: v3.0.8
2021-03-26 17:35:44 -04:00
Evan You
abd129d845
fix(component): prioritize registered component over implicit self-reference via filename
...
ref: #2827
2021-03-26 10:04:36 -04:00
HcySunYang
ebedcccdc0
fix(compiler-core): allow unicode to appear in identifiers ( #3443 )
...
fix #3440
2021-03-25 17:24:18 -04:00
HcySunYang
7715c49af9
fix(compiler-core): avoid generating useless createVNode helper ( #2938 )
...
close #2739
2021-03-25 17:01:50 -04:00
funkyfun
c8aed13711
chore(types): remove redundant 'undefined' type ( #3484 )
2021-03-25 16:19:02 -04:00
HcySunYang
b4b82159e2
fix(compiler-core): should not condense whitespace in RCDATA text mode ( #3482 )
...
fix #3479
2021-03-25 15:53:03 -04:00
HcySunYang
4bf7ba19bf
fix(compiler-core): detect v-if branch root with comment as dev fragment ( #2785 )
...
fix #2780
2021-03-25 15:43:44 -04:00
HcySunYang
602b58ebd1
fix(compiler-core): fix the detection of forwarded slots with v-if or v-for ( #3353 )
...
fix #3347
2021-03-22 16:34:46 -04:00
Evan You
ff4d4ec249
chore: fix all test cases
2021-03-05 18:28:12 -05:00
Evan You
02cbbb718c
perf: support only attaching slot scope ids when necessary
...
This is done by adding the `slotted: false` option to:
- compiler-dom
- compiler-ssr
- compiler-sfc (forwarded to template compiler)
At runtime, only slotted component will render slot fragments with
slot scope Ids. For SSR, only slotted component will add slot scope Ids
to rendered slot content. This should improve both runtime performance
and reduce SSR rendered markup size.
Note: requires SFC tooling (e.g. `vue-loader` and `vite`) to pass on
the `slotted` option from the SFC descriptoer to the `compileTemplate`
call.
2021-03-05 18:28:12 -05:00
Evan You
f74b16ccfe
fix(compiler): properly bail stringfication for nested slot elements
2021-03-05 18:28:12 -05:00
Evan You
aea88c3280
refactor: fix implementation of SFC :slotted id handling
...
fix #2892
2021-03-05 18:28:12 -05:00
Evan You
1a955e2278
release: v3.0.7
2021-03-01 10:59:29 -05:00
Evan You
d9f91e26f9
release: v3.0.6
2021-02-24 15:19:31 -05:00
Evan You
c69f4ea857
fix(compiler-ssr): avoid duplicated asset imports merged from component slot client branch
...
fix vitejs/vite#2034
2021-02-15 12:12:50 -05:00
Evan You
03360cefa1
fix(compiler-sfc): treat const reactive() bindings as mutable
2021-02-10 11:39:07 -05:00
Evan You
734c65badd
fix(compiler-core): do not mark v-for as stable on const bindings
...
since the source value may be a reactive array
fix vitejs/vite#1956
2021-02-09 11:57:09 -05:00
xiejiahe
1cc8712235
chore: comment initial space ( #3192 ) [skip ci]
...
fix(typo): Comment add spaces.
2021-02-08 12:32:12 +01:00
Evan You
5a5d037dbb
release: v3.0.5
2020-12-30 15:50:28 -05:00
Evan You
338d869c70
test(compiler-core): test expression transform w/ bindingMetadata
2020-12-04 16:46:00 -05:00
edison
47b3652ecd
chore(compiler-core): improve types ( #2428 )
2020-12-04 16:28:26 -05:00
Evan You
a8352506f6
refactor: cache constant check result on transform context
...
also fix edge case for missed createVNode import on static svg nodes
2020-12-03 11:10:40 -05:00
Evan You
ad4d3915d3
fix(compiler-core): fix missing createVNode import on nested v-for
...
fix #2718
2020-12-03 11:03:06 -05:00
Evan You
d067fb2dbb
release: v3.0.4
2020-12-02 17:23:43 -05:00
Evan You
11a76ebd94
chore: fix snapshot
2020-12-01 09:21:39 -05:00
Evan You
e4f09c1419
fix(compiler-core/v-on): handle falsy values when caching v-on handlers
...
fix #2605
2020-11-30 16:30:36 -05:00
Evan You
9db7095962
fix(compiler-core): fix scope var reference check for v-on expressions
...
fix #2564
2020-11-30 15:19:32 -05:00
Evan You
e41b46c396
chore: annotate generated slot flag
2020-11-30 15:19:32 -05:00
Evan You
67d1aac6ae
feat(sfc): allow sfcs to recursively self-reference in template via name inferred from filename
...
e.g. A file named `FooBar.vue` can refer to itself as `<FooBar/>`. This gets rid of the need for the `name` option.
2020-11-30 12:30:51 -05:00
Evan You
a76e58e5fd
build: avoid shipping patch flag name strings in prod
2020-11-27 18:13:04 -05:00
Evan You
3bc2914e32
fix(attr-fallthrough): ensure consistent attr fallthrough for root fragments with comments
...
fix #2549
2020-11-27 18:04:26 -05:00
Evan You
55d99d729e
fix(compiler-core): fix unintended imports in esm-bundler builds
...
fix #2258 , fix #2515
2020-11-27 11:04:15 -05:00
Evan You
7cd85be2db
refactor(compiler-core): reduce slot props check iterations
...
ref: #2490
2020-11-27 10:00:43 -05:00
edison
ef59a30cab
fix(compiler-core): transform kebab case props to camelcase on slots ( #2490 )
...
fix #2488
2020-11-27 09:48:30 -05:00
Evan You
bd6e211287
release: v3.0.3
2020-11-25 11:16:21 -05:00
Evan You
69d5c6887e
wip: update directive scope variable mapping
2020-11-24 19:04:21 -05:00
Evan You
ae2caad740
wip: support resolving directives from setup scope variables by naming convention
...
v-my-dir can be resovled from setup scope variable named "vMyDir".
2020-11-24 19:04:21 -05:00
Evan You
90bdf59f4c
refactor(compiler): better constant hoist/stringify checks
2020-11-20 19:26:07 -05:00
Evan You
8ac2241b22
wip: more consistent compiler-sfc usage + inline mode for ssr
2020-11-20 14:23:09 -05:00
Evan You
4c6078ce25
fix(compiler-core/compiler-sfc): handle destructure assignment expressions
2020-11-18 22:39:08 -05:00
Evan You
4d5242128e
chore: fix tests
2020-11-18 22:34:55 -05:00
Evan You
64160e89cc
wip: ignore non-ref const mutation cases in codegen
2020-11-18 21:16:09 -05:00
Evan You
8567feb2aa
wip: properly handle assignment/update expressions in inline mode
2020-11-18 19:38:38 -05:00
Evan You
4449fc3b9e
refactor: finer grained binding types for setup
2020-11-18 19:38:38 -05:00
Evan You
760443dca6
wip: ensure string template refs work in inline mode
2020-11-18 19:38:38 -05:00
Evan You
cdc9f336fd
wip: new cssVars SSR integration + fix cssVars SSR injection for suspense
2020-11-17 18:54:47 -05:00
Evan You
a67325140b
wip: test case for v-model + inline mode codegen
2020-11-17 15:59:09 -05:00
Evan You
c15bd6235e
wip: generate valid v-model and TS code in script setup inline mode
2020-11-17 12:42:58 -05:00
Evan You
41bb7fa330
feat(compiler-sfc): new SFC css varaible injection implementation
...
ref: https://github.com/vuejs/rfcs/pull/231
2020-11-16 18:27:25 -05:00
Evan You
8ba3a7de40
wip: fix dts tests
2020-11-13 00:12:04 -05:00
Evan You
292a657861
wip: fix runtimeConstant marking
2020-11-12 22:44:18 -05:00
Evan You
0ca9137188
wip: tests for defineContext()
2020-11-12 18:11:25 -05:00
Evan You
128621d6a0
wip: further optimize bindings
2020-11-12 16:11:14 -05:00
Evan You
6a9b56ca60
wip: defineContext()
2020-11-12 14:10:39 -05:00
Evan You
2a4fc32d15
wip: remove unnecessary inlinePropsIdentifier option
2020-11-11 10:36:59 -05:00
Evan You
4e8ef55237
wip: optimize binding access to known imported components
2020-11-10 18:06:38 -05:00
Evan You
4977526a2b
wip: correctly resolve component in setup inline mode
2020-11-10 17:36:06 -05:00
Evan You
3019508e75
wip: fix binding type fallback
2020-11-10 17:31:09 -05:00
Evan You
886ed7681d
feat(compiler-sfc): compileScript inline render function mode
2020-11-10 16:28:34 -05:00
Evan You
3f99e239e0
feat(compiler-sfc): support kebab-case components in `<script setup>` sfc template
2020-11-09 17:22:58 -05:00
Evan You
556560fae3
feat(compiler-sfc): new script setup implementation
...
- now exposes all top level bindings to template
- support `ref:` syntax sugar
2020-10-29 15:03:39 -04:00
Evan You
f2d03a59c6
release: v3.0.2
2020-10-20 16:24:12 -04:00
Hunter
6d2a1cb64d
fix(compiler-core): fix multiline member expression check ( #2436 )
...
fix #2426
2020-10-20 09:31:08 -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
f17f0ddf68
release: v3.0.1
2020-10-15 12:37:21 -04:00
Evan You
dbc29c32e3
build(deps): bump @babel/types from 7.11.5 to 7.12.0
2020-10-15 12:02:20 -04:00
meteorlxy
e2c9ab1991
test(compiler-core): more test cases for baseParse ( #2211 )
2020-10-13 16:03:33 -04:00
ᴜɴвʏтᴇ
692197be33
fix(compiler-core): fix v-if key injection with v-on object syntax ( #2368 )
...
fix #2366
2020-10-13 12:04:52 -04:00
ᴜɴвʏтᴇ
89c5909a6f
fix(compiler-core): allow spaces between if-else branches ( #2305 )
...
fix #2299
2020-10-07 20:57:17 -04:00
Evan You
f9566f00df
test(compiler-core): add test case for v-on event case conversion
2020-10-06 18:31:04 -04:00
shadowings-zy
62f26173ba
fix(runtime-core): use consistent camelCase event casing for render functions ( #2278 )
...
close #2249
2020-10-06 18:28:56 -04:00
Evan You
f4119249f2
fix(compiler-core): consistently remove comment nodes for pre tags in production
...
close #2217
2020-10-05 17:53:34 -04:00
HcySunYang
9499871582
fix(compiler-core): make v-once work with v-if/else-if/else ( #2182 )
...
Partial fix for #2035
2020-10-05 11:58:37 -04:00
meteorlxy
64f44c671a
chore(compiler-core): fix typo in tests ( #2209 )
2020-09-23 12:25:52 +02:00
Evan You
d8c1536ead
release: v3.0.0
2020-09-18 11:28:05 -04:00
Evan You
876ecc8672
release: v3.0.0-rc.13
2020-09-18 01:39:30 -04:00
Evan You
985bd2bcb5
release: v3.0.0-rc.12
2020-09-16 13:50:13 -04:00
Evan You
f2ef7d7c8e
release: v3.0.0-rc.11
2020-09-15 13:15:42 -04:00
Evan You
87ca99e396
chore: bump deps
2020-09-15 13:04:28 -04:00
edison
b29bc0d694
chore(compiler-core): define `child` if necessary. ( #2033 )
2020-09-14 20:56:53 -04:00
Evan You
be946ea549
fix(compiler-core): fix prefixing for `<template v-for>` key expressions
...
fix #2085
2020-09-14 17:04:27 -04:00
Evan You
a096a58e41
fix(compiler-core): fix v-if block handling for components that fail to resolve
...
fix #2058
2020-09-14 12:41:35 -04:00
Evan You
4386653e76
release: v3.0.0-rc.10
2020-09-02 12:41:54 -04:00
Evan You
52e45a9850
fix(v-once): fix v-once usage with v-if and v-for
...
fix #2035
2020-09-02 12:30:37 -04:00