hive_local_storage 1.0.9 copy "hive_local_storage: ^1.0.9" to clipboard
hive_local_storage: ^1.0.9 copied to clipboard

A cache helper which uses hive and flutter_secure_storage to make ease to store session and encrypted data

1.0.9 #

  • renamed openCustomBox to openBox
  • renamed getCustomList to getBoxValues
  • 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 in update and delete 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() use accessToken or refreshToken getter instead
  • renamed saveSession(Session) to saveToken(String accessToken,[String? refreshToken])
  • onSessionChange now returns Stream<bool> instead of Stream<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
7
likes
0
pub points
83%
popularity

Publisher

verified publisherkishormainali.com

A cache helper which uses hive and flutter_secure_storage to make ease to store session and encrypted data

Repository (GitHub)
View/report issues

Topics

#localstorage #session #cache #hive #securestorage

License

unknown (license)

Dependencies

collection, flutter, flutter_secure_storage, hive, hive_flutter, rxdart, synchronized

More

Packages that depend on hive_local_storage