hive_local_storage 1.1.1 hive_local_storage: ^1.1.1 copied to clipboard
A cache helper which uses hive and flutter_secure_storage to make ease to store session and encrypted data
1.1.1 #
- make createdAt nullable in Session
1.1.0 #
This release contains breaking changes
- removed
getCusom
andputCustom
methods useget
andput
withboxName
instead - removed
removeCustom
method useremove
withboxName
instead - renamed
getBoxValues
tovalues
- add
getBox
method to get box instance openBox
method now returnsBox<T>
instead ofvoid
watchKey
now supports custom box
1.0.10 #
- added
getCustom
andputCustom
methods to get and put custom data in box - added
removeCustom
method to remove custom data from box
1.0.9 #
- renamed
openCustomBox
toopenBox
- renamed
getCustomList
togetBoxValues
- updated typeId check in
openBox
method
1.0.8 #
- updated repository url
- added createAt and updatedAt fields in Session
- added
deleteAll
method to delete all boxes from disk - added
filter
parameter inupdate
anddelete
method
1.0.7 #
- updated
flutter_secure_storage
- removed deprecated methods
1.0.6 #
- add
clearAll()
method to clear both session and cache box - add custom encryption support for boxes. pass HiveCipher while registering local storage
final storage = LocalStorage.getInstance(customCipher: HiveCipher // custom encryption algorithm,)
/// if you want ot open custom box
storage.openCustomBox( boxName:'box',
typeId:100,
customCipher:HiveCipher // custom encryption algorithm,
);
Breaking Changes
- deprecate
getSession()
useaccessToken
orrefreshToken
getter instead - renamed
saveSession(Session)
tosaveToken(String accessToken,[String? refreshToken])
- onSessionChange now returns
Stream<bool>
instead ofStream<Session?>
1.0.5 #
- removed redundant jsonDecode for getList
1.0.4 #
- added watchKey to listen on value changed for key
1.0.3+1 #
1.0.3 #
- added onSessionChange event for session box
- added synchronization
- updated min dart sdk version to 2.18
1.0.2 #
- updated flutter_secure_storage version
1.0.1 #
[BREAKING CHANGES]
- refactored adapter registration logic
1.0.0+1 #
- updated documentation
1.0.0 #
[BREAKING CHANGES]
- added support for opening custom boxes
- use encrypted box by default
- added support for adding list (encode/decode data)
- removed expiresIn from Session [Node: uses JWTDecoder to decode and get expiry time]
0.0.9 #
- added factory constructor to make compatible with riverpod
0.0.8 #
- added HiveField annotation in session object's fields
0.0.7 #
- Bug fixes when getting session
- added JwtDecoder
0.0.6 #
- Removed unnecessary type cast
- added isTokenExpired getter to check whether accessToken is expired or not
- hasSession() method renamed to hasSession getter
- added support for registering custom type adapters
0.0.5 #
- Breaking Changes
- Methods are renamed for easy understanding
- map getter added to make compatible to CacheStore
0.0.4 #
- Bug fixes
0.0.3 #
- updated README.md
0.0.2 #
- typo fixes
0.0.1 #
- initial release