Releases: mrousavy/react-native-mmkv
Releases · mrousavy/react-native-mmkv
Release 1.5.0
1.5.0 (2021-10-11)
Features
- Hooks (#163) (8312593)
- Value-Change Listeners (#163) (8312593)
- Add
contains
to check if a key is being stored (#180) (0278782) - Allow deleting values with hooks (fcc818c)
Bug Fixes
- Fix
useMMKVNumber
name (6fe8b5e) - Fix set state with
undefined
types (e81d0c7) - Share onValueChangedListeners across instances (#182) (3580898)
Documentation
- Separated documentation into multiple markdown files
Release 1.4.0
Release 1.3.3
1.3.3 (2021-10-07)
🎉 This release adds support for React Native 0.66! 🎉
Bug Fixes
- Add TS-Declarations for global JSI functions (#164) (1f125e1)
- Android rebuild command (#170) (4695a3d), closes #145
- Avoid duplicate C++ symbols by using
libjsi.so
shared library (#175) (289fdbd) - cryptkey and path param order for Android (#176) (934c5a3)
- Exclude
libfbjni.so
(1bc4581) - Fix clearAll documentation (#165) (82b7949)
Release 1.3.2
Release 1.3.1
Release 1.3.1-beta.0
Release 1.3.0
1.3.0 (2021-09-04)
⚠️ BREAKING CHANGE ⚠️
This version of MMKV comes with a completely redesigned API and contains three major features:
- 🎉 Support for multiple instances, e.g. to separate a logged in user's data from the global app data
- 🎉 Support for Encryption!
- 🎉 Support for custom paths!
Old API
import { MMKV } from 'react-native-mmkv'
MMKV.set('name', 'Marc')
MMKV.getString('name') // --> 'Marc'
New API
import { MMKV } from 'react-native-mmkv'
const storage = new MMKV()
storage.set('name', 'Marc')
storage.getString('name') // --> 'Marc'
Features
- Support multiple instances (#127) (d9b422c)
- Support encryption (#127) (d9b422c)
- Support custom path (#127) (d9b422c)
- Redesign (#127) (d9b422c)
Reverts
- Revert "link against
libreactnativejni.so
instead of compiling jsi.cpp ourself" (caa93ca)