React Native Mmkv Storage Versions Save

An ultra fast (0.0002s read/write), small & encrypted mobile key-value storage framework for React Native written in C++ using JSI

v0.9.0

1 year ago

Breaking Change

  • Works only on react native 0.71.x and above.

What's Changed

New Contributors

Full Changelog: https://github.com/ammarahm-ed/react-native-mmkv-storage/compare/v0.8.0...v0.9.0

v0.8.0

1 year ago

What's Changed

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

Full Changelog: https://github.com/ammarahm-ed/react-native-mmkv-storage/compare/v0.7.6...v0.8.0

v0.7.6

2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/ammarahm-ed/react-native-mmkv-storage/compare/v0.7.5...v0.7.6

v0.7.5

2 years ago

Fix: set defaultValue parameter in useMMKVStorage hook optional

v0.7.4

2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/ammarahm-ed/react-native-mmkv-storage/compare/v0.7.3...v0.7.4

v0.7.3

2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/ammarahm-ed/react-native-mmkv-storage/compare/v0.7.2...v0.7.3

v0.7.2

2 years ago

What's New

  1. Remote Debugging with in-memory adapter
  2. Add type assertions when setting values to storage #240

What's Fixed

  1. Fix CI issues when building project on android #242
  2. 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

2 years ago
  • fix: add missing types on async functions

v0.7.0

2 years ago

What's New

  1. Migrate codebase to typescript
  2. Add support for RN 0.68 #230
  3. Add new builder function withPersistedDefaultValues. Use it to persist default value passed to hook
  4. Added in-memory storage adapter which can be used for testing with jest.
  5. Run example app with local symlinks
  6. Expo support in docs
  7. Add support for type generics in useMMKVStorage hook

What's Fixed

  1. fix: secure storage unable to read data from keychain closes #195 Huge thanks to @JoniVR for this
  2. fix: incorrect return type for hooks
  3. Fix mmkv not init on main thread on iOS

v0.6.12

2 years ago
  • Fix build failing on android when upgrading from 0.6.10