@yiin/reactive-proxy-state 1.0.33 → 1.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -3766,7 +3766,7 @@ function reactive(obj, emit, path = [], options) {
3766
3766
  return wrapSet(val, emit, subPath);
3767
3767
  if (val instanceof Date)
3768
3768
  return new Date(val.getTime());
3769
- return reactive(val, emit, subPath);
3769
+ return reactive(val, emit, subPath, options);
3770
3770
  }
3771
3771
  const proxy = new Proxy(obj, {
3772
3772
  get(target, prop, receiver) {
@@ -3793,7 +3793,7 @@ function reactive(obj, emit, path = [], options) {
3793
3793
  const oldValue = target[prop];
3794
3794
  if (oldValue === value)
3795
3795
  return true;
3796
- if (isObject3(oldValue) && isObject3(value) && deepEqual(oldValue, value, new WeakMap))
3796
+ if (!options?.async && isObject3(oldValue) && isObject3(value) && deepEqual(oldValue, value, new WeakMap))
3797
3797
  return true;
3798
3798
  const descriptor = Reflect.getOwnPropertyDescriptor(target, prop);
3799
3799
  const result = Reflect.set(target, prop, value, receiver);
package/dist/index.js CHANGED
@@ -3706,7 +3706,7 @@ function reactive(obj, emit, path = [], options) {
3706
3706
  return wrapSet(val, emit, subPath);
3707
3707
  if (val instanceof Date)
3708
3708
  return new Date(val.getTime());
3709
- return reactive(val, emit, subPath);
3709
+ return reactive(val, emit, subPath, options);
3710
3710
  }
3711
3711
  const proxy = new Proxy(obj, {
3712
3712
  get(target, prop, receiver) {
@@ -3733,7 +3733,7 @@ function reactive(obj, emit, path = [], options) {
3733
3733
  const oldValue = target[prop];
3734
3734
  if (oldValue === value)
3735
3735
  return true;
3736
- if (isObject3(oldValue) && isObject3(value) && deepEqual(oldValue, value, new WeakMap))
3736
+ if (!options?.async && isObject3(oldValue) && isObject3(value) && deepEqual(oldValue, value, new WeakMap))
3737
3737
  return true;
3738
3738
  const descriptor = Reflect.getOwnPropertyDescriptor(target, prop);
3739
3739
  const result = Reflect.set(target, prop, value, receiver);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yiin/reactive-proxy-state",
3
- "version": "1.0.33",
3
+ "version": "1.0.34",
4
4
  "author": "Yiin <stanislovas@yiin.lt>",
5
5
  "repository": {
6
6
  "type": "git",