Commit Graph

200 Commits

Author SHA1 Message Date
Evan You f15ba2c2e2
chore: Merge branch 'main' into minor 2024-07-17 17:32:31 +08:00
LiuSeen 50ddafe91b
fix(reactivity): shallowReactive map "unwraps" the nested refs (#8503)
fix #8501
fix #11249
2024-07-16 15:07:06 +08:00
Johnson Chu ad22879dd2
test(reactivity): add a failed test for computed (#11243)
to avoid regressions like in #11135
2024-06-28 09:45:34 +08:00
Evan You e0df985f03
fix: Revert "fix(reactivity): avoid infinite loop when render access a side effect computed (#11135)"
This reverts commit 8296e19855.
2024-06-28 09:31:14 +08:00
Evan You 6c303eacd1
Revert "fix(reactivity): fix side effect computed dirty level (#11183)"
This reverts commit 3bd79e3e5e.
2024-06-28 09:28:51 +08:00
Evan You 7d06ca3a83
chore: Merge branch 'main' into minor 2024-06-22 21:05:15 +08:00
Doctor Wu 3bd79e3e5e
fix(reactivity): fix side effect computed dirty level (#11183)
close #11181, #11169
2024-06-22 16:27:28 +08:00
Doctor Wu 8296e19855
fix(reactivity): avoid infinite loop when render access a side effect computed (#11135)
close #11121
2024-06-14 23:51:19 +08:00
Evan You 26356264d2
chore: Merge branch 'main' into minor 2024-06-14 12:32:28 +02:00
Tycho d04417da41
test(effect): verify cleanupEffect clears multiple dependencies (#9503)
close #5541
2024-06-06 17:52:01 +08:00
chenfan 71c2c0af74
test(reactivity): should not observe well-known symbol keyed properties in has operation (#9174) 2024-06-06 17:41:15 +08:00
Fan Pei 3b0a56a9c4
fix(reactivity): pass oldValue in debug info when triggering refs (#8210)
fix vuejs/pinia#2061
2024-06-04 23:25:37 +08:00
4caabf2cb7
test(reactivity): replace isReactive with isReadonly (#7513) 2024-06-04 22:13:48 +08:00
Evan You 1d8727ec97
chore: Merge branch 'main' into minor 2024-05-30 11:21:12 +08:00
远方os 94b9b37362
test: improve test coverage (#9203)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Haoqun Jiang <haoqunjiang@gmail.com>
2024-05-28 17:36:29 +08:00
Wick 28841fee43
fix(reactivity): fix call sequence of ontrigger in effect (#10501) 2024-04-25 10:30:51 +08:00
Evan You bb5c31e614
chore: Merge branch 'main' into minor 2024-04-16 00:05:37 +08:00
Wick 9da34d7af8
fix(reactivity): computed should not be detected as true by isProxy (#10401) 2024-04-15 22:55:37 +08:00
Evan You 969c5fb30f
fix(reactivity): fix hasOwnProperty key coercion edge cases 2024-04-15 17:18:53 +08:00
Evan You c4684d3161
chore: amend test case name [ci skip] 2024-04-14 22:49:16 +08:00
Evan You c3c5dc93fb
fix(reactivity): fix tracking when hasOwnProperty is called with non-string value
close #10455
close #10464
2024-04-14 22:46:48 +08:00
丶远方 cde47bfa97
test: create `EffectScope` using a factory function (#8844) 2024-03-15 22:27:32 +08:00
Evan You 2cc5615590 feat(reactivity): `onEffectCleanup` API
ref #10173

Instead of exposing `getCurrentEffect`, this version accepts a second
argument to suppress the no-active-effect warning.
2024-03-05 22:53:20 +08:00
jods 70196a40cc
perf(reactivity): optimize array tracking (#9511)
close #4318
2024-02-26 18:25:52 +08:00
Evan You 58d827cb71 chore: Merge branch 'main' into minor 2024-02-26 10:13:44 +08:00
三咲智子 Kevin Deng a24809fbd2
chore: limit typescript lib to es2016 (#10164)
* chore: limit typescript lib to es2015

* chore: set target to es2015

* chore: update
2024-02-26 09:37:05 +08:00
Evan You 05eb4e0fef
Refactor reactivity system to use version counting and doubly-linked list tracking (#10397)
Bug fixes
close #10236
close #10069

PRs made stale by this one
close #10290
close #10354
close #10189
close #9480
2024-02-25 16:51:49 +08:00
Doctor Wu f7ba97f975
feat(dx): warn users when computed is self-triggering (#10299) 2024-02-13 17:38:26 +08:00
Artyom Tuchkov 2312184bc3
fix(reactivity): skip non-extensible objects when using `markRaw` (#10289)
close #10288
2024-02-08 10:57:57 +08:00
Johnson Chu 0bced13ee5
fix(reactivity): avoid infinite recursion from side effects in computed getter (#10232)
close #10214
2024-02-06 18:44:09 +08:00
Johnson Chu 6c7e0bd88f
fix(reactivity): handle `MaybeDirty` recurse (#10187)
close #10185
2024-02-06 18:23:56 +08:00
Evan You 492a720fd0 chore: remove unused import 2024-01-18 11:23:50 +08:00
Johnson Chu c2b274a887
fix(reactivity): re-fix #10114 (#10123) 2024-01-18 10:46:57 +08:00
Doctor Wu 20f62afaaf
fix(reactivity): fix regression for computed with mutation (#10119)
close #10114
2024-01-15 23:38:57 +08:00
Johnson Chu e45a8d24b4
fix(reactivity): fix dirtyLevel checks for recursive effects (#10101)
close #10082
2024-01-13 15:53:06 +08:00
Evan You 8b1848173b revert: fix(reactivity): correct dirty assign in render function (#10091)
This reverts commit 8d04205041.

close #10098
close #10100
2024-01-13 10:38:25 +08:00
Doctorwu 8d04205041
fix(reactivity): correct dirty assign in render function (#10091)
close #10082
2024-01-12 21:13:17 +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
Evan You 982a145d38 chore: Merge branch 'main' into minor 2023-12-11 22:03:28 +08:00
三咲智子 Kevin Deng b1fe48d851
ci: add continuous reactivity benchmark (#9638) 2023-12-08 21:26:48 +08:00
Evan You 6ecbd5ce2a fix(reactivity): fix mutation on user proxy of reactive Array
close #9742
close #9751
close #9750
2023-12-07 13:26:30 +08:00
Evan You 1ea775633d chore: Merge branch 'main' into minor 2023-11-21 09:48:26 +08:00
657476dcdb
fix(reactivity): clear method on readonly collections should return undefined (#7316) 2023-11-09 17:32:21 +08:00
Johnson Chu 16e06ca08f
feat(reactivity): more efficient reactivity system (#5912)
fix #311, fix #1811, fix #6018, fix #7160, fix #8714, fix #9149, fix #9419, fix #9464
2023-10-27 23:28:40 +09:00
skirtle e9e2778e9e
fix(reactivity): assigning array.length while observing a symbol property (#7568) 2023-10-21 09:48:59 +08:00
chenfan e33d554cae
refactor(reactivity): add instance check for effect (#9055) 2023-09-05 03:27:54 -05:00
zqran 7c2e44ff5f
test(reactivity): use vitest fn instead of counting manually (#8476) 2023-07-11 17:37:56 +08:00
b401243855
chore(types): remove unnecessary @ts-ignore or use @ts-expected-error (#7178) 2023-07-10 18:00:32 +08:00
zqran 924069891e
test(reactivity): bigint test for non-observable values (#6177) 2023-07-10 17:51:30 +08:00
丶远方 b01fc7ea84
chore: remove unnecessary imports (#8262) 2023-05-19 07:54:12 +08:00