Releases: ammarahm-ed/react-native-mmkv-storage
v0.9.0
Breaking Change
- Works only on react native 0.71.x and above.
What's Changed
- docs: update usage of MMKVLoader in readme by @unfernandito in #274
- Update flipper doc by @pnthach95 in #278
- Update README.md by @pfcodes in #288
- fix: API of getItem and setItem now match AsyncStorage by @mmmoussa in #293
- Fix apollo interface wrapper by @cdaleas in #302
- Add supports for RN 0.71 by @focux in #305
New Contributors
- @pfcodes made their first contribution in #288
- @mmmoussa made their first contribution in #293
- @cdaleas made their first contribution in #302
Full Changelog: v0.8.0...v0.9.0
v0.8.0
What's Changed
- Update MMKV from 1.2.10 to 1.2.13 by @andrei-tofan in #257
- Removed conditional imports in ObjC files by @amrfarid140 in #259
- fix: incorrect default iOS keychain accessibility level by @JoniVR in #263
- Fixed README.md typos by @TheYuriG in #267
- fix: incomplete implementation of transaction manager
- Fix mmkv causing a crash when app is closed
Flipper Support 🎉
Thanks to pnthach95 flipper plugin is finally here. https://github.com/pnthach95/flipper-plugin-react-native-mmkv-storage. It supports logging and manipulating storage values on the fly.
You can install it directly from plugin manager:
BREAKING CHANGE
The default iOS keychain accessibility level has been changed to AFTER_FIRST_UNLOCK
from WHEN_UNLOCKED
. You can read more about why this change was made here #263 #246 & #195. If your app functionality depends on WHEN_UNLOCKED
accessibility level. You must set it manually:
export const encryptedStorage = new MMKVLoader()
.setAccessibleIOS(IOSAccessibleStates.WHEN_UNLOCKED)
.withInstanceID('encrypted')
.withEncryption()
.initialize();
New Contributors
- @amrfarid140 made their first contribution in #259
- @TheYuriG made their first contribution in #267
- pnthach95
Full Changelog: v0.7.6...v0.8.0
v0.7.6
What's Changed
- Fix useMMKVStorage typings and falsy values persistance by @douugbr in #254
- Added support for RN 0.69
New Contributors
- @douugbr made their first contribution in #254
Full Changelog: v0.7.5...v0.7.6
v0.7.5
Fix: set defaultValue
parameter in useMMKVStorage
hook optional
v0.7.4
What's Changed
- Fix: check for undefined on pathname when checking for chrome debugger by @hosseintalebi in #250
- Use RCTBridgeModule's bridge property instead of [RCTBridge currentBridge] by @cltnschlosser in #249
- Fix
removeItem
breakinguseMMKVStorage
hook #252 - Fix
useMMKVStorage
hook not returning same default value as get/set functions #252
New Contributors
- @hosseintalebi made their first contribution in #250
- @cltnschlosser made their first contribution in #249
Full Changelog: v0.7.3...v0.7.4
v0.7.3
What's Changed
- fix: useMMKVStorage nextValue as a function by @tony-sanchez in #247
New Contributors
- @tony-sanchez made their first contribution in #247
Full Changelog: v0.7.2...v0.7.3
v0.7.2
What's New
- Remote Debugging with in-memory adapter
- Add type assertions when setting values to storage #240
What's Fixed
- Fix CI issues when building project on android #242
- Fix
useMMKVStorage
hook not updating when removing a value or setting it to null/undefined #163 @autoreleasefool
What's Changed
The default MMKVStorage.Loader
import has been deprecated in favor of direct importing. @unfernandito
Before:
import MMKVStorage from "react-native-mmkv-storage";
const MMKV = new MMKVStorage.Loader().initialize();
Now more simple and clear:
import {MMKVLoader} from "react-native-mmkv-storage";
const MMKV = new MMKVLoader().initialize();
v0.7.1
- fix: add missing types on async functions
v0.7.0
What's New
- Migrate codebase to typescript
- Add support for RN 0.68 #230
- Add new builder function
withPersistedDefaultValues
. Use it to persist default value passed to hook - Added in-memory storage adapter which can be used for testing with jest.
- Run example app with local symlinks
- Expo support in docs
- Add support for type generics in
useMMKVStorage
hook
What's Fixed
- fix: secure storage unable to read data from keychain closes #195 Huge thanks to @JoniVR for this
- fix: incorrect return type for hooks
- Fix mmkv not init on main thread on iOS
v0.6.12
- Fix build failing on android when upgrading from 0.6.10