mobx-keystone 1.10.1 → 1.11.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.
Files changed (93) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/mobx-keystone.esm.js +312 -262
  3. package/dist/mobx-keystone.esm.mjs +312 -262
  4. package/dist/mobx-keystone.umd.js +312 -262
  5. package/dist/types/action/applyAction.d.ts +1 -1
  6. package/dist/types/action/middleware.d.ts +2 -2
  7. package/dist/types/action/modelFlow.d.ts +3 -1
  8. package/dist/types/actionMiddlewares/readonlyMiddleware.d.ts +1 -1
  9. package/dist/types/actionMiddlewares/undoMiddleware.d.ts +2 -2
  10. package/dist/types/model/Model.d.ts +2 -2
  11. package/dist/types/modelShared/BaseModelShared.d.ts +4 -4
  12. package/dist/types/modelShared/prop.d.ts +10 -9
  13. package/dist/types/patch/patchRecorder.d.ts +1 -1
  14. package/dist/types/redux/redux.d.ts +2 -6
  15. package/dist/types/ref/Ref.d.ts +1 -1
  16. package/dist/types/snapshot/SnapshotOf.d.ts +4 -4
  17. package/dist/types/snapshot/applySnapshot.d.ts +1 -9
  18. package/dist/types/standardActions/arrayActions.d.ts +15 -15
  19. package/dist/types/standardActions/objectActions.d.ts +4 -4
  20. package/dist/types/transforms/asMap.d.ts +1 -1
  21. package/dist/types/transforms/asSet.d.ts +2 -1
  22. package/dist/types/types/primitiveBased/typesRefinedPrimitive.d.ts +2 -2
  23. package/dist/types/types/types.d.ts +2 -2
  24. package/dist/types/utils/setIfDifferent.d.ts +2 -1
  25. package/dist/types/wrappers/ArraySet.d.ts +12 -5
  26. package/dist/types/wrappers/ObjectMap.d.ts +5 -5
  27. package/dist/types/wrappers/asMap.d.ts +2 -2
  28. package/dist/types/wrappers/asSet.d.ts +1 -1
  29. package/package.json +12 -12
  30. package/src/action/applyAction.ts +4 -2
  31. package/src/action/applyDelete.ts +1 -1
  32. package/src/action/applyMethodCall.ts +1 -0
  33. package/src/action/middleware.ts +37 -59
  34. package/src/action/modelFlow.ts +367 -362
  35. package/src/action/wrapInAction.ts +23 -15
  36. package/src/actionMiddlewares/readonlyMiddleware.ts +1 -1
  37. package/src/actionMiddlewares/undoMiddleware.ts +6 -4
  38. package/src/computedTree/computedTree.ts +139 -139
  39. package/src/context/context.ts +284 -284
  40. package/src/dataModel/BaseDataModel.ts +4 -2
  41. package/src/dataModel/DataModel.ts +8 -5
  42. package/src/model/BaseModel.ts +15 -9
  43. package/src/model/Model.ts +235 -227
  44. package/src/model/newModel.ts +261 -188
  45. package/src/model/utils.ts +70 -70
  46. package/src/modelShared/BaseModelShared.ts +123 -121
  47. package/src/modelShared/modelClassInitializer.ts +5 -2
  48. package/src/modelShared/modelDecorator.ts +248 -229
  49. package/src/modelShared/prop.ts +21 -15
  50. package/src/modelShared/sharedInternalModel.ts +10 -4
  51. package/src/parent/core.ts +1 -1
  52. package/src/parent/coreObjectChildren.ts +2 -2
  53. package/src/parent/detach.ts +1 -1
  54. package/src/parent/getChildrenObjects.ts +25 -25
  55. package/src/parent/walkTree.ts +183 -182
  56. package/src/patch/emitPatch.ts +1 -1
  57. package/src/patch/jsonPatch.ts +2 -2
  58. package/src/patch/patchRecorder.ts +1 -1
  59. package/src/redux/connectReduxDevTools.ts +1 -0
  60. package/src/redux/redux.ts +8 -11
  61. package/src/ref/core.ts +1 -1
  62. package/src/rootStore/attachDetach.ts +2 -1
  63. package/src/snapshot/SnapshotOf.ts +46 -44
  64. package/src/snapshot/applySnapshot.ts +150 -153
  65. package/src/snapshot/fromModelSnapshot.ts +58 -57
  66. package/src/snapshot/fromSnapshot.ts +174 -176
  67. package/src/snapshot/internal.ts +1 -1
  68. package/src/snapshot/reconcileModelSnapshot.ts +134 -134
  69. package/src/snapshot/reconcileSnapshot.ts +1 -1
  70. package/src/standardActions/arrayActions.ts +3 -4
  71. package/src/standardActions/objectActions.ts +1 -0
  72. package/src/transforms/asMap.ts +9 -9
  73. package/src/transforms/asSet.ts +3 -2
  74. package/src/treeUtils/deepEquals.ts +55 -55
  75. package/src/tweaker/tweak.ts +1 -1
  76. package/src/tweaker/tweakArray.ts +3 -3
  77. package/src/tweaker/tweakPlainObject.ts +4 -3
  78. package/src/types/TypeChecker.ts +6 -3
  79. package/src/types/objectBased/typesDataModelData.ts +2 -2
  80. package/src/types/objectBased/typesModel.ts +199 -196
  81. package/src/types/objectBased/typesObject.ts +9 -5
  82. package/src/types/schemas.ts +1 -0
  83. package/src/types/tProp.ts +190 -190
  84. package/src/types/utility/typesRefinement.ts +1 -0
  85. package/src/types/utility/typesTag.ts +1 -0
  86. package/src/utils/chainFns.ts +2 -2
  87. package/src/utils/decorators.ts +234 -227
  88. package/src/utils/index.ts +10 -4
  89. package/src/utils/setIfDifferent.ts +16 -12
  90. package/src/wrappers/ArraySet.ts +39 -6
  91. package/src/wrappers/ObjectMap.ts +7 -9
  92. package/src/wrappers/asMap.ts +8 -8
  93. package/src/wrappers/asSet.ts +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Change Log
2
2
 
3
+ ## 1.11.0
4
+
5
+ - Fixed some types so they are compatible with TypeScript 5.6.
6
+
7
+ ## 1.10.2
8
+
9
+ - Fixed some types so set transformations are compatible with TypeScript 5.5 once more.
10
+
3
11
  ## 1.10.1
4
12
 
5
13
  - Some more minor optimizations, for example creating models should be around 10% faster now.