Commit Graph

5815 Commits

Author SHA1 Message Date
Evan You cad7f0e583
wip(vapor): improve v-for codegen + minor optimization 2025-01-31 13:14:16 +08:00
Evan You 2b0731a43d
test(vapor): add test cases for v-for destructure with rest and default value 2025-01-31 11:24:00 +08:00
Evan You a13db00c59
chore: mark test as todo 2025-01-30 22:45:41 +08:00
Evan You 34a0ad7499
wip(vapor): optimize v-for getItem 2025-01-30 22:36:41 +08:00
Evan You c89e01efbf
wip(vapor): support default values in v-for destructure 2025-01-30 21:51:48 +08:00
Evan You 95cf749f8b
wip(vapor): support rest elements in v-for destructure 2025-01-30 21:15:25 +08:00
Evan You 5d88c53cd3
wip(compiler-vapor): support expressions in idMap 2025-01-30 20:45:44 +08:00
Evan You 1ff6b136db
refactor: remove prefixIdentifier and mode usage in compiler-vapor
vapor compilation always assume module mode + prefixIdentifier: true
2025-01-30 20:10:40 +08:00
Evan You fca1aef896
wip: v-for destructure expression rewrite (part 1) 2025-01-30 20:06:41 +08:00
Evan You e49c5a17da
test(vapor): enable more test cases 2025-01-30 10:12:36 +08:00
Evan You 6979952613
refactor(reactivity): improve shallowRef treeshaking 2025-01-29 21:35:13 +08:00
Evan You 181d3403f7
wip(vapor): v-for 2025-01-29 19:07:40 +08:00
Evan You e6ba91cfac
perf: avoid now() overhead during dev measure calls 2025-01-29 15:53:20 +08:00
Evan You 1e9062c075
refactor(reactivity): avoid setting up debug flags on falsy onTrigger value 2025-01-29 15:45:54 +08:00
Evan You 674151c9b9
chore: Merge branch 'minor' into vapor 2025-01-29 15:37:54 +08:00
edison 568e824200
fix(runtime-vapor): properly mount component only with template in production mode (#12727)
Co-authored-by: Evan You <evan@vuejs.org>
2025-01-29 12:30:00 +08:00
edison 733d6fc13d
test: update test cases (#12678) 2025-01-29 12:13:42 +08:00
edison 7b222990ae
test(runtime-vapor): port tests from rendererComponent.spec.ts (#12677) 2025-01-29 12:12:52 +08:00
edison 139448556d
refactor(runtime-core): useModel work with vapor mode (#12666) 2025-01-29 12:12:44 +08:00
Evan You 8008509aac
refactor: fix type errors 2025-01-29 12:08:32 +08:00
edison fd2917c8b6
fix(runtime-vapor): properly handle dynamic slot work with v-if (#12660) 2025-01-29 10:21:30 +08:00
edison b6d539997b
fix(runtime-vapor): properly normalize emits options if emits is an array (#12614) 2025-01-28 17:04:48 +08:00
edison 0b7f508432
refactor(runtime-vapor): cache event handlers on element (#12610) 2025-01-28 17:03:42 +08:00
daiwei edc79e7052 Merge branch 'main' into minor 2025-01-24 09:23:17 +08:00
Tycho 29216853d4
chore(compiler-sfc): remove unused variable (#12750) 2025-01-21 09:28:04 +08:00
renovate[bot] 0f12fb7ea9
fix(deps): update dependency postcss to ^8.5.1 (#12747)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-20 09:43:23 +08:00
renovate[bot] 50b7aa17e9
chore(deps): update all non-major dependencies (#12742)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-20 08:41:00 +08:00
edison 82da43d167
fix(test): use LaunchOptions instead of PuppeteerLaunchOptions (#12734)
ref puppeteer/puppeteer#13426
2025-01-17 09:26:12 +08:00
Johnson Chu 9d651e2774
refactor(reactivity): ports alien-signals 1.0.0 (#12570) 2025-01-15 11:19:27 +08:00
edison c950b4c0c4
chore(deps): manually update puppeteer + @vitest/eslint-plugin (#12706) 2025-01-14 10:09:08 +08:00
renovate[bot] 2d6bcc4537
chore(deps): update all non-major dependencies (#12685)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-12 09:57:53 +08:00
renovate[bot] 23d2f453d1
chore(deps): update dependency minimatch to v10 (#12691)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-12 09:38:25 +08:00
Evan You 22dcbf3e20
fix(reactivity): ensure multiple effectScope on() and off() calls maintains correct active scope
close #12631
close #12632

This is a combination of changes from both 8dec243 and #12641
2025-01-08 18:07:44 +08:00
edison 679cbdf480
fix(reactivity): ensure multiple effectScope `on()` and `off()` calls maintains correct active scope (#12641) 2025-01-08 18:03:40 +08:00
edison 20cd429766
fix(compiler-vapor): once modifier work with component event (#12606) 2025-01-08 15:19:08 +08:00
edison 58b49749c7
refactor(compiler-vapor): cache multiple access to the same expression (#12568) 2025-01-08 15:05:48 +08:00
edison 757b3df56e
refactor(compiler-vapor): cache inline handlers passed to component (#12563) 2025-01-08 14:35:09 +08:00
edison ef6986fbc3
refactor(compiler-vapor): move operation with constant values out of renderEffect (#12547) 2024-12-16 14:30:38 +08:00
edison bd130019d1
refactor(vapor): import v-o withModifiers or withKeys on demand (#12539) 2024-12-16 14:28:56 +08:00
edison e79a6df093
fix(vapor/defineProps): register type bindings before compile template + props destructure work with vapor (#12545) 2024-12-16 14:18:27 +08:00
renovate[bot] d07cdead2c
chore(deps): update all non-major dependencies (#12557)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-16 10:48:44 +08:00
LiquidAssContainer 11c053a542
fix(typos): fix comments referencing transformElement.ts (#12551)[ci-skip] 2024-12-16 10:43:01 +08:00
Evan You 6c0e8a8f24
wip(vapor): handle slot fallback when content changes 2024-12-14 22:17:16 +08:00
Evan You 4318129b96
wip(vapor): createIf 2024-12-14 20:37:43 +08:00
Evan You bcb9209c4c
wip(vapor): optimize unmounted children removal 2024-12-14 16:28:05 +08:00
Evan You 76e8d2c4d0
wip(vapor): init feature flags + set devtools when creating vapor app 2024-12-14 16:25:35 +08:00
Evan You c07734debf
wip(vapor): further tweak single root attr fallthrough behavior 2024-12-13 20:23:20 +08:00
Evan You f9a6e8cd58
wip(vapor): handle class / style merging behavior 2024-12-13 18:00:58 +08:00
Evan You 4160b6d567
test(vapor): fix templateRef compiler tests 2024-12-13 09:39:29 +08:00
Evan You 023f72f049
test(vapor): useTemplateRef tests 2024-12-13 09:37:49 +08:00