Skip to content

Comments

feat: New MMKV Core and readOnly mode#753

Merged
mrousavy merged 10 commits intomainfrom
feat/new-core
Oct 22, 2024
Merged

feat: New MMKV Core and readOnly mode#753
mrousavy merged 10 commits intomainfrom
feat/new-core

Conversation

@mrousavy
Copy link
Owner

@mrousavy mrousavy commented Oct 22, 2024

  • Updates MMKV core from V1 to V2 (latest) -> this contains a bunch of fixes and improvements
  • Adds readOnly / isReadOnly mode to MMKV.
    const storage = new MMKV({
      id: 'some-storage',
      readOnly: true
    })
    const value = storage.getString('key') // <-- works
    storage.set('key', 'value') // <-- throws an error
    storage.isReadOnly // <-- true
  • Adds support for 16k page-size on Android

@mrousavy mrousavy merged commit 4f96988 into main Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant