mobx-keystone 0.68.6 → 0.69.2

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 (56) hide show
  1. package/CHANGELOG.md +13 -1
  2. package/dist/mobx-keystone.esm.mjs +33 -5
  3. package/dist/mobx-keystone.umd.js +33 -4
  4. package/dist/types/modelShared/{Model.d.ts → sharedInternalModel.d.ts} +0 -0
  5. package/dist/types/standardActions/arrayActions.d.ts +1 -1
  6. package/dist/types/types/arrayBased/{array.d.ts → typesArray.d.ts} +0 -0
  7. package/dist/types/types/arrayBased/{tuple.d.ts → typesTuple.d.ts} +0 -0
  8. package/dist/types/types/objectBased/{arraySet.d.ts → typesArraySet.d.ts} +0 -0
  9. package/dist/types/types/objectBased/{dataModelData.d.ts → typesDataModelData.d.ts} +0 -0
  10. package/dist/types/types/objectBased/{model.d.ts → typesModel.d.ts} +0 -0
  11. package/dist/types/types/objectBased/{object.d.ts → typesObject.d.ts} +0 -0
  12. package/dist/types/types/objectBased/{objectMap.d.ts → typesObjectMap.d.ts} +0 -0
  13. package/dist/types/types/objectBased/{record.d.ts → typesRecord.d.ts} +0 -0
  14. package/dist/types/types/objectBased/{ref.d.ts → typesRef.d.ts} +0 -0
  15. package/dist/types/types/primitiveBased/{enum.d.ts → typesEnum.d.ts} +0 -0
  16. package/dist/types/types/primitiveBased/{primitives.d.ts → typesPrimitive.d.ts} +0 -0
  17. package/dist/types/types/primitiveBased/{refinedPrimitives.d.ts → typesRefinedPrimitive.d.ts} +0 -0
  18. package/dist/types/types/types.d.ts +18 -16
  19. package/dist/types/types/utility/{maybe.d.ts → typesMaybe.d.ts} +0 -0
  20. package/dist/types/types/utility/{or.d.ts → typesOr.d.ts} +0 -0
  21. package/dist/types/types/utility/{refinement.d.ts → typesRefinement.d.ts} +0 -0
  22. package/dist/types/types/utility/typesTag.d.ts +44 -0
  23. package/dist/types/types/utility/{unchecked.d.ts → typesUnchecked.d.ts} +0 -0
  24. package/package.json +19 -19
  25. package/src/actionMiddlewares/undoMiddleware.ts +2 -2
  26. package/src/context/context.ts +1 -1
  27. package/src/dataModel/BaseDataModel.ts +1 -1
  28. package/src/dataModel/DataModel.ts +1 -1
  29. package/src/model/BaseModel.ts +1 -1
  30. package/src/model/Model.ts +1 -1
  31. package/src/modelShared/{Model.ts → sharedInternalModel.ts} +367 -367
  32. package/src/parent/setParent.ts +2 -1
  33. package/src/ref/Ref.ts +1 -1
  34. package/src/types/arrayBased/{array.ts → typesArray.ts} +0 -0
  35. package/src/types/arrayBased/{tuple.ts → typesTuple.ts} +0 -0
  36. package/src/types/objectBased/{arraySet.ts → typesArraySet.ts} +2 -2
  37. package/src/types/objectBased/{dataModelData.ts → typesDataModelData.ts} +0 -0
  38. package/src/types/objectBased/{model.ts → typesModel.ts} +0 -0
  39. package/src/types/objectBased/{object.ts → typesObject.ts} +0 -0
  40. package/src/types/objectBased/{objectMap.ts → typesObjectMap.ts} +2 -2
  41. package/src/types/objectBased/{record.ts → typesRecord.ts} +0 -0
  42. package/src/types/objectBased/{ref.ts → typesRef.ts} +2 -2
  43. package/src/types/primitiveBased/{enum.ts → typesEnum.ts} +68 -68
  44. package/src/types/primitiveBased/{primitives.ts → typesPrimitive.ts} +0 -0
  45. package/src/types/primitiveBased/{refinedPrimitives.ts → typesRefinedPrimitive.ts} +2 -2
  46. package/src/types/registerDefaultStandardTypeResolvers.ts +2 -2
  47. package/src/types/tProp.ts +2 -2
  48. package/src/types/types.ts +19 -16
  49. package/src/types/utility/{maybe.ts → typesMaybe.ts} +2 -2
  50. package/src/types/utility/{or.ts → typesOr.ts} +1 -1
  51. package/src/types/utility/{refinement.ts → typesRefinement.ts} +0 -0
  52. package/src/types/utility/typesTag.ts +80 -0
  53. package/src/types/utility/{unchecked.ts → typesUnchecked.ts} +0 -0
  54. package/src/utils/index.ts +3 -2
  55. package/src/wrappers/ArraySet.ts +2 -2
  56. package/src/wrappers/ObjectMap.ts +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.69.2
4
+
5
+ - Fixed an issue related to modelActions and modelFlows in derived classes giving an error on instantiation.
6
+
7
+ ## 0.69.1
8
+
9
+ - Fixed an issue where value-types would always generate patches when `applySnapshot` was being used (even if the contents of the value-type did not really change).
10
+
11
+ ## 0.69.0
12
+
13
+ - Added `types.tag` to be able to annotate types.
14
+
3
15
  ## 0.68.6
4
16
 
5
17
  - Fixed `applySnapshot` generating no-op patches sometimes.
@@ -408,7 +420,7 @@
408
420
 
409
421
  ## 0.28.4
410
422
 
411
- - `onAttachedToRootStore` and its disposer will be called right after a change is made rather than after a whole action is finished (restores behaviour of version <= 0.28.1).
423
+ - `onAttachedToRootStore` and its disposer will be called right after a change is made rather than after a whole action is finished (restores behaviour of version &lt;= 0.28.1).
412
424
 
413
425
  ## 0.28.3
414
426