Skip to content

Releases: mrousavy/react-native-mmkv

Release 2.5.0

20 Oct 11:10
Compare
Choose a tag to compare

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]

Release 2.4.4

20 Oct 11:08
Compare
Choose a tag to compare

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)

Release 2.4.3

04 Jul 13:30
Compare
Choose a tag to compare

2.4.3 (2022-07-04)

🐛 Bug Fixes

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

Release 2.4.2

30 Jun 07:49
Compare
Choose a tag to compare

2.4.2 (2022-06-30)

📚 Documentation

🐛 Bug Fixes

Release 2.4.1

11 May 08:01
Compare
Choose a tag to compare

2.4.1 (2022-05-11)

Release 2.4.0

10 May 08:37
Compare
Choose a tag to compare

2.4.0 (2022-05-10)

🐛 Bug Fixes

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

✨ Features

Release 2.3.3

21 Apr 09:49
Compare
Choose a tag to compare

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)

Release 2.3.2

19 Apr 10:04
Compare
Choose a tag to compare

2.3.2 (2022-04-19)

📚 Documentation

🐛 Bug Fixes

Release 2.3.1

08 Apr 09:37
Compare
Choose a tag to compare

2.3.1 (2022-04-08)

🐛 Bug Fixes

  • Fix useMMKV return type (0f8c67a), closes #369
  • Fix default value undefined on Web (0a19dfb)

Release 2.3.0

30 Mar 08:18
Compare
Choose a tag to compare

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)