Commit Graph

186 Commits

Author SHA1 Message Date
Evan You c73ee16345
refactor: remove runtime-shared 2024-12-04 13:50:54 +08:00
Evan You 72d82353ee
refactor: make core warning and errorHandling vdom/vapor generic 2024-12-03 21:43:18 +08:00
Evan You 783d8b4d0d
refactor: reuse props logic from core 2024-12-03 16:48:28 +08:00
Evan You b1260e0dd6
Merge remote-tracking branch 'upstream/main' 2024-11-11 17:05:52 +08:00
YangLGggggggggg 9da1ac1565
fix(runtime-core): fix required prop check false positive for kebab-case edge cases (#12034)
close #12011
2024-10-11 11:02:58 +08:00
三咲智子 Kevin Deng b8713589de
Merge remote-tracking branch 'upstream/main' 2024-09-22 02:42:52 +08:00
山吹色御守 9eca65ee98
fix(types): correct type inference of all-optional props (#11644)
fix #11733
fix vuejs/language-tools#4704
2024-09-20 20:36:57 +08:00
三咲智子 Kevin Deng 594cb1412d
Merge remote-tracking branch 'upstream/main' 2024-09-17 10:33:35 +08:00
Evan You 40193696b3
chore(build): use /*@__PURE__*/ annotation consistently 2024-09-04 20:24:33 +08:00
三咲智子 Kevin Deng 4468a2bea8
Merge tag 'v3.5.0-beta.1' 2024-08-09 00:55:35 +08:00
Kevin Deng 三咲智子 928af5fe2f
refactor(types): enable `isolatedDeclarations` (#11178) 2024-08-08 23:05:21 +08:00
Evan You 63689ed776
fix(custom-element): reflect prop default value on custom element
close #9006
close #10537
2024-08-07 02:51:29 +08:00
三咲智子 Kevin Deng d23095e866
Merge tag 'v3.5.0-alpha.5' 2024-08-06 17:39:59 +08:00
Evan You f35080daf5
chore: Merge branch 'main' into minor 2024-07-31 16:49:22 +08:00
skirtle 5680142e68
perf(runtime-core): improve efficiency of normalizePropsOptions (#11409)
close #9739
2024-07-29 21:47:23 +08:00
三咲智子 Kevin Deng a8248cf152
Merge remote-tracking branch 'upstream/minor' 2024-07-19 18:52:32 +08:00
Evan You f15ba2c2e2
chore: Merge branch 'main' into minor 2024-07-17 17:32:31 +08:00
skirtle b0aa234e5e
fix(runtime-core): use separate prop caches for components and mixins (#11350)
Co-authored-by: Red Huang <gcaaa31928@gmail.com>

close #7998
2024-07-15 21:56:37 +08:00
三咲智子 Kevin Deng 639c847c0c
refactor(runtime-shared): move `Data` 2024-05-11 23:14:26 +08:00
三咲智子 Kevin Deng fb58e65d3d
Merge remote-tracking branch 'upstream/minor' 2024-04-29 17:50:30 +09:00
Evan You 75c8cf63a1
feat(types): provide internal options for directly using user types in language tools (#10801) 2024-04-27 11:48:37 +08:00
三咲智子 Kevin Deng 98b701c82c
Merge remote-tracking branch 'upstream/main' 2024-04-18 14:48:04 +08:00
三咲智子 Kevin Deng b8c609f437
Merge remote-tracking branch 'upstream/minor' 2024-04-18 14:43:54 +08:00
Evan You 6df53d85a2
fix(runtime-core): use same internal object mechanism for slots
close #10709
2024-04-16 22:47:24 +08:00
Evan You ca84316bfb perf(ssr): optimize setup context creation for ssr in v8 2024-04-12 16:02:52 +08:00
Evan You 6af733d68e perf: optimize component props/slots internal object checks 2024-04-12 14:41:03 +08:00
三咲智子 Kevin Deng 7fd7742639
Merge remote-tracking branch 'upstream/main' 2024-02-14 14:46:29 +08:00
João Carmona 603a1e1f5a
perf(runtime): improve `getType()` GC and speed (#10327) 2024-02-13 11:54:59 +08:00
三咲智子 Kevin Deng ab1121e512
Merge remote-tracking branch 'upstream/main' 2024-02-10 13:05:19 +08:00
Evan You 77a804b1d0 fix(dx): warn against reserved keys as prop name
close #10281
2024-02-09 08:47:06 +08:00
三咲智子 Kevin Deng af9f892afa
Merge remote-tracking branch 'upstream/main' 2024-01-14 23:33:08 +08:00
Evan You 7976f7044e refactor(runtime-core): safer currentInstance reset 2024-01-09 07:22:13 +08:00
Rizumu Ayaka a82d070890
Merge remote-tracking branch 'upstream/minor' 2023-12-29 21:03:21 +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
三咲智子 Kevin Deng 41a7079493
refactor: extract Data 2023-12-07 01:55:00 +08:00
nandi95 8e27692029
feat(runtime-core): provide full props to props validator functions (#3258) 2023-12-05 17:14:17 +08:00
ZHAO Jin-Xiang fff7b864f4
feat: use enum to replace const enum (#9261)
close #1228
2023-11-29 12:24:50 +08:00
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
skirtle a5491e1cdd
dx(runtime-core): warn when the prop type is `[]` (#7608) 2023-11-10 14:32:10 +08:00
Evan You bff63c5498 feat(types): provide ExtractPublicPropTypes utility type
ref #5272
close #8168
2023-05-02 11:06:32 +08:00
三咲智子 Kevin Deng 14f3d747a3
feat(sfc): introduce `defineModel` macro and `useModel` helper (#8018) 2023-04-08 12:13:05 +08:00
Evan You e10a89e608 fix(compiler-sfc): fix function default value handling w/ props destructure 2023-03-29 22:21:27 +08:00
三咲智子 Kevin Deng 63ad77f6f6
feat(runtime-core): add skipCheck for prop (#7548) 2023-03-28 22:29:54 +08:00
Evan You 6213b73cd2 build: custom const enum processing 2023-02-03 09:54:15 +08:00
白雾三语 620327d527
fix(runtime-core): ensure prop type validation warning shows custom class names (#7198)
* fix(runtime-core): 

* fix(runtime-core): update

* fix(runtime-core): update reg

* test(runtime-core): add test case for warnings about prop type mismatches

Co-authored-by: Thorsten Luenborg <t.luenborg@googlemail.com>
2022-11-25 20:52:39 +01:00
Thorsten Lünborg 54b6ba32ca
fix(runtime-core): ensure props definition objects are not mutated during props normalization (close: #6915) (#6916) 2022-10-22 11:20:02 +02:00
Yaroslav Sych 96eb745254
fix(hmr): fix HMR for nested non-SFC components (#4077) 2022-08-30 02:42:22 -04:00
Daniel Roe c3465c1e88
fix(runtime-core): only set cache for object keys (#6266) 2022-08-28 23:10:16 -04:00
Cédric Exbrayat 9ecee16f89
chore: add no-debugger eslint rule (#5906) 2022-05-12 19:10:00 -04:00
Johnson Chu c901dca5ad
feat(types): avoid props JSDocs loss by `default` option (#5871) 2022-05-11 07:37:49 -04:00