@jbrowse/mobx-state-tree 5.13.0 → 6.0.0

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.
@@ -1,4 +1,4 @@
1
- import { isComputedProp, isObservableProp, createAtom, action, computed, _allowStateChangesInsideComputed, reaction, runInAction, observable, values, entries, isObservableArray, _getGlobalState, isObservableObject, defineProperty as defineProperty$1, _interceptReads, intercept, observe, ObservableMap, _getAdministration, set, makeObservable, getAtom, when } from 'mobx';
1
+ import { isComputedProp, isObservableProp, createAtom, action, computed, _allowStateChangesInsideComputed, reaction, runInAction, observable, values, entries, isObservableArray, isObservableObject, defineProperty as defineProperty$1, _interceptReads, intercept, observe, ObservableMap, _getAdministration, set, makeObservable, getAtom, when } from 'mobx';
2
2
 
3
3
  let livelinessChecking = "warn";
4
4
  /**
@@ -3079,9 +3079,7 @@ const EMPTY_OBJECT = Object.freeze({});
3079
3079
  * @internal
3080
3080
  * @hidden
3081
3081
  */
3082
- const mobxShallow = _getGlobalState().useProxies
3083
- ? { deep: false }
3084
- : { deep: false, proxy: false };
3082
+ const mobxShallow = { deep: false };
3085
3083
  Object.freeze(mobxShallow);
3086
3084
  /**
3087
3085
  * @internal
@@ -3909,7 +3907,11 @@ var MapIdentifierMode;
3909
3907
  })(MapIdentifierMode || (MapIdentifierMode = {}));
3910
3908
  class MSTMap extends ObservableMap {
3911
3909
  constructor(initialData, name) {
3912
- super(initialData, observable.ref.enhancer, name);
3910
+ // mobx's default (deep) enhancer. The old `observable.ref.enhancer` arg
3911
+ // read undefined ever since mobx 6 renamed the field to `options_.enhancer`,
3912
+ // so deep has been the effective behavior all along; mobx 7 dropped
3913
+ // `observable.ref` entirely.
3914
+ super(initialData, undefined, name);
3913
3915
  }
3914
3916
  get(key) {
3915
3917
  // maybe this is over-enthousiastic? normalize numeric keys to strings