Commit Graph

452 Commits

Author SHA1 Message Date
Evan You
7efb9dba30 refactor: remove use of Object.assign
TS already transpiles spread to Object.assign with target:es2016
2022-04-12 15:22:11 +08:00
Evan You
d56dec6b4a release: v3.2.31 2022-02-12 16:41:52 +08:00
Evan You
15adf251ab release: v3.2.30 2022-02-07 14:14:53 +08:00
Evan You
a51f935b72 refactor: remove isTracking() method 2022-01-30 18:53:43 +08:00
Evan You
81a6708739 chore: simplify effectScope 2022-01-28 21:02:09 +08:00
Evan You
2993a24618 perf(reactivity): optimize effect/effectScope active state tracking 2022-01-28 18:35:09 +08:00
Evan You
6b6889852f release: v3.2.29 2022-01-23 22:02:23 +08:00
Thorsten Lünborg
4be1037f31
fix(reactivity): ensure readonly refs can be replaced with new refs in reactive objects (#5310)
fix #5307
2022-01-23 08:08:27 -05:00
Evan You
283df0ad68 release: v3.2.28 2022-01-21 16:15:13 +08:00
HcySunYang
c64907d261
fix(types): calling readonly() with ref() should return Readonly<Ref<T>> (#5212) 2022-01-21 02:33:30 -05:00
Thorsten Lünborg
171f5e9c60
fix(reactivity): mutating a readonly ref nested in a reactive object should fail. (#5048)
fix: #5042
2022-01-21 02:33:18 -05:00
Evan You
2f91872e7b fix(ssr): only cache computed getters during render phase
fix #5300
2022-01-21 12:31:54 +08:00
Evan You
25bc6549eb perf(reactivity): optimize effect run condition 2022-01-21 09:41:58 +08:00
Evan You
ae4b0783d7 chore: update repo references 2022-01-18 16:43:59 +08:00
Evan You
9c304bfe79 fix(reactivity): differentiate shallow/deep proxies of same target when nested in reactive
fix #5271
2022-01-18 09:22:41 +08:00
Evan You
9fda9411ec feat(reactivity): add isShallow api 2022-01-18 09:22:41 +08:00
Evan You
3adfc0fe94 release: v3.2.27 2022-01-16 22:08:18 +08:00
Evan You
f4f0966b33 fix(ssr): make computed inactive during ssr, fix memory leak
fix #5208
2022-01-16 18:22:18 +08:00
Evan You
5ac703055f fix(types): handle ToRef<any>
fix #5188
2022-01-16 15:47:00 +08:00
Evan You
92f11d6740 fix(types): fix shallowReadonly type 2022-01-10 15:05:09 +08:00
Evan You
ccb6651b12 release: v3.2.26 2021-12-12 15:03:29 +08:00
Evan You
756534bde0 release: v3.2.25 2021-12-12 12:21:13 +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
Evan You
d955cfacd6 release: v3.2.24 2021-12-06 17:03:10 +08:00
三咲智子
523b4b78f5
fix(types/reactivity): export ShallowRef type (#5026)
close #5205
2021-12-05 23:18:21 -05:00
Evan You
b6a8a451b8 release: v3.2.23 2021-11-26 14:33:46 +08:00
mehan
2a4f134fc5
chore: remove unnecessary assertion (#4867) 2021-11-25 23:08:25 -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
JensDll
c6cd6a7938
fix (types): do not unwrap refs in toRefs (#4966) 2021-11-25 04:39:09 -05:00
Evan You
d145128ab4 fix(reactivity): retain readonly proxies when setting as reactive property
fix #4986
2021-11-25 12:14:39 +08:00
Jeet Mandaliya
61720231b4
chore: typo [skip ci] (#4961) 2021-11-18 11:01:11 +01:00
Evan You
635d88aa9e release: v3.2.22 2021-11-15 11:45:05 +08:00
Marvin Rudolph
d56f115f71
chore(reactivity): fix typo in types (#4889) 2021-11-02 20:19:39 +01:00
Evan You
fe853a5a40 release: v3.2.21 2021-11-02 14:35:14 +08:00
Evan You
c803eb15ec chore: avoid rollup plugin ts warning 2021-10-09 18:34:54 -04:00
Evan You
20a361541c fix(types): fix ref unwrapping type inference for nested shallowReactive & shallowRef
fix #4771
2021-10-09 17:51:15 -04:00
Evan You
3c500e422f release: v3.2.20 2021-10-08 13:01:51 -04:00
Che Guevara
925bc346fe
fix(types): make toRef return correct type(fix #4732) (#4734)
* fix(types): make `toRef` return correct type(fix #4732)

* chore: use correct test

Co-authored-by: Evan You <yyx990803@gmail.com>
2021-10-08 11:57:49 -04:00
Thorsten Lünborg
ed0071ac1a
fix(types): ensure that DeepReadonly handles Ref type properly (#4714) 2021-10-07 18:30:54 -04:00
Evan You
c5c53846ed release: v3.2.19 2021-09-25 14:58:20 -04:00
Evan You
13bfa2edfe release: v3.2.18 2021-09-24 16:05:16 -04:00
Evan You
f5076eb4b7 release: v3.2.17 2021-09-24 12:43:11 -04:00
Evan You
114b856fd1 release: v3.2.16 2021-09-23 10:17:02 -04:00
Evan You
74a84ff546 release: v3.2.15 2021-09-23 09:48:59 -04:00
Evan You
df4fcd94d8 release: v3.2.14 2021-09-22 18:36:57 -04:00
zhangenming
52e4ea732d
refactor(reactivity): reuse toReactive helper (#4641) 2021-09-22 10:11:54 -04:00
Evan You
b9deb6e50e release: v3.2.13 2021-09-21 14:22:53 -04:00
zhangenming
b264551c9b
refactor(reactivity): reuse computed getter check (#4623) 2021-09-21 13:03:09 -04:00