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.
- package/CHANGELOG.md +8 -0
- package/dist/mobx-keystone.esm.js +312 -262
- package/dist/mobx-keystone.esm.mjs +312 -262
- package/dist/mobx-keystone.umd.js +312 -262
- package/dist/types/action/applyAction.d.ts +1 -1
- package/dist/types/action/middleware.d.ts +2 -2
- package/dist/types/action/modelFlow.d.ts +3 -1
- package/dist/types/actionMiddlewares/readonlyMiddleware.d.ts +1 -1
- package/dist/types/actionMiddlewares/undoMiddleware.d.ts +2 -2
- package/dist/types/model/Model.d.ts +2 -2
- package/dist/types/modelShared/BaseModelShared.d.ts +4 -4
- package/dist/types/modelShared/prop.d.ts +10 -9
- package/dist/types/patch/patchRecorder.d.ts +1 -1
- package/dist/types/redux/redux.d.ts +2 -6
- package/dist/types/ref/Ref.d.ts +1 -1
- package/dist/types/snapshot/SnapshotOf.d.ts +4 -4
- package/dist/types/snapshot/applySnapshot.d.ts +1 -9
- package/dist/types/standardActions/arrayActions.d.ts +15 -15
- package/dist/types/standardActions/objectActions.d.ts +4 -4
- package/dist/types/transforms/asMap.d.ts +1 -1
- package/dist/types/transforms/asSet.d.ts +2 -1
- package/dist/types/types/primitiveBased/typesRefinedPrimitive.d.ts +2 -2
- package/dist/types/types/types.d.ts +2 -2
- package/dist/types/utils/setIfDifferent.d.ts +2 -1
- package/dist/types/wrappers/ArraySet.d.ts +12 -5
- package/dist/types/wrappers/ObjectMap.d.ts +5 -5
- package/dist/types/wrappers/asMap.d.ts +2 -2
- package/dist/types/wrappers/asSet.d.ts +1 -1
- package/package.json +12 -12
- package/src/action/applyAction.ts +4 -2
- package/src/action/applyDelete.ts +1 -1
- package/src/action/applyMethodCall.ts +1 -0
- package/src/action/middleware.ts +37 -59
- package/src/action/modelFlow.ts +367 -362
- package/src/action/wrapInAction.ts +23 -15
- package/src/actionMiddlewares/readonlyMiddleware.ts +1 -1
- package/src/actionMiddlewares/undoMiddleware.ts +6 -4
- package/src/computedTree/computedTree.ts +139 -139
- package/src/context/context.ts +284 -284
- package/src/dataModel/BaseDataModel.ts +4 -2
- package/src/dataModel/DataModel.ts +8 -5
- package/src/model/BaseModel.ts +15 -9
- package/src/model/Model.ts +235 -227
- package/src/model/newModel.ts +261 -188
- package/src/model/utils.ts +70 -70
- package/src/modelShared/BaseModelShared.ts +123 -121
- package/src/modelShared/modelClassInitializer.ts +5 -2
- package/src/modelShared/modelDecorator.ts +248 -229
- package/src/modelShared/prop.ts +21 -15
- package/src/modelShared/sharedInternalModel.ts +10 -4
- package/src/parent/core.ts +1 -1
- package/src/parent/coreObjectChildren.ts +2 -2
- package/src/parent/detach.ts +1 -1
- package/src/parent/getChildrenObjects.ts +25 -25
- package/src/parent/walkTree.ts +183 -182
- package/src/patch/emitPatch.ts +1 -1
- package/src/patch/jsonPatch.ts +2 -2
- package/src/patch/patchRecorder.ts +1 -1
- package/src/redux/connectReduxDevTools.ts +1 -0
- package/src/redux/redux.ts +8 -11
- package/src/ref/core.ts +1 -1
- package/src/rootStore/attachDetach.ts +2 -1
- package/src/snapshot/SnapshotOf.ts +46 -44
- package/src/snapshot/applySnapshot.ts +150 -153
- package/src/snapshot/fromModelSnapshot.ts +58 -57
- package/src/snapshot/fromSnapshot.ts +174 -176
- package/src/snapshot/internal.ts +1 -1
- package/src/snapshot/reconcileModelSnapshot.ts +134 -134
- package/src/snapshot/reconcileSnapshot.ts +1 -1
- package/src/standardActions/arrayActions.ts +3 -4
- package/src/standardActions/objectActions.ts +1 -0
- package/src/transforms/asMap.ts +9 -9
- package/src/transforms/asSet.ts +3 -2
- package/src/treeUtils/deepEquals.ts +55 -55
- package/src/tweaker/tweak.ts +1 -1
- package/src/tweaker/tweakArray.ts +3 -3
- package/src/tweaker/tweakPlainObject.ts +4 -3
- package/src/types/TypeChecker.ts +6 -3
- package/src/types/objectBased/typesDataModelData.ts +2 -2
- package/src/types/objectBased/typesModel.ts +199 -196
- package/src/types/objectBased/typesObject.ts +9 -5
- package/src/types/schemas.ts +1 -0
- package/src/types/tProp.ts +190 -190
- package/src/types/utility/typesRefinement.ts +1 -0
- package/src/types/utility/typesTag.ts +1 -0
- package/src/utils/chainFns.ts +2 -2
- package/src/utils/decorators.ts +234 -227
- package/src/utils/index.ts +10 -4
- package/src/utils/setIfDifferent.ts +16 -12
- package/src/wrappers/ArraySet.ts +39 -6
- package/src/wrappers/ObjectMap.ts +7 -9
- package/src/wrappers/asMap.ts +8 -8
- 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.
|