Releases: ammarahm-ed/react-native-mmkv-storage
v0.11.0
What's Changed
- Add support for new architecture by @ammarahm-ed in #367
Full Changelog: v0.10.3...v0.11.0
v0.10.3
What's New
- Upgrade to MMKV v1.3.9
- Upgrade example app to react-native 0.75.2
- Added useMMKVRef hook
What's Changed
- removed unnecessary move by @polishchlieb in #328
- chore: fix broken docs link by @Mookiies in #330
- fix: Encryption typings by @Mookiies in #331
- chore(docs): fixed typo in docs for getKeys by @JeneaVranceanu in #333
- chore: allowing higher patch version of mmkv pod by @normanzb in #334
- Fix detox 0.71 error duplicated libc++_shared.so for Android builds by @ayush-shta in #336
- fix detox 0.72 error duplicated libfbjni.so for Android builds by @claired4l in #340
- chore: grammar fix, transcation to transaction by @giacomocerquone in #344
- Mock improvements to avoid false negatives by @sidferreira in #351
- Add more native access methods for android by @josephyanks in #343
- Updated android and ios files for 0.75.x by @dembeEdward in #354
New Contributors
- @polishchlieb made their first contribution in #328
- @JeneaVranceanu made their first contribution in #333
- @normanzb made their first contribution in #334
- @ayush-shta made their first contribution in #336
- @claired4l made their first contribution in #340
- @giacomocerquone made their first contribution in #344
- @sidferreira made their first contribution in #351
- @josephyanks made their first contribution in #343
- @dembeEdward made their first contribution in #354
Full Changelog: v0.9.0...v0.10.3
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