Commit Graph

280 Commits

Author SHA1 Message Date
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
edison c568778ea3
fix(compiler-sfc): avoid gen useCssVars when targeting SSR (#6979)
close #6926
2023-10-21 12:11:41 +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
Evan You ae7453f0f1 chore: use moduleResolution: bundler + shim estree-walker 2023-06-23 08:54:25 +08:00
Vadim 23c81691d9
chore: fix typo (#7416) 2023-06-10 17:10:20 +08:00
三咲智子 Kevin Deng 8ec73a3aea
fix(compiler-sfc): don't hoist regexp literial (#8300) 2023-05-18 11:09:40 +08:00
LiuSeen 8ccc570022
chore(compileScript): remove unused methods (#8211) 2023-05-08 14:43:39 +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 7b2ff1e207 chore: remove deprecated ref sugar warning 2023-04-21 15:54:51 +08:00
Evan You 4e028b9669 feat(compiler-sfc): support specifying global types for sfc macros
ref: https://github.com/vuejs/core/pull/8083#issuecomment-1508468713
2023-04-16 15:49:41 +08:00
Evan You 6b13e04b4c feat(compiler-sfc): mark props destructure as experimental and require explicit opt-in 2023-04-15 22:09:08 +08:00
Evan You 8d8ddd686c feat(compiler-sfc): expose type import deps on compiled script block 2023-04-15 22:08:39 +08:00
Evan You a9f5e14c7c chore: comments [ci skip] 2023-04-15 22:08:39 +08:00
Evan You 3982bef533 feat(compiler-sfc): support resolving type imports from modules 2023-04-15 22:08:39 +08:00
Evan You 8aa4ea81d6 feat(compiler-sfc): support relative imported types in macros 2023-04-15 22:08:39 +08:00
Evan You b2cdb2645f refactor(compiler-sfc): rework macro type resolution 2023-04-11 23:00:28 +08:00
Evan You ae5a9323b7 refactor(compiler-sfc): split normal script logic 2023-04-11 16:05:00 +08:00
Evan You 3da1bb36b1 refactor(compiler-sfc): split all macros 2023-04-11 16:05:00 +08:00
Evan You c52157c87d refactor(compiler-sfc): split more logic 2023-04-11 16:05:00 +08:00
Evan You 0232c00e11 refactor(compiler-sfc): simplify props destructure arguments 2023-04-11 16:05:00 +08:00
Evan You 5a529bbf23 refactor(compiler-sfc): extract defineEmits logic 2023-04-11 16:05:00 +08:00
Evan You 9f2ca5155e refactor(compiler-sfc): extract processDefineModel, move main magic string instance to context 2023-04-11 16:05:00 +08:00
Evan You 9f5692e052 refactor(compiler-sfc): collapse genRuntimeProps logic 2023-04-11 16:05:00 +08:00
Evan You d0ac57872c refactor(compiler-sfc): extract more defineProps logic 2023-04-11 16:05:00 +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
Evan You acd7eb22cf refactor(compiler-sfc): (wip) split compileScript logic, use context, move defineProps 2023-04-11 16:05:00 +08:00
Evan You 19e17a951c perf(compiler): use source-map-js 2023-04-09 16:50:20 +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
Evan You b2c874e3b9 refactor(compiler-sfc): move related files into separate directories 2023-04-05 16:35:10 +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 59e828448e
feat(reactivity): improve support of getter usage in reactivity APIs (#7997) 2023-04-02 10:17:51 +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 566748c1ed chore: remove unused param 2023-03-31 08:58:03 +08:00
Evan You 4af5d1b075 feat(sfc): revert withDefaults() deprecation
In some cases, the user still needs access to the full props object,
in such cases withDefaults() is still needed.
2023-03-31 08:53:15 +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
三咲智子 Kevin Deng ba4cec31b9
fix(compiler-sfc): infer runtime type in defineProps (#7972) 2023-03-30 14:49:28 +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
Evan You e10a89e608 fix(compiler-sfc): fix function default value handling w/ props destructure 2023-03-29 22:21:27 +08:00
Evan You 1a04fba10b fix(compiler-sfc): infer object type for empty type literal 2023-03-29 21:01:52 +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
Evan You 1bde9fbc91 chore: fix accidentally replaced comments [ci skip] 2023-03-28 21:22:11 +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
三咲智子 Kevin Deng 93f77292c9
fix(compiler-sfc): disallow `expose` property in `defineOptions` (#7967) 2023-03-28 17:32:37 +08:00