三咲智子 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
三咲智子 Kevin Deng
5b2bd1df78
feat(compiler-sfc): support import attributes and `using` syntax ( #8786 )
2023-12-08 15:22:27 +08:00
Evan You
e12b10ac3e
chore: Merge branch 'main' into minor
2023-12-04 23:17:41 +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
edison
5199a12f88
fix(cssVars): cssVar names should be double-escaped when generating code for ssr ( #8824 )
...
close #7823
2023-11-30 18:35:20 +08:00
三咲智子 Kevin Deng
79b8a0905b
feat!: remove reactivity transform ( #9321 )
...
BREAKING CHANGE: Reactivity Transform was marked deprecated in 3.3 and is now removed in 3.4. This change does not require a major due to the feature being experimental. Users who wish to continue using the feature can do so via the external plugin at https://vue-macros.dev/features/reactivity-transform.html
2023-11-21 18:06:42 +08:00
edison
b39fa1f815
fix(compiler-sfc): fix dynamic directive arguments usage check for slots ( #9495 )
...
close #9493
2023-11-06 17:46:48 +08:00
三咲智子 Kevin Deng
24db9516d8
fix(compiler-sfc): don't hoist props and emit ( #8535 )
...
fix #7805
close #7812
2023-07-12 11:03:14 +08:00
Artyom Tuchkov
e404a699f4
fix(compiler-sfc): handle dynamic directive arguments in template usage check ( #8538 )
...
close #8537
2023-07-11 18:38:27 +08:00
vaakian X
776ebf25b2
fix(compiler-sfc): fix using imported ref as template ref during dev ( #7593 )
...
close #7567
2023-07-11 17:26:31 +08:00
白雾三语
ecbd42a144
fix(compiler-sfc): parses correctly when inline mode is off ( #8337 )
...
close #6088
2023-05-18 13:07:08 +08:00
Evan You
a370e8006a
perf(compiler-sfc): infer ref binding type for more built-in methods
2023-04-25 09:29:30 +08:00
Evan You
a6dedc33ba
test: split compileScript macro tests
2023-04-12 16:46:26 +08:00
Evan You
fe9760188d
refactor(compiler-sfc): remove useless type generation
...
we are no longer type-checking generated code
2023-04-11 16:05:00 +08:00
三咲智子 Kevin Deng
14f3d747a3
feat(sfc): introduce `defineModel` macro and `useModel` helper ( #8018 )
2023-04-08 12:13:05 +08:00
三咲智子 Kevin Deng
f7f4624191
fix(compiler-sfc): fix binding type for constants when hoistStatic is disabled ( #8029 )
2023-04-06 17:19:00 +08:00
-isum
3ccbea08e0
fix(compiler-sfc): accept `StringLiteral` node in `defineEmit` tuple syntax ( #8041 )
...
close #8040
2023-04-06 17:13:34 +08:00
三咲智子 Kevin Deng
955752951e
fix(compiler-sfc): skip empty `defineOptions` and support TypeScript type assertions ( #8028 )
2023-04-05 17:33:29 +08:00
三咲智子 Kevin Deng
5a2f5d59cf
feat(types/slots): support slot presence / props type checks via `defineSlots` macro and `slots` option ( #7982 )
2023-04-03 16:49:16 +08:00
Evan You
482f2e3434
fix(compiler-sfc): use dynamic defaults merging for methods with computed keys
...
ref #7113
2023-03-31 09:08:23 +08:00
Evan You
fe619443d2
feat(compiler-sfc): support arbitrary expression as withDefaults argument
...
ref #6459
2023-03-31 09:04:27 +08:00
Evan You
f5971468e5
refactor(compiler-sfc): remove unnecessary emits type codegen
...
This is no longer necessary as we no longer recommend type checking generated code
2023-03-30 20:06:11 +08:00
Evan You
ef73ea53ea
feat(compiler-sfc): codegen support for defineEmits() short syntax (followup of #7992 )
2023-03-30 19:59:07 +08:00
Evan You
71635be68d
feat(compiler-sfc): support generating variable instead of default export in compileScript
2023-03-30 16:58:41 +08:00
Evan You
a94072dd2c
fix(compiler-sfc): fix defineExpose() codegen regression from #7949
2023-03-29 20:31:25 +08:00
三咲智子 Kevin Deng
63ad77f6f6
feat(runtime-core): add skipCheck for prop ( #7548 )
2023-03-28 22:29:54 +08:00
三咲智子 Kevin Deng
c839129ab9
fix(compiler-sfc): avoid codegen conflict with user variable named `expose` ( #7949 )
...
rename `expose` to `__expose` to avoid duplicate identifier
relate #7890
2023-03-28 17:34:23 +08:00
Evan You
eded94712e
feat(compiler-sfc): improve runtime props inference for enum
2023-03-28 17:29:31 +08:00
Evan You
5fb406e3e1
fix(compiler-sfc): properly handle unknown types in runtime prop inference
...
fix #7511
2023-03-28 17:15:25 +08:00
Evan You
6f5698c932
Revert "fix(compiler-sfc): infer correct type for enums"
...
This reverts commit 2e074a7009
.
2023-03-28 16:55:19 +08:00
Evan You
2e074a7009
fix(compiler-sfc): infer correct type for enums
...
fix #7511
2023-03-28 16:39:13 +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
d60e58c9f6
fix(compiler-sfc): fix edge case of default export call with no args ( #7536 )
...
closes #7534
2023-03-28 16:27:34 +08:00
三咲智子 Kevin Deng
336a3d7b91
fix(compiler-sfc): properly remove comma of multiple macros in the same declaration ( #7423 )
...
closes #7422
reverts #6778
2023-03-28 16:23:39 +08:00
三咲智子 Kevin Deng
9f5e20ccff
fix(compiler-sfc): allow `<script>` with lang='js' ( #7398 )
2023-03-28 15:48:41 +08:00
Evan You
4355d2492d
fix(compiler-sfc): handle more TS built-in utilities in defineProps inference
2023-03-28 15:41:24 +08:00
三咲智子 Kevin Deng
151a8ad6b9
fix(compiler-sfc): infer TSIntersectionType in defineProps ( #7394 )
2023-03-28 15:40:03 +08:00
三咲智子 Kevin Deng
1b69d5f2f4
fix(compiler-sfc): unwrap TS node for defineProps ( #7340 )
2023-03-28 15:22:01 +08:00
三咲智子 Kevin Deng
6391daf658
fix(compiler-sfc): infer TS Extract&Exclude runtime type ( #7339 )
...
closes #7337
closes #6252
2023-03-28 15:19:14 +08:00
三咲智子 Kevin Deng
3a7572cdb2
fix(compiler-sfc): infer function prop type from type literal w/ callable signature ( #7119 )
2023-03-28 11:59:21 +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
三咲智子 Kevin Deng
bcf5841dde
feat(compiler-sfc): add defineOptions macro ( #5738 )
2023-03-28 10:43:51 +08:00
edison
30399d46b1
fix(compiler-sfc): support resolving type declaration from normal script ( #5831 )
...
fix #5830
2023-02-01 04:24:50 -05:00
三咲智子 Kevin Deng
4e5d9cdb82
refactor(compiler-sfc): drop Function prop type when no static default value ( #7125 )
2022-11-13 20:15:17 -05:00
三咲智子 Kevin Deng
584eae60d1
fix(compiler-sfc): always generate runtime prop type for Function ( #7112 )
...
fix #7111
2022-11-13 19:36:03 -05:00
Evan You
0594400980
fix(sfc): also generate getter for import bindings during dev
2022-11-10 17:32:06 +08:00
Evan You
5a3d45ae29
fix(sfc): ensure consistent dev/prod behavior for non-reactive variables declared in `<script setup>`
...
fix #5655
2022-11-10 17:02:45 +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
三咲智子 Kevin Deng
8a882ce0a1
fix(compiler-sfc): handle method shorthand syntax in withDefaults ( #6972 )
...
fix #6971
2022-11-08 22:12:54 -05:00