Commit Graph

842 Commits

Author SHA1 Message Date
Konv Suu 67d6596d40
fix(reactivity): fix markRaw error on already marked object (#11864)
close #11862
2024-09-10 15:40:43 +08:00
Evan You 632e163a41
release: v3.5.3 2024-09-06 11:27:41 +08:00
Evan You 35c760f82f
fix: Revert "fix(reactivity): self-referencing computed should refresh"
This reverts commit e84c4a608e.
2024-09-06 08:47:12 +08:00
Evan You 72263fa12e
release: v3.5.2 2024-09-05 21:11:36 +08:00
Evan You e84c4a608e
fix(reactivity): self-referencing computed should refresh
ref: https://github.com/vuejs/core/pull/11797#issuecomment-2330738633
2024-09-05 19:04:17 +08:00
Jürg Lehni 716275d1b1
fix(reactivity): prevent endless recursion in computed getters (#11797) 2024-09-05 18:54:30 +08:00
Evan You 46c3ab1d71
fix(reactivity): make toRaw work on proxies created by proxyRef 2024-09-05 17:47:03 +08:00
yangxiuxiu 98864a7ef5
fix(reactivity): pass oldValue to computed getter (#11813)
close #11812
2024-09-05 16:10:37 +08:00
Evan You 1b6bc2374d
release: v3.5.1 2024-09-04 21:07:29 +08:00
Evan You 40193696b3
chore(build): use /*@__PURE__*/ annotation consistently 2024-09-04 20:24:33 +08:00
Tycho 475977a6f7
fix(reactivity): handle non-array arguments in reactive `concat` method (#11794)
close #11792
2024-09-04 20:21:10 +08:00
Evan You 6402b98408
release: v3.5.0 2024-09-03 21:13:50 +08:00
Tycho 9817c80187
fix(reactivity): correctly handle method calls on user-extended arrays (#11760)
close #11759
2024-09-03 17:32:13 +08:00
Maisha Tremblay 3de5556521
test(reactive): use vitest fn instead of counting manually (#11746) 2024-09-02 17:08:19 +08:00
Cédric Exbrayat d427bcd71c
chore: document parameters of onWatcherCleanup (#11768) 2024-09-02 17:06:30 +08:00
Evan You d298c431cc
release: v3.5.0-rc.1 2024-08-29 15:25:43 +08:00
lidlanca 1d988b5b99
test(reactivity): test case for #6358 (#6376) 2024-08-29 14:20:04 +08:00
Evan You 313e4bf552
fix(reactivity): avoid infinite recursion when mutating ref wrapped in reactive
close #11696
2024-08-29 14:10:29 +08:00
HEGGRIA 64e1ca2657
chore(reactivity): effectScope.ts variable declarations optimized and remove useless code in effect.ts (#11721)
* chore(reactivity): effectScope.ts variable declarations optimized and remove useless code in effect.ts

* fix(reactivity): batchDepth count error fixed

* fix(reactivity): batchDepth count error fixed

* chore(reactivity): modify the batchDepth increase type
2024-08-28 18:16:59 +08:00
yangxiuxiu fbc0c42bcf
fix(reactivity): ensure watcher with once: true are properly removed from effect scope (#11665) 2024-08-20 16:35:08 +08:00
Evan You f2ea25dc54
refactor(watch): reuse watch types 2024-08-20 16:16:25 +08:00
Evan You 8c3fdd1a7d
release: v3.5.0-beta.3 2024-08-20 08:24:06 +08:00
Rizumu Ayaka 205e5b5e27
feat(reactivity): base `watch`, `getCurrentWatcher`, and `onWatcherCleanup` (#9927) 2024-08-20 08:21:44 +08:00
edison 9de1d101f9
fix(reactivity): extended methods respect reactive (#11629)
close #11628
2024-08-16 16:23:09 +08:00
Evan You 7d700c215d
release: v3.5.0-beta.2 2024-08-15 15:29:43 +08:00
Tycho 5cf5a1620d
fix(types/computed): ensure type safety for `WritableComputedRef` (#11608) 2024-08-14 15:11:10 +08:00
linzhe 3bda3e83fd
fix(reactivity): sync watch should be executed correctly (#11589)
close #11577
2024-08-13 22:54:08 +08:00
edison 4085def1ba
fix(reactivity): ensure extended method arguments are not lost (#11574)
close #11570
2024-08-10 15:54:38 +08:00
三咲智子 Kevin Deng 2ef97fec30
refactor: isolatedDeclarations for vapor 2024-08-09 17:00:27 +08:00
三咲智子 Kevin Deng 4468a2bea8
Merge tag 'v3.5.0-beta.1' 2024-08-09 00:55:35 +08:00
三咲智子 Kevin Deng 5632e2fe68
refactor: `baseWatch` always return effect 2024-08-09 00:41:31 +08:00
Evan You 23e098807b
release: v3.5.0-beta.1 2024-08-08 23:31:46 +08:00
Kevin Deng 三咲智子 928af5fe2f
refactor(types): enable `isolatedDeclarations` (#11178) 2024-08-08 23:05:21 +08:00
Alex e044b6e737
feat(reactivity): store value cache on CustomRefs impls (#11539)
Co-authored-by: Evan You <evan@vuejs.org>
2024-08-07 22:24:28 +08:00
Evan You eaf5455d77
chore: Merge branch 'main' into minor 2024-08-07 18:25:58 +08:00
Evan You b1abac06cd
fix: Revert "fix(types/ref): allow getter and setter types to be unrelated (#11442)"
This reverts commit e0b2975ef6.

This change requires TypeScript 5.1 so it is moved to a minor release.
2024-08-07 18:12:07 +08:00
Evan You 3a56315f94
fix: Revert "fix(types/ref): correct type inference for nested refs (#11536)"
This reverts commit 536f62332c.
2024-08-07 18:11:39 +08:00
Tycho 536f62332c
fix(types/ref): correct type inference for nested refs (#11536)
close #11532
close #11537
2024-08-07 11:20:04 +08:00
sq800 139548e0e0
chore: fix typo (#11535) [ci skip] 2024-08-07 10:57:39 +08:00
vue-bot 1cbbb04008 release: v3.4.36 2024-08-06 14:00:05 +00:00
三咲智子 Kevin Deng d23095e866
Merge tag 'v3.5.0-alpha.5' 2024-08-06 17:39:59 +08:00
远方os a01675ef8f
feat(types): allow computed getter and setter types to be unrelated (#11472)
close #7271
2024-08-05 10:51:56 +08:00
Tycho ba2092981c
refactor(types/ref): update `MaybeRef` to include all ref-like types (#11379)
Co-authored-by: Evan You <evan@vuejs.org>
2024-08-05 10:40:17 +08:00
远方os 267093c314
feat(reactivity/watch): add pause/resume for ReactiveEffect, EffectScope, and WatchHandle (#9651) 2024-08-02 14:41:27 +08:00
Evan You f6babf3236
release: v3.5.0-alpha.5 2024-07-31 16:57:19 +08:00
Evan You f35080daf5
chore: Merge branch 'main' into minor 2024-07-31 16:49:22 +08:00
Evan You 0b8ba6320e
release: v3.4.35 2024-07-31 16:42:04 +08:00
Tycho 87923f6af1
chore(types): reuse built-in Iterator type (#11435) 2024-07-29 21:26:48 +08:00
三咲智子 Kevin Deng f0405f1528
Merge tag 'v3.5.0-alpha.4' 2024-07-29 13:59:31 +08:00
Tycho e0b2975ef6
fix(types/ref): allow getter and setter types to be unrelated (#11442) 2024-07-29 10:52:38 +08:00
Tycho e28c58138c
refactor(reactivity): simplify the wrapping logic for returned values in array instrumentations (#11434) 2024-07-29 09:22:18 +08:00
Evan You 4ffd9db703
release: v3.5.0-alpha.4 2024-07-24 23:41:40 +08:00
Evan You 9111252042
release: v3.4.34 2024-07-24 23:30:30 +08:00
三咲智子 Kevin Deng a8248cf152
Merge remote-tracking branch 'upstream/minor' 2024-07-19 18:52:32 +08:00
Evan You ee11f43623
release: v3.5.0-alpha.3 2024-07-19 18:14:31 +08:00
Evan You 422ef34e48
release: v3.4.33 2024-07-19 17:24:34 +08:00
Evan You 0ae7316008
chore: update comments for proxyRefs 2024-07-17 18:01:13 +08:00
Evan You f15ba2c2e2
chore: Merge branch 'main' into minor 2024-07-17 17:32:31 +08:00
Evan You fd5c001ec7
release: v3.4.32 2024-07-17 17:07:05 +08:00
Tycho a509e30f05
fix(reactivity): ensure `unref` correctly resolves type for `ShallowRef` (#11360)
close #11356
2024-07-17 10:09:57 +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
Evan You f2acd51340
release: v3.4.31 2024-06-28 10:14:29 +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 912494318f
chore(types): reduce as any in reactivity 2024-06-26 08:45:25 +08:00
三咲智子 Kevin Deng 4be49b2620
Merge remote-tracking branch 'upstream/minor' 2024-06-22 23:39:45 +08:00
Evan You 7d06ca3a83
chore: Merge branch 'main' into minor 2024-06-22 21:05:15 +08:00
Evan You 582cd2e9bc
release: v3.4.30 2024-06-22 20:59:53 +08:00
Tycho 7936daebce
perf(reactivity): cache tracking value (#11145) 2024-06-22 16:57:25 +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
三咲智子 Kevin Deng cf8be999df
Merge remote-tracking branch 'upstream/minor' 2024-06-16 17:01:49 +08:00
Evan You 524e660e35
chore: Merge branch 'main' into minor 2024-06-14 18:15:20 +02:00
Evan You e5ca13a3af
release: v3.4.29 2024-06-14 18:02:36 +02: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 1224caf1ba
chore: format 2024-06-14 12:38:07 +02:00
Evan You 26356264d2
chore: Merge branch 'main' into minor 2024-06-14 12:32:28 +02:00
Evan You 3e89a0da21
release: v3.4.28 2024-06-14 11:30:16 +02:00
Tycho aae2d78875
fix(types/apiWatch): correct type inference for reactive array (#11036)
close #9416
2024-06-10 16:07:25 +08:00
tomasvn 32262a9af5
chore: use PropertyKey type (#11056)
close #8559
2024-06-06 18:23:21 +08: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
三咲智子 Kevin Deng 5a0a2bfa9b
refactor: remove optional chaining 2024-05-30 21:46:51 +08:00
三咲智子 Kevin Deng 334e72eeee
Merge remote-tracking branch 'upstream/minor' 2024-05-30 21:41:53 +08:00
Alex Liu f8994da00f
types: improve readability of built-in type (#9129) 2024-05-30 19:41:38 +08:00
Wick f8eba75d0a
chore(reactivity): change literal flag properties to enum flag properties (#10367) 2024-05-30 19:09:04 +08:00
Haoqun Jiang 3a0b463a2c
chore: fix typo (DistrubuteRef -> DistributeRef) (#11040) 2024-05-30 18:22:11 +08:00
Evan You 8708a7f1ef
chore: fix lint 2024-05-30 11:25:39 +08:00
Evan You 1d8727ec97
chore: Merge branch 'main' into minor 2024-05-30 11:21:12 +08:00
Kevin Deng 三咲智子 cdb1d1795d
chore: disallow optional chaining (#10919) 2024-05-29 15:03:20 +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
chenfan baa656ee41
chore(reactivity): improve readonly/reactive warning message (#9095) 2024-05-27 17:31:11 +08:00
Rizumu Ayaka b5ecb72864
feat: directive lifecycle hooks in `v-for`, `v-if` and component (#123)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-05-27 02:47:51 +08:00
三咲智子 Kevin Deng 7cd70505d5
Merge remote-tracking branch 'upstream/minor' 2024-05-11 22:11:30 +08:00
Evan You 461946175d
release: v3.4.27 2024-05-06 16:59:48 -07:00
Evan You b295cdf4e9
release: v3.5.0-alpha.2 2024-05-03 17:03:13 -07:00
三咲智子 Kevin Deng fb58e65d3d
Merge remote-tracking branch 'upstream/minor' 2024-04-29 17:50:30 +09:00
Evan You 241790937c
release: v3.4.26 2024-04-29 16:36:54 +08:00