@jbrowse/mobx-state-tree 5.9.0 → 5.9.1

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/README.md CHANGED
@@ -21,3 +21,4 @@ Fork of mobx-state-tree v5.4.2 for use in jbrowse
21
21
  snapshot. Note: `isValidSnapshot` always returns success for resilient types,
22
22
  meaning any value is considered a valid snapshot. Validation is deferred to
23
23
  instantiation time, where failures are caught and routed to the fallback
24
+ - removed NonEmptyObject annotation (also at upstream in post v5 versions)
package/dist/index.d.ts CHANGED
@@ -1250,8 +1250,6 @@ declare enum NodeLifeCycle {
1250
1250
  DETACHING = 3,// being detached from the tree
1251
1251
  DEAD = 4
1252
1252
  }
1253
- /** @hidden */
1254
- declare const $stateTreeNodeType: unique symbol;
1255
1253
  /**
1256
1254
  * Common interface that represents a node instance.
1257
1255
  * @hidden
@@ -1261,7 +1259,7 @@ interface IStateTreeNode<IT extends IAnyType = IAnyType> {
1261
1259
  * @internal
1262
1260
  */
1263
1261
  readonly $treenode?: any;
1264
- readonly [$stateTreeNodeType]?: [IT] | [any];
1262
+ readonly $__mstStateTreeNodeType__?: [IT] | [any];
1265
1263
  }
1266
1264
  /** @hidden */
1267
1265
  type TypeOfValue<T extends IAnyStateTreeNode> = T extends IStateTreeNode<infer IT> ? IT : never;
@@ -1659,10 +1657,10 @@ type IsOptionalValue<C, TV, FV> = undefined extends C ? TV : FV;
1659
1657
  type DefinablePropsNames<T> = {
1660
1658
  [K in keyof T]: IsOptionalValue<T[K], never, K>;
1661
1659
  }[keyof T];
1662
- declare const $emptyObject: unique symbol;
1663
- type EmptyObject = {
1664
- [$emptyObject]?: never;
1665
- };
1660
+ interface $EmptyObjectBrand {
1661
+ readonly $__mstEmpty__?: never;
1662
+ }
1663
+ type EmptyObject = $EmptyObjectBrand;
1666
1664
  /** @hidden */
1667
1665
  type MaybeEmpty<T> = keyof T extends never ? EmptyObject : T;
1668
1666
  /** @hidden */
@@ -2133,4 +2131,4 @@ declare const types: {
2133
2131
  };
2134
2132
 
2135
2133
  export { addDisposer, addMiddleware, applyAction, applyPatch, applySnapshot, cast, castFlowReturn, castToReferenceSnapshot, castToSnapshot, clone, createActionTrackingMiddleware, createActionTrackingMiddleware2, decorate, destroy, detach, escapeJsonPath, flow, getChildType, getEnv, getIdentifier, getLivelinessChecking, getMembers, getNodeId, getParent, getParentOfType, getPath, getPathParts, getPropertyMembers, getRelativePath, getRoot, getRunningActionContext, getSnapshot, getType, hasParent, hasParentOfType, isActionContextChildOf, isActionContextThisOrChildOf, isAlive, isArrayType, isFrozenType, isIdentifierType, isLateType, isLiteralType, isMapType, isModelType, isOptionalType, isPrimitiveType, isProtected, isReferenceType, isRefinementType, isRoot, isStateTreeNode, isType, isUnionType, isValidReference, joinJsonPath, onAction, onPatch, onSnapshot, process, protect, recordActions, recordPatches, resolveIdentifier, resolvePath, setDevMode, setLivelinessChecking, setLivelynessChecking, splitJsonPath, types as t, toGenerator, toGeneratorFunction, tryReference, tryResolve, typecheck, types, unescapeJsonPath, unprotect, walk };
2136
- export type { CustomTypeOptions, IActionContext, IActionRecorder, IActionTrackingMiddleware2Call, IActionTrackingMiddleware2Hooks, IActionTrackingMiddlewareHooks, IAnyComplexType, IAnyModelType, IAnyStateTreeNode, IAnyType, IArrayType, IComplexType, IDisposer, IJsonPatch, IMSTArray, IMSTMap, IMapType, IMaybe, IMaybeIType, IMaybeNull, IMiddlewareEvent, IMiddlewareEventType, IMiddlewareHandler, IModelReflectionData, IModelReflectionPropertiesData, IModelType, IOptionalIType, IPatchRecorder, IReferenceType, IReversibleJsonPatch, ISerializedActionCall, ISimpleType, ISnapshotProcessor, ISnapshotProcessors, IStateTreeNode, IType, ITypeUnion, Instance, LivelinessMode, LivelynessMode, ModelActions, ModelCreationType, ModelCreationType2, ModelInstanceType, ModelInstanceTypeProps, ModelPrimitive, ModelProperties, ModelPropertiesDeclaration, ModelPropertiesDeclarationToProperties, ModelSnapshotType, ModelSnapshotType2, OnReferenceInvalidated, OnReferenceInvalidatedEvent, OptionalDefaultValueOrFunction, ReferenceIdentifier, ReferenceOptions, ReferenceOptionsGetSet, ReferenceOptionsOnInvalidated, SnapshotIn, SnapshotOrInstance, SnapshotOut, TypeOfValue, TypeOrStateTreeNodeToStateTreeNode, UnionOptions, UnionStringArray, ValidOptionalValue, ValidOptionalValues, _CustomCSProcessor, _CustomJoin, _CustomOrOther, _NotCustomized };
2134
+ export type { $EmptyObjectBrand, CustomTypeOptions, IActionContext, IActionRecorder, IActionTrackingMiddleware2Call, IActionTrackingMiddleware2Hooks, IActionTrackingMiddlewareHooks, IAnyComplexType, IAnyModelType, IAnyStateTreeNode, IAnyType, IArrayType, IComplexType, IDisposer, IJsonPatch, IMSTArray, IMSTMap, IMapType, IMaybe, IMaybeIType, IMaybeNull, IMiddlewareEvent, IMiddlewareEventType, IMiddlewareHandler, IModelReflectionData, IModelReflectionPropertiesData, IModelType, IOptionalIType, IPatchRecorder, IReferenceType, IReversibleJsonPatch, ISerializedActionCall, ISimpleType, ISnapshotProcessor, ISnapshotProcessors, IStateTreeNode, IType, ITypeUnion, Instance, LivelinessMode, LivelynessMode, ModelActions, ModelCreationType, ModelCreationType2, ModelInstanceType, ModelInstanceTypeProps, ModelPrimitive, ModelProperties, ModelPropertiesDeclaration, ModelPropertiesDeclarationToProperties, ModelSnapshotType, ModelSnapshotType2, OnReferenceInvalidated, OnReferenceInvalidatedEvent, OptionalDefaultValueOrFunction, ReferenceIdentifier, ReferenceOptions, ReferenceOptionsGetSet, ReferenceOptionsOnInvalidated, SnapshotIn, SnapshotOrInstance, SnapshotOut, TypeOfValue, TypeOrStateTreeNodeToStateTreeNode, UnionOptions, UnionStringArray, ValidOptionalValue, ValidOptionalValues, _CustomCSProcessor, _CustomJoin, _CustomOrOther, _NotCustomized };