Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: New MMKV Core and readOnly mode #753

Merged
merged 10 commits into from
Oct 22, 2024
Merged

feat: New MMKV Core and readOnly mode #753

merged 10 commits into from
Oct 22, 2024

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
8 checks passed
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