mobx-keystone 2.2.0 → 2.3.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.
Files changed (168) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/mobx-keystone.esm.js +426 -334
  3. package/dist/mobx-keystone.esm.mjs +426 -334
  4. package/dist/mobx-keystone.umd.js +429 -333
  5. package/dist/types/action/applyAction.d.ts +1 -1
  6. package/dist/types/action/applyMethodCall.d.ts +1 -1
  7. package/dist/types/action/index.d.ts +12 -12
  8. package/dist/types/action/isModelAction.d.ts +1 -1
  9. package/dist/types/action/middleware.d.ts +1 -1
  10. package/dist/types/actionMiddlewares/actionSerialization/actionSerialization.d.ts +3 -3
  11. package/dist/types/actionMiddlewares/actionSerialization/applySerializedAction.d.ts +2 -2
  12. package/dist/types/actionMiddlewares/actionSerialization/arraySerializer.d.ts +2 -2
  13. package/dist/types/actionMiddlewares/actionSerialization/dateSerializer.d.ts +1 -1
  14. package/dist/types/actionMiddlewares/actionSerialization/index.d.ts +3 -3
  15. package/dist/types/actionMiddlewares/actionSerialization/mapSerializer.d.ts +2 -2
  16. package/dist/types/actionMiddlewares/actionSerialization/objectPathSerializer.d.ts +2 -2
  17. package/dist/types/actionMiddlewares/actionSerialization/objectSnapshotSerializer.d.ts +1 -1
  18. package/dist/types/actionMiddlewares/actionSerialization/plainObjectSerializer.d.ts +1 -1
  19. package/dist/types/actionMiddlewares/actionSerialization/primitiveSerializer.d.ts +1 -1
  20. package/dist/types/actionMiddlewares/actionSerialization/setSerializer.d.ts +2 -2
  21. package/dist/types/actionMiddlewares/actionTrackingMiddleware.d.ts +3 -3
  22. package/dist/types/actionMiddlewares/index.d.ts +6 -6
  23. package/dist/types/actionMiddlewares/onActionMiddleware.d.ts +3 -3
  24. package/dist/types/actionMiddlewares/readonlyMiddleware.d.ts +1 -1
  25. package/dist/types/actionMiddlewares/transactionMiddleware.d.ts +2 -2
  26. package/dist/types/actionMiddlewares/undoMiddleware.d.ts +8 -8
  27. package/dist/types/computedTree/index.d.ts +1 -1
  28. package/dist/types/context/index.d.ts +1 -1
  29. package/dist/types/dataModel/BaseDataModel.d.ts +3 -3
  30. package/dist/types/dataModel/DataModel.d.ts +3 -3
  31. package/dist/types/dataModel/getDataModelMetadata.d.ts +3 -3
  32. package/dist/types/dataModel/index.d.ts +4 -4
  33. package/dist/types/dataModel/utils.d.ts +1 -1
  34. package/dist/types/deepChange/index.d.ts +1 -1
  35. package/dist/types/deepChange/onDeepChange.d.ts +1 -1
  36. package/dist/types/frozen/Frozen.d.ts +1 -1
  37. package/dist/types/frozen/index.d.ts +1 -1
  38. package/dist/types/globalConfig/index.d.ts +1 -1
  39. package/dist/types/index.d.ts +24 -24
  40. package/dist/types/model/BaseModel.d.ts +5 -5
  41. package/dist/types/model/Model.d.ts +3 -3
  42. package/dist/types/model/getModelMetadata.d.ts +3 -3
  43. package/dist/types/model/index.d.ts +6 -6
  44. package/dist/types/model/mixins.d.ts +4 -4
  45. package/dist/types/model/utils.d.ts +4 -4
  46. package/dist/types/modelShared/BaseModelShared.d.ts +5 -5
  47. package/dist/types/modelShared/index.d.ts +4 -4
  48. package/dist/types/modelShared/modelDecorator.d.ts +3 -3
  49. package/dist/types/modelShared/modelInfo.d.ts +3 -3
  50. package/dist/types/modelShared/newModel.d.ts +3 -3
  51. package/dist/types/modelShared/prop.d.ts +3 -3
  52. package/dist/types/modelShared/sharedInternalModel.d.ts +4 -4
  53. package/dist/types/parent/findParent.d.ts +1 -1
  54. package/dist/types/parent/index.d.ts +9 -9
  55. package/dist/types/parent/path.d.ts +1 -1
  56. package/dist/types/patch/Patch.d.ts +1 -1
  57. package/dist/types/patch/applyPatches.d.ts +1 -1
  58. package/dist/types/patch/emitPatch.d.ts +1 -1
  59. package/dist/types/patch/index.d.ts +5 -5
  60. package/dist/types/patch/jsonPatch.d.ts +2 -2
  61. package/dist/types/patch/patchRecorder.d.ts +2 -2
  62. package/dist/types/redux/index.d.ts +2 -2
  63. package/dist/types/redux/redux.d.ts +3 -3
  64. package/dist/types/ref/Ref.d.ts +3 -3
  65. package/dist/types/ref/core.d.ts +2 -2
  66. package/dist/types/ref/customRef.d.ts +2 -2
  67. package/dist/types/ref/index.d.ts +4 -4
  68. package/dist/types/ref/rootRef.d.ts +2 -2
  69. package/dist/types/rootStore/index.d.ts +1 -1
  70. package/dist/types/snapshot/SnapshotOf.d.ts +5 -5
  71. package/dist/types/snapshot/SnapshotProcessingError.d.ts +2 -2
  72. package/dist/types/snapshot/applySnapshot.d.ts +1 -1
  73. package/dist/types/snapshot/cloneTreeValue.d.ts +1 -1
  74. package/dist/types/snapshot/fromSnapshot.d.ts +2 -2
  75. package/dist/types/snapshot/getSnapshot.d.ts +2 -2
  76. package/dist/types/snapshot/index.d.ts +8 -8
  77. package/dist/types/snapshot/onSnapshot.d.ts +1 -1
  78. package/dist/types/standardActions/index.d.ts +3 -3
  79. package/dist/types/standardActions/objectActions.d.ts +1 -1
  80. package/dist/types/transforms/asMap.d.ts +1 -1
  81. package/dist/types/transforms/asSet.d.ts +2 -2
  82. package/dist/types/transforms/bigint.d.ts +1 -1
  83. package/dist/types/transforms/date.d.ts +1 -1
  84. package/dist/types/transforms/index.d.ts +4 -4
  85. package/dist/types/treeUtils/draft.d.ts +1 -1
  86. package/dist/types/treeUtils/index.d.ts +3 -3
  87. package/dist/types/tweaker/index.d.ts +2 -2
  88. package/dist/types/tweaker/tweak.d.ts +1 -1
  89. package/dist/types/types/SnapshotTypeMismatchError.d.ts +5 -3
  90. package/dist/types/types/TypeCheckError.d.ts +2 -2
  91. package/dist/types/types/TypeChecker.d.ts +3 -3
  92. package/dist/types/types/arrayBased/typesArray.d.ts +2 -2
  93. package/dist/types/types/arrayBased/typesTuple.d.ts +2 -2
  94. package/dist/types/types/getTypeInfo.d.ts +2 -2
  95. package/dist/types/types/index.d.ts +7 -7
  96. package/dist/types/types/modelTypeMatching.d.ts +1 -0
  97. package/dist/types/types/objectBased/typesArraySet.d.ts +3 -3
  98. package/dist/types/types/objectBased/typesDataModelData.d.ts +4 -4
  99. package/dist/types/types/objectBased/typesModel.d.ts +4 -4
  100. package/dist/types/types/objectBased/typesObject.d.ts +3 -3
  101. package/dist/types/types/objectBased/typesObjectMap.d.ts +3 -3
  102. package/dist/types/types/objectBased/typesRecord.d.ts +2 -2
  103. package/dist/types/types/objectBased/typesRef.d.ts +3 -3
  104. package/dist/types/types/primitiveBased/typesEnum.d.ts +1 -1
  105. package/dist/types/types/primitiveBased/typesPrimitive.d.ts +3 -3
  106. package/dist/types/types/primitiveBased/typesRefinedPrimitive.d.ts +2 -2
  107. package/dist/types/types/schemas.d.ts +5 -5
  108. package/dist/types/types/tProp.d.ts +4 -4
  109. package/dist/types/types/typeCheck.d.ts +2 -2
  110. package/dist/types/types/types.d.ts +39 -39
  111. package/dist/types/types/utility/typeToStoredData.d.ts +2 -2
  112. package/dist/types/types/utility/typesBigInt.d.ts +1 -1
  113. package/dist/types/types/utility/typesCodec.d.ts +6 -6
  114. package/dist/types/types/utility/typesCodecCore.d.ts +4 -4
  115. package/dist/types/types/utility/typesCodecSupport.d.ts +4 -4
  116. package/dist/types/types/utility/typesDate.d.ts +2 -2
  117. package/dist/types/types/utility/typesMap.d.ts +2 -2
  118. package/dist/types/types/utility/typesMaybe.d.ts +1 -1
  119. package/dist/types/types/utility/typesOr.d.ts +2 -2
  120. package/dist/types/types/utility/typesRefinement.d.ts +3 -3
  121. package/dist/types/types/utility/typesSet.d.ts +3 -3
  122. package/dist/types/types/utility/typesSkipCheck.d.ts +2 -2
  123. package/dist/types/types/utility/typesTag.d.ts +2 -2
  124. package/dist/types/types/utility/typesUnchecked.d.ts +2 -2
  125. package/dist/types/utils/ModelPool.d.ts +1 -1
  126. package/dist/types/wrappers/ArraySet.d.ts +1 -1
  127. package/dist/types/wrappers/ObjectMap.d.ts +1 -1
  128. package/dist/types/wrappers/asMap.d.ts +1 -1
  129. package/dist/types/wrappers/asSet.d.ts +1 -1
  130. package/dist/types/wrappers/index.d.ts +4 -4
  131. package/package.json +10 -23
  132. package/src/action/modelAction.ts +1 -1
  133. package/src/action/modelFlow.ts +1 -1
  134. package/src/dataModel/BaseDataModel.ts +5 -5
  135. package/src/model/BaseModel.ts +7 -6
  136. package/src/model/mixins.ts +1 -1
  137. package/src/model/newModel.ts +1 -1
  138. package/src/modelShared/modelDecorator.ts +6 -11
  139. package/src/modelShared/modelInfo.ts +76 -0
  140. package/src/modelShared/sharedInternalModel.ts +1 -1
  141. package/src/ref/Ref.ts +1 -1
  142. package/src/snapshot/SnapshotterAndReconcilerPriority.ts +2 -1
  143. package/src/snapshot/fromModelSnapshot.ts +1 -1
  144. package/src/snapshot/fromSnapshot.ts +1 -1
  145. package/src/transforms/ImmutableDate.ts +19 -19
  146. package/src/tweaker/tweakArray.ts +1 -1
  147. package/src/tweaker/tweakFrozen.ts +1 -1
  148. package/src/tweaker/tweakModel.ts +1 -1
  149. package/src/tweaker/tweakPlainObject.ts +1 -1
  150. package/src/types/SnapshotTypeMismatchError.ts +3 -1
  151. package/src/types/arrayBased/typesArray.ts +1 -1
  152. package/src/types/arrayBased/typesTuple.ts +1 -1
  153. package/src/types/modelTypeMatching.ts +276 -0
  154. package/src/types/objectBased/typesArraySet.ts +1 -1
  155. package/src/types/objectBased/typesModel.ts +24 -7
  156. package/src/types/objectBased/typesObject.ts +1 -1
  157. package/src/types/objectBased/typesObjectMap.ts +1 -1
  158. package/src/types/objectBased/typesRecord.ts +1 -1
  159. package/src/types/objectBased/typesRef.ts +24 -5
  160. package/src/types/primitiveBased/typesPrimitive.ts +1 -1
  161. package/src/types/schemas.ts +1 -1
  162. package/src/types/utility/typesCodecCore.ts +4 -2
  163. package/src/types/utility/typesCodecSupport.ts +15 -7
  164. package/src/types/utility/typesOr.ts +40 -10
  165. package/src/types/utility/typesRefinement.ts +1 -1
  166. package/src/utils/index.ts +20 -13
  167. package/src/wrappers/ArraySet.ts +3 -5
  168. package/src/wrappers/ObjectMap.ts +3 -5

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the package file manually.