@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.
package/dist/mobx-state-tree.cjs
CHANGED
|
@@ -3081,9 +3081,7 @@ const EMPTY_OBJECT = Object.freeze({});
|
|
|
3081
3081
|
* @internal
|
|
3082
3082
|
* @hidden
|
|
3083
3083
|
*/
|
|
3084
|
-
const mobxShallow =
|
|
3085
|
-
? { deep: false }
|
|
3086
|
-
: { deep: false, proxy: false };
|
|
3084
|
+
const mobxShallow = { deep: false };
|
|
3087
3085
|
Object.freeze(mobxShallow);
|
|
3088
3086
|
/**
|
|
3089
3087
|
* @internal
|
|
@@ -3911,7 +3909,11 @@ var MapIdentifierMode;
|
|
|
3911
3909
|
})(MapIdentifierMode || (MapIdentifierMode = {}));
|
|
3912
3910
|
class MSTMap extends mobx.ObservableMap {
|
|
3913
3911
|
constructor(initialData, name) {
|
|
3914
|
-
|
|
3912
|
+
// mobx's default (deep) enhancer. The old `observable.ref.enhancer` arg
|
|
3913
|
+
// read undefined ever since mobx 6 renamed the field to `options_.enhancer`,
|
|
3914
|
+
// so deep has been the effective behavior all along; mobx 7 dropped
|
|
3915
|
+
// `observable.ref` entirely.
|
|
3916
|
+
super(initialData, undefined, name);
|
|
3915
3917
|
}
|
|
3916
3918
|
get(key) {
|
|
3917
3919
|
// maybe this is over-enthousiastic? normalize numeric keys to strings
|