react-native-mmkv-storage

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

MIT License

Downloads
75.4K
Stars
1.6K
Committers
54

Bot releases are visible (Hide)

react-native-mmkv-storage - v0.10.3 Latest Release

Published by ammarahm-ed about 2 months ago

What's New

  • Upgrade to MMKV v1.3.9
  • Upgrade example app to react-native 0.75.2
  • Added useMMKVRef hook

What's Changed

New Contributors

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

react-native-mmkv-storage - v0.9.0

Published by ammarahm-ed over 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

react-native-mmkv-storage - v0.8.0

Published by ammarahm-ed about 2 years 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

react-native-mmkv-storage - v0.7.6

Published by ammarahm-ed over 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

react-native-mmkv-storage - v0.7.5

Published by ammarahm-ed over 2 years ago

Fix: set defaultValue parameter in useMMKVStorage hook optional

react-native-mmkv-storage - v0.7.4

Published by ammarahm-ed over 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

react-native-mmkv-storage - v0.7.3

Published by ammarahm-ed over 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

react-native-mmkv-storage - v0.7.2

Published by ammarahm-ed over 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();
react-native-mmkv-storage - v0.7.1

Published by ammarahm-ed over 2 years ago

  • fix: add missing types on async functions
react-native-mmkv-storage - v0.7.0

Published by ammarahm-ed over 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
react-native-mmkv-storage - v0.6.12

Published by ammarahm-ed over 2 years ago

  • Fix build failing on android when upgrading from 0.6.10
react-native-mmkv-storage - v0.6.11

Published by ammarahm-ed over 2 years ago

  • Fix #195 & #141
  • Change theme of documentation to improve readability
react-native-mmkv-storage - v0.6.10

Published by ammarahm-ed over 2 years ago

  • Fixed auto linking in React Native 0.67.x
react-native-mmkv-storage - v0.6.9

Published by ammarahm-ed almost 3 years ago

What's New

  • Fixed migration from 0.3.7 to 0.6.x
  • Fixed defaultValue not passed as a param when using a mutator function in setValue.
react-native-mmkv-storage - v0.6.8

Published by ammarahm-ed almost 3 years ago

  1. Fix multiple META-INF/MANIFEST.MF path error during detox build #199 Thanks to @andreialecu and @gersomvg
  2. Fixed support for android API 21 & 22. #196
react-native-mmkv-storage - v0.6.7

Published by ammarahm-ed almost 3 years ago

  • Fix google developer console security warning/app review rejection #194
  • Fix typescript compilation errors @hatem-72
  • Fix multiple META-INF/MANIFEST.MF path error @gersomvg
  • Fix migration issue when upgrading from v0.4.4
  • Refactor C++ code on android @waqar144
  • Add notice about the Map data type not being supported @DysphoricUnicorn
  • Fix return type for getKeys @Mookiies
  • Update docs related to useIndex/useMMKVStorage hooks
react-native-mmkv-storage - v0.6.6

Published by ammarahm-ed about 3 years ago

New

Auto linking on android

Thanks to @retyui. Now you can simply link library with your project with a single command.

`npx mmkv-link`

withServiceName prop on iOS

Now you can set a custom service name for iOS keychain. This helps you solve any issues when you use any other library for storing sensitive information such as react-native-keychain. Thanks to Andrei Tofan

Fixed

  • Fixed build issues on android, especially on older versions of react-native.
  • Added missing dependencies to setNewValue function in useMMKVStorage hook
react-native-mmkv-storage - v0.6.5

Published by ammarahm-ed about 3 years ago

  • Fix build failing on RN 0.66
react-native-mmkv-storage - v0.6.4

Published by ammarahm-ed about 3 years ago

  • Add support for monorepo projects
  • Fix falsy value not being set in hook #163 Thanks to @pnthach95
react-native-mmkv-storage - v0.6.3

Published by ammarahm-ed about 3 years ago

  • Remove fixed cmake version from build.gradle