Skip to content

v2.2.4

Choose a tag to compare

@jozzzzep jozzzzep released this 28 Apr 19:58
· 85 commits to main since this release
d1e3ea4
  • Added factory methods:
    • Prf.json<T>(...) and Prf.enumerated<T>(...)
    • PrfIso.json(...) and PrfIso.enumerated(...)
  • Added .isolated getter on Prf<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 all prf values! (with efficient binary encoding under the hood)
  • All adapters are now const for reduced memory usage and better performance.
  • Updated README documentation.
  • Now isolated prfs can 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.