cardoteka 2.1.1
cardoteka: ^2.1.1 copied to clipboard
The best type-safe wrapper over SharedPreferences. Why so? -> strongly typed cards for access to storage -> use get|set -> can work with nullable values -> callback based updates
2.1.0 22-02-2025 #
- fix: when
WatcherImpl.attachis called withfireImmediately=true forCardoteka, the callback is called asynchronously (#44)
2.0.0 10-02-2025 #
- upd: minimum supported SDK version to Flutter 3.24.0/Dart 3.5.0
- 🛡️fix: Implement security advisories CWE-502
- new: now you can directly create an instance of the
Cardoteka(#15) - new:
CardotekaAsyncfor asynchronous data retrieval (works without cache) (#24) - 🧨upd: all declarations of own classes from
CardotekaandCardotekaAsyncmust now necessarily be declared asfinalorbaseorsealed - 🧨upd:
AccessToSPhas been deleted. Useimport package:cardoteka/access_to_sp.dart. - 🧨upd: changes in
Watcher.attach:onRemoveparameter is now required and callback is now a namedonChangeparameter (#14, #37) - add:
DetachabilityandDetacherChangeNotifierfor easy dispose of linked resources in classes with business logic (#10, #9) - add:
CRUD.readAsyncmethod for use withCardotekaAsync - add:
notifyAllmethod forWatcher(#17) - upd:
Converters.colorAsIntis temporarily deprecated. See more details in (#31) - add:
CardotekaMigrator.migratemethod for data migration (#33) - upd: all examples in
examplefolder have been updated - upd: some internal methods have been hidden from the IDE prompts to make package easier to use
- doc: "Notifier (riverpod)", "Analogy in
SharedPreferencesWithCacheandSharedPreferencesAsync", "Migration", "Sync or Async storage", "Detachability" sections were added to readme
You can see all closed issues in Milestone v2.0.0.
Also, read readme.md section on data migration Cardoteka from v1 to v2.
1.1.0 02-10-2024 #
- upd: minimum supported SDK version to Flutter 3.13.0/Dart 3.1.0
- fix: incorrect assert message about initialization, close #12
- 🧨upd: if you used
CollectionConverterand its inheritors, you are now only allowed to use them by usingextendsand addingfinalmodifier to your class (orbase|sealed) - 🧨upd:
Cardoteka.setPrefixnow static. AddallowListparameter. Theprefixnow named parameter. - 🧨add: use
CardotekaUtilsForTest.setMockInitialCardsmethod instead ofCardotekaUtilsForTest.setMockInitialValues, which is now responsible for the originalSharedPreferences.setMockInitialValuesmethod. Close #16 - doc: "Obfuscate", "Materials", "Apps", "Saving null values" sections were added to readme
You can see all closed issues in Milestone v1.1.0
1.0.1 22-12-2023 #
- fix: remove invalid example from
example - upd: description
1.0.0 22-12-2023 #
first public release 🎊
- fully documented code
- with examples of use in the
example/libfolder - code is covered by tests (with a coverage percentage >80%)
- prepared readme.md with architecture overview
0.0.1 04-11-2022 #
- 🍕 How about some pizza, pub.flutter-io.cn?
