Releases: jonbnewman/mobx-store-provider
Maintenance release
This release is a minor maintenance update, it includes:
- Dependency updates
- Updated links to documentation (new TLD)
Minor bug fix
This release includes a minor identifier bug fix for useStore
Added minor feature
This release includes a minor feature enhancement:
-
Adds the
getStore
method for accessing astore
from outside of React
Maintenance release
This release is a minor maintenance update, it includes:
- Dependency updates
- Further simplified internal structure
Maintenance release
This release is a minor maintenance update, it includes:
- Dependency updates
- Simplified internal structure
- Minor internal type definition simplification for main
Map
.
NOTE: If you are upgrading from v1.x please make sure you read the v2.0.0 release notes
Missing env proxy for useCreateStore
This is a hot-fix release.
-
The
useCreateStore
hook is (among other things) proxying amodel.create()
call from mobx-state-tree. In mobx-state-tree, 2 parameters are accepted in thecreate()
call, one of them being the environment parameter.This was mistakenly not being proxied in v2.0.0 or v2.0.1...it has now been fixed, see the useCreateStore API documentation.
NOTE: If you are upgrading from v1.x please make sure you read the v2.0.0 release notes
Added missing peer dependency
This is a hot-fix release.
-
mobx-state-tree
was mistakenly left off of thepeerDependencies
in the 2.0.0 release.This release resolves that.
NOTE: If you are upgrading from v1.x please make sure you read the v2.0.0 release notes
Typescript improvements and package size reduction
The primary purpose of this release is two fold:
- Automatic model type inference (and overall better/more strict typescript definitions).
- Simplified API (removed
mapState
callback support).
Note that this release introduces significant breaking API changes (hence the 2.0 release).
- Breaking:
useProvider
API changes (see: useProvider) - Breaking:
useCreateStore
API changes (see: useCreateStore) - Breaking:
useStore
API changes (see: useStore)
A more in depth explanation of the typescript changes (the primary driver of these API changes) can be found on the mobx-store-provider typescript documentation.
Maintenance release
Updated dependencies
Maintenance release
This is a maintenance release.
- Breaking: Removed renamed/deprecated
createStore
hook - Updated internal dependencies
If you are still using createStore
, you now need to switch those calls to useCreateStore
.