github objectbox/objectbox-dart v5.0.1

3 days ago
  • Generator: migrate to analyzer 8 APIs. Require at least analyzer 8.1.1 and source_gen 4.0.1.
    Resolves Error: The method 'getInvocation' isn't defined when running the generator using analyzer 8.4.0 (it removes APIs that older source_gen versions were using).

  • Generator: require at least build 4.0.0. This will also allow using build_runner versions 2.7.2 or newer. #759

  • For ToOne support renaming the implicitly created target ID (or "relation") property:

    // Change target ID property name from default "customerId" to "customerRef"
    @TargetIdProperty('customerRef')
    final customer = ToOne<Customer>();

    This can be useful if the default name needs to be used for another property. Or when syncing with MongoDB to match the name used in the MongoDB database. #713

  • Provide a helpful error message if the name of a property conflicts with a target ID property
    created for a ToOne relation. #713

  • Generator: find @Backlink() source relation also in case target entity class is processed first. #687

Sync

  • SyncClient: support triggerReconnect().

Don't miss a new objectbox-dart release

NewReleases is sending notifications on new releases.