github objectbox/objectbox-dart v5.1.0

14 hours ago
  • Added flex properties that can hold any kind of data ("schema-less") supporting the following types on the Dart side:
    • Maps: JSON-like data structure with string keys and arbitrary values, including nested maps and lists.
    • Lists: can hold elements of any type, even mixed (like JSON arrays).
      On the Dart side, ObjectBox also offers binding to a list of maps, e.g. List<Map<String, dynamic>>.
    • Dynamic/Object: can hold any kind of data, including primitive types like integer, floating point and string,
      plus maps and lists.
    • Sync note: when used together with the MongoDB Connector,
      flex properties allow storing nested documents from MongoDB.
  • Added dateUtc and dateUtcNano property types for DateTime read back UTC.
    #308
  • Added "GeneratorVersion" enum to enforce generated code is compatible with the runtime library.
    You must run dart run build_runner build after updating the objectbox package.
    Until you regenerate code, compiling will fail with a message like this:
    "Error: Required named parameter 'generatorVersion' must be provided".

Don't miss a new objectbox-dart release

NewReleases is sending notifications on new releases.