Skip to content

Releases: ammarahm-ed/react-native-mmkv-storage

v0.9.0

10 Mar 15:06
Compare
Choose a tag to compare

Breaking Change

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

What's Changed

New Contributors

Full Changelog: v0.8.0...v0.9.0

v0.8.0

28 Jul 10:47
Compare
Choose a tag to compare

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: v0.7.6...v0.8.0

v0.7.6

22 May 09:14
Compare
Choose a tag to compare

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

11 May 19:12
Compare
Choose a tag to compare

Fix: set defaultValue parameter in useMMKVStorage hook optional

v0.7.4

11 May 11:03
Compare
Choose a tag to compare

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 breaking useMMKVStorage hook #252
  • Fix useMMKVStorage hook not returning same default value as get/set functions #252

New Contributors

Full Changelog: v0.7.3...v0.7.4

v0.7.3

08 May 15:35
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.7.2...v0.7.3

v0.7.2

29 Apr 18:51
Compare
Choose a tag to compare

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

13 Apr 18:29
Compare
Choose a tag to compare
  • fix: add missing types on async functions

v0.7.0

12 Apr 20:23
c10a624
Compare
Choose a tag to compare

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

01 Feb 15:01
Compare
Choose a tag to compare
  • Fix build failing on android when upgrading from 0.6.10