React Native Mmkv Versions Save

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

v2.6.3

1 year ago

2.6.3 (2023-03-01)

📚 Documentation

  • Fix a mistake in WRAPPER_REACT_QUERY.md (#517) (6780a7c)

🐛 Bug Fixes

v2.6.2

1 year ago

2.6.2 (2023-02-24)

🐛 Bug Fixes

  • Convert std::string explicitly before c_str() (f098f79)

v2.7.0

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

v2.6.1

1 year 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)

v2.6.0

1 year 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

v2.5.1

1 year ago

2.5.1 (2022-10-24)

🐛 Bug Fixes

  • Fix iOS TypedArray.h lookup (740c810)

✨ Features

v2.5.0

1 year 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]

v2.4.4

1 year 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)

v2.4.3

1 year ago

2.4.3 (2022-07-04)

🐛 Bug Fixes

  • Update hook value if key or instance changes (#422) (dd20898)

v2.4.2

1 year ago

2.4.2 (2022-06-30)

📚 Documentation

🐛 Bug Fixes