Commit Graph

5050 Commits

Author SHA1 Message Date
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 f22e32e365 feat(compiler-sfc): expose type resolve APIs 2023-04-16 11:11:26 +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 760755f4f8 feat(compiler-sfc): support string/number indexed types in macros 2023-04-15 22:08:39 +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 075498c959 refactor: avoid hard error when inferring runtime type 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 34a007d00d test: refactor resolveType test 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 8451b92a7a wip: cache fileToScope + improve vue file offset 2023-04-15 22:08:39 +08:00
Evan You c93c11710e refactor: improve type resolve error output 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 1c06fe1d02 chore: improve sfc-playground typing + bump repl for 3.3 external type resolve support
close #8051
2023-04-13 15:45:58 +08:00
Evan You 5ff40bb0dc feat(compiler-sfc): support namespace members type in macros 2023-04-13 12:32:52 +08:00
Evan You 3f779ddbf8 feat(compiler-sfc): support string indexed type in macros 2023-04-13 11:21:09 +08:00
Evan You 51773d5d1d refactor: adjust ResolvedElements shape 2023-04-13 10:42:15 +08:00
Evan You 1cfab4c695 feat(compiler-sfc): support limited built-in utility types in macros 2023-04-13 10:28:22 +08:00
Evan You fb8ecc803e feat(compiler-sfc): support mapped types, string types & template type in macros 2023-04-13 09:59:54 +08:00
Evan You d1f973bff8 feat(compiler-sfc): support intersection and union types in macros
close #7553
2023-04-12 21:34:13 +08:00
Evan You a6dedc33ba test: split compileScript macro tests 2023-04-12 16:46:26 +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 b16866d56b chore: update treeshaken deps list 2023-04-11 16:05:00 +08:00
Himself65 c94ef02421
fix(runtime-core): properly merge props and emits options from mixins (#8052)
close #7989
2023-04-10 15:06:21 +08:00
丶远方 2ce23f0e09
chore(reactivity): remove unnecessary type assertions. (#8046) 2023-04-10 14:06:56 +08:00
JayFate 37701a88c0
chore: replace brotli with node:zlib (#8045)
Signed-off-by: JayFate <48240828+JayFate@users.noreply.github.com>
2023-04-10 14:06:28 +08:00
Evan You 19e17a951c perf(compiler): use source-map-js 2023-04-09 16:50:20 +08:00
Evan You 681ac7c896 release: v3.3.0-alpha.9 2023-04-08 13:33:46 +08:00
Evan You 32b91dbd87 workflow: remove yarn usage in release script 2023-04-08 13:28:55 +08:00
Evan You e4a2d11f82 chore: move ts-ignore comment in release script 2023-04-08 13:23:06 +08:00
Evan You 9d50e34ad3 chore: lock puppeteer version 2023-04-08 13:09:23 +08:00
Evan You 851635157f chore: make vercel silent 2023-04-08 12:28:30 +08:00
三咲智子 Kevin Deng 14f3d747a3
feat(sfc): introduce `defineModel` macro and `useModel` helper (#8018) 2023-04-08 12:13:05 +08:00
Evan You 3b02c27e6d chore: bump repl for sfc playground 2023-04-06 18:10:10 +08:00
Evan You e40755d195 workflow: use environment for canary release workflow 2023-04-06 17:35:45 +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
丶远方 cac1512390
chore(reactive): remove unref type assertion (#8007) 2023-04-06 17:15:27 +08:00
Cloyd Lau cbe3d42ed3
chore: fix wrong placeholder in issue template (#7918) [ci skip] 2023-04-06 17:14:16 +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
Evan You 5531ff4eb0 chore: bump repl to handle legacy playground import maps 2023-04-06 13:02:58 +08:00
Evan You 6e540d6ac7 chore: enable cors for sfc as temporary fix 2023-04-06 13:02:55 +08:00