dev-plugins
dev-plugins copied to clipboard
Add mmkv v4 support for MMKV dev tools
This pull request updates the @dev-plugins/react-native-mmkv package to support the latest versions of its dependencies and aligns the code with breaking changes in the react-native-mmkv API. The main focus is on upgrading to react-native-mmkv v4 and updating the usage of its API in the codebase.
Dependency upgrades:
- Upgraded
react-native-mmkvfrom^3.1.0to^4.0.0inpackage.json, and updatedexpoto^54.0.0to ensure compatibility with the latest ecosystem. - Bumped the package version from
0.4.0to0.4.1to reflect these changes.
Code changes for react-native-mmkv v4 compatibility:
- Replaced the deprecated
MMKVconstructor with the newcreateMMKVfactory function inuseMMKVDevTools.ts. [1] [2] - Updated the storage removal method from
deletetoremoveto match the new API inreact-native-mmkvv4.