v2.2.4
- Added factory methods:
Prf.json<T>(...)andPrf.enumerated<T>(...)PrfIso.json(...)andPrfIso.enumerated(...)
- Added
.isolatedgetter onPrf<T>for isolate-safe access. - Expanded native type support:
- Built-in adapters for
num,Uri,List<int>,List<bool>,List<double>,List<DateTime>now supported out of the box with allprfvalues! (with efficient binary encoding under the hood)
- Built-in adapters for
- All adapters are now
constfor reduced memory usage and better performance. - Updated README documentation.
- Now isolated
prfscan easily be created like this:
final isoValue = Prf<String>('username').isolated;Changes and Deprecations:
- Renamed
Prfy<T>→PrfIso<T>. - Added deprecation annotations with migration instructions.
- Deprecated classes (to be removed in v3.0.0):
PrfJson<T>→Prf.json<T>(...)PrfEnum<T>→Prf.enumerated<T>(...)Prfy<T>→PrfIso<T>PrfyJson<T>→PrfIso.json<T>(...)PrfyEnum<T>→PrfIso.enumerated<T>(...)- Or alternatively:
Prf.json<T>(...).isolated,Prf.enumerated<T>(...).isolated
- Added extensive tests for every single adapter, with more than 300 tests - all adapters are heavily tested to ensure data integrity.