Commit Graph

852 Commits

Author SHA1 Message Date
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
daiwei edc79e7052 Merge branch 'main' into minor 2025-01-24 09:23:17 +08:00
Johnson Chu 9d651e2774
refactor(reactivity): ports alien-signals 1.0.0 (#12570) 2025-01-15 11:19:27 +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
Evan You ac43b11897
fix(reactivity): toRefs should be allowed on plain objects 2024-12-09 21:47:55 +08:00
Evan You f2b69d79ca
chore: remove non-function-related changes from vapor branch 2024-12-09 09:03:43 +08:00
Evan You ccd3f3f5c6
refactor(reactivity): only setup onTrigger debug flags on assign 2024-12-03 23:26:30 +08:00
Johnson Chu 313dc61bef
perf(reactivity): refactor reactivity core by porting alien-signals (#12349) 2024-12-02 21:05:12 +08:00
三咲智子 Kevin Deng f6ce3f9d43
Merge tag 'v3.5.13' 2024-11-16 02:48:30 +08:00
Evan You 6eb29d345a
release: v3.5.13 2024-11-15 22:45:28 +08:00
zhangenming d637bd6c01
perf(reactivity): do not track inner key `__v_skip`` (#11690) 2024-11-15 11:00:24 +08:00
edison 70b44ca835
chore(reactivity): remove unecessary array copy (#12400) 2024-11-15 10:37:24 +08:00
edison bee2f5ee62
fix(reactivity): release nested effects/scopes on effect scope stop (#12373)
close #12370
2024-11-14 14:24:22 +08:00
Evan You 21932840ea
fix(reactiivty): avoid unnecessary watcher effect removal from inactive scope
close #5783
close #5806
2024-11-14 14:12:41 +08:00
Evan You e9f3e6b546
workflow: bench against bundled dist file to avoid import access overhead
ref https://github.com/vitest-dev/vitest/issues/6903
2024-11-14 08:38:48 +08:00
Evan You b1260e0dd6
Merge remote-tracking branch 'upstream/main' 2024-11-11 17:05:52 +08:00
Evan You 770ea67a9c
release: v3.5.12 2024-10-11 21:12:32 +08:00
skirtle c82b66214b
refactor(reactivity): reduce size of collectionHandlers (#12152) 2024-10-11 21:10:09 +08:00
Evan You d82fa611e8
chore: format 2024-10-11 11:25:48 +08:00
KevinXi d96883cf7d
test(reactivity): test for verifying no unnecessary calls of reactive array identity methods (#11328)
related: #9511
2024-10-11 11:24:03 +08:00
skirtle ec917cfdb9
perf(reactivity): avoid unnecessary recursion in removeSub (#12135) 2024-10-11 10:48:54 +08:00
Tycho 7ad289e1e7
fix(reactivity): trigger reactivity for Map key `undefined` (#12055)
close #12054
2024-10-11 10:39:08 +08:00
三咲智子 Kevin Deng 3d487184ea
chore: rename repo name 2024-10-05 15:59:15 +08:00
三咲智子 Kevin Deng c7fd6ae2dc
Merge tag 'v3.5.11' 2024-10-05 11:40:13 +08:00
Evan You 6e4de8d75e
release: v3.5.11 2024-10-03 23:49:47 +08:00
山吹色御守 c97bb84d0b
fix(types): infer the first generic type of `Ref` correctly (#12094) 2024-10-03 23:22:57 +08:00
Tycho d3f5e6e531
fix(reactivity): prevent overwriting `next` property during batch processing (#12075)
close #12072
2024-10-03 23:16:52 +08:00
Evan You 29de6f8b0b
chore: remove no longer used property on Dep 2024-09-28 19:25:16 +08:00
Evan You 4b09ab2074
release: v3.5.10 2024-09-27 23:16:33 +08:00
Evan You 93c95dd4cd
fix(reactivity): fix nested batch edge case 2024-09-27 23:10:20 +08:00
Evan You aa9ef2386a
fix(reactivity): only clear notified flags for computed in first batch iteration
close #12045
2024-09-27 11:25:58 +08:00
Evan You 60c2029f77
test: add test case for #11928 2024-09-27 11:06:34 +08:00
Tycho e2c19c20cf
fix(types/ref): handle nested refs in UnwrapRef (#12049)
close #12044
2024-09-27 10:23:01 +08:00
Evan You 01f15beeb0
release: v3.5.9 2024-09-26 19:28:03 +08:00
Evan You 10ff159240
fix(reactivity): fix recursive sync watcher on computed edge case
close #12033
close #12037
2024-09-26 18:38:13 +08:00
Evan You 6001e5c81a
fix(reactivity): fix property dep removal regression
close #12020
close #12021
2024-09-26 16:58:38 +08:00
yangxiuxiu c0e9434414
refactor(reactivity): avoid optional chaining in getDepFromReactive (#12007) 2024-09-24 18:02:01 +08:00
Evan You 5e8898572f
release: v3.5.8 2024-09-22 11:53:14 +08:00
Jürg Lehni 0267a58801
fix(reactivity): do not remove dep from depsMap when cleaning up deps of computed (#11995) 2024-09-22 11:49:35 +08:00
Evan You d1764a142a
test: simplify computed last sub test case 2024-09-22 11:24:10 +08:00
三咲智子 Kevin Deng b8713589de
Merge remote-tracking branch 'upstream/main' 2024-09-22 02:42:52 +08:00
Evan You 6fcb80172f
release: v3.5.7 2024-09-20 23:50:05 +08:00
Evan You 960706eebf
fix(reactivity): do not remove dep from depsMap when unsubbed by computed
follow up of 235ea4772 after discovering regression in vant ecosystem-ci tests
2024-09-20 23:39:59 +08:00
linzhe b030c8bc73
fix(reactivity): fix triggerRef call on ObjectRefImpl returned by toRef (#11986)
close #11982
2024-09-20 20:48:15 +08:00
Evan You 235ea4772e
fix(reactivity): fix memory leak from dep instances of garbage collected objects
close #11979
close #11971
2024-09-20 20:32:40 +08:00
Evan You 5c8b76ed6c
fix(reactivity): fix dev-only memory leak by updating dep.subsHead on sub removal
ref #11956
2024-09-20 20:06:39 +08:00
三咲智子 Kevin Deng 594cb1412d
Merge remote-tracking branch 'upstream/main' 2024-09-17 10:33:35 +08:00
Evan You 9a36f2a0b8
release: v3.5.6 2024-09-16 16:11:38 +08:00