react-native-mmkv

⚡️ The fastest key/value storage for React Native. ~30x faster than AsyncStorage!

OTHER License

Downloads
839.8K
Stars
5.1K
Committers
64

Bot releases are hidden (Show)

react-native-mmkv - Release 2.6.2

Published by mrousavy over 1 year ago

2.6.2 (2023-02-24)

🐛 Bug Fixes

  • Convert std::string explicitly before c_str() (f098f79)
react-native-mmkv - Release 2.7.0

Published by mrousavy over 1 year ago

2.7.0 (2023-02-12)

New fastWrites prop

2.7.0 adds a new prop to the MMKV configuration that changes the behaviour of set calls.

  • When fastWrites is set to true, MMKV does not overwrite previous values when calling set. This is faster, but uses more memory.
  • When fastWrites is set to false, MMKV deletes the previous value before calling set. This makes sure the storage size is always as small as possible, with the added performance cost of one delete call before setting.

Before this version, MMKV behaved as if fastWrites was set to true (i.e.; fast, but use more memory). Now after this PR, fastWrites is false by default, because users were complaining in #440 that the storage size grows too big.

🐛 Bug Fixes

✨ Features

react-native-mmkv - Release 2.6.1

Published by mrousavy almost 2 years ago

2.6.1 (2023-01-17)

⚠️ BREAKING CHANGE ⚠️

Starting from 2.6.0., react-native-mmkv only works on react-native 0.71 and above.

If you use react-native 0.70 and below, you should use react-native-mmkv 2.5.1.

🐛 Bug Fixes

  • Depend on RN >= 0.71 (1f12ee4)
  • Fix build when new architecture is not enabled (#499) (1dd1143)
  • Fix Validate Android CI (5a4f000)
react-native-mmkv - Release 2.6.0

Published by mrousavy almost 2 years ago

2.6.0 (2023-01-16)

⚠️ BREAKING CHANGE ⚠️

Starting from 2.6.0., react-native-mmkv only works on react-native 0.71 and above.

If you use react-native 0.70 and below, you should use react-native-mmkv 2.5.1.

🐛 Bug Fixes

  • Add getBuffer to getPropertyNames in HostObject (#470) (77982c1)

📚 Documentation

✨ Features

react-native-mmkv - Release 2.5.1

Published by mrousavy almost 2 years ago

2.5.1 (2022-10-24)

🐛 Bug Fixes

  • Fix iOS TypedArray.h lookup (740c810)

✨ Features

react-native-mmkv - Release 2.5.0

Published by mrousavy almost 2 years ago

2.5.0 (2022-10-20)

✨ Features

  • Support setting and getting ArrayBuffers (Uint8Array) (#460) (1f2bcd1), closes #463

Example:

const storage = new MMKV()

// Set to storage
const buffer = new Uint8Array([255, 100, 8, 5])
storage.set('someToken', buffer)

// Get from storage
const buffer = storage.getBuffer('someToken')
console.log(buffer) // [255, 100, 8, 5]

// Fun Fact:
// You can read every value as a Buffer:
storage.set('someString', 'Hey!');
const buffer = storage.getBuffer('someString')
console.log(buffer); // [72, 101, 121, 33]
react-native-mmkv - Release 2.4.4

Published by mrousavy almost 2 years ago

2.4.4 (2022-10-20)

🐛 Bug Fixes

  • Allowed setting custom downloads directory (#459) (9762f01), closes #436 #455
  • Fix process check for Electron/Webbrowser (f693645), closes #432
  • use correct function call in jotai wrapper example (#451) (dd2a113)
react-native-mmkv - Release 2.4.3

Published by mrousavy over 2 years ago

2.4.3 (2022-07-04)

🐛 Bug Fixes

  • Update hook value if key or instance changes (#422) (dd20898)
react-native-mmkv - Release 2.4.2

Published by mrousavy over 2 years ago

2.4.2 (2022-06-30)

📚 Documentation

🐛 Bug Fixes

react-native-mmkv - Release 2.4.1

Published by mrousavy over 2 years ago

2.4.1 (2022-05-11)

react-native-mmkv - Release 2.4.0

Published by mrousavy over 2 years ago

2.4.0 (2022-05-10)

🐛 Bug Fixes

  • Fix recrypt(undefined) crashing due to nullptr (#387) (155e596)

✨ Features

react-native-mmkv - Release 2.3.3

Published by mrousavy over 2 years ago

2.3.3 (2022-04-21)

🐛 Bug Fixes

  • Fix getBoolean always returning true on Web (#384) (75b425d)
  • Fix setImmediate/unstable_batchedUpdates delaying listener execution (#386) (59d04dd)
react-native-mmkv - Release 2.3.2

Published by mrousavy over 2 years ago

2.3.2 (2022-04-19)

📚 Documentation

🐛 Bug Fixes

react-native-mmkv - Release 2.3.1

Published by mrousavy over 2 years ago

2.3.1 (2022-04-08)

🐛 Bug Fixes

  • Fix useMMKV return type (0f8c67a), closes #369
  • Fix default value undefined on Web (0a19dfb)
react-native-mmkv - Release 2.3.0

Published by mrousavy over 2 years ago

2.3.0 (2022-03-30)

This release now makes MMKV's API even simpler and more consistent 🎉

  • getNumber(...) now returns undefined instead of 0 as a default value, virtually without any added runtime cost
  • getBoolean(...) now returns undefined instead of false as a default value, virtually without any added runtime cost

📚 Documentation

  • Add documentation about debugging MMKV instances (bae1bd8)

🐛 Bug Fixes

✨ Features

  • Use undefined as a default value (BREAKING CHANGE) (#306) (6cbee87)
react-native-mmkv - Release 2.2.0

Published by mrousavy over 2 years ago

2.2.0 (2022-03-11)

✨ Features

  • Add useMMKV() for default instance (47a9b60)
react-native-mmkv - Release 2.1.2

Published by mrousavy over 2 years ago

2.1.2 (2022-03-09)

react-native-mmkv - Release 2.1.1

Published by mrousavy over 2 years ago

2.1.1 (2022-03-09)

📚 Documentation

  • Add wrapper for zustand persist-middleware (#327) (ab0fe8f)

🐛 Bug Fixes

  • Fix CMake build on Windows (#329) (d7f6376)
  • Fix value not updating if key changes in hook (d3ccb65)
  • Main thread error with initialize function (#346) (314c526)
  • Remove unnecessary macOS pbxproj (cb52901)
  • Use RCTUnsafeExecuteOnMainQueueSync instead of dispatch_sync - unsafe is my middle name ;) (41f0471)
react-native-mmkv - Release 2.1.0

Published by mrousavy over 2 years ago

2.1.0 (2022-02-09)

🐛 Bug Fixes

✨ Features

  • Re-Crypt an existing Storage instance (storage.recrypt(..)) (#314) (aabc43b)
  • Add useMMKVListener hook (#317) (db31f18)
  • Add MacOS support (#318) (3d0a289)
  • Implement debug-string-representations for MMKV instances (toString() and toJSON()) (#316) (fefca24)
  • Check input parameter validity when instance couldn't be created (#319) (0d95b76)
react-native-mmkv - Release 2.0.1

Published by mrousavy over 2 years ago

2.0.1 (2022-01-27)

Bug Fixes

Performance Improvements

  • Remove redundant useMemo (2c5b4aa)
Package Rankings
Top 1.22% on Npmjs.org
Related Projects