mayr_storage 1.0.0
mayr_storage: ^1.0.0 copied to clipboard
Simple and unified storage solution for Flutter apps. Easily manage SharedPreferences, EncryptedSharedPreferences, and GetStorage with a clean, consistent API.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.0.0 - 2025-10-07 #
Added #
- Automatic publishing workflow to pub.flutter-io.cn via GitHub Actions
- Comprehensive documentation comments for all public APIs
- Better error messages with
UnsupportedErrorinstead of genericException
Changed #
- Fixed bug where
write(null)was callingclear()instead ofremove()in SharedPreferences - Fixed bug where
write(null)was callingclear()instead ofremove()in EncryptedSharedPreferences - Improved code organization and readability
- Enhanced documentation with detailed examples and use cases
- Made storage operations more explicit with better type safety
- Updated all class and method documentation following Dart documentation conventions
Fixed #
- SharedPreferences now properly uses
remove()for deleting specific keys instead ofclear() - EncryptedSharedPreferences now properly uses
remove()for deleting specific keys instead ofclear()
0.1.0 Initial Release #
Added #
- Initial release of
mayr_storage🎉 - Introduced
.storage()extension for using SharedPreferences easily. - Introduced
.secureStorage()extension for using EncryptedSharedPreferences for sensitive data. - Introduced
.boxStorage()extension for using GetStorage for lightweight storage. - Provided easy-to-use API:
- .read()
- .write()
- .delete()
- Added support for both synchronous and asynchronous operations after initialisation.
- Created MayrStorage.initialize() for safe storage setup at app startup.