Commit Graph

145 Commits

Author SHA1 Message Date
Evan You f15ba2c2e2
chore: Merge branch 'main' into minor 2024-07-17 17:32:31 +08:00
Tycho a509e30f05
fix(reactivity): ensure `unref` correctly resolves type for `ShallowRef` (#11360)
close #11356
2024-07-17 10:09:57 +08:00
Evan You 26356264d2
chore: Merge branch 'main' into minor 2024-06-14 12:32:28 +02: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
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 58d827cb71 chore: Merge branch 'main' into minor 2024-02-26 10:13:44 +08:00
Wick 411596c07b
chore(reactivity): replace console.warn() to warn function (#10394) 2024-02-25 20:17:30 +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
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
renovate[bot] 237cb45319
chore(deps): update lint (#10112)
* chore(deps): update lint

* [autofix.ci] apply automated fixes

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-01-15 18:15:47 +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 cda74beceb chore: Merge branch 'main' into minor 2023-12-26 15:45:49 +08:00
yangxiuxiu 0695c69e0d
fix(types): fix distribution of union types when unwrapping setup bindings (#9909)
close #9903
2023-12-26 11:57:50 +08:00
Evan You 95f6fffea2 chore: Merge branch 'main' into minor 2023-12-19 18:16:16 +08:00
Eduardo San Martin Morote 24b1c1dd57
fix(types): extract properties from extended collections (#9854)
close #9852
2023-12-19 17:05:29 +08:00
Evan You 9f64d2b681 chore: Merge branch 'main' into minor 2023-12-16 14:37:21 +08:00
丶远方 9a571582b5
fix(types): fix `shallowRef` type error (#9839) 2023-12-16 13:45:01 +08:00
Evan You 982a145d38 chore: Merge branch 'main' into minor 2023-12-11 22:03:28 +08:00
丶远方 cdac12161e
fix(types): ref() return type should not be any when initial value is any (#9768) 2023-12-07 16:28:16 +08:00
Evan You e12b10ac3e chore: Merge branch 'main' into minor 2023-12-04 23:17:41 +08:00
三咲智子 Kevin Deng ad27473701
fix(types): fix reactive collection types (#8960)
close #8904
2023-12-01 02:33:09 +08:00
Evan You 1ea775633d chore: Merge branch 'main' into minor 2023-11-21 09:48:26 +08:00
renovate[bot] 16a6438236
chore(deps): update lint (#9627)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-11-18 10:33:24 +08:00
丶远方 176d476712
fix(types): fix `unref` and `toValue` when input union type contains ComputedRef (#8748)
close #8747
close #8857
2023-11-10 16:56:29 +08:00
Simon Lévesque 7c448000b0
fix(types): fix shallowRef return type with union value type (#7853)
close #7852
2023-11-10 13:40:47 +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
三咲智子 Kevin Deng 623ba514ec
chore: format code 2023-08-11 17:30:04 +08:00
丶远方 3decc57d0c
chore: remove unnecessary type assertions (#8386) 2023-07-10 18:18:53 +08:00
丶远方 3798c5480b
chore: remove unnecessary type assertions (#8311) 2023-05-19 07:49:28 +08:00
丶远方 2ce23f0e09
chore(reactivity): remove unnecessary type assertions. (#8046) 2023-04-10 14:06:56 +08:00
丶远方 cac1512390
chore(reactive): remove unref type assertion (#8007) 2023-04-06 17:15:27 +08:00
Evan You 59e828448e
feat(reactivity): improve support of getter usage in reactivity APIs (#7997) 2023-04-02 10:17:51 +08:00
Roland Hummel c346af2b6a
docs: comments on reactivity functions (fixes #4832) (#4836)
close #4832
2023-03-31 17:06:10 +08:00
Evan You eb0c1e7025 build: remove api-extractor 2023-02-03 15:57:00 +08:00
Anthony Fu e64c9ae957
fix(reactivity): `triggerRef` working with `toRef` from reactive (#7507)
* fix(reactivity): `triggerRef` working with `toRef` from reactive

* chore: refactor
2023-02-01 03:20:47 -05:00
三咲智子 (Kevin) bbb66d7ac7
ci: check prettier format (#6830) 2022-10-28 09:39:34 +08:00
HeYunfei e816812f10
fix(types): should unwrap tuple correctly (#3820)
fix #3819
2022-10-26 04:27:42 -04:00
Evan You a95554d35c fix(reactivity): fix shallow/readonly edge cases 2022-07-22 11:16:06 +08:00
Carlos Rodrigues 32e53bfd47
fix(types): keep the original type when unwrapping `markRaw` (#3791) 2022-05-06 05:07:49 -04:00
Evan You a51f935b72 refactor: remove isTracking() method 2022-01-30 18:53:43 +08:00
Evan You 2993a24618 perf(reactivity): optimize effect/effectScope active state tracking 2022-01-28 18:35:09 +08:00
Evan You 9fda9411ec feat(reactivity): add isShallow api 2022-01-18 09:22:41 +08:00
Evan You 5ac703055f fix(types): handle ToRef<any>
fix #5188
2022-01-16 15:47:00 +08:00
Evan You db729ce99e feat(reactivity-transform/types): restructure macro types + export types for all shorthand methods 2021-12-11 18:15:44 +08:00
Evan You 2db9c909c2 feat(reactivity): support default value in toRef() 2021-12-11 16:41:58 +08:00
三咲智子 523b4b78f5
fix(types/reactivity): export ShallowRef type (#5026)
close #5205
2021-12-05 23:18:21 -05:00
Evan You 6d46b36e7c revert: "fix(types): use proper array type when unwrapping reactive array (#4807)"
This reverts commit 89c54ee2b9.
2021-11-26 10:54:12 +08:00
Cheese 89c54ee2b9
fix(types): use proper array type when unwrapping reactive array (#4807) 2021-11-25 05:41:25 -05:00