bdaya_shared_value 5.0.0
bdaya_shared_value: ^5.0.0 copied to clipboard
A straightforward way to manage global state in flutter apps.
Changelog #
5.0.0 - 2026-05-31 #
⚠ BREAKING CHANGES #
- persistence API removed entirely (load, save, key, autosave, customEncode, customDecode, customSave, customLoad, serialize, deserialize, SharedValueStorage). Use external persistence solutions and set SharedValue.$ directly.
- shared_preferences is no longer a dependency. load()/save() require customSave/customLoad callbacks. Users who relied on the built-in SharedPreferences persistence must provide their own callbacks.
- rxdart is no longer a transitive dependency. Consumers who relied on rxdart being pulled in transitively must add it directly.
Features #
- clean API redesign — remove persistence, optimize internals (145c65f)
- remove rxdart dependency (7b8a6ec)
- remove shared_preferences dependency, make persistence pluggable (5906895)
Bug Fixes #
- add # Changelog header to fix release-please insertion order (7815ec7)
Miscellaneous #
- clean up .gitignore and remove tracked IDE/generated files (b2438b3)
4.0.0 - 2026-05-30 #
⚠ BREAKING CHANGES #
- Minimum Dart SDK raised to >=3.8.0 (Dart 3 required).
- Minimum Flutter SDK raised to >=3.32.0.
- Upgraded rxdart to >=0.28.0 <2.0.0 (unblocks package:oidc rxdart 0.28 upgrade).
- Upgraded shared_preferences to ^2.5.0.
Features #
- Comprehensive test suite (24 tests) covering SharedValue API, streams, persistence, custom encode/decode, widgets, and InheritedModel.
- CI pipeline via GitHub Actions (stable + beta Flutter channels).
- Automated pub.dev publishing via trusted publishing (OIDC) with release-please.
- Static analysis with flutter_lints.
- Semantic PR title enforcement.
- Dependabot for pub + GitHub Actions dependency updates.
Miscellaneous #
- Apply dart format tall style for Dart 3.8+ compatibility (b15c30b)
3.1.3 03/11/2022 #
customEncodeandcustomDecodecan now handle null strings, indicating that the key does not exist in the storage
3.1.2 26/10/2022 #
- Fixed
streamWithInitialwith rxdart
3.1.1 26/10/2022 #
- Fixed
streamWithInitial
3.1.0 23/10/2022 #
- Add support for custom save/load logic
- Fixed memory leak due to
SharedValueinstances not being garbage collected because of the nonce mapMap<SharedValue, double> - Implemented
updateShouldNotifyinSharedValueInheritedModel