github objectbox/objectbox-dart v2.0.0

latest releases: v4.0.3, v4.0.2, v4.0.1...
20 months ago

To upgrade to this major release run flutter pub upgrade objectbox --major-versions
(or for Dart Native apps dart pub upgrade objectbox --major-versions).

  • Breaking changes to generated code: run flutter pub run build_runner build
    (or dart run build_runner build for Dart Native apps) after updating!
  • Added and updated async APIs in Box:
    • new getAsync, getManyAsync, getAllAsync,
    • new putAsync and putManyAsync which support objects with relations,
    • renamed the former putAsync to putQueuedAwaitResult,
    • new putAndGetAsync and putAndGetManyAsync which return a copy of the given objects with new
      IDs set.
    • new removeAsync, removeManyAsync and removeAllAsync.
  • Add new async Query APIs: findAsync, findFirstAsync, findUniqueAsync, findIdsAsync and
    removeAsync.
  • Support sending objects containing ToOne and ToMany across isolates, e.g. when using
    store.runInTransactionAsync. #340
  • Store.attach (and Store.fromReference) do not longer accept a null model, which was not
    supported anyhow.
  • Breaking change: renamed store.awaitAsyncSubmitted and awaitAsyncCompletion to
    awaitQueueSubmitted and awaitQueueCompletion to avoid any mix-up with the new async methods.
  • Removed deprecated Store.runIsolated.
  • Require at least Dart SDK 2.15 (shipped with Flutter 2.8.0).

Don't miss a new objectbox-dart release

NewReleases is sending notifications on new releases.