Commit Graph

6093 Commits

Author SHA1 Message Date
Jevon e640ec6088
fix(compiler-vapor): v-on for component support `$event` argument (#177)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-04-16 16:46:22 +08:00
三咲智子 Kevin Deng 9e0cd20da0
feat(compiler-vapor): support v-on for component 2024-04-15 04:43:37 +08:00
三咲智子 Kevin Deng 3787a430f6
test(compiler-vapor): add props & emits for component 2024-04-15 04:43:26 +08:00
三咲智子 Kevin Deng e95811887a
fix(compiler-vapor): resolve component & unit tests 2024-04-15 04:43:23 +08:00
三咲智子 Kevin Deng dce9b61ae1
refactor(runtime-vapor): extract firstEffect 2024-04-15 04:41:56 +08:00
Doctor Wu a49b6f91ca
feat(compiler-vapor): support v-on for component (#175)
Co-authored-by: Kevin Deng 三咲智子 <sxzz@sxzz.moe>
2024-04-15 02:40:59 +08:00
三咲智子 Kevin Deng bdc43226a0
refactor(runtime-vapor): export function 2024-04-14 17:43:22 +08:00
Rizumu Ayaka 07926564fc
feat(runtime-vapor): `createSlot` (#170) 2024-04-14 17:41:58 +08:00
Jevon a0bd0e9c5f
feat(compiler-vapor): ref for `v-for` (#167)
Co-authored-by: Rizumu Ayaka <rizumu@ayaka.moe>
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-04-13 02:54:34 +08:00
三咲智子 Kevin Deng 98bae0c4a9
refactor(compiler-vapor): group directive 2024-04-07 14:00:36 +08:00
Rizumu Ayaka 9a33d79963
feat(runtime-vapor): attach current instance to render slot (#168) 2024-04-06 22:10:45 +08:00
ubugeeei db140a1e37
feat(runtime-vapor): setup helpers useAttrs & useSlots (#172) 2024-04-01 03:51:37 +08:00
Jevon 9f8bf4fc82
fix(compiler-core): generate `updateEffect` for nested v-for (#171)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-03-29 21:36:19 +08:00
ubugeeei ba17fb9910
fix(runtime-vapor): trigger updated hooks across components (#165) 2024-03-24 20:30:14 +08:00
ubugeeei 78f74ce241
feat(runtime-vapor): component slot (#143)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-03-24 20:29:00 +08:00
Doctor Wu bd888b9b1e
feat(runtime-vapor): add app-level error handler (#160)
Co-authored-by: Kevin Deng 三咲智子 <sxzz@sxzz.moe>
2024-03-23 00:38:34 +08:00
ubugeeei 5c9a15140d
feat(runtime-vapor): provide and inject (#158)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-03-22 23:41:16 +08:00
Jevon ed6b1718d2
fix(compiler-vapor): SET_REF operation should be registered last (#159)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-03-22 23:33:55 +08:00
Doctor Wu 9a2c12e3cd
feat(runtime-vapor): implement setupContext (#157) 2024-03-22 23:28:18 +08:00
Doctor Wu 38e167ceb8
feat: implement inheritAttrs (#153)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-03-19 00:24:58 +08:00
FireBushtree 6fc5cfbc65
test(runtime-vapor): delegate events (#147) 2024-03-18 22:00:06 +08:00
Rizumu Ayaka 2661cb2474
refactor(reactivity): remove middleware (#156) 2024-03-18 21:57:18 +08:00
三咲智子 Kevin Deng 268a2c4ae6
chore: add vapor team 2024-03-18 20:31:19 +08:00
Rizumu Ayaka 64e83689a0
refactor(runtime-vapor): `renderEffect` based on `ReactiveEffect` + remove `renderWatch` (#155) 2024-03-18 20:13:40 +08:00
Rizumu Ayaka 46761880e9
refactor(baseWatch): rename onEffectCleanup to onWatcherCleanup and getCurrentEffect to getCurrentWatcher for clarity 2024-03-17 22:39:11 +08:00
Rizumu Ayaka db4040d13a
refactor(scheduler): use bitwise flags for scheduler jobs + move scheduler into reactivity
related: https://github.com/vuejs/core/pull/10407
2024-03-17 22:33:36 +08:00
Rizumu Ayaka 174118ae40 Merge remote-tracking branch 'upstream/main' 2024-03-17 22:14:01 +08:00
Kevin Deng 三咲智子 463b47e83d
feat: create component & component lifecycle/props/attrs (#151) 2024-03-16 18:54:36 +08:00
三咲智子 Kevin Deng 5d15314c4e
refactor(runtime-vapor): remove created & beforeCreate hooks 2024-03-16 03:32:19 +08:00
三咲智子 Kevin Deng d282af9430
refactor(compiler-vapor): check reserved prop on compiler only 2024-03-15 22:26:03 +08:00
三咲智子 Kevin Deng 808d17dbd1
refactor(runtime-vapor): split create component & render 2024-03-14 16:32:22 +08:00
三咲智子 Kevin Deng 7e0f15fa7c
refactor(runtime-vapor): re-organize 2024-03-14 16:02:46 +08:00
三咲智子 Kevin Deng b4da5a8da6
feat(runtime-vapor): support v-bind for event 2024-03-14 14:25:54 +08:00
三咲智子 Kevin Deng b4aa5f98d7
Merge remote-tracking branch 'upstream/main' 2024-03-14 14:17:25 +08:00
Jevon 9412c20531
feat: support v-on="obj" (#149)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-03-14 14:15:45 +08:00
丶远方 384591a2a1
types: make instrumentations' types more succinct (#8558)
Co-authored-by: Haoqun Jiang <haoqunjiang@gmail.com>
2024-03-13 22:57:33 +08:00
chenfan d46df6bdb1
perf: add `__NO_SIDE_EFFECTS__` comments (#9053)
Co-authored-by: Haoqun Jiang <haoqunjiang@gmail.com>
2024-03-13 21:48:45 +08:00
三咲智子 Kevin Deng a148b87e4b
ci: enable ci for minor branch 2024-03-13 21:47:26 +08:00
丶远方 9e8ac0c367
chore(playground): save `tsconfig.json` to the root directory; update Node.js version requirement (#9086)
Co-authored-by: Haoqun Jiang <haoqunjiang@gmail.com>
2024-03-12 21:46:26 +08:00
三咲智子 Kevin Deng 421eba3e01
refactor(compiler-vapor): simplify genExpression 2024-03-12 15:50:23 +08:00
Rizumu Ayaka c79629f0ef
fix(compiler-vapor): member expression with assignment (#146) 2024-03-12 15:46:30 +08:00
renovate[bot] 3648498ae5
chore(deps): update all non-major dependencies (#10450)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-11 18:05:11 +08:00
renovate[bot] cc1626cd6d
chore(deps): update dependency puppeteer to ~22.4.1 (#10451)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-11 17:56:34 +08:00
renovate[bot] a3828239c2
chore(deps): update build (#10490)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-11 17:55:46 +08:00
renovate[bot] de0336a7c3
fix(deps): update compiler (#10492)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-11 16:08:51 +08:00
renovate[bot] fcd9f626fe
chore(deps): update lint (#10491)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-11 16:07:51 +08:00
Evan You 9a936aaec4 feat(reactivity): add failSilently argument for onScopeDispose 2024-03-07 17:54:18 +08:00
Evan You ef2eaef3aa refactor: inline recordEffectScope 2024-03-07 17:53:10 +08:00
三咲智子 Kevin Deng ebd3710d72
refactor(runtime-vapor): don't record metadata for `on` 2024-03-07 17:44:42 +08:00
三咲智子 Kevin Deng 280b8cbdab
refactor: remove getCurrentEffect, add effect flag for on
Use the effect flag to distinguish whether it is in the effect of a v-for block.
2024-03-07 17:41:07 +08:00